/* style.css */
:root {
  color-scheme: light;
  --blue: #20459d;
  --blue-deep: #17377f;
  --cream: #f5edd9;
  --paper: #faf7ee;
  --ink: #222b25;
  --sage: #d9dfcc;
  --muted: #6b7169;
  --line: oklch(0.3 0.01 80 / 0.16);
  --surface: #fffefa;
  --surface-soft: #f0eee8;
  --message-in: #eae9e6;
  --message-text: #252729;
  --message-out: #1069df;
  --message-link: #1e57b7;
  --font-body: 'General Sans', Arial, sans-serif;
  --font-display: 'General Sans', Arial, sans-serif;
  --font-hand: 'Caveat', cursive;
  --text-xs: clamp(.75rem, .72rem + .1vw, .8125rem);
  --text-sm: clamp(.875rem, .83rem + .15vw, .9375rem);
  --text-base: clamp(1rem, .95rem + .2vw, 1.125rem);
  --text-lg: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --text-xl: clamp(2rem, 1.5rem + 1vw, 2.5rem);
  --text-hero: clamp(3.75rem, 1.2rem + 5.2vw, 6.25rem);
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;
  --radius-sm: .5rem; --radius-md: 1rem; --radius-lg: 1.5rem; --radius-xl: 2rem; --radius-full: 999px;
  --ease: cubic-bezier(.16,1,.3,1);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --blue: #10265b;
  --blue-deep: #0a1b43;
  --cream: #f5edd9;
  --paper: #22261f;
  --ink: #f2ecdc;
  --sage: #2d382f;
  --muted: #b2b8aa;
  --line: oklch(0.8 0.01 80 / 0.18);
  --surface: #2b3029;
  --surface-soft: #363c33;
  --message-in: #40453e;
  --message-text: #fffefa;
  --message-out: #1468d7;
  --message-link: #b1c8ff;
}
body { font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; line-height: 1.5; color: var(--ink); background: var(--paper); }
button { border: 0; background: transparent; }
.site { min-height: calc(100svh - 64px); padding-bottom: var(--space-6); animation: page-in .45s var(--ease) both; }
.shell { width: min(1440px, 100%); margin-inline: auto; padding-inline: clamp(var(--space-6), 5vw, var(--space-20)); }
.site-header { height: 104px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); position: relative; z-index: 2; }
.brand { display: inline-flex; width: 98px; min-height: 44px; align-items: center; }
.brand svg { width: 94px; height: 43px; }
.nav-note { font-size: var(--text-sm); }
.nav-right { display: flex; gap: var(--space-6); align-items: center; }
.text-button { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0; font-size: var(--text-sm); }
.text-button:hover { opacity: .72; }
.icon-button { width: 44px; height: 44px; border: 1px solid currentColor; border-radius: var(--radius-full); display: inline-grid; place-items: center; font-size: var(--text-lg); line-height: 1; }
.theme-button { border-color: color-mix(in srgb, currentColor 30%, transparent); }
.eyebrow { font-size: var(--text-xs); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.hand { font-family: var(--font-hand); font-weight: 400; line-height: .86; }
h1 { font-family: var(--font-display); font-size: var(--text-hero); line-height: 1.02; letter-spacing: -.065em; font-weight: 400; }
.hero-description { font-size: var(--text-base); line-height: 1.6; max-width: 340px; }
.signup { max-width: 480px; }
.signup-fields { display: grid; grid-template-columns: minmax(120px,1fr) 52px; align-items: center; border-bottom: 1px solid currentColor; gap: var(--space-3); padding-bottom: var(--space-3); }
.signup input { min-width: 0; width: 100%; height: 44px; padding: var(--space-2) 0; border: 0; border-radius: 0; background: transparent; color: inherit; outline-offset: 2px; font-size: var(--text-sm); }
.signup input::placeholder { color: inherit; opacity: .75; }
.signup-submit { height: 48px; width: 48px; border-radius: var(--radius-full); color: var(--blue); background: var(--cream); font-size: var(--text-lg); transition: transform .2s var(--ease); }
.signup-submit:hover { transform: rotate(40deg); }
.signup-meta { font-size: var(--text-xs); padding-top: var(--space-3); display: flex; justify-content: space-between; gap: var(--space-3); }
.signup-status { margin-top: var(--space-3); font-size: var(--text-sm); line-height: 1.5; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-10); font-size: var(--text-xs); }
.footer-signoff { display: flex; gap: var(--space-3); align-items: center; }
.footer-signoff img { width: 28px; height: 28px; border-radius: var(--radius-full); }
.footer-note { opacity: .75; }

