/* Ledgium site. Colors are the app's own tokens (DesignSystem's asset catalog). */
:root {
  color-scheme: light dark;
  --bg: #eef6f8;
  --surface: #ffffff;
  --surface-2: #f6fafb;
  --ink: #082f49;
  --ink-2: #4f6b7a;
  --ink-3: #7f97a3;
  --line: #dce8ec;
  --accent: #0e7490;
  --accent-soft: #d8eef3;
  --hero: #082f49;
  --on-hero: #ffffff;
  --on-hero-2: #bae6fd;
  --fixed: #082f49;
  --flex: #007acc;
  --save: #22c55e;
  --money-in: #007a33;
  --mint-bg: #e0f7f1;
  --sky-bg: #e3f4fc;
  --glow-1: rgba(186, 230, 253, 0.75);
  --glow-2: rgba(224, 247, 241, 0.9);
  --shadow-phone: 0 50px 80px -30px rgba(8, 47, 73, 0.45), 0 24px 40px -24px rgba(8, 47, 73, 0.35);
  --shadow-card: 0 1px 2px rgba(8, 47, 73, 0.06), 0 8px 24px -12px rgba(8, 47, 73, 0.18);
  --radius: 20px;
  --wrap: 1120px;
  --gutter: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #051521;
    --surface: #0b2233;
    --surface-2: #0a1d2b;
    --ink: #f0fdff;
    --ink-2: #8fb0c2;
    --ink-3: #5e7d8e;
    --line: #1a3242;
    --accent: #66a3ff;
    --accent-soft: #10304a;
    --hero: #0b2233;
    --fixed: #bae6fd;
    --flex: #66a3ff;
    --money-in: #22c55e;
    --mint-bg: #0f2e2a;
    --sky-bg: #0e2a3d;
    --glow-1: rgba(14, 116, 144, 0.35);
    --glow-2: rgba(34, 197, 94, 0.12);
    --shadow-phone: 0 50px 90px -30px rgba(0, 0, 0, 0.8), 0 24px 40px -24px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -16px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(8, 47, 73, 0.08); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; }
