/* CardCheck — site styles. Plain CSS, no build step.
   Colours are tokens on :root (light) and overridden for dark mode below. */

:root {
  color-scheme: light dark;

  --bg: #f5f8fd;
  --bg-2: #eaf1fb;
  --bg-elev: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(16, 36, 72, 0.09);
  --border-strong: rgba(16, 36, 72, 0.16);

  --text: #0c1830;
  --text-2: #3d4b63;
  --text-3: #5e6b81;

  --blue: #1a73e8;
  --blue-ink: #0a5fd0;
  --blue-2: #5aa8ff;
  --green: #1f8a4c;
  --green-bg: rgba(34, 163, 90, 0.10);
  --blue-grad: linear-gradient(95deg, #0a5fd0 0%, #1a73e8 45%, #3b9bff 100%);

  --btn-bg: #1a73e8;
  --btn-text: #ffffff;
  --btn-bg-hover: #0f64d6;
  --ghost-bg: rgba(255, 255, 255, 0.8);

  --glow-1: rgba(90, 168, 255, 0.35);
  --glow-2: rgba(34, 163, 90, 0.14);
  --shadow-window: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 90px -30px rgba(16, 40, 90, 0.38), 0 10px 30px -14px rgba(16, 40, 90, 0.22);
  --shadow-card: 0 1px 2px rgba(16, 40, 90, 0.05), 0 14px 36px -20px rgba(16, 40, 90, 0.26);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-2: #0f1a2e;
    --bg-elev: #141f34;
    --surface: rgba(22, 34, 56, 0.7);
    --border: rgba(170, 200, 255, 0.10);
    --border-strong: rgba(170, 200, 255, 0.18);
    --text: #eef3fb;
    --text-2: #b5c1d4;
    --text-3: #8c99ae;
    --blue: #3d8dff;
    --blue-ink: #6fb0ff;
    --green: #4fd287;
    --green-bg: rgba(79, 210, 135, 0.10);
    --blue-grad: linear-gradient(95deg, #6fb0ff 0%, #3d8dff 50%, #7cc4ff 100%);
    --btn-bg: #2f86ff;
    --btn-bg-hover: #4a96ff;
    --ghost-bg: rgba(255, 255, 255, 0.06);
    --glow-1: rgba(47, 134, 255, 0.28);
    --glow-2: rgba(79, 210, 135, 0.10);
    --shadow-window: 0 0 0 1px rgba(170, 200, 255, 0.08), 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 10px 30px -14px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 0 0 1px rgba(170, 200, 255, 0.06), 0 14px 36px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.86em var(--mono); background: var(--bg-2); padding: 0.1em 0.38em; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p, li, summary, figcaption { text-wrap: pretty; }   /* no orphan words */
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-elev); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap-wide { width: min(1240px, 100% - 32px); }
.wrap-narrow { width: min(780px, 100% - 32px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; font-weight: 600; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 8px 24px -10px rgba(26, 115, 232, 0.7); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: var(--ghost-bg); color: var(--text); border: 1px solid var(--border-strong); }
.btn-large { padding: 14px 24px; font-size: 17px; }
.btn-small { padding: 7px 14px; font-size: 14px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

/* ---------- Nav (with app switcher) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 60px; width: min(1240px, 100% - 32px); margin-inline: auto; }
.maker { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.maker:hover { text-decoration: none; }
.maker img { border-radius: 7px; }
/* Sibling app link, next to the brand */
.nav-app { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: 14px; font-weight: 550;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; transition: color .2s, background .2s; }
.nav-app:hover { text-decoration: none; color: var(--text); background: var(--bg-elev); }
.nav-app img { width: 20px; height: 20px; border-radius: 5px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--text-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 40px; text-align: center; }
.hero-glow {
  position: absolute; inset: -120px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 360px at 50% 20%, var(--glow-1), transparent 70%),
    radial-gradient(500px 300px at 80% 60%, var(--glow-2), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 148px; height: 148px; margin-bottom: 26px; filter: drop-shadow(0 18px 30px rgba(16, 60, 140, 0.28)); }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); font-weight: 750; max-width: 15ch; letter-spacing: -0.03em; }
.blue-text { background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.1vw, 21px); color: var(--text-2); max-width: 40em; margin: 22px auto 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.fine { color: var(--text-3); font-size: 14px; margin-top: 18px; }

/* ---------- App window frames ---------- */
.window { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg-elev); box-shadow: var(--shadow-window); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-inline: auto; transform: translateX(-30px); font-size: 13px; font-weight: 600; color: var(--text-3); }
.window-hero { margin-top: 56px; }
.window-wide { margin-top: 40px; }
.sheet, .panel-shot { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-window); }
.panel-shot { max-width: 760px; margin: 36px auto 0; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto; }
.sec-lede { color: var(--text-2); font-size: 19px; margin-top: 18px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.e-blue { color: var(--blue-ink); }
.e-green { color: var(--green); }

.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); }
.steps h3 { margin: 16px 0 8px; }
.steps p { color: var(--text-2); margin: 0; font-size: 16px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy h2 { margin-bottom: 20px; }
.split-copy > p { color: var(--text-2); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.ticks b { color: var(--text); }

.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 550; color: var(--text-2); }

.contents-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--shadow-window); }
.cc-title { font-weight: 700; font-size: 19px; margin-bottom: 14px; }
.contents-card ul { list-style: none; margin: 0; padding: 0; }
.contents-card li { display: grid; grid-template-columns: 22px auto 1fr auto; align-items: center; column-gap: 10px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 15px; }
.contents-card li::before { content: "–"; color: var(--text-3); text-align: center; }
.contents-card li.on::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.contents-card code { justify-self: start; background: none; padding: 0; color: var(--text-3); }
.contents-card span { font-weight: 650; font-variant-numeric: tabular-nums; }
.contents-card em { grid-column: 2 / -1; font-style: normal; font-size: 13px; color: var(--text-3); margin-top: -2px; }
.contents-card li:not(.on) b { color: var(--text-2); font-weight: 550; }
.cc-foot { margin: 16px 0 0; font-size: 14px; color: var(--text-3); }

