/* Clavio website. Same palette and type as the app. */
:root {
  --teal: #0f6e6b;
  --teal-deep: #005452;
  --teal-night: #003d3b;
  --teal-pressed: #0b5553;
  --mint: #e6f4f1;
  --signal: #2dd4bf;
  --bg: #f9f9ff;
  --surface: #ffffff;
  --surface-low: #f0f3ff;
  --ink: #111c2d;
  --ink-2: #3e4948;
  --ink-3: #6e7978;
  --line: #bec9c7;
  --line-soft: rgba(190, 201, 199, 0.5);
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --radius: 16px;
  --measure: 62ch;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: clip; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: var(--mono); }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
@media (max-width: 600px) { .wrap { width: calc(100% - 32px); } }

h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 20px; max-width: 13ch; }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 14px; max-width: 22ch; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
p { max-width: var(--measure); }
.sub { color: var(--ink-2); max-width: var(--measure); margin: 0 0 36px; font-size: 18px; }
section { padding: 80px 0; }
@media (max-width: 600px) { section { padding: 56px 0; } }

/* ---------- buttons and store links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 16px; border: 1.5px solid transparent; font-family: inherit; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-pressed); }
.btn-soft { background: var(--mint); color: var(--teal-deep); border-color: var(--line-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.store-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.store { display: inline-flex; align-items: center; height: 52px; padding: 0 18px; border-radius: 10px; background: #000; color: #fff; text-decoration: none; line-height: 1.1; min-width: 168px; border: 1px solid rgba(255, 255, 255, 0.35); }
.store-text { font-size: 18px; font-weight: 600; }
.store-text small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; }
.store.has-badge { padding: 0; background: none; border: 0; min-width: 0; }
.store.has-badge img { height: 52px; width: auto; }
.store-note { font-size: 14px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- header + hero: full-bleed deep teal ---------- */
.top, .hero { background: var(--teal-deep); box-shadow: 0 0 0 100vmax var(--teal-deep); clip-path: inset(0 -100vmax); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.nav { display: flex; gap: 24px; font-size: 15px; }
.nav a { text-decoration: none; color: rgba(255,255,255,.8); }
.nav a:hover { color: #fff; }
@media (max-width: 600px) { .nav { gap: 14px; font-size: 14px; } .nav .wide { display: none; } }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px 0 96px; position: relative; }
.hero::after { /* soft light behind the phone */ content: ''; position: absolute; right: -10%; top: 0; width: 70%; height: 100%; background: radial-gradient(closest-side, rgba(45,212,191,.22), transparent 70%); pointer-events: none; }
.hero h1 { color: #fff; }
.hero .lede { color: rgba(255,255,255,.86); font-size: 19px; max-width: 44ch; margin: 0 0 30px; }
.hero .btn-primary { background: #fff; color: var(--teal-deep); }
.hero .btn-primary:hover { background: var(--mint); }
.hero .btn-soft { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-soft:hover { background: rgba(255,255,255,.08); }
.hero .store-note { color: rgba(255,255,255,.7); }
.hero-copy { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 24px 0 64px; gap: 48px; } }
@media (max-width: 600px) { .hero .lede { font-size: 17px; } .hero .cta-row .btn { flex: 1 1 100%; justify-content: center; } }

/* the scene: paper behind, phone in front */
.scene { position: relative; height: 600px; z-index: 1; }
.scene-sheet { position: absolute; right: 0; top: 30px; width: 78%; border-radius: 6px; transform: rotate(4deg); box-shadow: 0 30px 80px -24px rgba(0,0,0,.55); }
.phone { position: absolute; left: 4%; top: 0; width: 282px; height: 584px; border-radius: 44px; background: #0b1220; padding: 10px; box-shadow: 0 40px 90px -20px rgba(0,0,0,.6), inset 0 0 0 2px #2a3446; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 20px; background: #0b1220; z-index: 2; }
.phone-screen { height: 100%; border-radius: 35px; background: var(--bg); overflow: hidden; padding: 50px 14px 14px; font-size: 11px; color: var(--ink); display: flex; flex-direction: column; gap: 7px; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.ph-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.ph-cancel { color: var(--teal-deep); font-weight: 500; }
.ph-strip { display: flex; justify-content: space-between; align-items: center; background: var(--surface-low); border: 1px solid var(--line-soft); border-radius: 9px; padding: 7px 9px; font-size: 11px; }
.ph-tag { background: var(--mint); color: var(--teal-deep); border-radius: 6px; padding: 2px 6px; font-size: 9px; font-weight: 600; }
.ph-label { font-weight: 600; color: var(--ink-2); margin-top: 3px; font-size: 10.5px; display: flex; justify-content: space-between; }
.ph-label em { font-style: normal; color: var(--bad); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ph-tile { border: 1px solid var(--line); border-radius: 10px; padding: 9px; background: #fff; display: grid; gap: 1px; }
.ph-tile small { color: var(--ink-3); font-size: 9.5px; }
.ph-tile.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.ph-tile.on small { color: rgba(255,255,255,.8); }
.ph-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ph-chips span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; background: #fff; font-weight: 600; font-size: 10px; display: inline-flex; align-items: center; gap: 5px; }
.ph-chips span.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.ph-chips u { text-decoration: none; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(255,255,255,.25); font-size: 8px; }
.ph-chips span:not(.on) u { background: var(--surface-low); }
.ph-result { display: flex; gap: 7px; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.ph-result i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-low); color: var(--ink-3); font-size: 10px; flex: none; }
.ph-result small { display: block; color: var(--ink-3); font-size: 9px; }
.ph-result.pass { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.ph-result.pass i { background: var(--ok); color: #fff; }
.ph-result.pass small { color: var(--ok); }
.ph-save { margin-top: auto; background: var(--teal); color: #fff; text-align: center; font-weight: 600; font-size: 13px; padding: 12px; border-radius: 12px; }

.toast { position: absolute; right: 2%; bottom: 40px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 12px 16px 12px 12px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.45); animation: rise .9s .35s cubic-bezier(.2,.8,.2,1) both; }
.toast i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 700; }
.toast b { display: block; font-size: 14px; }
.toast small { color: var(--ink-3); font-size: 12px; }

@media (max-width: 900px) {
  .scene { height: 560px; max-width: 520px; width: 100%; margin-inline: auto; }
  .scene-sheet { width: 72%; }
}
@media (max-width: 480px) {
  .scene { height: 540px; }
  .phone { left: 50%; margin-left: -141px; }
  .scene-sheet { width: 74%; right: 0; top: 60px; }
  .toast { right: auto; left: 0; bottom: 12px; }
}

/* ---------- records ---------- */
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.record { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.record p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 10px; }
.record small { margin-top: auto; color: var(--teal-deep); font-weight: 600; font-size: 13.5px; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); display: grid; place-items: center; margin-bottom: 10px; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.warn { background: var(--warn-soft); }
.ico.warn svg { stroke: var(--warn); }
@media (max-width: 900px) { .records { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .records { grid-template-columns: 1fr; } }

/* ---------- a day with Clavio: a real sequence, so numbered ---------- */
.band-soft { background: var(--surface); border-block: 1px solid var(--line-soft); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; }
.steps li { counter-increment: step; position: relative; }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; margin-right: 10px; vertical-align: 2px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }
.mini { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; display: grid; gap: 8px; min-height: 138px; align-content: center; }
.mini-row, .notif, .file { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.mini-row > span:nth-child(2), .notif > span, .file > span:nth-child(2) { flex: 1; min-width: 0; }
.mini-row b, .notif b, .file b { display: block; font-size: 13.5px; }
.mini-row small, .notif small, .file small { color: var(--ink-3); font-size: 12px; }
.dim { opacity: .55; }
.pill { font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.ini { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-low); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.notif img { width: 28px; height: 28px; border-radius: 7px; }
.pdf { background: var(--bad); color: #fff; font-weight: 800; font-size: 10px; padding: 8px 6px; border-radius: 6px; }
.go { color: var(--teal-deep); font-weight: 600; font-size: 13px; }
.hashline { font-size: 11px; color: var(--ink-3); padding-left: 4px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 40px; max-width: 560px; } }

/* ---------- sample pack ---------- */
.pack { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .pack { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.facts li::before { content: '✓'; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--teal-deep); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }
.stack { position: relative; margin: 0; padding: 0 6% 8% 0; }
.stack img { border-radius: 6px; border: 1px solid var(--line-soft); background: #fff; }
.stack .back { position: absolute; top: 6%; left: 10%; width: 86%; transform: rotate(5deg); box-shadow: 0 20px 50px -20px rgba(0, 84, 82, .35); }
.stack .front { position: relative; width: 86%; transform: rotate(-2deg); box-shadow: 0 30px 70px -24px rgba(0, 84, 82, .45); }

/* ---------- truths ---------- */
.truths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-top: 28px; }
.truths > div { padding: 20px 20px 0 0; }
.truths b { display: block; font-size: 17px; margin-bottom: 6px; }
.truths p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) { .truths { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
@media (max-width: 520px) { .truths { grid-template-columns: 1fr; } }

/* ---------- closing band ---------- */
.closing { background: var(--teal-deep); color: #fff; padding: 72px 0; }
.closing-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.closing h2 { color: #fff; }
.closing p { color: rgba(255,255,255,.85); margin: 0; font-size: 18px; }
@media (max-width: 760px) { .closing-inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
footer { padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---------- legal pages ---------- */
.legal { padding: 32px 0 72px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); max-width: none; }
.legal .meta { color: var(--ink-3); font-size: 15px; margin: -6px 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { max-width: 70ch; color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .fill { background: var(--bad-soft); color: var(--bad); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.legal table { border-collapse: collapse; width: 100%; max-width: 820px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.legal th { color: var(--ink-3); font-weight: 600; }

/* hero actions: store badges are the main action, the sample is a quiet link under them */
.hero .store-row { margin-top: 4px; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 16px; text-decoration: none; }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(3px); }
.hero .text-link { color: #fff; border-bottom: 1.5px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.hero .text-link:hover { border-bottom-color: #fff; }
