/* ReadyTurn home page. Tokens copied from styles.css (Forest Spark); keep in sync by hand. */
@font-face { font-family: Lexend; font-weight: 600; font-display: swap; src: url(/vendor/lexend-600.woff2) format('woff2'); }
@font-face { font-family: Lexend; font-weight: 700; font-display: swap; src: url(/vendor/lexend-700.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 400; font-display: swap; src: url(/vendor/atkinson-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-display: swap; src: url(/vendor/atkinson-700.woff2) format('woff2'); }
:root {
  color-scheme: light;
  --forest: #3A6845; --forest-deep: #2C5236; --spark: #DFF2A6; --sun: #F5C84C; --sun-text: #8A5A00; --sun-tint: #FDF3D3;
  --ink: #16261B; --muted: #4C5A50; --mist: #E3EEDC; --linen: #F5F7F2; --line: #DFE5DA; --white: #fff;
  --radius: 18px; --shadow: 0 18px 50px rgba(22, 38, 27, .12);
  --head: Lexend, system-ui, sans-serif; --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--linen); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-deep); }
h1, h2, h3 { text-wrap: balance; font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.eyebrow { font: 700 .82rem/1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--forest); margin-bottom: .8rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 700 1rem/1 var(--head); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--forest); color: var(--white); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-ghost { background: var(--white); color: var(--forest-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); }
:focus-visible { outline: 3px solid var(--forest-deep); outline-offset: 3px; }
.final :focus-visible { outline-color: var(--sun); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 242, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { flex: none; display: inline-flex; align-items: center; min-height: 48px; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.2rem/1 var(--head); }
.logo img { width: 44px; height: 44px; } .logo { font-size: 1.4rem; }
.nav { display: none; gap: 18px; margin-left: auto; }
.nav a[aria-current] { color: var(--forest-deep); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); font: 600 .98rem/1 var(--head); padding: 0 2px; min-height: 48px; display: inline-flex; align-items: center; }
.head-cta { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.head-cta .signin { white-space: nowrap; text-decoration: none; font: 600 .98rem/1 var(--head); color: var(--ink); padding: 0 6px; min-height: 48px; display: inline-flex; align-items: center; }
.head-cta .btn { white-space: nowrap; min-height: 48px; padding: 0 16px; font-size: .95rem; }
.head-cta .btn .short { display: none; }
.menu-btn { display: inline-flex; min-height: 48px; min-width: 48px; align-items: center; justify-content: center; background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 12px; }
@media (max-width: 899px) {
  body.menu-open .nav { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--linen); padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 559px) {
  .site-head .wrap { gap: 8px; }
  .head-cta .signin { display: none; }
  .logo { gap: 8px; font-size: 1.15rem; } .logo img { width: 40px; height: 40px; }
  .head-cta { gap: 4px; }
  .head-cta .signin { padding: 0 4px; }
  .head-cta .btn { padding: 0 12px; }
  .head-cta .btn .long { display: none; } .head-cta .btn .short { display: inline; }
}
/* Below 375px the wordmark doesn't fit beside Sign in, Free trial and the menu; the icon stays (the link keeps its label). */
@media (max-width: 339px) { .logo-word { display: none; } }
@media (min-width: 900px) {
  .nav { display: flex; } .menu-btn { display: none; } .head-cta { margin-left: 22px; }
}

/* Grid children may shrink below their content (a 1600px-wide image would otherwise widen the page). */
.hero .wrap > *, .feature > *, .story > *, .cards > *, .plans > * { min-width: 0; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero .wrap { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 80px; } .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 .9rem; }
.fine { font-size: 1rem; color: var(--muted); }
.hero-visual { position: relative; min-height: 380px; }
.hero-photo { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--mist); }
.phone { position: absolute; right: 4%; bottom: -28px; width: min(42%, 220px); border-radius: 30px; background: var(--ink); padding: 8px; box-shadow: var(--shadow); }
.phone video { border-radius: 23px; aspect-ratio: 9 / 19.5; object-fit: cover; background: var(--mist); width: 100%; }

/* Simple home hero: text, then the phone clip (beside it on wide screens) */
.hero.simple { padding: 28px 0 40px; }
.hero.simple .wrap { gap: 24px; }
.hero.simple h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: .35em; }
.hero.simple .lede { text-wrap: balance; font-size: 1.25rem; line-height: 1.45; color: var(--ink); margin-bottom: 0; }
.hero.simple .hero-cta { margin: 1.3rem 0 .6rem; }
.hero.simple .fine { margin: 0; }
.hero-phone { display: grid; place-items: center; background: var(--mist); border-radius: var(--radius); padding: 24px 0; }
.hero-phone .phone { position: static; width: 196px; }
@media (min-width: 900px) {
  .hero.simple { padding: 64px 0 72px; }
  .hero.simple .wrap { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .hero-phone { padding: 36px 0; } .hero-phone .phone { width: 250px; }
}

/* Feature tiles: 2 x 2 on phones, 4 across on wide screens */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.tiles > li { min-width: 0; display: flex; }
.tile { flex: 1; display: flex; flex-direction: column; gap: 4px; background: var(--linen); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 12px 18px; text-decoration: none; color: var(--ink); min-height: 48px; }
.tile:hover { border-color: var(--forest); }
.tile-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--mist); color: var(--forest-deep); display: grid; place-items: center; margin: 4px 4px 10px; }
.tile strong { font: 700 1.05rem/1.25 var(--head); padding: 0 4px; }
.tile strong .tag { margin: 4px 0 0; font-size: .72rem; padding: 4px 8px; }
.tile span:not(.tag) { font-size: .98rem; line-height: 1.4; color: var(--muted); padding: 0 4px; }
@media (min-width: 900px) { .tile { padding: 20px 18px 24px; } .tile strong { font-size: 1.2rem; } }
.tiles-sec { padding: 32px 0; }
@media (min-width: 900px) { .tiles-sec { padding: 56px 0; } }

