:root {
  color-scheme: light;
  --ink: #08253f;
  --navy: #00324d;
  --deep: #002b43;
  --teal: #007c89;
  --teal-dark: #005f6b;
  --gold: #d49116;
  --coral: #f15b45;
  --muted: #566b78;
  --line: #d9e3e7;
  --soft-line: #edf3f5;
  --wash: #f7fbfc;
  --surface: #ffffff;
  --shadow: 0 20px 52px rgb(2 43 67 / 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 0 clamp(18px, 4vw, 60px);
  background: var(--deep);
  color: #ffffff;
  box-shadow: 0 10px 30px rgb(0 43 67 / 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 52px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 850;
}

.brand small {
  margin-top: 2px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 850;
}

nav {
  display: flex;
  align-items: center;
  gap: 44px;
  color: rgb(255 255 255 / 0.9);
  font-size: 0.94rem;
  font-weight: 800;
}

nav a:hover {
  color: #ffffff;
}

.header-cta {
  justify-self: end;
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border-radius: 7px;
  background: var(--coral);
  padding: 0 20px;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 850;
}

.header-cta:hover,
.button.primary:hover {
  background: #d94631;
}

main {
  overflow: hidden;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(420px, 1.05fr);
  align-items: stretch;
  min-height: calc(100vh - 74px);
  border-bottom: 1px solid var(--soft-line);
}

.hero-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(18px, 4vw, 60px);
  background: #ffffff;
}

.hero-content h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 7vw, 6.9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content > p {
  max-width: 560px;
  color: #415868;
  font-size: clamp(1.1rem, 1.8vw, 1.38rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0 42px;
}

.button,
.kit-toggle {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 22px;
  font-size: 0.96rem;
  font-weight: 850;
  cursor: pointer;
}

.button.primary {
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 12px 24px rgb(241 91 69 / 0.2);
}

.button.secondary {
  border-color: #6b8290;
  background: #ffffff;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.button.dark {
  border-color: rgb(255 255 255 / 0.86);
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
}

.button.dark:hover {
  background: #ffffff;
  color: var(--deep);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  max-width: 760px;
  color: #143a54;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
}

.hero-proof svg {
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--teal-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hero-image {
  position: relative;
  min-height: 600px;
}

.hero-image::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 18%;
  background: linear-gradient(90deg, #ffffff 0%, rgb(255 255 255 / 0) 100%);
  content: "";
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-section,
.kits-section,
.how-section,
.builder-section,
.audit-section {
  padding: clamp(46px, 5vw, 76px) clamp(18px, 4vw, 60px);
}

.section-heading {
  max-width: 870px;
  margin-bottom: 24px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.section-heading h2,
.audit-section h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.section-heading p,
.audit-section p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.section-heading.row a {
  align-self: center;
  color: var(--teal-dark);
  font-weight: 850;
}

.role-section {
  background: #ffffff;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.role-card {
  min-height: 206px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 28px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.role-card:hover,
.role-card.active {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgb(0 124 137 / 0.12);
  transform: translateY(-1px);
}

.role-card svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  fill: none;
  stroke: var(--teal-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.role-card:nth-child(2) svg {
  stroke: var(--gold);
}

.role-card strong,
.role-card span {
  display: block;
}

.role-card strong {
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 900;
}

.role-card span {
  color: #4f6675;
  line-height: 1.45;
}

.kits-section,
.builder-section {
  background: var(--wash);
  border-top: 1px solid var(--soft-line);
  border-bottom: 1px solid var(--soft-line);
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.kit-card {
  display: grid;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 12px 30px rgb(2 43 67 / 0.06);
}

.kit-card svg {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  fill: none;
  stroke: var(--teal-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.kit-card:nth-child(2) svg {
  stroke: var(--gold);
}

.kit-card:nth-child(4) svg {
  stroke: #3d4d90;
}

.kit-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.16;
}

.kit-card p,
.kit-card li {
  color: #516777;
  line-height: 1.45;
}

.kit-card p {
  margin-bottom: 14px;
}

.kit-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding-left: 18px;
}

.kit-toggle {
  align-self: end;
  width: 100%;
  border-color: var(--deep);
  background: #ffffff;
  color: var(--deep);
}

.kit-toggle.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.privacy-line {
  margin: 24px 0 0;
  color: #435b68;
  text-align: center;
  font-weight: 760;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.how-grid article {
  border-top: 2px solid var(--line);
  padding: 20px 12px 0 0;
}

.how-grid span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--deep);
  color: #ffffff;
  font-weight: 900;
}

.how-grid h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.how-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.builder-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.48fr);
  gap: 28px;
}

.kit-form,
.kit-preview,
.email-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgb(2 43 67 / 0.06);
}

.kit-form {
  display: grid;
  gap: 0;
  padding: 0 24px;
}

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--soft-line);
  padding: 24px 0;
}

.form-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 900;
}

.form-section-heading span {
  display: grid;
  flex: 0 0 30px;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--deep);
  color: #ffffff;
  font-size: 0.88rem;
}