.nav a { color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .nav-optional { display: none; }
@media (min-width: 720px) { .nav .nav-optional { display: inline; } }

/* Shared type */
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p, li, figcaption { text-wrap: pretty; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); line-height: 1.1; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--ink-2); margin: 18px 0 0; max-width: 36em; }
.section { padding: 0 0 clamp(64px, 9vw, 112px); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head .lead { margin-left: auto; margin-right: auto; }
.pro-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--hero); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; vertical-align: 2px; margin-left: 6px; }
@media (prefers-color-scheme: dark) { .pro-tag { background: #1d4a63; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, var(--glow-1), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto auto -30% -15%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, var(--glow-2), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: clamp(48px, 7vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.08fr 0.92fr; } }
.hero h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 .accent { background: linear-gradient(100deg, var(--accent), var(--flex) 55%, var(--save)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--hero); color: #fff; font-weight: 600; font-size: 1rem; white-space: nowrap; box-shadow: var(--shadow-card); }
@media (max-width: 380px) { .status-pill { font-size: 0.92rem; padding: 0 16px 0 14px; } }
@media (prefers-color-scheme: dark) { .status-pill { background: #123a52; } }
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--save); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.text-link svg { transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(3px); }
.fine { margin: 18px 0 0; font-size: 0.92rem; color: var(--ink-3); }
.hero-visual { position: relative; display: flex; justify-content: center; padding: 8px 0; }

/* iPhone frame: sized in container units so the bezel, corners and Dynamic Island scale with it.
   Proportions from iPhone 15 Pro: 393-point screen, 55-point corners, 126×37 island 11 points down. */
.device { position: relative; width: min(318px, 74vw); container-type: inline-size; flex: none; }
.device.small { width: min(270px, 66vw); }
.phone { position: relative; padding: 3.4cqw; border-radius: 16.6cqw; background: linear-gradient(150deg, #3a4953 0%, #10181e 28%, #0a1116 60%, #2a3842 100%); box-shadow: inset 0 0 0 0.45cqw rgba(255, 255, 255, 0.14), inset 0 0 0 1.5cqw #05090c, var(--shadow-phone); }
.phone::before { content: ""; position: absolute; left: -0.9cqw; top: 23cqw; width: 1cqw; height: 7cqw; border-radius: 1cqw 0 0 1cqw; background: #26343d; box-shadow: 0 12cqw 0 0 #26343d, 0 26cqw 0 0 #26343d; }
.phone::after { content: ""; position: absolute; right: -0.9cqw; top: 37cqw; width: 1cqw; height: 22cqw; border-radius: 0 1cqw 1cqw 0; background: #26343d; }
.screen { position: relative; overflow: hidden; border-radius: 13cqw; aspect-ratio: 1179 / 2556; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.island { position: absolute; top: 2.6cqw; left: 50%; width: 29.9cqw; height: 8.8cqw; transform: translateX(-50%); border-radius: 999px; background: #000; }

/* Floating notes on the hero phone's corners, only on screens wide enough to hold them */
.float-card { display: none; position: absolute; z-index: 2; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-card); border: 1px solid var(--line); font-size: 0.9rem; line-height: 1.3; white-space: nowrap; }
.float-card .tile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-card strong { display: block; font-size: 1rem; }
.float-card span { color: var(--ink-2); }
.float-card.one .tile { background: var(--mint-bg); color: var(--money-in); }
.float-card.two .tile { background: var(--sky-bg); color: var(--accent); }
@media (min-width: 1200px) {
  .float-card { display: flex; }
  .float-card.one { right: 70%; bottom: 5%; }
  .float-card.two { left: 66%; top: 3%; }
}

/* Steps */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--hero); color: #fff; font-weight: 700; margin-bottom: 18px; }
@media (prefers-color-scheme: dark) { .step::before { background: #1d4a63; } }
.step p { color: var(--ink-2); margin: 8px 0 0; }

/* Screens */
.screens-band { padding-top: clamp(8px, 2vw, 24px); background: linear-gradient(180deg, transparent, var(--surface-2) 20%, var(--surface-2) 80%, transparent); }
.showcase { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 36px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.showcase::-webkit-scrollbar { display: none; }
.showcase figure { margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; text-align: center; }
.showcase figcaption { max-width: 280px; margin-top: 28px; }
.showcase figcaption p { color: var(--ink-2); margin: 6px 0 0; font-size: 0.98rem; }
@media (min-width: 960px) { .showcase { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 12px 0 0; } .showcase figure:nth-child(2) { transform: translateY(-28px); } }

/* Features */
.features { display: grid; gap: 18px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feature p { color: var(--ink-2); margin: 8px 0 0; font-size: 0.98rem; }
.icon.sky { background: var(--sky-bg); color: var(--accent); }
.icon.mint { background: var(--mint-bg); color: var(--money-in); }
.icon.navy { background: var(--hero); color: #fff; }
@media (prefers-color-scheme: dark) { .icon.navy { background: #1d4a63; } }
.icon svg, .float-card svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy band */
.privacy-band { background: var(--hero); color: var(--on-hero); border-radius: 32px; padding: clamp(40px, 7vw, 72px); position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .privacy-band { background: linear-gradient(160deg, #0d2a3e, #071b29); border: 1px solid var(--line); } }
.privacy-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(102, 163, 255, 0.28), transparent); pointer-events: none; }
.privacy-band .eyebrow { color: var(--on-hero-2); }
.privacy-band h2 { color: #fff; max-width: 14em; }
.privacy-band .lead { color: var(--on-hero-2); }
.checks { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .checks { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.checks .check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 197, 94, 0.18); color: #4ade80; flex: none; }
.checks svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.privacy-band .text-link { color: #fff; margin-top: 28px; }

/* Pro */
.pro-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-card); padding: clamp(28px, 5vw, 56px); display: grid; gap: 36px; }
.pro-intro { max-width: 640px; }
.pro-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px 28px; }
@media (min-width: 600px) { .pro-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pro-list { grid-template-columns: repeat(3, 1fr); gap: 22px 32px; } }
.pro-list li { display: flex; gap: 12px; }
.pro-list .check { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-bg); color: var(--money-in); flex: none; margin-top: 1px; }
.pro-list svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pro-list strong { display: block; }
.pro-list span { color: var(--ink-2); font-size: 0.95rem; }
.trial-note { display: inline-block; margin: 24px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--mint-bg); color: var(--money-in); font-weight: 600; font-size: 0.98rem; }

/* Closing call to action */
.closing { text-align: center; }
.closing .cta-row { justify-content: center; }
.closing .brand-mark { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 28px; box-shadow: var(--shadow-card); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-2); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.legal-line { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.82rem; margin: 0; }

/* Support page */
.page-head { padding: clamp(48px, 8vw, 88px) 0 24px; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow-card); margin: 32px 0 56px; }
.contact-card p { margin: 4px 0 0; color: var(--ink-2); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--hero); color: #fff; font-weight: 600; }
.button:hover { text-decoration: none; filter: brightness(1.15); }
@media (prefers-color-scheme: dark) { .button { background: var(--accent); color: #051521; } }
.faq { max-width: 820px; margin: 0 0 64px; }
.faq h2 { font-size: 1.6rem; margin: 0 0 18px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { color: var(--ink-2); margin: 0 0 18px; }
.faq details ul { padding-left: 1.2em; }
