/* ---------- shared section rhythm ---------- */
section.block { padding: clamp(88px, 9.5vw, 132px) 0; }
section.tint { background: var(--bg-secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.7rem); letter-spacing: -0.025em; line-height: 1.1; font-weight: 700; }
h3 { font-family: var(--font-display); }
.lede { color: var(--text-secondary); max-width: 56ch; margin-top: 16px; font-size: 1.07rem; }

/* ---------- photo ---------- */
.photo { padding: 0; }
.photowrap { overflow: hidden; position: relative; }
.photochip { position: absolute; left: 28px; bottom: 28px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(14,14,18,0.72); color: #F2F2F0;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 11px; padding: 11px 16px;
  font-size: 0.86rem; font-weight: 600;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.photochip i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); flex: none; }
.photochip .mono2 { font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #A9B7FF; }
@media (prefers-reduced-motion: no-preference) {
  .photochip { animation: chipdrift 7s ease-in-out infinite alternate; }
  .photochip i { animation: livedot2 2.2s ease-in-out infinite; }
  @keyframes chipdrift { from { transform: translateY(-3px); } to { transform: translateY(4px); } }
  @keyframes livedot2 { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}
@media (max-width: 640px) { .photochip { left: 16px; bottom: 16px; font-size: 0.78rem; padding: 9px 13px; } }
.photo img { will-change: transform; width: 100%; height: min(64vh, 600px); object-fit: cover; }
.photo .caption { padding: 56px 0 0; }
.factrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; border-top: 1px solid var(--border); }
.factrow div { padding-top: 18px; font-size: 0.95rem; color: var(--text-secondary); }
.factrow strong { color: var(--text-primary); display: block; font-size: 1.02rem; margin-bottom: 4px; }
@media (max-width: 640px) { .factrow { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- trust strip ---------- */
.truststrip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.truststrip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; }
.truststrip .t { display: flex; align-items: flex-start; gap: 11px; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.45; }
.truststrip .t svg { flex: none; width: 17px; height: 17px; stroke: var(--accent); margin-top: 2px; }
.truststrip .t strong { color: var(--text-primary); display: block; font-size: 0.9rem; }
@media (max-width: 860px) { .truststrip .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .truststrip .wrap { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- steps ---------- */
.steps { margin-top: 44px; border-top: 1px solid var(--border); }
.step { display: grid; grid-template-columns: 86px 1fr 2fr; gap: 24px; padding: 32px 0 32px 18px; border-bottom: 1px solid var(--border); align-items: baseline;
  position: relative; transition: background 0.2s ease; }
.step::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 2px;
  border-radius: 1px; background: var(--accent); opacity: 0.5; transform: scaleY(0); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .in .step::before { transition: transform 0.7s var(--ease-standard) calc(var(--d, 0ms) + 260ms); transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .step::before { transform: scaleY(1); } }
.step .idx { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.step .day { display: inline-block; margin-top: 8px; font-size: 0.64rem; font-weight: 650; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent); border-radius: 999px; padding: 2.5px 9px;
  white-space: nowrap; }
.step h3 { font-size: 1.22rem; letter-spacing: -0.02em; font-weight: 650; }
.step p { color: var(--text-secondary); font-size: 1rem; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.compare .col { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px; background: var(--surface); position: relative; }
.compare .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 16px; }
.compare .tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }
.compare .win .tag i { background: var(--accent); }
.compare .win { border-color: color-mix(in srgb, var(--accent) 34%, var(--border)); box-shadow: var(--shadow-sm); }
.compare h3 { font-size: 1.08rem; font-weight: 650; margin-bottom: 18px; letter-spacing: -0.01em; }

/* animated before/after timelines */
.tl { list-style: none; position: relative; }
.tl li { position: relative; padding: 0 0 22px 26px; color: var(--text-secondary); font-size: 0.96rem; line-height: 1.5; }
.tl li:last-child { padding-bottom: 0; }
.tl li strong { color: var(--text-primary); font-weight: 600; }
.tl li i {
  position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--ember); background: var(--surface); box-sizing: border-box;
}
.tl li::before {
  content: ""; position: absolute; left: 5px; top: 18px; bottom: 3px; width: 1.5px;
  background: var(--border); transform-origin: top;
}
.tl li:last-child::before { display: none; }
.win .tl li i { border-color: var(--accent); }
.win .tl li:last-child i { background: var(--accent); }
.win .tl li:last-child strong { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .tl li { opacity: 0; transform: translateY(10px);
    transition: opacity var(--dur-slow) var(--ease-standard), transform var(--dur-slow) var(--ease-standard);
    transition-delay: calc(var(--tld, 0) * 260ms); }
  .tl li::before { transform: scaleY(0);
    transition: transform var(--dur-slow) var(--ease-standard);
    transition-delay: calc(var(--tld, 0) * 260ms + 160ms); }
  .in .tl li, .in .tl li::before { opacity: 1; transform: none; }
  .tl li:nth-child(1) { --tld: 0; } .tl li:nth-child(2) { --tld: 1; }
  .tl li:nth-child(3) { --tld: 2; } .tl li:nth-child(4) { --tld: 3; }
}

/* ---------- live dashboard ---------- */
.demowrap { position: relative; }
.demochip { position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 14px; font-size: 0.8rem; font-weight: 600; color: var(--text-primary);
  box-shadow: var(--shadow-md); white-space: nowrap; }
.demochip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.demochip.d1 { top: 76px; left: -16px; } .demochip.d1 i { background: var(--success); }
.demochip.d2 { bottom: 42px; right: -16px; } .demochip.d2 i { background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .demochip { animation: chipdrift 8s ease-in-out infinite alternate; }
  .demochip.d2 { animation-delay: 1.4s; }
}
@media (max-width: 860px) { .demochip { display: none; } }
.demoframe {
  margin-top: 44px; border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--text-primary) 3%, transparent), var(--shadow-md);
}
.demochrome { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); }
.demochrome .dots { display: flex; gap: 6px; }
.demochrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.demochrome .url {
  flex: 1; max-width: 340px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
  font-size: 0.76rem; color: var(--text-secondary); padding: 4px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demoframe iframe { width: 100%; height: 620px; border: 0; pointer-events: none; display: block; background: #fff; }
.demonote { margin-top: 16px; color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- business types ---------- */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.biz .b { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 26px; position: relative; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .biz .b::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 70%);
    transition: opacity var(--dur-med) ease;
  }
  .biz .b:hover::after { opacity: 1; }
}
.biz .b h3 { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }
.biz .b p { color: var(--text-secondary); font-size: 0.93rem; margin-top: 7px; }
.biz .b .n { font-weight: 700; color: var(--accent); }
@media (max-width: 860px) { .biz { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .biz { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--border); counter-reset: faq; }
.faq details { border-bottom: 1px solid var(--border); counter-increment: faq; }
.faq summary::before { content: counter(faq, decimal-leading-zero);
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary); opacity: 0.7; flex: none; }
.faq .a { padding-left: 44px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 24px 0; font-weight: 600; font-size: 1.06rem;
  display: flex; justify-content: flex-start; align-items: center; gap: 20px;
  transition: color 0.16s ease;
}
.faq summary::after { margin-left: auto; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 26px; color: var(--text-secondary); max-width: 64ch; }

/* ---------- signup ---------- */
.ctarail { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; height: 20px; }
.ctarail .cr-line { width: 120px; height: 1.5px; background: var(--border); position: relative; overflow: hidden; border-radius: 1px; }
.ctarail .cr-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-101%); }
.ctarail .cr-check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
  opacity: 0; transform: scale(0.5);
}
.ctarail .cr-lab { font-size: 0.72rem; color: var(--text-secondary); opacity: 0; transform: translateX(-6px); }
@media (prefers-reduced-motion: no-preference) {
  .in .ctarail .cr-line::after, .ctarail.in .cr-line::after { transition: transform 0.9s var(--ease-standard) 0.2s; transform: none; }
  .in .ctarail .cr-check, .ctarail.in .cr-check { transition: opacity var(--dur-fast) ease 1.05s, transform var(--dur-med) var(--ease-spring) 1.05s; opacity: 1; transform: none; }
  .in .ctarail .cr-lab, .ctarail.in .cr-lab { transition: opacity var(--dur-med) ease 1.2s, transform var(--dur-med) var(--ease-standard) 1.2s; opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ctarail .cr-line::after { transform: none; }
  .ctarail .cr-check, .ctarail .cr-lab { opacity: 1; transform: none; }
}
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.signup form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--text-primary) 3%, transparent), var(--shadow-md); }
.signup label { display: block; font-size: 0.85rem; font-weight: 600; margin: 18px 0 8px; }
.signup label:first-of-type { margin-top: 0; }
.signup input, .signup select {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-primary); color: var(--text-primary);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.signup input:focus, .signup select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.signup .btn { width: 100%; margin-top: 26px; }
.formerr { color: #C0392B; font-size: 0.9rem; min-height: 1.3em; margin-top: 12px; }
.checklist { margin-top: 26px; display: grid; gap: 14px; }
.checklist div { padding-left: 18px; border-left: 2px solid var(--accent); color: var(--text-secondary); font-size: 0.97rem; }
.checklist strong { color: var(--text-primary); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--border); background: var(--bg-primary); padding: 15px 0; }
.ticker .tk { display: flex; gap: 56px; width: max-content;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.76rem; color: var(--text-secondary); }
.ticker .tk span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker .tk i { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.ticker .tk i.s { background: var(--success); }
.ticker .tk i.a { background: var(--accent); }
.ticker .tk i.e { background: var(--ember); }
@media (prefers-reduced-motion: no-preference) {
  .ticker .tk { animation: tkmove 46s linear infinite; }
  @keyframes tkmove { to { transform: translateX(-50%); } }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 0 64px; background: var(--bg-secondary); }
.fbrand { font-family: var(--font-display); font-size: clamp(2.1rem, 5.4vw, 3.7rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 52px; }
.fbrand span { background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 94%; background-size: 100% 0.07em; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; width: 100%; }
footer p { color: var(--text-secondary); font-size: 0.88rem; max-width: 52ch; }
footer h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-secondary); margin-bottom: 14px; }
footer .cols a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.92rem; padding: 4px 0; transition: color 0.15s ease; }
footer .cols a:hover { color: var(--text-primary); }
footer .legallinks { display: flex; gap: 22px; flex-wrap: wrap; }
footer .legallinks a { color: var(--text-secondary); font-size: 0.88rem; text-decoration: none; }
footer .legallinks a:hover { color: var(--text-primary); }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- motion system ---------- */
section[id], header[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal, .sg {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
    transition-delay: var(--d, 0ms);
  }
  .reveal.in, .in > .sg, .in .sg { opacity: 1; transform: none; }

  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .hero .eyebrow  { animation: rise 0.7s cubic-bezier(0.16,1,0.3,1) 0.02s backwards; }
  .hero .eyebrow  { animation: rise 0.7s var(--ease-standard) 0.02s backwards; }
  .hero h1        { animation: rise 0.85s var(--ease-standard) 0.08s backwards; }
  .hero .sub      { animation: rise 0.9s var(--ease-standard) 0.18s backwards; }
  .hero .ctas     { animation: rise 0.9s var(--ease-standard) 0.28s backwards; }
  .hero .herovis  { animation: rise 1.0s var(--ease-standard) 0.38s backwards; }

  .faq summary::after { transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); }
  .faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
  @keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .faq details[open] .a { animation: faqIn 0.4s cubic-bezier(0.16,1,0.3,1); }

  .btn-primary:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 32%, transparent); transform: translateY(-1px); }
  .biz .b, .compare .col { transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), box-shadow 0.22s ease, border-color 0.22s ease; }
  .biz .b:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
}

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; }
.legal .updated { color: var(--text-secondary); margin: 14px 0 40px; font-size: 0.92rem; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--text-secondary); margin-bottom: 12px; font-size: 1rem; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal strong { color: var(--text-primary); }
.legal .notice { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 18px; margin: 28px 0; background: var(--surface); }
.legal .notice p { margin: 0; font-size: 0.95rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- account / walkthrough (shared) ---------- */
.howto { margin-top: 34px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.howto h2 { font-size: 1.2rem; }
.howto ol { margin: 16px 0 0 20px; }
.howto li { color: var(--text-secondary); padding: 7px 0; }
.howto li strong { color: var(--text-primary); }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-secondary); }
.tour { position: fixed; inset: 0; background: rgba(14,14,17,0.55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tour .card { max-width: 420px; }
.tour h2 { font-size: 1.3rem; margin-bottom: 6px; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 76px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 52px; }
  .hero .sub { max-width: none; }
  .herovis { margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; }
  .carddock { margin: 0 auto; }
  .step { grid-template-columns: 48px 1fr; }
  .step p { grid-column: 2; }
  .compare { grid-template-columns: 1fr; }
  .signup { grid-template-columns: 1fr; gap: 40px; }
  section.block { padding: 72px 0; }
  .navlinks { gap: 18px; }
  .navlinks a.navanchor { display: none; }
  .demoframe iframe { height: 520px; }
  .photo .caption { padding-top: 44px; }
}
