/* Cardlivo public site (2026-11 redesign): the landing page (index.html) and
   the legal pages. Royal navy with polished gold, round "medallion" tool
   icons around the logo's gold orbit. No photos - the page sells the whole
   platform, not single cards. The logged-in app keeps its own style.css,
   tinted to the same navy. */
:root {
  --bg: #08122A;
  --bg2: #0B1733;
  --panel: #0F1D3D;
  --panel2: #132448;
  --line: #213259;
  --text: #EFF2F8;
  --soft: #C6CEDD;
  --muted: #98A3BA;
  --accent: #E0B24F;
  --ivory: #F3E6C4;
  --ink: #08122A;
  --tint: rgba(224, 178, 79, .10);
  --tline: rgba(224, 178, 79, .38);
  --gold: linear-gradient(135deg, #F6E0A0 0%, #D9A845 30%, #A9772A 55%, #E9C673 80%, #C99436 100%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.02em; margin: 0; color: var(--text); }
a { color: #E8C06A; }
a:hover { color: #F6D892; }
img { max-width: 100%; }
button, select, input { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---- nav ---- */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(8, 18, 42, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 20px; flex: none; }
.nav-brand:hover { color: var(--text); }
.nav-brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; flex: 1; flex-wrap: wrap; }
.nav-link { color: var(--soft); text-decoration: none; font-size: 14.5px; background: none; border: 0; padding: 0; cursor: pointer; }
.nav-link:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-select { background: var(--panel); color: var(--soft); border: 1px solid var(--line); border-radius: 8px; height: 38px; padding: 0 10px; font-size: 13.5px; cursor: pointer; }
.nav-menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); align-items: center; justify-content: center; cursor: pointer; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; font-family: var(--font); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { color: var(--ink); filter: brightness(1.06); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-text { color: var(--soft); background: none; border: 0; padding: 0 6px; }
.btn-text:hover { color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0; }
.eyebrow i { width: 18px; height: 1px; background: var(--accent); }
.sechead p.eyebrow, .free-in p.eyebrow, .ours p.eyebrow, .final p.eyebrow { font-size: 12.5px; color: var(--accent); margin: 0; }

/* ---- medallion icons ---- */
.ic { width: 64px; height: 64px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #1B3266, #0B1733 72%); border: 2px solid #D9A845; color: var(--ivory);
  box-shadow: inset 0 0 0 5px #0B1733, inset 0 0 0 6.5px rgba(224, 178, 79, .55), 0 10px 24px rgba(0, 0, 0, .4); }
.ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 52px; height: 52px; box-shadow: inset 0 0 0 4px #0B1733, inset 0 0 0 5.5px rgba(224, 178, 79, .55), 0 8px 18px rgba(0, 0, 0, .35); }
.ic.sm svg { width: 23px; height: 23px; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 580px; gap: 48px; align-items: center; padding: 44px 0 36px; }
.trial-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid var(--tline); background: var(--tint); color: var(--ivory); font-size: 13.5px; font-weight: 500; text-decoration: none; margin-bottom: 18px; }
.trial-pill:hover { color: #fff; border-color: var(--accent); }
.trial-pill svg { color: var(--accent); }
.hero h1 { font-size: 50px; line-height: 1.08; font-weight: 700; margin: 16px 0 20px; }
.hero .lead { font-size: 18px; color: var(--soft); margin: 0 0 28px; max-width: 580px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.trust b { display: block; font-family: var(--font-head); font-size: 20px; color: var(--text); font-weight: 700; }
.login-hint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hub { position: relative; width: 560px; height: 600px; justify-self: center; }
.hub .path { position: absolute; left: 50px; top: 60px; width: 460px; height: 460px; border-radius: 50%; border: 1px dashed rgba(224, 178, 79, .4); }
.hub .halo { position: absolute; left: 140px; top: 150px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 178, 79, .12), transparent 70%); }
.hub .orbit { position: absolute; left: 105px; top: 240px; width: 350px; height: 100px; border-radius: 50%; border: 3px solid #D9A845; transform: rotate(-14deg); opacity: .8; }
.hub .core { position: absolute; left: 190px; top: 200px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #16295A, #0B1733 70%); border: 1px solid var(--tline); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 0 60px rgba(224, 178, 79, .15); }
.hub .core img { width: 100px; }
.hub .core b { font-family: var(--font-head); font-size: 16px; }
.hub .node { position: absolute; transform: translate(-50%, -32px); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 130px; text-align: center; }
.hub .node b { font-size: 13px; font-weight: 600; line-height: 1.25; background: rgba(8, 18, 42, .8); padding: 1px 6px; border-radius: 6px; }
.hub-list { display: none; }

/* ---- stores ---- */
.stores { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.stores .wrap { display: flex; align-items: center; gap: 32px; min-height: 132px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.stores-l { flex: none; width: 210px; font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }
.stores-l b { display: block; font-family: var(--font-head); font-size: 16px; color: var(--text); margin-bottom: 2px; }
.stores .row { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; }
.lg { display: flex; align-items: center; justify-content: center; gap: 9px; height: 56px; border-left: 1px solid var(--line); padding: 0 12px; }
.lg img { height: 30px; width: auto; }
.lg.wide img { height: 24px; }
.lg span { font-family: var(--font-head); font-weight: 600; font-size: 16px; white-space: nowrap; }

/* ---- sections ---- */
.sec { padding: 104px 0; }
.sec-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sechead { max-width: 720px; margin: 0 0 48px; }
.sechead h2 { font-size: 38px; line-height: 1.12; font-weight: 700; margin: 14px 0; }
.sechead p { font-size: 17px; color: var(--soft); margin: 0; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stage { border-radius: 16px; padding: 2px; background: linear-gradient(180deg, var(--tline), var(--line) 40%); }
.stage-in { height: 100%; border-radius: 14px; background: var(--panel); padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.stage-top { display: flex; justify-content: space-between; align-items: flex-start; }
.stage-top b { font-family: var(--font-head); color: var(--accent); font-size: 13px; letter-spacing: .04em; }
.stage-lbl { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.stage h3 { font-size: 21px; font-weight: 600; }
.stage p { margin: 0; font-size: 14px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; }
.ticks li { font-size: 14px; color: var(--soft); display: flex; gap: 9px; line-height: 1.45; }
.ticks li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 8px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
.flow { display: flex; align-items: center; gap: 10px; margin: 24px 0 0; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.flow b { color: var(--soft); font-weight: 600; }
.flow i { width: 24px; height: 1px; background: var(--tline); }
.tbl { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; background: var(--panel); }
.tbl table { width: 100%; border-collapse: collapse; min-width: 820px; }
.tbl th, .tbl td { padding: 15px 18px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.tbl th { font-weight: 600; color: var(--soft); font-size: 13px; background: var(--panel2); }
.tbl th.us { color: var(--ink); background: var(--gold); font-family: var(--font-head); font-size: 15px; }
.tbl td.us { background: var(--tint); }
.tbl td:first-child, .tbl th:first-child { text-align: left; color: var(--text); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .y svg { width: 18px; height: 18px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.tbl .s { color: var(--soft); font-size: 12.5px; }
.tbl .n { color: #55627F; }
.note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.value { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: stretch; }
.bill { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 8px 24px; }
.bill-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.bill-row span { font-size: 15px; color: var(--soft); }
.bill-row small { display: block; font-size: 12.5px; color: var(--muted); }
.bill-row b { font-family: var(--font-head); font-size: 18px; font-weight: 600; white-space: nowrap; }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 0 16px; }
.bill-total span { font-weight: 600; }
.bill-total b { font-family: var(--font-head); font-size: 26px; text-decoration: line-through; text-decoration-color: #D9534A; text-decoration-thickness: 2px; color: var(--soft); white-space: nowrap; }
.ours { border-radius: 16px; padding: 3px; background: var(--gold); }
.ours-in { height: 100%; border-radius: 13px; background: linear-gradient(180deg, #12234A, #0F1D3D); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.ours-head { display: flex; align-items: center; gap: 14px; }
.ours-head img { height: 34px; width: auto; }
.ours .big { font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.ours .big small { margin-left: 6px; font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.ours p { margin: 0; color: var(--soft); }
.save { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.save div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: rgba(0, 0, 0, .18); }
.save b { display: block; font-family: var(--font-head); font-size: 24px; color: var(--accent); }
.save span { font-size: 12.5px; color: var(--muted); }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.who article { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.who h3 { font-size: 20px; font-weight: 600; }
.who p { margin: 0; font-size: 14.5px; color: var(--muted); }
.free-band { border-radius: 16px; padding: 2px; background: var(--gold); }
.free-in { border-radius: 14px; background: linear-gradient(180deg, #12234A, #0F1D3D); padding: 30px 32px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.free-in h2 { font-size: 26px; margin: 8px 0 6px; }
.free-in p { margin: 0; color: var(--soft); font-size: 15px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 26px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--gold); color: var(--ink); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 17px; font-weight: 600; color: var(--soft); }
.plan .price { font-family: var(--font-head); font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.plan .price small { margin-left: 4px; font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan p { margin: 0; font-size: 14px; color: var(--muted); }
.plan .ticks { flex: 1; padding-top: 16px; }
.trial-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; border: 1px dashed var(--line); border-radius: 12px; padding: 16px 20px; color: var(--soft); font-size: 14.5px; }
.trial-row p { margin: 0; }
.usd { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.final { position: relative; overflow: hidden; text-align: center; padding: 110px 0; }
.final .ring1 { position: absolute; left: 50%; top: 50%; width: 760px; height: 220px; margin: -110px 0 0 -380px; border-radius: 50%; border: 2px solid rgba(217, 168, 69, .35); transform: rotate(-10deg); pointer-events: none; }
.final .ring2 { position: absolute; left: 50%; top: 50%; width: 980px; height: 300px; margin: -150px 0 0 -490px; border-radius: 50%; border: 1px dashed rgba(217, 168, 69, .18); transform: rotate(-10deg); pointer-events: none; }
.final .wrap { position: relative; }
.final .mark { height: 64px; width: auto; margin: 0 auto 6px; display: block; }
.final h2 { font-size: 42px; font-weight: 700; margin: 14px auto; max-width: 760px; line-height: 1.1; }
.final p { color: var(--soft); margin: 0 auto 28px; max-width: 580px; font-size: 17px; }
.final .ctas { justify-content: center; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 44px; background: var(--bg2); }
.foot-top { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col h4 { font-family: var(--font); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.foot-col a, .foot-col button { color: var(--soft); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-size: 14px; }
.foot-col a:hover, .foot-col button:hover { color: var(--text); }
.foot-brand { max-width: 300px; }
.foot-brand p { margin: 4px 0 10px; color: var(--muted); font-size: 13.5px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: var(--panel); }
.footer-social a:hover { border-color: var(--accent); }
.footer-legal { padding-top: 20px; font-size: 12.5px; color: var(--muted); }
.footer-legal p { margin: 0 0 8px; }

/* ---- legal pages ---- */
.legal-content { max-width: 820px; margin: 0 auto; padding: 56px 32px 80px; color: var(--soft); }
.legal-content h1 { font-size: 38px; margin: 0 0 8px; }
.legal-content h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal-content h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-content p, .legal-content li { line-height: 1.7; }
.legal-content strong { color: var(--text); }
.legal-updated { color: var(--accent); font-size: 14px; margin: 0 0 28px; }

/* ---- smaller screens ---- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero .hub { margin-top: 12px; }
}
@media (max-width: 1080px) {
  .site-nav .wrap { flex-wrap: wrap; height: auto; min-height: 72px; padding-top: 14px; padding-bottom: 14px; }
  .nav-menu-btn { display: inline-flex; }
  .nav-links { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 6px; }
  .site-nav.nav-open .nav-links { display: flex; }
  .nav-brand { margin-right: auto; }
}
@media (max-width: 980px) {
  .value { grid-template-columns: minmax(0, 1fr); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans, .who { grid-template-columns: minmax(0, 1fr); }
  .stores .row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 8px; }
  .stores-l { width: 100%; }
  .free-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  .sechead h2, .final h2 { font-size: 30px; }
  .stages, .save { grid-template-columns: minmax(0, 1fr); }
  .sec { padding: 72px 0; }
  .nav-actions .btn-ghost { display: none; }
  .lang-select { max-width: 130px; }
  .site-nav:not(.nav-open) .lang-select { display: none; }
  .trust b { font-size: 17px; }
  .trust { gap: 14px; }
  .hero .hub { display: none; }
  .hub-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
  .hub-list span { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
  .stores .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ours .big { font-size: 52px; }
  .final .ring1, .final .ring2 { display: none; }
  .legal-content { padding: 40px 16px 64px; }
  .legal-content h1 { font-size: 30px; }
}