.tiles { margin-top: 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tiles article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; }
.tiles h3 { font-size: 17px; margin: 10px 0 6px; }
.tiles p { color: var(--text-2); font-size: 15px; margin: 0; }
.ti { width: 30px; height: 30px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: color-mix(in srgb, var(--blue) 12%, transparent);
  fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ti .fill { fill: var(--blue); stroke: none; }

.safety-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 48px; border-radius: var(--r-xl); background: var(--green-bg); border: 1px solid color-mix(in srgb, var(--green) 28%, transparent); }
.safety-card .ticks { margin: 0; }

.note { margin: 0; text-align: left; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 44px 48px; box-shadow: var(--shadow-card); }
.note blockquote { margin: 0; font-size: 19px; line-height: 1.6; }
.note blockquote p { margin-bottom: 1em; }
.note figcaption { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 15px; color: var(--text-2); }
.avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }

.qa-list { margin-top: 40px; display: grid; gap: 10px; }
.qa-list details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.qa-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 600; }
.qa-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 14px; height: 14px; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 6px 0 auto; height: 2px; border-radius: 2px; background: var(--text-3); transition: transform .25s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0); }
.qa-body { padding: 0 22px 6px; color: var(--text-2); }

.app-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; max-width: 760px; margin-inline: auto; }
.app-card { display: flex; gap: 22px; align-items: flex-start; padding: 26px; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-card); color: var(--text); transition: transform .25s var(--ease), box-shadow .25s; }
.app-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-window); }
.app-card img { border-radius: 20px; flex: none; }
.app-card h3 { margin: 4px 0 8px; }
.app-card p { color: var(--text-2); font-size: 15px; margin-bottom: 10px; }
.app-card .link { color: var(--blue-ink); font-weight: 600; font-size: 15px; }

.final { text-align: center; padding-bottom: 130px; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.final img { filter: drop-shadow(0 14px 24px rgba(16, 60, 140, 0.25)); }

.footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--text-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer .disclaimer { font-size: 13px; line-height: 1.55; color: var(--text-3); padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); max-width: 900px; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--text-2); }

/* ---------- Comparison ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.table-wrap { margin-top: 48px; overflow-x: auto; border-radius: var(--r-lg); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.compare-table tbody tr:last-child > * { border-bottom: none; }
.compare-table thead th { font-size: 14px; font-weight: 650; color: var(--text-2); }
.compare-table tbody th { text-align: left; font-weight: 550; color: var(--text); width: 44%; }
.compare-table small { font-size: 13px; color: var(--text-3); }
.compare-table .us { background: color-mix(in srgb, var(--blue) 7%, transparent); }
.compare-table thead .us { color: var(--blue-ink); font-weight: 700; }
.compare-table .yes { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.compare-table .no { color: var(--text-3); }
.compare-foot { text-align: center; color: var(--text-3); font-size: 15px; margin-top: 18px; }
/* Phones: one card per row, each answer labelled — the SD CardCheck column is never off-screen. */
@media (max-width: 720px) {
  .table-wrap { overflow: visible; background: none; border: none; box-shadow: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; min-width: 0; width: auto; }
  .compare-table thead { display: none; }
  .compare-table tr { margin-bottom: 12px; border-radius: var(--r-md); background: var(--bg-elev); border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
  .compare-table tbody th { padding: 14px 16px 8px; border: none; font-size: 15px; width: auto; }
  .compare-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; border: none; border-top: 1px solid var(--border); text-align: right; }
  .compare-table td::before { content: attr(data-label); font-size: 13px; font-weight: 600; color: var(--text-2); text-align: left; }
  .compare-table td.us::before { color: var(--blue-ink); }
}

/* ---------- Scroll reveal (only when JS runs and motion is welcome) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .app-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .safety-card { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse .split-copy { order: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .steps { grid-template-columns: 1fr; }
  .nav-app { font-size: 13px; padding: 5px 10px 5px 6px; }
  .nav-links .btn { display: none; }
  .note { padding: 30px 24px; }
  .safety-card { padding: 30px 24px; }
  .window-bar span { display: none; }
}
@media (max-width: 460px) {
  .tiles { grid-template-columns: 1fr; }
  .app-card { flex-direction: column; }
  .contents-card { padding: 20px; }
}

/* Fine print under the download button: break between items, never inside one. */
.fine span { white-space: nowrap; }
/* An app whose site isn't live yet: no hover lift, label in the muted colour. */
.app-card[aria-disabled="true"] { cursor: default; }
.app-card[aria-disabled="true"]:hover { transform: none; box-shadow: var(--shadow-card); }
.app-card[aria-disabled="true"] .link { color: var(--text-2, inherit); opacity: .75; }