/* Direction 01: a big blue feeling, a familiar little thread. */
.corner { background: var(--blue); color: var(--cream); }
.corner .hero { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: center; gap: clamp(var(--space-8), 7vw, var(--space-24)); padding-top: var(--space-8); padding-bottom: var(--space-6); }
.corner .hero-copy { min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-6); }
.corner .eyebrow { margin-bottom: var(--space-6); }
.corner h1 { max-width: 620px; }
.corner h1 .hand { display: block; font-size: 1.32em; letter-spacing: -.045em; color: #c0d0ff; margin: var(--space-2) 0 var(--space-8); transform: rotate(-4deg); transform-origin: left; }
.corner .hero-description { max-width: 365px; margin-top: var(--space-6); color: color-mix(in srgb,var(--cream) 87%,transparent); }
.corner .signup { margin-top: var(--space-12); }
.corner .chat-stage { width: 100%; min-width: 0; max-width: 432px; justify-self: end; position: relative; }
.corner .chat-note { position: absolute; left: -88px; bottom: 90px; transform: rotate(-9deg); font-family: var(--font-hand); font-size: var(--text-xl); width: 125px; line-height: .9; text-align: center; color: #c0d0ff; pointer-events: none; }
.corner .chat-note .curved-arrow { display: block; transform: rotate(-15deg); font-family: var(--font-body); font-size: var(--text-xl); margin-left: var(--space-8); }
.chat-window { color: var(--message-text); background: var(--surface); overflow: hidden; box-shadow: 0 24px 72px oklch(.15 .08 260 / .18); border-radius: var(--radius-xl); position: relative; }
.phone-chat { height: 620px; display: flex; flex-direction: column; }
.contact-header { display: flex; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-5); border-bottom: 1px solid var(--line); background: var(--surface-soft); flex: 0 0 auto; }
.contact-header img { width: 51px; height: 51px; border-radius: var(--radius-full); object-fit: cover; }
.contact-name { font-weight: 500; font-size: var(--text-base); }
.contact-detail { color: var(--muted); font-size: var(--text-xs); }
.phone-chat .contact-header::before { content: '‹'; position: absolute; left: 24px; font-size: 34px; color: var(--message-link); font-family: var(--font-body); }
.contact-header .contact-action { display: flex; align-items: center; gap: var(--space-3); text-align: left; padding: 0; min-height: 44px; color: var(--message-text); }
.conversation { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-time { text-align: center; color: var(--muted); font-size: var(--text-xs); padding: var(--space-3) var(--space-4) var(--space-2); flex: 0 0 auto; }
.messages { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: var(--space-3) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; min-width: 0; min-height: 0; }
.message { display: flex; flex-direction: column; align-items: flex-start; animation: bubble-in .45s var(--ease) both; flex-shrink: 0; }
.message.out { align-items: flex-end; }
.bubble { max-width: 85%; border-radius: 19px 19px 19px 5px; padding: var(--space-2) var(--space-3); color: var(--message-text); background: var(--message-in); font-size: var(--text-sm); line-height: 1.42; text-align: left; }
.out .bubble { background: var(--message-out); color: #fff; border-radius: 19px 19px 5px 19px; }
.message.receipt .bubble { background: var(--surface-soft); border: 1px solid var(--line); padding: var(--space-3); }
.receipt-title { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.receipt-meta { display: block; font-size: var(--text-xs); color: var(--muted); }
.delivered { font-size: var(--text-xs); color: var(--muted); text-align: right; padding-top: var(--space-1); }
.typing-bubble { display: flex; align-items: center; gap: var(--space-1); min-width: 55px; min-height: 34px; justify-content: center; }
.typing-bubble i { display: block; width: 6px; height: 6px; background: var(--muted); border-radius: var(--radius-full); animation: type-dot 1s ease-in-out infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .16s; }
.typing-bubble i:nth-child(3) { animation-delay: .32s; }
.is-paused .typing-bubble i { animation-play-state: paused; }
.chat-composer { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-5) var(--space-5); flex: 0 0 auto; color: var(--muted); }
.composer-plus { font-size: var(--text-lg); width: 20px; text-align: center; }
.composer-field { border: 1px solid var(--line); border-radius: var(--radius-full); flex: 1; padding: var(--space-2) var(--space-3); font-size: var(--text-xs); display: flex; justify-content: space-between; align-items: center; }
.composer-send { width: 21px; height: 21px; display: inline-grid; place-items: center; background: var(--message-out); color: #fff; border-radius: var(--radius-full); font-size: var(--text-sm); }
.scenario-tabs { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.scenario-tabs button { border: 1px solid color-mix(in srgb,currentColor 25%,transparent); border-radius: var(--radius-full); min-height: 44px; padding: var(--space-2) var(--space-4); font-size: var(--text-xs); color: inherit; transition: background .2s, color .2s; }
.corner .scenario-tabs { justify-content: center; margin-top: var(--space-5); }
.corner .scenario-tabs button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream); color: var(--blue); }
.scenario-tabs button:hover { background: color-mix(in srgb,currentColor 10%,transparent); }
.playback { display: flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 44px; margin-top: var(--space-1); font-size: var(--text-xs); }
.playback button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; min-width: 44px; padding: 0 var(--space-2); font-size: var(--text-xs); }
.playback button:hover { opacity: .65; }
.playback .example-label { opacity: .75; padding-right: var(--space-2); border-right: 1px solid color-mix(in srgb,currentColor 25%,transparent); }
.corner .site-footer { margin-top: var(--space-2); }

/* Direction 02: a note, not a pitch. */
.text { background: var(--paper); color: var(--blue); }
html[data-theme="dark"] .text { color: var(--cream); }
.text .site-header { height: 96px; }
.text .hero { padding-top: var(--space-6); text-align: center; }
.text .hero .eyebrow { margin-bottom: var(--space-5); }
.text h1 { font-size: clamp(3.25rem, 1.5rem + 4vw, 5.75rem); line-height: 1.05; }
.text h1 .hand { font-size: 1.22em; letter-spacing: -.05em; display: inline-block; transform: rotate(-3deg); }
.text .hero-description { margin: var(--space-5) auto 0; max-width: 480px; font-size: var(--text-sm); }
.text .signup { margin: var(--space-6) auto var(--space-10); text-align: left; max-width: 450px; }
.text .signup-submit { background: var(--blue); color: var(--cream); }
.desktop-demo { width: min(100%, 1020px); margin-inline: auto; box-shadow: 0 16px 50px oklch(.3 .035 90 / .08); border: 1px solid var(--line); display: grid; grid-template-columns: 250px 1fr; min-height: 400px; text-align: left; border-radius: var(--radius-md); }
.desktop-sidebar { padding: var(--space-6); background: var(--surface-soft); display: flex; flex-direction: column; align-items: flex-start; color: var(--message-text); }
.window-dots { display: flex; gap: var(--space-2); margin-bottom: var(--space-6); }
.window-dots i { width: 10px; height: 10px; border: 1px solid var(--line); border-radius: var(--radius-full); }
.text .window-dots, .text .sidebar-eyebrow { display: none; }
.mobile-label { display: none; }
.sidebar-person { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.sidebar-person img { width: 46px; height: 46px; border-radius: var(--radius-full); }
.sidebar-eyebrow { font-size: var(--text-xs); color: var(--muted); margin-bottom: var(--space-2); }
.text .scenario-tabs { flex-direction: column; width: 100%; gap: var(--space-1); }
.text .scenario-tabs button { text-align: left; border: 0; border-radius: var(--radius-sm); padding: var(--space-3); font-size: var(--text-sm); color: var(--muted); }
.text .scenario-tabs button[aria-pressed="true"] { background: var(--blue); color: var(--cream); }
.sidebar-note { margin-top: auto; padding-top: var(--space-6); font-family: var(--font-hand); color: var(--blue); font-size: var(--text-xl); line-height: .95; transform: rotate(-5deg); }
html[data-theme="dark"] .sidebar-note { color: #c0d0ff; }
.desktop-thread { height: 620px; min-width: 0; display: flex; flex-direction: column; }
.desktop-thread .contact-header { justify-content: space-between; padding: var(--space-3) var(--space-6); background: var(--surface); }
.desktop-thread .contact-header .contact-name { font-size: var(--text-sm); }
.desktop-thread .messages { padding-inline: var(--space-6); padding-top: var(--space-1); }
.desktop-thread .bubble { max-width: 75%; }
.desktop-thread .chat-time { padding-top: var(--space-2); padding-bottom: var(--space-1); }
.desktop-thread .chat-composer { padding: var(--space-2) var(--space-6) var(--space-3); }
.text .playback { margin-top: var(--space-2); }
.text .site-footer { margin-top: var(--space-4); color: var(--muted); }

/* Direction 03: the contact is the hero. */
.company { background: var(--sage); color: var(--ink); }
.company .site-header { height: 96px; }
.company .hero { text-align: center; padding-top: var(--space-4); }
.company h1 { font-size: clamp(3.25rem, 1.6rem + 4.2vw, 5.5rem); letter-spacing: -.065em; }
.company h1 .hand { color: var(--blue); font-size: 1.25em; display: inline-block; transform: rotate(-4deg); letter-spacing: -.05em; }
html[data-theme="dark"] .company h1 .hand { color: #bfd0ff; }
.company .hero-description { margin: var(--space-4) auto 0; max-width: 500px; font-size: var(--text-sm); }
.company .scenario-tabs { justify-content: center; margin-top: var(--space-6); }
.company .scenario-tabs button { border-color: transparent; }
.company .scenario-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--sage); }
.contact-scene { position: relative; display: grid; grid-template-columns: 260px minmax(0,440px); align-items: center; justify-content: center; gap: 64px; width: min(880px, 100%); margin: var(--space-6) auto var(--space-2); }
.contact-card { position: relative; transform: rotate(-4deg); background: var(--paper); width: 244px; min-height: 302px; border-radius: var(--radius-md); box-shadow: 3px 8px 0 oklch(.25 .025 100 / .05), 0 16px 36px oklch(.25 .025 100 / .1); padding: var(--space-5); text-align: center; transition: transform .5s var(--ease); }
.contact-card:hover { transform: rotate(0deg); }
.contact-card .eyebrow { font-size: var(--text-xs); letter-spacing: .08em; color: var(--muted); }
.contact-card img { width: 150px; height: 150px; object-fit: cover; border-radius: var(--radius-full); margin: var(--space-4) auto var(--space-2); }
.contact-card .card-name { font-size: var(--text-xl); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.contact-card .card-detail { color: var(--muted); font-size: var(--text-xs); margin-top: var(--space-2); }
.card-contact-button { min-height: 44px; width: 100%; font-size: var(--text-xs); color: var(--blue); background: var(--surface-soft); border-radius: var(--radius-sm); margin-top: var(--space-4); }
html[data-theme="dark"] .card-contact-button { color: var(--cream); }
.company .message { min-width: 0; }
.company .bubble { font-size: var(--text-sm); }
.company .out .bubble { background: var(--message-out); color: #fff; }
.company .signup { margin: var(--space-6) auto 0; width: min(100%,450px); text-align: left; }
.company .signup-submit { background: var(--ink); color: var(--sage); }
.company .playback { margin-top: 0; }
.company .site-footer { margin-top: var(--space-8); }
.message-author { display: none; }

/* The full shopping journey lives inside the conversation. */
.journey { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; padding: 0 10px; background: var(--surface); color: var(--muted); }
.journey button { min-height: 44px; padding: 8px 5px; font-size: 11px; color: inherit; }
.journey button[aria-pressed="true"] { color: var(--message-link); font-weight: 600; }
.journey button:disabled { opacity: .45; cursor: default; }
.journey > span { opacity: .4; font-size: 14px; }
.demo-disclaimer { text-align: center; font-size: 10px; opacity: .75; line-height: 1.5; margin-top: 0; }
.message.rich { width: 100%; min-width: 0; animation: page-in .35s var(--ease) both; }
.message.rich .bubble { max-width: 100%; width: 100%; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.mini-label { display: block; font-size: 9px; letter-spacing: .08em; font-weight: 600; color: var(--muted); }
.shortlist-heading { display: grid; gap: 2px; padding: 0 0 10px; }
.shortlist-heading strong { font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.shortlist-heading > span:last-child { font-size: 11px; color: var(--muted); }
.offer-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 1px 1px 8px; overscroll-behavior-x: contain; }
.offer-card { flex: 0 0 242px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); padding: 13px; text-align: left; min-width: 0; }
.offer-topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); }
.offer-number { font-variant-numeric: tabular-nums; }
.offer-tag { color: var(--message-text); }
.offer-card h3 { font-size: 17px; font-weight: 600; margin-top: 10px; }
.offer-total { font-size: 30px; letter-spacing: -.045em; font-weight: 500; line-height: 1.05; margin-top: 7px; }
.offer-total > span { display: block; font-size: 10px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 3px; }
.offer-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; margin: 13px 0 10px; font-size: 10px; }
.offer-breakdown > div { display: flex; justify-content: space-between; gap: 4px; }
.offer-breakdown dt { color: var(--muted); white-space: nowrap; }
.offer-breakdown dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer-eta { font-size: 11px; margin-top: 2px; }
.choose-offer,.approve-purchase { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; background: var(--message-out); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 12px; font-weight: 500; margin-top: 12px; }
.choose-offer:hover,.approve-purchase:hover { filter: brightness(.9); }
.choose-offer:focus-visible,.approve-purchase:focus-visible { outline: 2px solid var(--message-text); outline-offset: 2px; }
.rail-controls { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 10px; color: var(--muted); }
.rail-controls > div { display: flex; }
.rail-controls button { width: 44px; height: 44px; font-size: 20px; color: var(--message-text); }
.card-fineprint { font-size: 10px; line-height: 1.5; color: var(--muted); }
.checkout-card,.research-card,.order-card { padding: 18px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 18px; }
.checkout-card > strong,.research-card > strong { display: block; font-size: 18px; letter-spacing: -.03em; line-height: 1.25; margin: 8px 0; font-weight: 500; }
.checkout-card > p { font-size: 11px; line-height: 1.5; }
.checkout-total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 16px 0 6px; }
.checkout-total span { font-size: 11px; max-width: 145px; color: var(--muted); }
.checkout-total b { font-size: 23px; font-weight: 500; letter-spacing: -.035em; }
.saved-card { display: flex; gap: 10px; align-items: center; margin: 16px 0; font-size: 12px; }
.card-chip { font-size: 25px; color: var(--muted); }
.saved-card small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.approval-note { margin-bottom: 8px; }
.approve-purchase { justify-content: center; }
.approve-purchase:disabled { opacity: .6; cursor: default; }
.change-offer { display: block; min-height: 44px; padding: 10px 5px; width: 100%; color: var(--message-text); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.checkout-card .card-fineprint { font-size: 9px; }
.research-note { margin: 15px 0; }
.source-pill { font-size: 10px; font-weight: 600; color: var(--message-text); }
.research-note p { margin-top: 4px; font-size: 12px; line-height: 1.5; }
.research-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--message-link); text-decoration: underline; text-underline-offset: 3px; font-size: 11px; }
.research-take { font-size: 12px; line-height: 1.5; background: var(--surface); border-radius: 10px; padding: 10px; }
.order-card { text-align: center; }
.order-card > img { margin: 0 auto 12px; border-radius: 50%; }
.order-card > strong { display: block; font-family: var(--font-hand); font-size: 42px; font-weight: 400; line-height: 1.1; margin: 8px 0 16px; }
.order-card > p { font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
.order-signoff { display: block; font-size: 12px; margin: 14px 0; }
.order-card .card-fineprint { font-size: 10px; }

/* The small design-review switcher stays outside the homepages. */
.direction-switcher { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: safe center; gap: var(--space-1); padding: var(--space-2); background: #fffdf5; color: #23352d; border-bottom: 1px solid oklch(.3 .01 80 / .15); white-space: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.direction-switcher a { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-full); font-size: var(--text-xs); transition: background .2s; }
.direction-switcher a span { opacity: .55; }
.direction-switcher a { flex-shrink: 0; }
.direction-switcher a small { font-size: var(--text-xs); font-weight: 500; }
.direction-switcher a[aria-current="page"] { background: #20459d; color: #fff; }
.direction-switcher a:hover:not([aria-current="page"]) { background: #edeedf; }
.switcher-label { font-size: .75rem; letter-spacing: .07em; padding: 0 var(--space-4); color: #657061; }
dialog { max-width: 430px; width: calc(100% - 40px); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-10); color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px oklch(.1 .02 80 / .2); }
dialog::backdrop { background: oklch(.1 .02 250 / .6); backdrop-filter: blur(5px); }
dialog[open] { animation: bubble-in .3s var(--ease); }
dialog > img { border-radius: var(--radius-full); margin: 0 0 var(--space-6); }
dialog .eyebrow { font-size: var(--text-xs); color: var(--muted); }
dialog h2 { font-size: var(--text-xl); font-weight: 500; letter-spacing: -.04em; margin-top: var(--space-2); }
dialog p:not(.eyebrow) { font-size: var(--text-sm); line-height: 1.65; margin-top: var(--space-4); }
.dialog-close { position: absolute; top: var(--space-4); right: var(--space-4); border: 0; }
.dialog-close-label { display: none; }
.solid-button { background: var(--blue); color: var(--cream); padding: var(--space-3) var(--space-4); font-size: var(--text-sm); border-radius: var(--radius-full); min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); }
/* A small contact introduction, not another sales page. */
#about-dialog { max-width: 400px; max-height: calc(100dvh - 40px); padding: var(--space-8); overflow-y: auto; }
#about-dialog > img { width: 80px; height: 80px; margin-bottom: var(--space-5); }
#about-dialog h2 { margin-top: 0; }
#about-dialog .about-copy { margin-top: var(--space-3); }
#about-dialog .dialog-done { width: 100%; justify-content: center; margin-top: var(--space-6); }
@keyframes page-in { from { opacity: .1; } to { opacity: 1; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(9px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes type-dot { 0%,60%,100% { opacity: .45; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

@media (min-width: 1500px) {
  .corner .hero { padding-top: var(--space-16); }
  .corner .site-footer { margin-top: var(--space-12); }
  .text .hero, .company .hero { padding-top: var(--space-12); }
}
@media (max-width: 1100px) {
  .corner .hero { gap: var(--space-10); }
  .corner .chat-note { display: none; }
  .corner h1 { font-size: clamp(3.5rem, 6.5vw, 5.25rem); }
  .corner .scenario-tabs { gap: var(--space-1); }
  .corner .scenario-tabs button { padding-inline: var(--space-3); }
  .switcher-label { display: none; }
}
@media (max-width: 760px) {
  .shell { padding-inline: var(--space-6); }
  .site { padding-bottom: var(--space-6); }
  .site-header, .text .site-header, .company .site-header { height: 84px; }
  .brand { width: 84px; }
  .brand svg { width: 80px; }
  .nav-note { display: none; }
  .nav-right { gap: var(--space-4); }
  .nav-right .text-button { font-size: var(--text-xs); }
  .icon-button { width: 44px; height: 44px; }
  .corner .hero { grid-template-columns: minmax(0,1fr); padding-top: var(--space-4); gap: var(--space-10); }
  .corner .hero-copy { padding: 0; }
  .corner .eyebrow { margin-bottom: var(--space-5); }
  .corner h1 { font-size: clamp(3.5rem, 12.4vw, 5.75rem); max-width: 570px; }
  .corner h1 .hand { display: inline-block; margin: 0 0 var(--space-2); }
  .corner .hero-description { margin-top: var(--space-5); max-width: 310px; }
  .corner .signup { margin-top: var(--space-6); max-width: 100%; }
  .corner .chat-stage { justify-self: center; max-width: 430px; }
  .phone-chat { height: 610px; width: 100%; }
  .corner .site-footer { margin-top: var(--space-6); }
  .site-footer { align-items: flex-start; }
  .footer-note { max-width: 135px; text-align: right; font-size: var(--text-xs); }
  .footer-signoff { max-width: 170px; }
  .direction-switcher { padding: var(--space-1); gap: 0; width: 100%; }
  .direction-switcher a { padding: var(--space-3); font-size: .75rem; gap: var(--space-1); min-height: 48px; }
  .direction-switcher a span { display: none; }
  .text .hero { padding-top: var(--space-5); }
  .text h1 { font-size: clamp(3.25rem, 12vw, 5rem); }
  .text h1 .hand { display: block; margin-top: var(--space-2); }
  .text .hero-description { max-width: 320px; line-height: 1.6; }
  .text .signup { margin-top: var(--space-6); margin-bottom: var(--space-8); }
  .desktop-demo { grid-template-columns: 1fr; }
  .desktop-sidebar { padding: var(--space-4); }
  .window-dots, .sidebar-note, .sidebar-eyebrow { display: none; }
  .sidebar-person { margin-bottom: var(--space-3); }
  .text .scenario-tabs { flex-direction: row; justify-content: space-between; gap: 0; }
  .text .scenario-tabs button { padding: var(--space-2); font-size: var(--text-xs); min-height: 44px; }
  .text .desktop-label { display: none; }
  .text .mobile-label { display: inline; }
  .desktop-thread { height: 590px; }
  .desktop-thread .contact-header { display: none; }
  .desktop-thread .messages { padding-inline: var(--space-4); }
  .desktop-thread .bubble { max-width: 88%; }
  .desktop-thread .chat-composer { padding-inline: var(--space-4); }
  .text .site-footer { margin-top: var(--space-8); }
  .company .hero { padding-top: var(--space-5); display: flex; flex-direction: column; align-items: center; }
  .company .hero > h1 { order: 1; }
  .company .hero > .hero-description { order: 2; }
  .company .hero > .signup { order: 3; }
  .company .hero > .scenario-tabs { order: 4; }
  .company .hero > .contact-scene { order: 5; }
  .company .hero > .playback { order: 6; }
  .company .hero > .demo-disclaimer { order: 7; }
  .company h1 { font-size: clamp(3.125rem, 11.8vw, 4.75rem); }
  .company h1 .hand { display: block; margin-top: var(--space-1); }
  .company .hero-description { max-width: 310px; margin-top: var(--space-5); }
  .company .scenario-tabs { margin-top: var(--space-4); gap: 0; }
  .company .scenario-tabs button { padding-inline: var(--space-3); }
  .contact-scene { margin-top: var(--space-6); min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 440px; }
  .contact-card { position: relative; transform: rotate(-4deg); width: 218px; min-height: 0; padding: var(--space-4); margin-bottom: var(--space-8); }
  .contact-card:hover { transform: rotate(0deg); }
  .contact-card img { width: 115px; height: 115px; margin-top: var(--space-3); }
  .contact-card .card-name { font-size: var(--text-xl); }
  .card-contact-button { margin-top: var(--space-3); }
  .company .message { align-items: flex-start; }
  .company .message.out { align-items: flex-end; }
  .company .bubble { max-width: 87%; }
  .company .message-author { display: none; }
  .company .signup { margin-top: var(--space-4); }
  .company .site-footer { margin-top: var(--space-8); }
  .offer-card { flex-basis: 230px; }
  .checkout-card,.research-card,.order-card { padding: 14px; }
  .company .phone-chat { text-align: left; }
}
@media (max-width: 380px) {
  .shell { padding-inline: var(--space-5); }
  .signup-fields { grid-template-columns: minmax(100px,1fr) 48px; gap: var(--space-2); }
  .signup-meta { font-size: .75rem; }
  .playback { gap: var(--space-1); }
  .scenario-tabs button { padding-inline: var(--space-3); }
}

/* The supplied product is visible from the first message, not only the shortlist. */
.product-message .bubble { width: min(270px, 90%); max-width: 90%; padding: 0; overflow: hidden; }
.product-message .bubble img { width: 100%; height: 152px; object-fit: contain; background: #fff; }
.product-message .bubble > span { display: block; padding: var(--space-3); }
.offer-product-image { width: 100%; height: 72px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); margin-top: var(--space-2); }
.journey button,.demo-disclaimer,.mini-label,.shortlist-heading > span:last-child,
.offer-topline,.offer-total > span,.offer-breakdown,.offer-eta,.rail-controls,
.card-fineprint,.checkout-card > p,.checkout-total span,.saved-card small,
.change-offer,.checkout-card .card-fineprint,.source-pill,.research-note a,
.order-card .card-fineprint { font-size: var(--text-xs); }
.offer-breakdown { grid-template-columns: minmax(0,1fr); gap: var(--space-1); }
.shortlist-heading strong { overflow-wrap: anywhere; line-height: 1.3; }
html[data-theme="dark"] .direction-switcher { background: #202720; color: #f5edd9; border-color: #424b40; }
html[data-theme="dark"] .switcher-label { color: #b2b8aa; }
html[data-theme="dark"] .direction-switcher a:hover:not([aria-current="page"]) { background: #363e35; }
@media (max-width: 1280px) {
  .switcher-label { display: none; }
}
@media (max-width: 760px) {
  .direction-switcher { justify-content: flex-start; }
  .direction-switcher a span { display: inline; }
}

