/* Shared styles for the app_website/<app>/ landing pages.
   Each page sets --accent / --accent-ink on <body> via inline style. */
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #1d1a15;
  --muted: #6b645a;
  --line: #e4ddd1;
  --shadow: 0 1px 2px rgba(29, 26, 21, .06), 0 12px 32px -12px rgba(29, 26, 21, .18);
  --radius: 20px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15130f;
    --surface: #1f1c17;
    --ink: #f2ede4;
    --muted: #a79f92;
    --line: #34302a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(16px, 15px + .25vw, 17.5px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.shell { width: min(1120px, 100% - 2 * clamp(16px, 4vw, 32px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .shell { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; min-width: 0; }
.top__brand img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.top__brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__back { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top__back:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--play { background: var(--accent); color: var(--accent-ink, #fff); box-shadow: 0 8px 20px -8px var(--accent); }
.btn--play svg { width: 20px; height: 20px; }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.hero .shell { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(36px, 5vw, 64px); align-items: center; position: relative; }
.hero__icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.hero__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text, var(--accent)); margin-bottom: 10px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); }
.hero__lede { font-size: clamp(17px, 16px + .3vw, 20px); color: var(--muted); margin: 18px 0 28px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 32px; padding: 0; list-style: none; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 20px; font-family: var(--serif); }
.facts span { font-size: 13px; color: var(--muted); }
.hero__phone { justify-self: center; width: min(300px, 80%); border-radius: 20px; box-shadow: var(--shadow); transform: rotate(2deg); overflow: hidden; }
.hero__phone img { width: 100%; height: auto; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 40em; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(28px, 4vw, 40px); }
.section__head p { color: var(--muted); margin-top: 12px; }

/* Screenshots */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 20px; margin: 0 -16px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shots img { flex: none; height: min(520px, 70vh); width: auto; border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--surface); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; padding: 0; list-style: none; margin: 0; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); }
.section:not(.section--alt) .feature { background: var(--surface); }
.feature__mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text, var(--accent)); font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15.5px; }

/* Steps / notes */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--accent); padding-top: 16px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-size: 28px; color: var(--accent-text, var(--accent)); display: block; margin-bottom: 6px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15.5px; }
.note { margin-top: 28px; padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent-text, var(--accent)); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* CTA band */
.cta { text-align: center; }
.cta .hero__icon { margin: 0 auto 20px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta p { color: var(--muted); margin-bottom: 24px; }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .shell { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 860px) {
  .hero .shell { grid-template-columns: 1fr; gap: 36px; }
  .hero__phone { width: min(260px, 70%); }
}
@media (max-width: 560px) {
  .top__back { display: none; }
  .btn { width: 100%; justify-content: center; }
  .shots img { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
