/* shopwise.live: page layout on top of design/tokens.css and design/components.css. Mobile first. */

.site { overflow-x: hidden; }
.wrap { width: 100%; max-width: var(--page-max); margin: 0 auto; padding: 0 20px; }
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg-page) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--dur-quick); }
.site-head.is-scrolled { border-color: var(--border-hairline); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.site-head img { height: 26px; width: auto; }
.site-nav { display: none; gap: 24px; font-size: var(--fs-body-sm); font-weight: 600; }
.site-nav a { color: var(--text-heading); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.site-head .sw-btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.site-head .sw-btn--primary { padding-right: calc(16px + var(--cut)); }

/* Hero */
.hero { padding: 28px 0 40px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__grid > *, .film > *, .anatomy > *, .receipts > * { min-width: 0; }
.hero__eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 3.9rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero__beats { display: grid; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; font-family: var(--font-display);
  font-weight: 700; font-size: 1.1rem; color: var(--text-heading); }
.hero__beats li { display: flex; align-items: center; gap: 10px; }
.hero__beats .sw-tick { width: 20px; height: 20px; }
.ask { margin-top: 24px; background: var(--bg-card); border: 1.5px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 12px; box-shadow: var(--shadow-raised); }
.ask label { display: block; padding: 2px 4px 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--text-heading); }
.ask textarea { width: 100%; min-height: 64px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text-primary);
  font: inherit; font-size: 1.0625rem; line-height: 1.45; padding: 4px; }
.ask textarea::placeholder { color: var(--text-faint); }
.ask .sw-btn { margin-top: 8px; }
.examples { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.examples::-webkit-scrollbar { display: none; }
.examples button { flex: none; font: inherit; font-size: var(--fs-body-sm); color: var(--text-heading); background: transparent;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 7px 13px; cursor: pointer; white-space: nowrap; }
.examples button:hover { background: var(--bg-card); }

/* Phone frame used by the hero demo, the receipts and the moments */
.phone { position: relative; width: 100%; max-width: 360px; margin: 0 auto; padding: 10px; border-radius: 40px;
  background: #16201f; box-shadow: var(--shadow-raised); }
.phone__screen { border-radius: 31px; overflow: hidden; background: var(--wa-ground); height: 640px; position: relative;
  display: flex; flex-direction: column; }
.phone__screen > .sw-wa__head { flex: none; margin: 0; padding: 12px 14px 10px; background: var(--wa-ground); }
.phone__screen .sw-wa { flex: 1; min-height: 0; border-radius: 0; display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; padding-top: 6px; }
.phone__screen .sw-wa > * { flex: none; }
.phone__screen .sw-wa > .sw-bubble--buyer { align-self: flex-end; }
.phone__screen .sw-wa > .sw-bubble--advisor, .phone__screen .sw-wa > .sw-wa__msg, .phone__screen .typing { align-self: flex-start; }
.phone__replay { position: absolute; right: 22px; top: 18px; z-index: 2; font: inherit; font-size: var(--fs-caption);
  font-weight: 600; color: var(--text-heading); background: var(--bg-card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 6px 12px; cursor: pointer; }

/* The hero thread arrives message by message once it is on screen, pushing older ones up like a real chat (motion marks
   arrival; it never loops). Without script, or with reduced motion, the whole thread simply shows. */
.demo.is-armed [data-step], .demo.is-armed .typing { max-height: 0; opacity: 0; overflow: hidden; }
.demo.is-playing [data-step] { animation: arrive 700ms var(--ease-out) forwards; }
.demo.is-playing [data-step="1"] { animation-delay: .3s; } .demo.is-playing [data-step="2"] { animation-delay: 1.5s; }
.demo.is-playing [data-step="3"] { animation-delay: 3.6s; } .demo.is-playing [data-step="5"] { animation-delay: 6.2s; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--wa-advisor); }
.demo.is-playing .typing { animation: typing 1.4s linear 4.6s forwards; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.demo:not(.is-armed) .typing { display: none; }
@keyframes arrive { from { max-height: 0; opacity: 0; } 60% { opacity: 0; } to { max-height: 640px; opacity: 1; } }
@keyframes typing { 0% { max-height: 0; opacity: 0; padding-block: 0; } 10%, 90% { max-height: 40px; opacity: 1; padding-block: 10px; }
  100% { max-height: 0; opacity: 0; padding-block: 0; } }
.demo.is-armed .typing { padding-block: 0; }
@media (prefers-reduced-motion: reduce) { .demo.is-armed [data-step] { max-height: none; opacity: 1; animation: none; }
  .demo .typing { display: none; } }

/* Sections */
.band { padding: 64px 0; }
.band--sunken { background: var(--bg-sunken); }
.band--inverse { background: var(--counsel-900); color: var(--paper); }
.band--inverse .sw-h2, .band--inverse .sw-eyebrow { color: var(--paper); }
.band__head { max-width: 40rem; margin-bottom: 28px; }
.band__head .sw-h2 { margin-top: 12px; }
.band__head p { color: var(--text-muted); margin: 12px 0 0; }
.band--inverse .band__head p { color: var(--counsel-200); }

/* Video: a short line, then the film */
.film { display: grid; gap: 20px; align-items: center; }
.film__copy .sw-h2 { margin-top: 10px; }
.film__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--counsel-900);
  box-shadow: var(--shadow-raised); aspect-ratio: 9 / 16; max-width: 360px; width: 100%; margin: 0 auto; }
.film__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: transparent; }
.film__play span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--paper); color: var(--counsel-900); font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow-raised); }
.film__play svg { width: 18px; height: 18px; }
.film__play[hidden] { display: none; }