/* Two short lines: pricing and founder */
.lines { padding: 32px 0; }
.lines .wrap { display: grid; gap: 12px; max-width: 860px; }
.line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font: 600 1.1rem/1.4 var(--head); }
.line a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.line a::after { content: ' →'; white-space: pre; }

/* Subpage tops */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18em; margin-left: auto; margin-right: auto; }
.center-cta { justify-content: center; }
.page-head + section { padding-top: 24px; }
.page-top { padding-top: 40px; }
.page-top h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
@media (max-width: 899px) { .page-top .story img { order: 2; } }

/* Sections */
section { padding: 64px 0; }
.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; } .center .lede { margin-left: auto; margin-right: auto; }
.cards { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: var(--linen); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--forest-deep); display: grid; place-items: center; font: 700 1.1rem/1 var(--head); margin-bottom: 14px; }
.center .card .icon { margin-left: auto; margin-right: auto; }
.steps .card .icon { background: var(--forest); color: var(--white); }

/* Feature rows */
.feature { display: grid; gap: 28px; align-items: center; padding: 36px 0; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 56px; } .feature:nth-child(even) .media { order: -1; } }
.feature ul { padding-left: 1.1em; margin: 0; } .feature li { margin: .35em 0; }
.media { border-radius: var(--radius); overflow: hidden; background: var(--mist); box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.media video { width: 100%; height: 100%; object-fit: cover; }
.media.tall { aspect-ratio: 4 / 5; max-width: 420px; justify-self: center; width: 100%; }
.two-ways { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.two-ways .card { text-align: left; }
.tag { display: inline-block; background: var(--sun-tint); color: var(--sun-text); border: 1px solid var(--sun); border-radius: 999px; font: 700 .78rem/1 var(--head); padding: 6px 10px; margin-left: 6px; vertical-align: middle; }

/* Story */
.story { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.story img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--mist); }
.stat { background: var(--mist); border-radius: 14px; padding: 14px 20px; display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; }
.stat strong { flex: none; font: 700 2.2rem/1 var(--head); color: var(--forest-deep); }
.stat span { font-size: 1rem; color: var(--muted); }
blockquote { margin: 0 0 .4em; font: 600 1.25rem/1.45 var(--head); }
.attribution { margin-bottom: 1.4em; }

/* Pricing */
.slider { max-width: 520px; margin: 26px auto 8px; }
.slider label { display: flex; justify-content: space-between; font: 600 1rem/1 var(--head); margin-bottom: 12px; }
.slider input { width: 100%; accent-color: var(--forest); min-height: 48px; }
.plans { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; max-width: 860px; margin-left: auto; margin-right: auto; } }
.plan { text-align: left; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.pick { border-color: var(--forest); }
.plan .amount { font: 700 2.6rem/1 var(--head); color: var(--ink); } .plan .per { color: var(--muted); }
.plan .math { margin: -.4em 0 .6em; font: 600 1rem/1.4 var(--head); color: var(--forest-deep); }
.plan ul { padding-left: 1.1em; flex: 1; } .plan .btn { margin-top: 12px; }
.after-plans { margin-top: 18px; }
.interval { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.interval .btn { min-height: 48px; padding: 0 18px; font-size: .95rem; }
.interval .btn[aria-pressed="true"] { background: var(--forest); color: var(--white); border-color: var(--forest); }
.plan .plan-line { margin: -.3em 0 .5em; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 26px auto 0; text-align: left; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font: 600 1.05rem/1.35 var(--head); min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--forest); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 4px; color: var(--muted); }

/* Final CTA + footer */
.final { background: var(--forest-deep); color: var(--white); text-align: center; }
.final h2 { color: var(--white); } .final p { color: var(--spark); }
.final .btn-primary { background: var(--spark); color: var(--ink); } .final .btn-primary:hover { background: var(--white); }
.site-foot { padding: 16px 0 32px; font-size: 1rem; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: center; }
.site-foot a { color: var(--muted); display: inline-block; padding: 12px 0; }

/* Tour dialog */
dialog#tour { border: 0; padding: 0; border-radius: var(--radius); width: min(960px, 94vw); background: var(--ink); }
dialog#tour::backdrop { background: rgba(22, 38, 27, .72); }
dialog#tour video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); }
dialog#tour .close { position: absolute; z-index: 1; right: 8px; top: 8px; min-width: 48px; min-height: 48px; border-radius: 50%; border: 0; background: var(--white); font: 700 1.2rem/1 var(--head); cursor: pointer; }
/* "Manager sign-in" lives in the menu on phones (the header's Sign in is hidden there to make room for the logo). */
.nav .nav-signin { display: none; }
@media (max-width: 559px) { .nav .nav-signin { display: inline-flex; } }
