/* Public pages of Ledgera (home, privacy, terms, support). Same colours and type as the app: navy, gold, ivory. */
:root { --gold: #b99b69; --gold-d: #8f7440; --ivory: #f7f5f0; --blue: #101d30; --blue-d: #1b2c45; --blue-l: #f1ece0; --ink: #26364a; --mute: #6f7782; --line: #e8e5df; --green: #287a55; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 300 16px/1.65 Roboto, 'Segoe UI', system-ui, -apple-system, sans-serif; }
a { color: var(--gold-d); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: flex; align-items: center; } .brand img { height: 32px; width: auto; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: #dfe4ea; text-decoration: none; font-size: 15px; } .nav a:hover { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 6px; border: 1px solid var(--gold); background: var(--gold); color: var(--blue) !important; font: 500 15px/1 Roboto, 'Segoe UI', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { background: #c7ab7b; } .btn:focus-visible, .nav a:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff !important; } .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn.dark { background: var(--blue); border-color: var(--blue); color: #fff !important; } .btn.dark:hover { background: var(--blue-d); }
.top .btn { padding: 9px 18px; font-size: 14px; }

/* hero */
.hero { background: var(--blue); color: #fff; padding: 64px 0 96px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto -10% -140px auto; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(185, 155, 105, .28), rgba(185, 155, 105, 0) 68%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.pill { display: inline-block; padding: 5px 14px; border: 1px solid rgba(185, 155, 105, .7); color: var(--gold); border-radius: 999px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(32px, 5vw, 50px); line-height: 1.12; font-weight: 400; letter-spacing: -.01em; } .hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { margin: 0 0 28px; font-size: 18px; color: #d3dae3; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; background: #000; color: #fff; text-decoration: none; line-height: 1.1; font-size: 17px; font-weight: 500; }
.store svg { width: 24px; height: 24px; fill: currentColor; flex: none; } .store small { display: block; font-size: 10.5px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
a.store:hover { border-color: var(--gold); } .store.off { opacity: .45; cursor: not-allowed; user-select: none; }
.fine { margin: 16px 0 0; font-size: 13.5px; color: #aeb8c5; }

/* phone mock: a drawing of the app, not a screenshot */
.phone { justify-self: center; width: 270px; border-radius: 34px; padding: 11px; background: #0a1322; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.screen { border-radius: 25px; background: var(--ivory); overflow: hidden; color: var(--ink); }
.screen .bar { background: var(--blue); color: #fff; padding: 14px 16px; font-size: 14px; display: flex; justify-content: space-between; }
.screen .bar b { font-weight: 400; } .screen .bar span { color: var(--gold); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; } .tile small { display: block; color: var(--mute); font-size: 11px; } .tile b { font-size: 16px; font-weight: 500; }
.tile .pos { color: var(--green); } .tile .neg { color: #c65353; }
.rows { margin: 0 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.rows div { display: flex; justify-content: space-between; padding: 9px 11px; font-size: 12px; border-bottom: 1px solid var(--line); } .rows div:last-child { border: 0; } .rows i { font-style: normal; color: var(--mute); }
.tag { font-size: 10px; letter-spacing: .05em; padding: 2px 7px; border-radius: 3px; font-weight: 500; } .tag.p { background: #e3f2ea; color: var(--green); } .tag.n { background: #f8e9e9; color: #b24848; }
.sample { text-align: center; font-size: 11px; color: var(--mute); padding: 0 0 10px; }

/* sections */
section { padding: 72px 0; } section.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow { color: var(--gold-d); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
h2 { margin: 8px 0 12px; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; font-weight: 400; color: var(--blue); }
.intro { max-width: 680px; color: var(--mute); margin: 0 0 36px; font-size: 17px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; } section.alt .card { background: var(--ivory); }
.card .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--blue); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; } .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; color: var(--blue); } .card p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.55; }
.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 22px 70px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--blue); display: grid; place-items: center; font-weight: 500; }
.steps b { display: block; color: var(--blue); font-weight: 500; margin-bottom: 4px; } .steps span { color: var(--mute); font-size: 15px; }
.band { background: var(--blue); color: #fff; border-radius: 14px; padding: 36px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.band h2 { color: #fff; margin-top: 0; } .band p { color: #cfd7e1; margin: 0 0 18px; } .band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.band li { padding-left: 28px; position: relative; color: #e6ebf1; font-size: 15px; } .band li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
/* trust line under the hero buttons, and the dark security section */
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(185, 155, 105, .45); border-radius: 999px; font-size: 13px; color: #e6ebf1; background: rgba(255, 255, 255, .04); }
.trust svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
section.dark { background: var(--blue); color: #fff; }
section.dark h2 { color: #fff; } section.dark .eyebrow { color: var(--gold); } section.dark .intro { color: #b6c0cc; }
section.dark .card { background: var(--blue-d); border-color: rgba(255, 255, 255, .08); }
section.dark .card .ic { background: rgba(185, 155, 105, .14); }
section.dark .card h3 { color: #fff; } section.dark .card p { color: #b6c0cc; }
section.dark .desi { color: var(--gold); font-style: italic; }
.grid.nine { grid-template-columns: repeat(3, 1fr); } /* always full rows: 3 x 3, one column on small screens */
.free { text-align: center; } .free .box { display: inline-block; background: #fff; border: 1px solid var(--gold); border-radius: 14px; padding: 30px 40px; max-width: 560px; } .free h2 { margin-top: 0; } .free p { color: var(--mute); margin: 0 0 20px; }

/* footer */
footer { background: var(--blue); color: #b6c0cc; padding: 44px 0 30px; font-size: 14.5px; }
footer .cols { display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
footer img { height: 30px; width: auto; display: block; margin-bottom: 12px; } footer a { color: #e6ebf1; text-decoration: none; } footer a:hover { color: var(--gold); }
footer h4 { margin: 0 0 10px; color: #fff; font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; } footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8e9aa9; }

/* text pages (privacy, terms, support) */
.page-head { background: var(--blue); color: #fff; padding: 46px 0 40px; } .page-head h1 { margin: 0 0 6px; font-weight: 400; font-size: clamp(28px, 4vw, 40px); } .page-head p { margin: 0; color: #b6c0cc; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: -22px auto 60px; padding: 34px 38px; max-width: 860px; position: relative; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; font-weight: 500; } .doc h2:first-child { margin-top: 0; } .doc h3 { font-size: 17px; margin: 22px 0 4px; font-weight: 500; color: var(--blue); }
.doc p, .doc li { color: #3a4a5e; } .doc ul, .doc ol { padding-left: 22px; } .doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; } .doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .doc th { color: var(--blue); font-weight: 500; width: 32%; }
.note { background: var(--blue-l); border-left: 3px solid var(--gold); padding: 12px 16px; border-radius: 4px; color: #3a4a5e; font-size: 15px; margin: 14px 0; }
.contact { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 6px 0 8px; }
.contact a.cbox { display: block; background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; text-decoration: none; color: var(--blue); } .contact a.cbox:hover { border-color: var(--gold); }
.contact small { display: block; color: var(--mute); font-size: 13px; } .contact b { font-weight: 500; font-size: 18px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; } summary { cursor: pointer; font-weight: 500; color: var(--blue); } details p { margin: 8px 0 0; }
code { background: var(--blue-l); padding: 1px 6px; border-radius: 4px; font-size: 14px; word-break: break-all; }

@media (max-width: 860px) {
  .hero { padding: 44px 0 72px; } .hero .wrap { grid-template-columns: 1fr; } .phone { order: 2; }
  .band, .grid.nine { grid-template-columns: 1fr; } .band { padding: 26px; } footer .cols { grid-template-columns: 1fr; }
  .nav a.hide-s { display: none; } .nav { gap: 14px; } section { padding: 52px 0; } .doc { padding: 24px 20px; margin-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