/* Split: the heading on the left (it stays in view on desktop), the visual on the right */
.split { display: grid; gap: 8px; align-items: start; }
.split > * { min-width: 0; }
.anatomy__chat { max-width: 420px; width: 100%; }
.anatomy__chat .sw-bubble--advisor p { margin-bottom: 10px; }
.tag { display: block; width: max-content; margin: 0 0 3px; padding: 2px 12px 2px 8px; font-family: var(--font-display);
  font-weight: 700; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--counsel-900);
  background: var(--counsel-100); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); border-radius: 4px 0 0 4px; }
.tag--catch { background: var(--fn-attention-tint); color: var(--fn-attention-text); }

/* Examples */
.moments__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 20px; padding: 0 20px; }
.moments__tabs::-webkit-scrollbar { display: none; }
.moments__tabs button { flex: none; font: inherit; font-size: var(--fs-body-sm); font-weight: 600; cursor: pointer; white-space: nowrap;
  padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--bg-card);
  color: var(--text-heading); }
.moments__tabs button[aria-selected="true"] { background: var(--counsel-900); color: var(--paper); border-color: transparent; }
.moments__stage { max-width: 440px; width: 100%; }
.moment[hidden] { display: none; }
.moments__note { margin-top: 14px; }

/* The proof: the real why-page */
.receipts { display: grid; gap: 28px; align-items: center; }
.phone__screen--page { height: 680px; background: var(--bg-page); display: block; }
.phone__screen--page iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-page { margin: 0; }
.demo-page figcaption { margin-top: 12px; text-align: center; font-size: var(--fs-caption); color: var(--counsel-200); }
.proofchips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.proofchips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(250, 246, 238, .08); border: 1px solid rgba(250, 246, 238, .18); font-weight: 600; font-size: var(--fs-body-sm); }
.proofchips .sw-tick { width: 16px; height: 16px; color: var(--welcome-400); }

/* Three numbers */
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; text-align: center; }
.numbers b { display: block; font-family: var(--font-price); font-weight: 800; font-size: clamp(3rem, 2rem + 6vw, 6rem); line-height: 1;
  color: var(--text-heading); letter-spacing: -0.04em; }
.numbers span { display: block; margin-top: 8px; font-size: var(--fs-body-sm); color: var(--text-muted); font-weight: 600; }