label {
  display: block;
  color: #213f51;
  font-size: 0.9rem;
  font-weight: 850;
}

label b {
  margin-left: 6px;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid #c9d7de;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 560;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgb(0 124 137 / 0.16);
}

.field-error {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgb(241 91 69 / 0.14);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 0;
}

#validationMessage {
  flex: 1 1 260px;
  align-self: center;
  min-height: 20px;
  margin: 0;
  color: #b33c29;
  font-size: 0.92rem;
  font-weight: 850;
}

.kit-preview {
  align-self: start;
  padding: 24px;
}

.kit-preview h3 {
  margin-bottom: 4px;
  font-size: 1.2rem;
}

.kit-preview > p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.folder-list {
  display: grid;
  margin: 20px 0;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  overflow: hidden;
}

.folder-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--soft-line);
  padding: 12px 14px;
  color: #25475a;
  font-size: 0.92rem;
  font-weight: 780;
}

.folder-row:last-child {
  border-bottom: 0;
}

.folder-row span:last-child {
  color: var(--muted);
  font-weight: 700;
}

.format-box {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  border: 1px solid #cfe2e6;
  border-radius: 8px;
  background: #f8fcfd;
  padding: 16px;
}

.format-box strong,
.format-box span {
  display: block;
}

.format-box strong {
  margin-bottom: 4px;
  color: var(--deep);
}

.format-box span {
  color: var(--muted);
  line-height: 1.35;
}

.audit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 1.05fr);
  gap: 0;
  padding-top: 0;
}

.audit-panel {
  min-height: 310px;
  background:
    linear-gradient(90deg, rgb(0 43 67 / 0.88), rgb(0 43 67 / 0.62)),
    url("assets/travel-automation-hero.png") center / cover;
  color: #ffffff;
}

.audit-panel,
.email-panel {
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
}

.audit-panel h2,
.audit-panel p {
  color: #ffffff;
}

.audit-panel p {
  max-width: 520px;
  color: rgb(255 255 255 / 0.88);
}

.email-panel {
  display: grid;
  gap: 14px;
  border-radius: 0;
  box-shadow: none;
}

.email-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.email-panel p {
  margin-bottom: 6px;
}

.email-panel .button {
  width: fit-content;
  min-width: 170px;
}

.email-panel .button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.email-message {
  min-height: 22px;
  margin: 0;
  color: var(--teal-dark);
  font-weight: 850;
}

dialog {
  width: min(920px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgb(8 37 63 / 0.48);
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--soft-line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.18rem;
}

.dialog-header button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  padding: 0 14px;
  cursor: pointer;
}

#markdownPreview {
  display: block;
  min-height: 62vh;
  border: 0;
  border-radius: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto auto minmax(180px, 0.6fr);
  gap: 34px;
  align-items: start;
  padding: 34px clamp(18px, 4vw, 60px);
  background: var(--deep);
  color: rgb(255 255 255 / 0.85);
}

.site-footer > div {
  display: grid;
  gap: 8px;
}

.site-footer strong {
  color: #ffffff;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero-section,
  .builder-shell,
  .audit-section {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
    padding-bottom: 38px;
  }

  .hero-image {
    min-height: 430px;
    order: -1;
  }

  .hero-image::before {
    display: none;
  }

  .role-grid,
  .how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: auto;
    padding: 14px 18px;
  }

  .brand-mark {
    width: 44px;
    height: 42px;
  }

  .brand-mark img {
    width: 100%;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hero-content h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button,
  .kit-toggle,
  .email-panel .button {
    width: 100%;
  }

  .role-grid,
  .kit-grid,
  .how-grid,
  .site-footer,
  .format-box {
    grid-template-columns: 1fr;
  }

  .section-heading.row {
    display: block;
  }

  .role-card,
  .kit-card {
    min-height: auto;
  }

  .kit-form,
  .kit-preview {
    padding-right: 18px;
    padding-left: 18px;
  }
}
