/* ReadySet AI: "Warm and friendly" design (from Claude Design, direction 1a).
   Light by default. Dark only when the visitor picks it (html[data-theme="dark"]). */
:root {
  --bg: #fdf8f1;
  --surface: #ffffff;
  --tint: #f7eee2;
  --ink: #2b2420;
  --muted: #6a5f56;
  --line: #eadfd1;
  --accent: #2f7a5b;
  --accent-hover: #25664b;
  --accent-ink: #ffffff;
  --accent-soft: #e2f1e8;
  --sun: #ffe39a;
  --sun-ink: #2b2420;
  --me: #2b2420;
  --me-ink: #fdf8f1;
  --shadow: 0 1px 2px rgba(60,40,20,.06), 0 16px 40px rgba(60,40,20,.09);
  --pad-x: clamp(20px, 5vw, 56px);
  --pad-y: clamp(56px, 8vw, 96px);
  --serif: "Fraunces", Georgia, serif;
  --serif-w: 600;
  --moon-o: 1; --moon-r: 0deg; --sun-o: 0; --sun-r: 90deg; --icon-t: 200ms;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1c1815;
  --surface: #27221e;
  --tint: #221d1a;
  --ink: #f6efe6;
  --muted: #c2b6a9;
  --line: #3b342e;
  --accent: #62c896;
  --accent-hover: #7ad6a8;
  --accent-ink: #0f2419;
  --accent-soft: #1f3a2c;
  --sun: #5a4714;
  --sun-ink: #fbf3df;
  --me: #f6efe6;
  --me-ink: #1c1815;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.35);
  --moon-o: 0; --moon-r: -90deg; --sun-o: 1; --sun-r: 0deg;
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) { :root { --icon-t: 0s; } html { scroll-behavior: auto !important; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 19px/1.6 Nunito, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { font-family: var(--serif); font-weight: var(--serif-w, 400); margin: 0; }
h1 { font-size: clamp(50px, 9vw, 104px); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 24px; }
.hero h1 { font-size: clamp(34px, 5vw, 76px); white-space: nowrap; }
@media (max-width: 360px) { .hero h1 { font-size: 30px; } }
h2 { font-size: clamp(36px, 5.5vw, 56px); line-height: 1.08; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h3 { margin: 0 0 8px; font-size: 23px; font-weight: 800; }
p { margin: 0; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--pad-x); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.logo-mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); }
.logo-img { height: 44px; width: auto; display: block; }
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (max-width: 420px) { .logo-img { height: 36px; } }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { grid-area: 1 / 1; transition: opacity var(--icon-t) ease, transform var(--icon-t) ease; }
.theme-btn .i-moon { opacity: var(--moon-o); transform: rotate(var(--moon-r)); }
.theme-btn .i-sun { opacity: var(--sun-o); transform: rotate(var(--sun-r)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; padding: 0 36px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 800 20px Nunito, sans-serif; cursor: pointer; transition: background-color .15s ease; }
.btn:hover { background: var(--accent-hover); }
.btn-small { min-height: 46px; padding: 0 20px; font-size: 17px; font-weight: 700; }
.btn-mid { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { background: transparent; border-color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn.is-disabled { opacity: .4; pointer-events: none; }
.link-arrow { font-weight: 700; font-size: 19px; text-decoration: none; padding: 12px 4px; }
.link-arrow:hover { color: var(--accent); }

/* shared bits */
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 16px; margin-bottom: 24px; }
.section { padding: var(--pad-y) var(--pad-x); scroll-margin-top: 78px; }
.section-tint { background: var(--tint); }
.num { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); font-family: var(--serif); font-size: 26px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 6vw, 72px); padding: clamp(48px, 8vw, 96px) var(--pad-x); }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.lead { font-size: clamp(20px, 2.2vw, 24px); color: var(--muted); max-width: 30em; margin-bottom: 32px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-bottom: 28px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ticks li { padding: 8px 16px; border-radius: 999px; background: var(--tint); font-weight: 600; font-size: 16px; }
.ticks li::before { content: "✓ "; color: var(--accent); font-weight: 800; }

/* desktop app mock (Code tab with a pinned Orchestrator) */
.h1-mascot { display: inline-block; position: relative; width: 1.145em; height: 1em; margin-left: .15em; vertical-align: -.12em; transform: rotate(4deg); }
.h1-mascot img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Arms sit under the body and rock at the shoulder: two waves on load, then again every 8 seconds */
.m-arm-l { transform-origin: 16.2% 50%; animation: wave-l 8s ease-in-out .8s infinite; }
.h1-mascot:hover .m-arm { animation-duration: 2s; }
@keyframes wave-l { 0%, 30%, 100% { rotate: 0deg; } 6% { rotate: 16deg; } 12% { rotate: -6deg; } 18% { rotate: 14deg; } 24% { rotate: -4deg; } }
@keyframes wave-r { 0%, 30%, 100% { rotate: 0deg; } 6% { rotate: -16deg; } 12% { rotate: 6deg; } 18% { rotate: -14deg; } 24% { rotate: 4deg; } }
@media (prefers-reduced-motion: reduce) { .m-arm { animation: none; } }
.app-mock { flex: 1 1 440px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--tint); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.app-bar span { margin-left: 8px; }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 380px; }
.app-side { background: var(--tint); border-right: 1px solid var(--line); padding: 12px 10px; font-size: 13px; }
.side-new { font-weight: 800; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: var(--surface); }
.side-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 10px 8px 4px; }
.side-item { padding: 6px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.is-active { background: var(--surface); font-weight: 800; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.app-chat { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px; min-width: 0; }
.app-title { font-weight: 800; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.app-chat .bubble { font-size: 15px; max-width: 92%; padding: 10px 14px; opacity: 1; transform: none; animation: none; }
.board-peek { display: grid; gap: 4px; border: 1px solid var(--line); background: var(--surface) !important; }
.peek-label { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.peek-row { display: flex; gap: 8px; align-items: baseline; }
.peek-row s { text-decoration: none; color: var(--muted); }
.peek-row em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 800; color: #c2562f; }
.app-input { margin-top: auto; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; color: var(--muted); font-size: 14px; }
@media (max-width: 560px) { .app-body { grid-template-columns: 1fr; } .app-side { display: none; } }
.bubble { max-width: 86%; padding: 12px 18px; font-size: 18px; line-height: 1.45; opacity: 0; transform: translateY(6px); animation: pop .4s ease forwards; }
.bubble.me { align-self: flex-end; background: var(--me); color: var(--me-ink); border-radius: 22px 22px 6px 22px; }
.bubble.ai { align-self: flex-start; background: var(--tint); border-radius: 22px 22px 22px 6px; }
.bubble:nth-of-type(2) { animation-delay: .2s; } .bubble:nth-of-type(3) { animation-delay: .9s; }
.bubble:nth-of-type(4) { animation-delay: 1.6s; } .bubble:nth-of-type(5) { animation-delay: 2.3s; }
.bubble:nth-of-type(6) { animation-delay: 3s; }
.typing { display: flex; gap: 6px; padding: 16px 18px; }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; opacity: 1; transform: none; } .typing i { animation: none; opacity: .5; } }

/* steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.steps li { background: var(--surface); border-radius: 28px; padding: 32px; }
.steps .num { margin-bottom: 20px; }
.steps p { color: var(--muted); }

/* demo */
.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 32px clamp(32px, 6vw, 72px); }
.demo-copy { flex: 1 1 280px; }
.demo-copy h2 { margin-bottom: 12px; }
.demo-copy p { color: var(--muted); font-size: 20px; }
.video { flex: 1.6 1 420px; min-width: 0; aspect-ratio: 16 / 9; border-radius: 32px; background: repeating-linear-gradient(45deg, var(--tint) 0 12px, var(--bg) 12px 24px); border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 14px; }
.play { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); position: relative; }
.play::after { content: ""; position: absolute; inset: 27px 24px 27px 33px; background: var(--accent-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video-note { font: 14px ui-monospace, Menlo, monospace; color: var(--muted); }

/* buy */
.buy { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(40px, 6vw, 72px); }
.gets-col { flex: 1 1 420px; min-width: 0; }
.gets-col h2 { margin-bottom: 28px; }
.gets { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.gets li { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: 20px; padding: 16px 20px; }
.gets li::before { content: "✓"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-top: 2px; }
.gets b { display: block; font-size: 20px; font-weight: 800; }
.gets span { color: var(--muted); font-size: 17px; }
.gets-note { color: var(--muted); font-size: 18px; }

.price-card { flex: 0 1 420px; min-width: 0; background: var(--surface); border-radius: 36px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.price-amount { font-family: var(--serif); font-size: 72px; line-height: 1; }
.price-billing { font-size: 18px; color: var(--muted); font-weight: 600; }
.price-sub { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.need { padding: 16px 18px; border-radius: 18px; background: var(--sun); color: var(--sun-ink); margin-bottom: 14px; font-size: 17px; line-height: 1.5; }
.need b { display: block; font-weight: 800; }
.need a { font-weight: 800; }
.confirm { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 2px solid var(--line); margin-bottom: 16px; cursor: pointer; font-size: 18px; line-height: 1.45; font-weight: 600; }
.confirm:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.confirm input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.hint { margin-top: 12px; min-height: 1.5em; text-align: center; font-size: 16px; color: var(--muted); }
.trust { list-style: none; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 16px; color: var(--muted); }
.trust li { display: flex; gap: 10px; }
.trust span { width: 22px; color: var(--accent); font-weight: 800; }

/* faq */
.faq { max-width: 780px; }
.faq h2 { margin-bottom: 28px; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 800; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--muted); }

.footer { padding: 28px var(--pad-x); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* welcome page */
.welcome { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 40px) clamp(64px, 9vw, 104px); }
.welcome h1 { font-size: clamp(44px, 8vw, 84px); line-height: 1.04; margin-bottom: 16px; }
.welcome .lead { margin-bottom: 40px; }
.big-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
.big-steps > li { display: flex; flex-wrap: wrap; gap: 16px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3.5vw, 32px); }
.big-steps .num { background: var(--accent); color: var(--accent-ink); }
.step-body { flex: 1 1 280px; min-width: 0; }
.step-body h3 { margin: 8px 0; font-size: 24px; }
.step-body > p { color: var(--muted); margin-bottom: 16px; }
.step-body > p b { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; }
.copy-row code { flex: 1 1 240px; min-width: 0; background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px; font: 17px ui-monospace, Menlo, monospace; word-break: break-all; }
.copy-row .btn { min-width: 120px; }
.see { display: inline-block; margin: 0 !important; padding: 8px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent) !important; font-weight: 700; font-size: 17px; }
.stuck { padding: 20px 24px; border-radius: 22px; background: var(--sun); color: var(--sun-ink); font-weight: 700; }

/* privacy + terms pages */
.legal h1 { font-size: clamp(40px, 7vw, 64px); }
.legal h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal b { color: var(--ink); }
.legal a { color: var(--accent); }
.draft-note { padding: 16px 20px; border-radius: 18px; background: var(--sun); color: var(--sun-ink); font-weight: 700; margin-bottom: 32px; }
.footer a { color: inherit; margin-right: 16px; }

/* headline switcher (only with ?preview=1) */
.preview { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 14px; font-size: .85rem; display: grid; gap: 8px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.preview select { font: inherit; padding: 6px; border-radius: 8px; max-width: 100%; }
.soon { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 800; }
#home-base .steps li { border: 1px solid var(--line); }

/* Easter eggs: mascot peeking over edges */
.has-peek { position: relative; }
.peek-wrap { position: absolute; bottom: 100%; width: 110px; height: 90px; overflow: hidden; cursor: pointer; z-index: 1; }
.peek-right { right: 32px; }
.peek-left { left: 24px; }
.peek-small { width: 80px; height: 66px; }
.peek-wrap img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform: translateY(100%); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.peek-wrap.is-in img { transform: translateY(0); }
.peek-wrap.wave img { animation: peek-wave .9s ease-in-out; }
@keyframes peek-wave { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(2%) rotate(-8deg); } 50% { transform: translateY(2%) rotate(8deg); } 75% { transform: translateY(2%) rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .peek-wrap img { transition: none; } .peek-wrap.wave img { animation: none; } }

/* Pricing tiers */
.tiers-sub { color: var(--muted); font-size: 19px; margin: 12px 0 20px; }
.tiers-need { max-width: 640px; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; align-items: stretch; margin-top: 44px; }
.tier-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: clamp(24px, 3vw, 36px); }
.tier-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.tier-card .chip { margin-bottom: 16px; align-self: flex-start; }
.tier-card .price-amount { font-size: 60px; }
.tier-badge { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 6px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; white-space: nowrap; }
.tier-for { font-weight: 800; font-size: 18px; margin: 8px 0 14px; }
.tier-plus { color: var(--muted); font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.tier-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.tier-list li { display: flex; gap: 10px; align-items: flex-start; }
.tier-list li::before { content: "✓"; flex: none; color: var(--accent); font-weight: 800; }
.tier-card:not(.featured) .btn { margin-top: auto; }
.teams-note { margin-top: 48px; padding: 20px 24px; border-radius: 20px; background: var(--tint); font-size: 18px; }
.teams-note b { margin-right: 6px; }
.tiers { row-gap: 84px; }
@media (max-width: 800px) { .footer .peek-wrap { width: 80px; height: 66px; } .footer { margin-top: 24px; } }
/* Typing in the app mock's input */
.app-input { display: flex; align-items: center; min-height: 41px; }
.app-input.is-typing { color: var(--ink); }
.app-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--accent); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .app-caret { animation: none; } }
.app-typed { white-space: nowrap; overflow: hidden; min-width: 0; }
@media (max-width: 400px) { .app-input { font-size: 13px; } }
/* Header logo: two-hands mascot + live wordmark */
.logo { gap: 14px; color: var(--ink); }
.logo-mascot { height: 46px; width: auto; display: block; }
.logo-word { font-size: 25px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 420px) { .logo { gap: 10px; } .logo-mascot { height: 38px; } .logo-word { font-size: 21px; } }
@media (max-width: 360px) { .logo { gap: 8px; } .logo-mascot { height: 32px; } .logo-word { font-size: 18px; } }
/* Logo "AI" in green, like the h1 */
.logo-word em { font-style: normal; color: var(--accent); }
.gets li.gets-more { background: transparent; border: 2px dashed var(--line); }
.gets li.gets-more::before { content: "+"; background: var(--sun); color: var(--sun-ink); }
/* "Claude can" list: 2 columns on wide screens */
@media (min-width: 860px) { .gets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 859px) { .gets .peek-wrap { display: none; } }
:root[data-theme="dark"] .m-arm-l { transform-origin: 13.9% 48.8%; }
