/* Yesroom marketing site. Tokens come from docs/design/tokens.md (light and dark). */
:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --ink: #1d2321;
  --ink2: #5a625e;
  --line: rgba(29, 35, 33, 0.1);
  --line2: rgba(29, 35, 33, 0.22);
  --accent: #1e5b55;
  --accent-soft: #ddeae5;
  --on-accent: #ffffff;
  --fits: #1e5b55;
  --fits-bg: #ddeae5;
  --amber: #8a5a12;
  --amber-soft: #f6e6c4;
  --amber-bar: #d49a3e;
  --track: #eae4d7;
  --tint: #efe9dc;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.06), 0 6px 18px -10px rgba(40, 30, 10, 0.18);
  --font: 'Source Sans 3', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161714;
    --surface: #22211d;
    --ink: #f1ece2;
    --ink2: #aba59b;
    --line: rgba(241, 236, 226, 0.1);
    --line2: rgba(241, 236, 226, 0.24);
    --accent: #7cc2b4;
    --accent-soft: #203a36;
    --on-accent: #0f1f1c;
    --fits: #9ed6ca;
    --fits-bg: #203a36;
    --amber: #ebc27a;
    --amber-soft: #3a2e1a;
    --amber-bar: #d9a24a;
    --track: #2f2d28;
    --tint: #1c1b18;
    --shadow: 0 0 0 0.5px rgba(241, 236, 226, 0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; }
.wordmark { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.035em; color: var(--ink); line-height: 1; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--ink2); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 0.98rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); background: var(--track); }
.signin { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.signin:hover { background: var(--track); }
.signin[hidden] { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 16px; font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px rgba(20, 60, 56, 0.6); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { color: var(--accent); border-color: var(--line2); background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-small { min-height: 44px; padding: 0 18px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-size: 0.98rem; }
.btn[aria-disabled='true'] { opacity: 0.7; cursor: default; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0.8em; }

/* hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 600; font-size: 0.95rem; color: var(--ink2); letter-spacing: 0.02em; margin-bottom: 0.8em; }
.lead { font-size: 1.28rem; line-height: 1.45; color: var(--ink2); }
.fine { font-size: 0.95rem; color: var(--ink2); }
.caption { font-size: 0.85rem; color: var(--ink2); text-align: center; margin-top: 12px; }

/* illustrative phone */
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone { width: 100%; max-width: 330px; background: var(--bg); border: 1px solid var(--line2); border-radius: 44px; padding: 34px 22px 26px; box-shadow: 0 30px 60px -30px rgba(40, 30, 10, 0.4), var(--shadow); }
.p-eyebrow { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--ink2); }
.p-hero { margin: 2px 0 0; font-weight: 700; font-size: 4.2rem; line-height: 1; letter-spacing: -0.04em; }
.p-lead { margin: 6px 0 16px; font-weight: 500; font-size: 1.05rem; color: var(--ink2); }
.p-stack { display: flex; gap: 2px; height: 8px; margin-bottom: 18px; }
.p-stack span { display: block; border-radius: 4px; }
.p-stack .s1 { flex: 5; background: var(--ink); opacity: 0.82; }
.p-stack .s2 { flex: 2; background: var(--accent); opacity: 0.35; }
.p-stack .s3 { flex: 4; background: var(--accent); }
.p-card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.p-row { padding: 12px 16px 14px; }
.p-row + .p-row { border-top: 0.5px solid var(--line); }
.p-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 1rem; }
.p-line b { font-weight: 600; }
.p-line span { color: var(--ink2); font-size: 0.88rem; }
.p-line strong { color: var(--ink); font-size: 1.15rem; margin-right: 2px; }
.p-warn { margin: 7px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--amber); }
.bar-track { height: 5px; background: var(--track); border-radius: 3px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.bar-fill.warn { background: var(--amber-bar); }
.w-58 { width: 58%; } .w-86 { width: 86%; }
.p-pill { display: inline-flex; align-items: center; gap: 6px; margin: 18px 0 0; padding: 7px 13px 7px 10px; border-radius: 16px; background: var(--fits-bg); color: var(--fits); font-weight: 700; font-size: 0.95rem; }

/* sections */
.section { padding: 64px 0; }
.tinted { background: var(--tint); border-block: 1px solid var(--line); }
.section-title { max-width: 22ch; }
.section-title.left, .section-title { margin-bottom: 0.5em; }
.section-lead { color: var(--ink2); font-size: 1.15rem; max-width: 60ch; margin-bottom: 2em; }
.grid { display: grid; gap: 18px; margin-top: 28px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--ink2); }
.feature p { margin-bottom: 0.8em; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: ' →'; }
.more:hover { text-decoration: underline; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.quote .big { font-size: 1.5rem; line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.ticks { list-style: none; padding: 0; margin: 1em 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 0.7em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 18px; height: 10px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg) scale(0.8); transform-origin: center; }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.steps li { counter-increment: step; background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--ink2); margin: 0; }

