:root {
  color-scheme: light;
  --paper: #f1eee3;
  --paper-raised: #fffdf7;
  --ink: #15332b;
  --ink-soft: #576b64;
  --pine: #123e34;
  --pine-deep: #092b25;
  --mint: #b9ddc8;
  --signal: #e76637;
  --signal-soft: #ffe0d2;
  --line: rgba(21, 51, 43, 0.17);
  --shadow: 0 24px 70px rgba(13, 48, 39, 0.12);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(231, 102, 55, 0.17), transparent 28rem),
    radial-gradient(circle at 3% 35%, rgba(18, 62, 52, 0.13), transparent 34rem),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(21, 51, 43, 0.026) 56px),
    var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--pine-deep);
  font: 700 1.12rem/1 Georgia, "Times New Roman", serif;
  text-decoration: none;
}

.brand-mark {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border-radius: 52% 48% 46% 54%;
  color: var(--paper-raised);
  background: var(--pine);
  font: 800 0.7rem/1 "Trebuchet MS", sans-serif;
  letter-spacing: 0.08em;
  transform: rotate(-4deg);
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-header nav a,
footer nav a {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover,
footer nav a:hover { color: var(--signal); }

.site-header .nav-action {
  white-space: nowrap;
  border: 1px solid var(--pine);
  border-radius: 999px;
  padding: 9px 15px;
  color: var(--pine);
}

main { padding: 38px 0 72px; }

.hero {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
  align-self: center;
  padding: clamp(42px, 7vw, 78px);
}

.eyebrow,
.option-kicker {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  overflow-wrap: break-word;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 690px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.3vw, 5.5rem);
  font-weight: 500;
  line-height: 0.94;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.02;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.45rem;
  line-height: 1.12;
}

.lede {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.68;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
}

.button.signal { color: #fffdf7; background: var(--signal); }
.button.signal:hover { background: #c94f26; }
.button.secondary { border-color: var(--line); color: var(--pine); background: transparent; }
.button.secondary:hover { border-color: var(--pine); }

.hero-note {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 58px);
  color: #fffdf7;
  background:
    linear-gradient(145deg, rgba(9, 43, 37, 0.92), rgba(18, 62, 52, 0.98)),
    var(--pine);
}

.hero-letter {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--mint);
  font: 700 1.2rem/1 Georgia, serif;
}

.hero-note .path-label {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-note h2 { font-size: clamp(2rem, 3vw, 2.8rem); }
.hero-note > p:not(.path-label) { color: rgba(255, 253, 247, 0.76); }

.text-link {
  width: fit-content;
  display: inline-flex;
  gap: 8px;
  margin-top: 14px;
  color: var(--pine);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link.light { color: var(--mint); }
.text-link:hover { text-decoration: underline; }

.section { margin-top: 52px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.65fr);
  gap: 22px 54px;
  align-items: end;
}

.section-heading .eyebrow,
.section-heading h2 { grid-column: 1; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p:last-child { grid-column: 2; grid-row: 1 / span 2; }
.section-heading p { color: var(--ink-soft); }

.beta-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 30px 64px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(30px, 5vw, 52px);
  background: rgba(255, 253, 247, 0.72);
}

.beta-intro > p:last-child,
.beta-steps p,
.email-note p { color: var(--ink-soft); }

.beta-steps { margin: 0; padding: 0; list-style: none; }
.beta-steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; border-top: 1px solid var(--line); padding: 18px 0; }
.beta-steps li:last-child { border-bottom: 1px solid var(--line); }
.beta-steps span { color: var(--signal); font-size: 0.72rem; font-weight: 900; }
.beta-steps p { margin: 5px 0 0; }

.beta-invite-screenshots {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.beta-invite-shot { min-width: 0; margin: 0; }
.beta-invite-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}
.beta-invite-shot figcaption {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding-top: 10px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.beta-invite-shot figcaption span { color: var(--signal); font-weight: 900; }

.email-note {
  grid-column: 1 / -1;
  border-left: 4px solid var(--signal);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  background: var(--signal-soft);
}

.email-note p { margin: 5px 0 0; }
.email-note a { color: var(--pine); font-weight: 900; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.workflow-card {
  position: relative;
  min-width: 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.72);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.workflow-card:hover {
  transform: translateY(-3px);
  border-color: var(--pine);
  box-shadow: 0 16px 36px rgba(13, 48, 39, 0.09);
}

.workflow-card.provider-card { background: rgba(185, 221, 200, 0.32); }

.card-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  color: var(--pine);
  background: var(--mint);
  font: 700 1rem/1 Georgia, serif;
}

.workflow-card .option-kicker {
  position: absolute;
  align-self: flex-end;
  color: var(--ink-soft);
}

.workflow-card > p:not(.option-kicker) { max-width: 520px; margin: 0; color: var(--ink-soft); }
.card-route { margin-top: auto; padding-top: 24px; color: var(--signal); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }

.sync-section {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 28px 70px;
  overflow: hidden;
  border-radius: 26px;
  padding: clamp(34px, 6vw, 64px);
  color: #fffdf7;
  background:
    radial-gradient(circle at 90% 0, rgba(185, 221, 200, 0.2), transparent 20rem),
    var(--pine-deep);
}

.sync-section .eyebrow { color: var(--mint); }
.sync-section p { color: rgba(255, 253, 247, 0.74); }
.sync-section .text-link { align-self: end; }

.sync-steps { margin: 0; padding: 0; list-style: none; }
.sync-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 17px 0; }
.sync-steps li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.sync-steps span { color: var(--mint); font-size: 0.72rem; font-weight: 900; }

.ai-heading > div { grid-column: 1; }
.ai-heading > p { grid-column: 2; grid-row: 1; }

.ai-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.ai-option {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 38px);
  background: rgba(255, 253, 247, 0.72);
}