/* One statement */
.statement { text-align: center; }
.statement .sw-tick { width: 40px; height: 40px; margin: 0 auto 14px; }
.statement__line { max-width: 14ch; margin: 0 auto; font-size: clamp(2.2rem, 1.4rem + 4vw, 4rem); }
.statement p { margin: 14px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--accent-text); }

/* Versus */
.versus { width: 100%; max-width: 640px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-body); }
.versus th, .versus td { padding: 14px 10px; border-bottom: 1px solid var(--border-hairline); text-align: center; }
.versus tbody th { text-align: left; font-weight: 600; color: var(--text-primary); }
.versus thead th { font-family: var(--font-display); font-size: var(--fs-body-sm); color: var(--text-muted); border-bottom: 0; }
.versus thead th:nth-child(2) { color: var(--text-heading); font-size: 1rem; }
.versus td:nth-child(2) { background: color-mix(in srgb, var(--counsel-100) 55%, transparent); }
.versus .sw-mark { width: 28px; height: 28px; }
.versus .sw-mark svg { width: 16px; height: 16px; }
.versus .no { display: inline-grid; place-items: center; width: 28px; height: 28px; color: var(--text-faint); }
.versus .no svg { width: 18px; height: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 46rem; }
.faq details { background: var(--bg-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 16px 18px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; color: var(--text-heading); list-style: none;
  display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--text-muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 10px 0 0; color: var(--text-muted); font-size: var(--fs-body-sm); }

/* Final call */
.final { text-align: center; }
.final .sw-tick { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--welcome-500); }
.final .sw-h2 { color: var(--paper); margin-bottom: 24px; }
.site-foot { padding: 40px 0 48px; font-size: var(--fs-caption); color: var(--text-muted); }
.site-foot .wrap { display: grid; gap: 20px; }
.site-foot__brand img { height: 22px; width: auto; }
.site-foot__brand p { margin: 8px 0 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: var(--fs-body-sm); }
.site-foot a { color: var(--text-heading); }
.site-foot__legal { margin: 0; }

/* Inner pages */
.page-hero { padding: 40px 0 8px; }
.page-hero .sw-display { max-width: 16ch; font-size: clamp(2.2rem, 1.4rem + 4vw, 3.6rem); }
.page-hero .sw-lead { margin-top: 16px; max-width: 34rem; }
.prose > * { max-width: 42rem; }
.page-hero + .band { padding-top: 32px; }
.prose h2 { margin: 40px 0 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--text-heading); }
.prose p, .prose li { color: var(--text-primary); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose .updated { color: var(--text-muted); font-size: var(--fs-body-sm); }
.summary { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.summary li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-md); font-weight: 600; }
.summary .sw-tick { width: 20px; height: 20px; margin-top: 2px; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px; background: var(--bg-card);
  border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); }
.steps > li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--counsel-900); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.steps h3 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 1.15rem; color: var(--text-heading); }
.steps p { margin: 0; color: var(--text-muted); }
.steps .sw-chips { margin-top: 12px; }
.promises { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.promises li { padding: 22px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-hairline); }
.promises .sw-tick { width: 30px; height: 30px; }
.promises h3 { margin: 12px 0 6px; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-heading); }
.promises p { margin: 0; color: var(--text-muted); }
.notfound { padding: 80px 0; text-align: center; }
.notfound .sw-tick { width: 56px; height: 56px; margin: 0 auto 16px; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .hero { padding: 56px 0 72px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .examples { flex-wrap: wrap; overflow: visible; }
  .film { grid-template-columns: .7fr 1.3fr; gap: 48px; }
  .film__frame { aspect-ratio: 16 / 9; max-width: none; }
  .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
  .split > .band__head, .split__side { position: sticky; top: 96px; }
  .moments__tabs { margin: 0; padding: 0; flex-wrap: wrap; }
  .receipts { grid-template-columns: 1fr 1fr; gap: 56px; }
  .band { padding: 96px 0; }
  .page-hero { padding: 72px 0 16px; }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .promises li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .site-foot .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .site-foot__legal { grid-column: 1 / -1; }
}