/* page heads, prose */
.page-head { padding: 56px 0 8px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose li { margin-bottom: 0.5em; }
.prose ul { padding-left: 1.2em; }
.prose .ticks { padding-left: 0; }
.legal-doc { font-size: 1.02rem; }
.legal-doc h2 { font-size: 1.3rem; }
.callout { background: var(--accent-soft); border-radius: 16px; padding: 16px 20px; color: var(--ink); }
.pricing-notes { margin: 48px auto 0; }

/* pricing */
.plans { max-width: 820px; margin-inline: auto; }
.plan { position: relative; }
.plan.best { outline: 2px solid var(--accent); }
.plan h2 { font-size: 1.3rem; margin-bottom: 0.2em; }
.price { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink) !important; margin: 0.2em 0 0.6em; }
.price span { font-size: 1.1rem; font-weight: 600; color: var(--ink2); letter-spacing: 0; }
.tag { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 10px; background: var(--fits-bg); color: var(--fits) !important; font-weight: 700; font-size: 0.85rem; }

/* compare table */
.table-wrap { overflow-x: auto; border-radius: 20px; box-shadow: var(--shadow); background: var(--surface); }
.compare { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 16px 18px; vertical-align: top; border-bottom: 0.5px solid var(--line); }
.compare thead th { font-size: 0.95rem; color: var(--ink2); }
.compare thead th:last-child, .compare tbody td:last-child { background: var(--accent-soft); color: var(--ink); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare tbody td { color: var(--ink2); }
.compare tbody td:last-child { color: var(--ink); font-weight: 500; }
.compare tbody tr:last-child > * { border-bottom: 0; }

/* faq */
.faq details { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink2); margin: 0 0 18px; }

/* cta, footer */
.cta { margin-top: 24px; padding: 72px 0; background: var(--accent-soft); border-top: 1px solid var(--line); }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lead { max-width: 52ch; margin-inline: auto; }
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand p { color: var(--ink2); max-width: 32ch; margin-top: 12px; }
.foot-col h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink2); margin-bottom: 0.8em; }
.foot-col a { display: block; color: var(--ink); text-decoration: none; padding: 6px 0; min-height: 32px; }
.foot-col a:hover { text-decoration: underline; }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal p { font-size: 0.85rem; color: var(--ink2); margin: 0; max-width: 80ch; }