.ai-option.featured { border-color: rgba(231, 102, 55, 0.5); background: var(--signal-soft); }
.ai-option > p:not(.option-kicker) { color: var(--ink-soft); }

code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 0.86em;
}

.endpoint { min-width: 0; display: grid; gap: 5px; margin-top: 22px; border-left: 3px solid var(--signal); padding-left: 13px; }
.endpoint span { color: var(--ink-soft); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }

.manual-setup {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.56);
}

.manual-setup summary { cursor: pointer; padding: 20px 24px; color: var(--pine); font-weight: 900; }
.manual-setup[open] summary { border-bottom: 1px solid var(--line); }
.manual-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin: 0; padding: 24px 30px; list-style: none; counter-reset: setup; }
.manual-list li { min-width: 0; min-height: 100px; display: grid; align-content: center; border-top: 1px solid var(--line); color: var(--ink-soft); counter-increment: setup; }
.manual-list li::before { content: "0" counter(setup); color: var(--signal); font-size: 0.7rem; font-weight: 900; }
.manual-list strong { color: var(--ink); }

.screenshot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(210px, 0.62fr); gap: 14px; align-items: start; padding: 0 24px 24px; }
.screenshot-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #283b36; border-radius: 16px; color: #fffdf7; background: var(--pine-deep); }
.screenshot-card img { width: 100%; height: auto; display: block; }
.screenshot-card figcaption { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 14px; color: rgba(255, 253, 247, 0.78); font-size: 0.75rem; }
.screenshot-card figcaption span { color: var(--mint); font-weight: 900; }

.bottom-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 52px; border-top: 1px solid var(--line); padding-top: 26px; }
.bottom-actions a { color: var(--pine); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; }
.bottom-actions a:hover { color: var(--signal); }

footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 30px 0 42px; color: var(--ink-soft); font-size: 0.78rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .workflow-card { transition: none; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-note { min-height: 360px; }
  .hero-letter { margin-bottom: 22px; }
  .section-heading,
  .beta-section,
  .sync-section { grid-template-columns: minmax(0, 1fr); }
  .section-heading .eyebrow,
  .section-heading h2,
  .section-heading > p:last-child,
  .ai-heading > div,
  .ai-heading > p { grid-column: 1; grid-row: auto; }
  .sync-section { gap: 22px; }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-card.tall { width: min(100%, 390px); grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 700px) {
  .site-header { min-height: 70px; }
  .site-header nav a:not(.nav-action) { display: none; }
  main { padding-top: 22px; }
  .hero-copy { padding: 38px 26px; }
  h1 { font-size: clamp(2.65rem, 13.5vw, 4rem); }
  .hero-note { min-height: 330px; padding: 34px 26px; }
  .workflow-grid,
  .ai-options,
  .manual-list,
  .screenshot-grid,
  .beta-invite-screenshots { grid-template-columns: minmax(0, 1fr); }
  .workflow-card { min-height: 235px; }
  .screenshot-card.tall { width: 100%; grid-column: auto; }
  footer { flex-direction: column; }
}

@media (max-width: 440px) {
  .site-header,
  main,
  footer { width: calc(100% - 24px); }
  .site-header .nav-action { padding: 8px 12px; }
  .button-row { display: grid; }
  .button { width: 100%; }
  .sync-section { padding: 30px 22px; }
  .manual-list { padding: 18px 22px; }
  .screenshot-grid { padding: 0 16px 16px; }
}
