/* Layout concept: a friendly product page where the hero is a live, personalized call.
   One bold move (the prospect types their shop name into the headline and Sam answers as them);
   everything else stays calm: white space, real photos, one cobalt accent, a sun-yellow marker. */
:root {
  --paper: #f7f8fb;      /* page ground, cool white */
  --white: #ffffff;
  --ink: #141a2e;        /* text + dark surfaces */
  --muted: #586079;
  --line: #e2e6ef;
  --sam: #2b4dff;        /* Sam's cobalt: the one accent */
  --sam-deep: #1f38c9;
  --sam-tint: #edf0ff;
  --sun: #ffd23f;        /* marker highlight, used sparingly */
  --ok: #16a34a;
  --err: #c62828;
  --phone: #0f1424;
  --phone-2: #1c2440;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(20, 26, 46, .06), 0 12px 32px rgba(20, 26, 46, .08);
  --shadow-lg: 0 30px 70px rgba(20, 26, 46, .22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; font-weight: 800; max-width: 20ch; }
h3 { font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--sam); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 104px; }
section[id] { scroll-margin-top: 72px; }
.section-tint { background: var(--white); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }

/* Sam avatar: the character mark */
.sam-avatar { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sam); color: var(--white); font: 800 19px/1 var(--display); box-shadow: 0 0 0 4px var(--sam-tint); }
.sam-avatar-xs { width: 20px; height: 20px; font-size: 11px; box-shadow: none; }
.sam-avatar-sm { width: 30px; height: 30px; font-size: 15px; box-shadow: none; }
.sam-avatar-lg { width: 64px; height: 64px; font-size: 30px; box-shadow: 0 0 0 6px rgba(255,255,255,.18); background: var(--white); color: var(--sam); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1 var(--body); text-decoration: none; border-radius: 999px; padding: 15px 24px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn-primary { background: var(--sam); color: var(--white); box-shadow: 0 8px 20px rgba(43, 77, 255, .28); }
.btn-primary:hover { background: var(--sam-deep); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 19px 28px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(247, 248, 251, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.logo b { color: var(--sam); font-weight: 800; }
.nav-links { display: flex; gap: 32px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 56px 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hello { display: flex; align-items: center; gap: 14px; font: 600 19px/1.3 var(--body); color: var(--muted); margin-bottom: 18px; }
.hero-title { font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.shop-field { position: relative; display: inline-block; max-width: 100%; }
.shop-field input {
  font: inherit; letter-spacing: inherit; color: var(--sam); background: transparent; border: 0; padding: 0 2px; margin: 0;
  width: 6ch; max-width: 100%; min-width: 3ch; position: relative; z-index: 1; caret-color: var(--ink);
}
.shop-mirror { position: absolute; left: 0; top: 0; visibility: hidden; white-space: pre; font: inherit; letter-spacing: inherit; padding: 0 2px; pointer-events: none; }
.shop-field input::placeholder { color: var(--sam); opacity: 1; }
.shop-field input:focus::placeholder { opacity: .3; }
.shop-field.is-demo::after { content: ""; position: absolute; right: -2px; top: .14em; bottom: .14em; width: .07em; min-width: 3px; background: var(--ink); border-radius: 2px; z-index: 2; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.shop-field input:focus { outline: none; }
.shop-underline { position: absolute; left: -4px; right: -4px; bottom: .08em; height: .32em; background: var(--sun); border-radius: 4px; z-index: 0; transform-origin: left; }
.shop-field:focus-within .shop-underline { animation: wiggle .5s ease; }
@keyframes wiggle { 30% { transform: scaleX(1.04); } 60% { transform: scaleX(.98); } }
.hero-hint { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-hint svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; transform: rotate(-90deg); }

.trade-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { font: 600 15px/1 var(--body); padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Phone */
.phone-stage { position: relative; justify-self: end; width: 100%; max-width: 380px; padding-bottom: 40px; }
.phone { position: relative; background: var(--phone); color: var(--white); border-radius: 44px; padding: 44px 18px 112px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3352, inset 0 0 0 9px var(--phone); min-height: 470px; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #000; border-radius: 20px; }
.call-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: #93a0c4; padding: 0 6px 16px; border-bottom: 1px solid #232c4a; margin-bottom: 16px; }
.call-status { display: inline-flex; align-items: center; gap: 7px; color: #9fe3b8; font-weight: 600; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d27b; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; max-width: 86%; }
.bubble.sam { background: var(--phone-2); border-bottom-left-radius: 6px; }
.bubble.sam .who { display: block; font-size: 11px; font-weight: 700; color: #8fa2ff; margin-bottom: 2px; letter-spacing: .02em; }
.bubble.caller { background: var(--white); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 6px; }
.bubble.pending, .owner-text.pending { opacity: 0; }
.bubble.in { animation: pop .35s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.owner-text { position: absolute; left: -48px; right: 36px; bottom: 0; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.owner-text.in { animation: pop .4s cubic-bezier(.2, .9, .3, 1.2) both; }
.owner-text-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.owner-text p { font-size: 14px; line-height: 1.45; }
.owner-text strong { display: block; font-size: 14.5px; }
.stage-note { position: absolute; right: 0; bottom: -30px; font-size: 12px; color: var(--muted); }

/* Trust row (hero) */
.trust-row { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row li::before { content: ""; width: 12px; height: 7px; border-left: 2.2px solid var(--ok); border-bottom: 2.2px solid var(--ok); transform: rotate(-45deg) translateY(-2px); }

/* Trusted-by strip */
.trusted { padding-block: 8px 72px; }
.trusted-line { text-align: center; font-weight: 700; font-size: 15px; letter-spacing: .01em; color: var(--muted); margin-bottom: 22px; }
.shop-wall { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.shop-wall li { font: 800 19px/1.2 var(--display); letter-spacing: -0.02em; color: #9aa2b8; white-space: nowrap; }
.shop-wall li:nth-child(3n+2) { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-style: italic; letter-spacing: 0; }
.shop-wall li:nth-child(4n+3) { font-family: var(--body); text-transform: uppercase; font-size: 15px; letter-spacing: .12em; font-weight: 700; }

/* Proof: call the demo line */
.proof { background: var(--white); border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.proof-call { display: grid; gap: 18px; justify-items: start; }
.demo-number { display: grid; gap: 4px; margin-top: 8px; padding: 18px 26px; border-radius: var(--r); background: var(--ink); color: var(--white); text-decoration: none; transition: transform .15s; }
.demo-number:hover { transform: translateY(-2px); }
.demo-label { font-size: 13px; font-weight: 600; color: #9fe3b8; }
.demo-digits { font: 800 clamp(28px, 3.6vw, 40px)/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.challenges { list-style: none; padding: 0; margin: 0; display: grid; }
.challenges li { display: grid; gap: 4px; padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line); position: relative; counter-increment: ch; }
.challenges li:first-child { border-top: 1px solid var(--line); }
.challenges li::before { content: counter(ch); position: absolute; left: 0; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font: 800 14px/1 var(--display); }
.challenges { counter-reset: ch; }
.challenge { font: 700 18px/1.35 var(--display); letter-spacing: -0.01em; }
.answer { color: var(--muted); font-size: 15.5px; }

/* Testimonials */
.t-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.t-card { margin: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); }
.t-result { justify-self: start; font-size: 13px; font-weight: 700; color: var(--sam-deep); background: var(--sam-tint); padding: 6px 11px; border-radius: 999px; }
.t-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.t-photo { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; color: var(--white); font: 800 16px/1 var(--display); background: var(--sam); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-who { display: grid; font-size: 14px; color: var(--muted); line-height: 1.35; }
.t-who b { color: var(--ink); font-size: 15px; }

.founding-tag { justify-self: start; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink) !important; background: var(--sun); padding: 6px 12px; border-radius: 999px; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.calc-copy { display: grid; gap: 18px; }
.shop-inline { color: var(--sam); }
.calc { display: grid; gap: 22px; }
.calc-row { display: grid; grid-template-columns: 1fr auto; row-gap: 10px; align-items: baseline; }
.calc-row label { font-weight: 600; }
.calc-row output { font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; }
.calc-row input { grid-column: 1 / -1; width: 100%; accent-color: var(--sam); height: 24px; }
.calc-result { display: grid; gap: 4px; padding: 26px 28px; border-radius: var(--r); background: var(--ink); color: var(--white); }
.calc-number { font: 800 clamp(48px, 6vw, 64px)/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--sun); }
.calc-label { color: #c3cadf; font-size: 16px; }
.calc-vs { margin-top: 10px; padding-top: 12px; border-top: 1px solid #2a3252; font-weight: 700; }
.calc-foot { font-size: 13.5px; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: none; }
.steps li { display: grid; gap: 12px; align-content: start; position: relative; }
.step-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); font: 800 20px/1 var(--display); margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* Features */
.features { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.feature { display: grid; gap: 10px; align-content: start; }
.feature svg { width: 28px; height: 28px; fill: none; stroke: var(--sam); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.pricing-grid > div:first-child { display: grid; gap: 18px; }
.guarantee { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; padding: 20px; border-radius: var(--r); background: var(--sam-tint); max-width: 46ch; }
.guarantee svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--sam); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.price { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.price-name { font-weight: 700; color: var(--sam); }
.price-tag { font: 800 64px/1 var(--display); letter-spacing: -0.03em; margin: 8px 0 22px; }
.price-tag span { font: 500 18px var(--body); color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.price li { display: flex; gap: 12px; align-items: baseline; }
.price li::before { content: ""; flex: none; width: 16px; height: 9px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg) translateY(-3px); }
.price-note { margin-top: 12px; text-align: center; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font: 700 19px/1.3 var(--display); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 4px; border-right: 2.5px solid var(--sam); border-bottom: 2.5px solid var(--sam); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 62ch; }

/* Trial */
.trial { background: var(--sam); color: var(--white); padding-block: 104px; }
.trial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 64px; align-items: center; }
.trial-copy { display: grid; gap: 22px; }
.trial-copy p { color: #dfe4ff; font-size: 18px; max-width: 44ch; }
.trial-copy [data-shop] { background: linear-gradient(transparent 64%, rgba(255, 210, 63, .9) 64%); color: var(--white); }
.form { background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 30px; display: grid; gap: 16px; box-shadow: var(--shadow-lg); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select { width: 100%; padding: 14px 15px; font: 16px var(--body); color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.field input:focus, .field select:focus { outline: none; border-color: var(--sam); box-shadow: 0 0 0 4px var(--sam-tint); }
.check { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.check input { margin-top: 3px; flex: none; accent-color: var(--sam); width: 16px; height: 16px; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* Footer */
.footer { background: var(--ink); color: #aeb6cc; padding-block: 48px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.logo-footer { color: var(--white); }
.logo-footer b { color: #8fa2ff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }
.legal { width: 100%; padding-top: 20px; border-top: 1px solid #262e48; }

/* Legal pages */
.legal-page { max-width: 760px; display: grid; gap: 14px; }
.legal-page h1 { font-size: 44px; margin-bottom: 4px; }
.legal-page h2 { font-size: 22px; margin-top: 18px; max-width: none; }
.legal-page ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }

/* Tablet / phone */
@media (max-width: 920px) {
  .section, .trial { padding-block: 72px; }
  .hero { padding-block: 32px 72px; }
  .t-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .proof-grid, .calc-grid, .pricing-grid, .faq-grid, .trial-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .phone-stage { justify-self: center; }
  .owner-text { left: -12px; right: 12px; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .shop-wall { gap: 10px 22px; }
  .shop-wall li { font-size: 16px; }
  .hero-ctas .btn { width: 100%; }
  .hello { font-size: 17px; }
  .phone { min-height: 440px; }
  .owner-text { left: 0; right: 0; }
  .price, .form { padding: 24px; }
}
