/* Ledger website. Light only, like the app. Same tokens as the app (Ledger/DesignSystem/Theme.swift); fonts are served from this site, nothing
   is loaded from anyone else. Layout: one long page, a centred 1080px column, sections separated by space, not rules. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo Condensed"; src: url("fonts/ArchivoCondensed-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Archivo Condensed"; src: url("fonts/ArchivoCondensed-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --bg: #FFFFFF; --surface: #F3F5F4; --surface2: #E8ECEA; --ink: #10221E; --ink2: #5B6B66; --muted: #98A4A0; --line: #E6EAE8;
  --heat0: #F3F5F4; --heat1: #D7EBDF; --heat2: #9ACDB0; --heat3: #3E9A6E; --heat4: #0E5A3E;
  --night: #14211E; color-scheme: light; --night-ink: #E9F1ED; --night-ink2: #A9BDB5; --dot: #E4572E;
  --display: "Archivo Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Archivo", -apple-system, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--heat3); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 22px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; line-height: .95; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(38px, 6vw, 64px); }
h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink2); max-width: 36ch; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--heat3); }
section { padding-block: clamp(64px, 10vw, 120px); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.01em; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.nav ul a { text-decoration: none; color: var(--ink2); }
.nav ul a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 760px) { .nav ul { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 100px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(58px, 10vw, 118px); line-height: .86; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--heat3); }
.hero .copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .note { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Phone mock in the hero */
.phone { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 18.5; border-radius: 48px; background: var(--night); padding: 12px; box-shadow: 0 40px 80px -30px rgba(14, 90, 62, .45); position: relative; }
.screen { width: 100%; height: 100%; border-radius: 38px; background: #FFFFFF; color: #10221E; overflow: hidden; padding: 46px 16px 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.screen .island { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 90px; height: 26px; border-radius: 14px; background: #000; }
.screen .mtitle { font-family: var(--display); font-weight: 900; font-size: 34px; letter-spacing: -0.02em; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; }
.screen .mtitle small { font: 600 13px var(--body); color: #5B6B66; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal span { aspect-ratio: 1; border-radius: 8px; background: #F3F5F4; position: relative; transition: background .5s ease; }
.cal span.l1 { background: #D7EBDF; } .cal span.l2 { background: #9ACDB0; } .cal span.l3 { background: #3E9A6E; } .cal span.l4 { background: #0E5A3E; }
.cal span.empty { background: transparent; }
.cal span.today { box-shadow: inset 0 0 0 2px #10221E; }
.sms { background: #F3F5F4; border-radius: 16px; padding: 10px 12px; font-size: 12px; line-height: 1.35; color: #10221E; }
.sms b { display: block; font-size: 11px; color: #5B6B66; font-weight: 600; margin-bottom: 2px; }
.row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.row i { width: 30px; height: 30px; border-radius: 9px; background: #D7EBDF; flex: none; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.row div { flex: 1; min-width: 0; }
.row small { display: block; color: #98A4A0; font-size: 11px; }
.row b { font-variant-numeric: tabular-nums; }
.fly { animation: fly 4.8s cubic-bezier(.6, 0, .3, 1) infinite; transform-origin: 70% 0; }
@keyframes fly { 0%, 40% { opacity: 1; transform: none; } 54%, 88% { opacity: 0; transform: translateY(26px) scale(.9); } 100% { opacity: 1; transform: none; } }
.newrow { animation: pop 4.8s ease infinite; }
@keyframes pop { 0%, 46% { opacity: .35; transform: translateY(-6px); } 58%, 92% { opacity: 1; transform: none; } 100% { opacity: .35; } }

/* Countries strip */
.strip { border-block: 1px solid var(--line); padding-block: 18px; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; font-weight: 600; color: var(--ink2); font-size: 15px; }
.strip [lang="ar"] { font-family: "Geeza Pro", "Noto Naskh Arabic", var(--body); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: step; }
.step { background: var(--surface); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step .n { font-family: var(--display); font-weight: 900; font-size: 48px; color: var(--heat3); line-height: 1; }
.step p { color: var(--ink2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.feature { border-radius: 22px; padding: 28px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feature p { color: var(--ink2); }
.feature .art { border-radius: 16px; background: var(--bg); padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; }
.quote { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 99px; background: var(--surface); font-size: 13px; font-weight: 600; }
.chip.on { background: var(--heat4); color: #fff; }
.bar { height: 10px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--heat3); }
.between { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.save { color: var(--heat3); font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .feature.wide { grid-template-columns: 1fr; } }

/* Privacy: the one dark section */
.privacy { background: var(--night); color: var(--night-ink); }
.privacy .eyebrow { color: var(--heat2); }
.privacy .lead { color: var(--night-ink2); }
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: rgba(255, 255, 255, .08); border-radius: 22px; overflow: hidden; }
.promise { background: var(--night); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.promise strong { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; color: #fff; }
.promise p { color: var(--night-ink2); font-size: 15px; }
.privacy .fine { margin-top: 28px; color: var(--night-ink2); font-size: 15px; max-width: 70ch; }
.privacy .fine a { color: var(--heat2); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; max-width: 820px; }
.plan { border-radius: 22px; padding: 28px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.plan.pro { background: var(--heat1); box-shadow: inset 0 0 0 1.5px var(--heat2); color: #10221E; }
.plan .price { font-family: var(--display); font-weight: 900; font-size: 52px; line-height: 1; }
.plan .price small { font: 600 16px var(--body); color: var(--ink2); }
.plan.pro .price small, .plan.pro .muted { color: #3B5149; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 4px; background: var(--heat3); }
.plan .muted { color: var(--ink2); font-size: 15px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 36px; display: flex; flex-direction: column; max-width: 820px; }
details { border-bottom: 1px solid var(--line); padding-block: 4px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-weight: 700; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink2); padding-bottom: 20px; max-width: 65ch; }

/* Beta CTA */
.beta { text-align: left; }
.beta .box { background: var(--surface); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.beta .box > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 640px) { .beta .box { grid-template-columns: 1fr; } }

footer { padding-block: 40px 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--ink2); text-decoration: none; margin-left: 18px; }
footer a:first-child { margin-left: 0; }

/* Legal pages */
.legal { padding-block: 48px 80px; }
.legal .wrap { max-width: 760px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(44px, 8vw, 72px); }
.legal h2 { font-size: 30px; margin-top: 18px; }
.legal p, .legal li { color: var(--ink2); }
.legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); }
.legal .tablewrap { overflow-x: auto; }
