/*
 * Nu-mă-uita — site de prezentare.
 * Paleta vine din aplicație (app/src/theme/colors.ts): albastrul deschis de fundal, indigo ca accent,
 * auriul florii. Fonturi DOAR de sistem — site-ul nu încarcă nimic de pe servere terțe (fără Google
 * Fonts, fără statistici, fără cookie-uri), deci nu transmite IP-ul vizitatorilor nicăieri și nu are
 * nevoie de banner de cookie-uri.
 */
:root {
  --ground: #E4EDF8;
  --surface: #FFFFFF;
  --surface-sunk: #F2F6FC;
  --ink: #14131A;
  --ink-soft: #3F4557;
  --ink-faint: #5E6478;
  --line: #CAD8EC;
  --accent: #4338CA;
  --accent-strong: #372AA8;
  --accent-soft: #E8E6FB;
  --on-accent: #FFFFFF;
  --gold: #F5B942;
  --ok: #2E7D32;
  --ok-soft: #E3F2E4;
  --warn: #9A4A07;
  --warn-soft: #FDEEDD;
  --danger: #C62828;
  --danger-soft: #FBE9E7;
  --notice-bg: #FFF4DB;
  --notice-ink: #6B4700;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(33, 40, 80, 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #131218;
    --surface: #1D1C24;
    --surface-sunk: #17161D;
    --ink: #F2F0EA;
    --ink-soft: #C9C5BD;
    --ink-faint: #9A968F;
    --line: #34333D;
    --accent: #A79CF8;
    --accent-strong: #C0B8FA;
    --accent-soft: #2A2650;
    --on-accent: #16132E;
    --ok: #7AD480;
    --ok-soft: #173A1B;
    --warn: #F0A45B;
    --warn-soft: #3B2711;
    --danger: #F3776C;
    --danger-soft: #3D1A17;
    --notice-bg: #33280F;
    --notice-ink: #F5CF7E;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---------- Antet ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

/* ---------- Prima pagină ---------- */
.hero { padding-block: 56px 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 850; margin-top: 14px; }
.hero .lede { font-size: 20px; color: var(--ink-soft); margin-top: 18px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-secondary { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-soon { background: var(--surface); color: var(--ink-soft); border: 1.5px dashed var(--line); cursor: default; }

.phone { background: var(--surface); border-radius: 34px; padding: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 360px; justify-self: center; width: 100%; }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.phone-title { font-weight: 800; }
.phone-caption { font-size: 12px; color: var(--ink-faint); }
.phone-hero { background: linear-gradient(135deg, #4F46E5, #372AA8); color: #FFFFFF; border-radius: 22px; padding: 16px; position: relative; overflow: hidden; margin-bottom: 12px; }
.phone-hero svg { position: absolute; right: -18px; top: -18px; width: 110px; height: 110px; opacity: 0.55; }
.phone-hero small { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.phone-hero strong { display: block; font-size: 22px; margin-top: 2px; }
.doc-row { display: grid; grid-template-columns: 50px 1fr; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); }
.doc-row:first-of-type { border-top: 0; }
.countdown { border-radius: 12px; text-align: center; padding: 6px 0; font-weight: 800; line-height: 1.05; font-size: 18px; font-variant-numeric: tabular-nums; }
.countdown span { display: block; font-size: 10px; font-weight: 700; }
.countdown.danger { background: var(--danger-soft); color: var(--danger); }
.countdown.warn { background: var(--warn-soft); color: var(--warn); }
.countdown.ok { background: var(--ok-soft); color: var(--ok); }
.doc-name { font-weight: 700; line-height: 1.25; }
.doc-meta { font-size: 13px; color: var(--ink-faint); }

section.block { padding-block: 44px; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
.section-sub { color: var(--ink-soft); margin-top: 10px; max-width: 42em; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 19px; }
.steps p { color: var(--ink-soft); margin-top: 6px; font-size: 16px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 32px; margin-top: 24px; }
.feature { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding-block: 16px; border-top: 1px solid var(--line); }
.feature-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--ink-soft); font-size: 16px; margin-top: 4px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { font-size: 21px; }
.panel p, .panel li { color: var(--ink-soft); }
.panel p { margin-top: 8px; }
.panel ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.panel.accent { background: var(--accent-soft); border-color: transparent; }

/* ---------- Pagini de text (legal, suport) ---------- */
.doc-page { padding-block: 44px 64px; }
.doc-page .wrap { max-width: 780px; }
.doc-page h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 850; }
.doc-page .updated { color: var(--ink-faint); font-size: 15px; margin-top: 8px; }
.doc-page .intro { color: var(--ink-soft); margin-top: 18px; font-size: 18px; }
.doc-section { margin-top: 30px; }
.doc-section h2 { font-size: 22px; font-weight: 800; }
.doc-section p, .doc-section li { color: var(--ink-soft); }
.doc-section p { margin-top: 8px; }
.doc-section ol, .doc-section ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.notice { background: var(--notice-bg); color: var(--notice-ink); border-radius: 14px; padding: 14px 16px; margin-top: 20px; font-size: 15px; }
.path { font-weight: 700; color: var(--ink); background: var(--surface-sunk); padding: 1px 6px; border-radius: 6px; }
details.faq { border-top: 1px solid var(--line); padding-block: 14px; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; }
details.faq p { color: var(--ink-soft); margin-top: 8px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 22px; display: grid; gap: 6px; }
.contact-card a { font-weight: 700; font-size: 19px; overflow-wrap: anywhere; }

/* ---------- Subsol ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 24px; font-size: 15px; color: var(--ink-faint); }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 36px 28px; }
  .hero .lede { font-size: 18px; }
}
