/* The public website (see src/site.js). Same colours and font as the admin website. */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --text: #0f1222;
  --muted: #646b80;
  --border: #e6e8f0;
  --accent: #176c58;
  --accent-2: #23806b;
  --accent-soft: #e9f3ed;
  --ok-bg: #e7f8ef; --ok: #127a46;
  --warn-bg: #fff4e0; --warn: #9a5b00;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .14);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f17; --surface: #151826; --text: #eceef6; --muted: #9aa0b6; --border: #262b40;
    --accent: #8cd6b1; --accent-2: #a0e3c2; --accent-soft: #234638;
    --ok-bg: #11301f; --ok: #6fdc9f; --warn-bg: #3a2a0c; --warn: #ffc163;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.02em; font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
section { padding-top: 88px; scroll-margin-top: 20px; }

/* ---------- top bar ---------- */
.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(--border); }
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 32px; height: 32px; border-radius: 10px; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: linear-gradient(135deg, #23806b, #176c58); box-shadow: 0 4px 12px rgba(23, 108, 88, .2);
}
.links { display: flex; gap: 22px; font-size: 15px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--text); text-decoration: none; }
.side { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
.login { color: var(--text); font-weight: 500; white-space: nowrap; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 3px 7px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 600; }
.langs a:hover { color: var(--text); text-decoration: none; }
.langs a[aria-current] { background: var(--accent-soft); color: var(--accent); }

.button {
  display: inline-block; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 600;
  padding: 13px 22px; border-radius: 12px; box-shadow: 0 6px 18px rgba(23, 108, 88, .2); white-space: nowrap;
}
.button:hover { text-decoration: none; filter: brightness(1.07); }
.button.small { padding: 8px 14px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.button.quiet { background: none; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 72px; }
.lead { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* The picture next to the pitch: a phone that just scanned, and the "on site now" list it leads to. */
.scene { position: relative; min-height: 380px; }
.phone {
  width: 218px; padding: 22px 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 30px;
  box-shadow: var(--shadow-lg); text-align: center; position: relative; z-index: 1;
}
.qr { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--border); }
.hint { font-size: 13px; color: var(--muted); margin: 12px 0 10px; line-height: 1.35; }
.done { background: var(--ok-bg); color: var(--ok); font-weight: 600; font-size: 14px; border-radius: 10px; padding: 8px 6px; }
.tick { font-weight: 700; }
.live {
  position: absolute; right: 0; top: 96px; width: min(330px, 78%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px 18px;
}
.live-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--border); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.name { font-weight: 500; white-space: nowrap; }
.time { margin-left: auto; color: var(--muted); white-space: nowrap; font-size: 13px; }
.late { background: var(--warn-bg); color: var(--warn); font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 1px 8px; white-space: nowrap; }

/* ---------- sections ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.steps p, .card p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }

.sub { color: var(--muted); margin: -14px 0 26px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.middle { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin-top: 8px; line-height: 1.2; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .limit { color: var(--text); font-weight: 600; margin-top: 2px; }
.plan ul { list-style: none; margin: 16px 0 22px; padding: 0; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.plan li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 8px; }
.plan .button { margin-top: auto; text-align: center; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--muted); font-weight: 500; font-size: 20px; line-height: 1.2; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); padding-bottom: 18px; font-size: 15px; }

.closing { text-align: center; padding-bottom: 12px; }
.closing h2 { margin-bottom: 10px; }
.closing p { color: var(--muted); margin-bottom: 24px; }
.foot {
  margin-top: 88px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.foot b { color: var(--text); }
.foot .langs a { font-weight: 500; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .steps, .grid, .plans { grid-template-columns: 1fr; }
  section { padding-top: 64px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bar { gap: 12px; }
  .side { gap: 10px; }
  .login { display: none; }
  .scene { min-height: 350px; }
  .live { top: 150px; width: 82%; }
}

/* Photography and refined landing-page layout. */
.preparation { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 20px; margin: 20px 0; }
.preparation h2 { font-size: 22px; margin: 0 0 10px; max-width: none; }
.preparation p { font-size: 14px; line-height: 1.65; margin: 0 0 12px; }
.preparation a, .news-card a { color: var(--accent); font-weight: 600; font-size: 14px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; }
.news-card a { margin-top: auto; padding-top: 14px; }
.news-source { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 0; }
@media(max-width:900px) { .news-grid { grid-template-columns: 1fr; } }
.hero-benefits { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; font-size: 15px; color: var(--text); }
.hero-benefits li { display: flex; gap: 10px; align-items: baseline; }
.hero-benefits span { color: var(--accent); font-weight: 700; }
.entry-price { font-weight: 600; color: var(--accent); line-height: 1.6; }
.entry-price a { display: block; font-size: 13px; font-weight: 400; margin-top: 8px; }
.legal-update { padding: 28px; margin: 24px 0; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; background: var(--surface); }
.legal-update h3 { margin-top: 0; }
.legal-update p { max-width: 85ch; line-height: 1.75; }
.source-links { font-size: 13px; overflow-wrap: anywhere; }
.source-links a { color: var(--accent); }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.integration-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.integration-status.available { background: var(--ok-bg); color: var(--ok); }
@media(max-width:600px) { .integration-grid { grid-template-columns: 1fr; } .legal-update { padding: 20px; } }
:root { color-scheme: light; --bg: #ffffff; --surface: #fff; --text: #182928; --muted: #61716c; --border: #e2e8e2; --accent: #176c58; --accent-2: #23806b; --accent-soft: #e9f3ed; }
.wrap { max-width: 1200px; }
.bar { height: 80px; gap: 20px; }
.links { gap: 16px; font-size: 14px; }
.side { gap: 12px; }
.logo { background: #176c58; box-shadow: none; border-radius: 8px; }
.hero { grid-template-columns: 1fr 1.12fr; gap: 54px; padding-top: 64px; }
h1 { font-size: clamp(38px,4.6vw,62px); line-height: 1.07; letter-spacing: -.045em; max-width: 10ch; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .13em; color: var(--accent); margin-bottom: 20px; }
.lead { font-size: 18px; line-height: 1.75; }
.button { background: var(--accent); box-shadow: none; border-radius: 8px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: 480px; object-fit: cover; object-position: 48% center; border-radius: 22px; display: block; }
.hero-photo figcaption { position: absolute; bottom: 22px; left: 22px; background: #fff; color: #176c58; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px #18292818; }
.workplace-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.workplace { margin: 0; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.workplace img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.workplace figcaption { padding: 16px 20px; font-weight: 600; }
h2 { max-width: 25ch; font-size: clamp(26px,3vw,36px); line-height: 1.25; }
.sub { max-width: 65ch; margin-top: -8px; }
.steps li,.card { padding: 28px; box-shadow: none; }
.closing { margin-top: 80px; padding-top: 48px; padding-bottom: 48px; background: var(--accent-soft); border-radius: 24px; }
.closing h2 { margin-left: auto; margin-right: auto; }
section { scroll-margin-top: 105px; }
@media(max-width:1100px) { .links { display:none; } }
@media(max-width:900px) { .hero { grid-template-columns:1fr; gap:32px; } h1 { max-width:16ch; } .hero-photo img { height:420px; } .workplace-grid { gap:14px; } }
@media(max-width:600px) { .bar { height:auto; min-height:72px; flex-wrap:wrap; padding-top:12px; padding-bottom:12px; } .brand { font-size:14px; } .side { gap:6px; } .side .button { display:none; } .hero { padding-top:36px; } .hero-photo img { height:300px; } .hero-photo figcaption { left:14px; bottom:14px; font-size:12px; } .workplace-grid { grid-template-columns:1fr; } .closing { border-radius:0; } .foot { margin-top:50px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

:root, :root[data-theme="light"] { color-scheme:light; --bg:#ffffff; --surface:#fff; --surface-2:#f1f4ef; --text:#182928; --muted:#61716c; --border:#e2e8e2; --accent:#176c58; --accent-2:#23806b; --accent-soft:#e9f3ed; --accent-text:#fff; --ok-bg:#e7f8ef; --ok:#127a46; --warn-bg:#fff4e0; --warn:#9a5b00; --bad-bg:#fdeceb; --bad:#c0362c; --blue-bg:#dbe9ff; --blue:#1d4ed8; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#101b18; --surface:#182722; --surface-2:#20342c; --text:#eef5ef; --muted:#a8bcb1; --border:#31493d; --accent:#8cd6b1; --accent-2:#a0e3c2; --accent-soft:#234638; --accent-text:#10251c; --ok-bg:#183b28; --ok:#94e0ac; --warn-bg:#40351b; --warn:#f3cf82; --bad-bg:#402420; --bad:#ffb5a6; --blue-bg:#1c3443; --blue:#9ed8fc; }
.theme-toggle { display:inline-grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid var(--border); border-radius:50%; background:var(--surface); color:var(--text); font-size:20px; cursor:pointer; flex-shrink:0; }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }

.button { color:var(--accent-text); } .button.quiet { color:var(--accent); } .workplace { background:var(--surface); } .hero-photo figcaption { background:var(--surface);color:var(--accent); } .hero-slider { min-width:0;position:relative; } .slides { position:relative;height:480px; } .slide { position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .7s ease,visibility .7s; } .slide.active { opacity:1;visibility:visible; } .slider-controls { display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px;color:var(--muted);font-size:13px; } .slider-controls button { background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:50%;width:36px;height:36px;cursor:pointer; } .reveal { opacity:0;transform:translateY(22px);transition:opacity .7s,transform .7s; } .revealed { opacity:1;transform:none; } .button,.card,.workplace { transition:transform .2s,box-shadow .2s; } .button:hover { transform:translateY(-2px); } .workplace:hover { transform:translateY(-4px); } @media(max-width:900px){.slides{height:420px;}} @media(max-width:600px){.slides{height:300px;}} @media(prefers-reduced-motion:reduce){.slide,.reveal,.button,.workplace{transition:none;transform:none;}.reveal{opacity:1;}}

section.wrap:not(.hero):not(.closing) { padding-top:88px; } @media(max-width:600px){section.wrap:not(.hero):not(.closing){padding-top:56px;}}
.product-preview { padding-top:76px; }
.product-preview > .sub { max-width:700px; }
.product-choices { display:flex; flex-wrap:wrap; gap:10px; margin:26px 0 18px; }
.product-choices button { display:flex; align-items:center; gap:10px; padding:12px 18px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--muted); font:inherit; font-size:14px; font-weight:600; cursor:pointer; transition:background .2s,color .2s,border-color .2s; }
.product-choices button span { font-size:12px; opacity:.65; }
.product-choices button[aria-pressed="true"] { background:var(--accent-soft); color:var(--accent); border-color:var(--accent); }
.product-choices button:hover { color:var(--accent); }
.product-frame { border:1px solid var(--border); border-radius:18px; overflow:hidden; background:var(--surface); box-shadow:0 16px 45px rgba(23,70,55,.08); }
.product-shot { margin:0; }
.product-shot[hidden] { display:none; }
.product-shot > a { display:block; background:#fff; }
.product-shot img { display:block; width:100%; height:auto; }
.product-shot figcaption { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 26px; border-top:1px solid var(--border); }
.product-shot h3 { font-size:17px; margin:0 0 6px; }
.product-shot p { margin:0; font-size:14px; color:var(--muted); }
.product-shot figcaption > a { flex-shrink:0; font-size:13px; color:var(--accent); }
@media(max-width:700px) { .product-choices { flex-direction:column; } .product-shot figcaption { align-items:flex-start; flex-direction:column; gap:12px; padding:18px; } .product-frame { border-radius:12px; } }
.app-download { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.app-copy h2 { max-width:460px; }
.app-copy .sub { max-width:480px; }
.app-steps { counter-reset:app-step; list-style:none; padding:0; margin:24px 0; display:grid; gap:16px; }
.app-steps li { counter-increment:app-step; display:flex; align-items:center; gap:12px; font-size:15px; line-height:1.6; color:var(--text); }
.app-steps li::before { content:counter(app-step); width:28px; height:28px; flex-shrink:0; display:grid; place-items:center; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-size:12px; font-weight:700; }
.store-badges { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.store-badge { display:flex; align-items:center; gap:12px; padding:12px 18px; border-radius:12px; background:var(--text); color:var(--surface); min-width:174px; text-decoration:none; }
.store-badge:hover { text-decoration:none; }
.store-badge svg { width:27px; height:30px; flex-shrink:0; }
.store-badge small { display:block; font-size:10px; line-height:1.4; }
.store-badge strong { display:block; font-size:20px; line-height:1.4; letter-spacing:-.3px; }
.store-pending { background:var(--surface-2); color:var(--muted); border:1px solid var(--border); }
.app-availability { max-width:440px; font-size:13px; line-height:1.65; color:var(--muted); }
.app-trial { font-size:14px; font-weight:600; color:var(--accent); }
.app-screens { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; max-width:540px; }
.app-screens figure { margin:0; min-width:0; }
.app-screens figure:nth-child(2) { padding-top:45px; }
.phone-frame { padding:6px; border-radius:30px; background:#182928; box-shadow:0 18px 40px rgba(18,49,37,.15); overflow:hidden; }
.phone-frame img { width:100%; height:auto; display:block; border-radius:25px; }
.app-screens figcaption { text-align:center; font-size:13px; color:var(--muted); margin-top:15px; }
.app-screens > .note { grid-column:1/-1; text-align:center; margin:0; font-size:12px; }
@media(max-width:1000px) { .app-download { gap:30px; } .links { gap:12px; font-size:13px; } }
@media(max-width:800px) { .app-download { grid-template-columns:1fr; } .app-screens { width:100%; margin:16px auto 0; } }
@media(max-width:420px) { .app-screens { gap:12px; } .phone-frame { padding:4px; border-radius:22px; } .phone-frame img { border-radius:18px; } .store-badge { padding:10px 13px; min-width:150px; } .store-badge strong { font-size:18px; } }
.brand { white-space:nowrap; flex-shrink:0; }
.links a { white-space:nowrap; }
@media(max-width:1300px) { .links { gap:12px; font-size:13px; } .links a[href="#faq"] { display:none; } }
.trial-summary { padding:18px 22px; border:1px solid var(--border); border-radius:12px; background:var(--accent-soft); font-size:14px; line-height:1.7; color:var(--text); }

.plan li.excluded::before { content:"–"; color:var(--muted); }