@media (max-width: 880px) {
  body { font-size: 17px; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .grid.three, .steps, .foot { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .nav { order: 3; width: 100%; margin-left: -12px; }
  .bar > .btn-small { margin-left: auto; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .actions { flex-direction: column; }
}

/* photos */
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 18px; }
.photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.photo.wide { aspect-ratio: 16 / 7; margin-bottom: 36px; object-position: center 40%; }
@media (min-width: 881px) { .split.flip > :first-child { order: 2; } }
@media (max-width: 880px) { .photo.wide { aspect-ratio: 3 / 2; } .split.flip > .photo { order: -1; } }

/* ---------------------------------------------------------------- motion and play */
.card, .steps li { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card:hover, .steps li:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(40, 30, 10, 0.06), 0 16px 30px -14px rgba(40, 30, 10, 0.28); }
.hero-demo .card:hover, .list-demo:hover { transform: none; }
.btn { transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease; }
.btn:active:not([aria-disabled='true']) { transform: scale(0.97); }

/* the door swings open a little wider on hover */
.door path:last-child { transform-box: fill-box; transform-origin: left center; transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover .door path:last-child, .brand:focus-visible .door path:last-child { transform: scaleX(0.55); }

/* scroll-in */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }
.reveal.in.card:hover, .reveal.in.steps li:hover { transition-delay: 0s; }

/* hero phone, live */
.hero-demo { display: flex; flex-direction: column; align-items: center; }
.hero-demo .phone { padding-bottom: 60px; }
.phone { transition: transform 0.4s ease; }
.bar-fill { transition: width 0.45s cubic-bezier(0.3, 1.2, 0.5, 1), background 0.3s ease; }
.bar-fill.over { background: var(--amber); }
.p-row { transition: background 0.3s ease; }
.p-row.active { background: var(--accent-soft); }
.p-row:first-child { border-radius: 20px 20px 0 0; } .p-row:last-child { border-radius: 0 0 20px 20px; }
.p-pill { transition: background 0.3s ease, color 0.3s ease; }
.p-pill.over, .pill.over { background: var(--amber-soft); color: var(--amber); }
.p-pill.over svg { display: none; }
.pop { animation: pop 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { 0% { transform: scale(0.92); } 100% { transform: scale(1); } }

.try { position: relative; width: 100%; max-width: 360px; padding: 16px 18px; margin-top: -44px; }
.try-title { font-weight: 700; color: var(--ink) !important; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font: inherit; font-size: 0.85rem; font-weight: 600; min-height: 34px; padding: 0 10px; border-radius: 18px; border: 1px solid var(--line2); background: var(--bg); color: var(--ink); cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--track); margin-bottom: 14px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 7px 0; border-radius: 9px; font-weight: 600; font-size: 0.95rem; color: var(--ink2); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.amount { display: block; }
.amount > span { display: flex; justify-content: space-between; font-weight: 600; font-size: 0.95rem; color: var(--ink2); }
.amount output { color: var(--ink); font-size: 1.1rem; }
.amount input { width: 100%; accent-color: var(--accent); margin: 8px 0 4px; min-height: 32px; cursor: pointer; }
.try-verdict { font-size: 0.9rem; min-height: 2.8em; margin: 6px 0 0 !important; }

/* shopping list demo */
.list-demo { padding: 20px; }
.ld-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ld-head span { color: var(--ink2); font-size: 0.95rem; }
.ld-head strong { color: var(--ink); }
.ld-items { list-style: none; padding: 0; margin: 0 0 12px; }
.ld-items li { border-bottom: 0.5px solid var(--line); }
.ld-items label { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.ld-items input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; cursor: pointer; }
.ld-name { flex: 1; color: var(--ink); transition: color 0.2s ease; }
.ld-price { color: var(--ink2); font-size: 0.95rem; }
.ld-items input:not(:checked) ~ .ld-name { color: var(--ink2); text-decoration: line-through; text-decoration-color: var(--line2); }
.ld-unknown .ld-price { font-style: italic; }
.ld-tag { font-style: normal; font-size: 0.75rem; font-weight: 700; margin-left: 8px; padding: 2px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; }
.ld-new { animation: slide-in 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.ld-partner { font: inherit; font-weight: 600; width: 100%; min-height: 44px; border-radius: 12px; border: 1px dashed var(--line2); background: transparent; color: var(--accent); cursor: pointer; margin-bottom: 14px; }
.ld-partner:hover:not(:disabled) { background: var(--accent-soft); }
.ld-partner:disabled { color: var(--ink2); cursor: default; }
.ld-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ld-foot strong { color: var(--ink); font-size: 1.2rem; margin-left: 4px; }
.pill { display: inline-flex; padding: 7px 14px; border-radius: 16px; background: var(--fits-bg); color: var(--fits); font-weight: 700; font-size: 0.95rem; transition: background 0.3s ease, color 0.3s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .steps li:hover { transform: none; }
}
