/* ── Tinta Design System ───────────────────────────────────────────────
   Lumetia public website. No frameworks, no external fonts, no tracking.
   Signature: book-page paper, marginalia, word underlines.
   ──────────────────────────────────────────────────────────────────── */

:root {
  --ink: #1A2744;
  --ink-light: #3A5078;
  --paper: #FBF7F0;
  --paper-warm: #F2EDE4;
  --gold: #B8860B;
  --gold-bg: #FBF3E2;
  --gold-border: #E7D3A3;
  --text: #1A1A1A;
  --text-dim: #6B6B6B;
  --divider: #D9D2C5;
  --good: #3A7D44;
  --good-bg: #E8F5E9;
  --err: #C44B4B;

  --font-sans: -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  --font-serif: Georgia, "Songti SC", "Noto Serif SC", serif;

  --mw: 720px;
  --rhythm: 1.6rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1A1F2B;
    --paper-warm: #222837;
    --text: #E8E4DC;
    --text-dim: #9B968B;
    --divider: #3A3D45;
    --ink: #C8D6E5;
    --ink-light: #8FA4BE;
    --gold: #D4A017;
    --gold-bg: #2A2415;
    --gold-border: #5A4A20;
    --good-bg: #1A2E1C;
  }
}

/* ── Reset / Base ─────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: var(--rhythm);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Focus ────────────────────────────────────────────────────────── */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Reduced motion ───────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Navigation ───────────────────────────────────────────────────── */

.site-nav {
  align-items: baseline;
  border-bottom: 1px solid var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--mw);
  padding: 16px 24px;
}

.site-nav .logo {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav .logo:hover { color: var(--gold); }

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.nav-links a {
  color: var(--ink-light);
  text-decoration: none;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .lang-sep { color: var(--divider); }

/* ── Layout ───────────────────────────────────────────────────────── */

main {
  margin: 0 auto;
  max-width: var(--mw);
  padding: 32px 24px 64px;
}

.page-section {
  margin-bottom: 2.5rem;
}

/* ── Typography ───────────────────────────────────────────────────── */

h1 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

p { margin-bottom: 1rem; }

a {
  color: var(--ink-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--gold); }

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.35rem; }

strong { color: var(--ink); }

blockquote {
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 1rem 0;
  padding: 0.75rem 1rem;
}

small { font-size: 0.8rem; }

hr {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 2rem 0;
}

/* ── Word-underline (signature) ───────────────────────────────────── */

.word-underline {
  background: linear-gradient(180deg, transparent 80%, var(--gold) 80%);
  display: inline;
}

/* ── Nav: get-the-app pill ────────────────────────────────────────── */

.nav-links .mini-cta {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  padding: 7px 14px;
}

.nav-links .mini-cta:hover { background: var(--gold); color: #fff; }

/* ── Hero (centered brand banner) ─────────────────────────────────── */

.hero {
  background: linear-gradient(175deg, #20304f 0%, var(--ink) 45%, #141d33 100%);
  border-radius: 0 0 24px 24px;
  color: #fff;
  margin: -1px 0 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 380px 260px at 80% 15%, rgba(184,134,11,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 260px 360px at 12% 88%, rgba(58,80,120,0.18) 0%, transparent 70%);
}

.hero-center {
  margin: 0 auto;
  max-width: 780px;
  padding: 52px 24px 60px;
  position: relative;
  text-align: center;
  z-index: 1;
}

.hero-banner {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  box-shadow: 0 26px 64px -30px rgba(0,0,0,0.65);
  display: block;
  height: auto;
  margin: 0 auto 2rem;
  max-width: 620px;
  width: 100%;
}

.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero .hero-sub {
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 34em;
}

.pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  margin: 1.4rem 0 1.8rem;
  padding: 0;
}

.pillars li {
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  margin: 0;
  padding: 5px 13px;
}

.cta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
}

.gp {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  color: var(--ink);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 0.6rem;
  padding: 13px 24px;
  text-decoration: none;
}

.gp:hover { background: var(--gold); color: #fff; }
.gp:hover .gp-tri { border-left-color: #fff; }

.gp-tri {
  border-bottom: 9px solid transparent;
  border-left: 15px solid var(--gold);
  border-top: 9px solid transparent;
  height: 0;
  width: 0;
}

.freeline { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* ── Section head ─────────────────────────────────────────────────── */

.sec { margin: 4rem 0 0; }

.sec-head {
  margin: 0 auto 2.4rem;
  max-width: 38em;
  text-align: center;
}

.sec-kicker {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.sec-head h2 { margin-top: 0; }
.sec-head p { color: var(--text-dim); margin-bottom: 0; }

/* ── Feature cards ────────────────────────────────────────────────── */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--paper-warm);
  border: 1px solid var(--divider);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem 1.5rem 0;
}

.card-kick {
  align-items: center;
  color: var(--gold);
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.card-new {
  background: var(--gold);
  border-radius: 5px;
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 2px 6px;
}

.card h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.2rem; }

.card-shot {
  align-self: center;
  border: 5px solid var(--divider);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px -12px rgba(26,39,68,0.5);
  height: auto;
  margin-top: auto;
  width: 150px;
}

/* ── Closing CTA ──────────────────────────────────────────────────── */

.close {
  background: var(--ink);
  border-radius: 24px;
  color: #fff;
  padding: 56px 24px;
  text-align: center;
}

.close h2 { color: #fff; margin-top: 0; }
.close p { color: rgba(255,255,255,0.8); margin: 0 auto 1.6rem; max-width: 34em; }
.close .gp { background: var(--gold); color: #fff; }
.close .gp .gp-tri { border-left-color: #fff; }
.close .gp:hover { background: #fff; color: var(--ink); }
.close .gp:hover .gp-tri { border-left-color: var(--gold); }
.close-price { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin: 1.1rem 0 0; }

/* ── Plans table ──────────────────────────────────────────────────── */

.plans-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.plans-table {
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
  min-width: 520px;
  width: 100%;
}

.plans-table th,
.plans-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.plans-table thead th {
  background: var(--paper-warm);
  border-bottom: 2px solid var(--divider);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
}

.plans-table thead th:first-child {
  font-weight: 400;
}

.plans-table tbody td {
  border-bottom: 1px solid var(--divider);
}

.plans-table tbody tr:last-child td {
  border-bottom: none;
}

.plans-table .col-feature {
  color: var(--text);
  font-weight: 500;
}

.plans-table .col-value {
  color: var(--ink-light);
  font-size: 0.85rem;
}

.plans-table .check {
  color: var(--good);
  font-weight: 600;
}

.plans-table .tag-pro {
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}

.plans-table .tag-life {
  background: var(--gold);
  border-radius: 6px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}

/* ── AI disclaimer ────────────────────────────────────────────────── */

.ai-note {
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  color: #7A5B00;
  font-size: 0.85rem;
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
}

.ai-note strong {
  color: #7A5B00;
}

/* ── CTA ──────────────────────────────────────────────────────────── */

.cta-section {
  background: var(--ink);
  border-radius: 14px;
  color: #fff;
  margin: 2rem 0;
  padding: 1.5rem;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  margin-top: 0;
}

.cta-section p {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
}

.cta-section .store-badge {
  background: #fff;
  border-radius: 10px;
  color: var(--text);
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
  padding: 10px 24px;
  text-decoration: none;
}

.cta-section .store-badge:hover {
  background: var(--gold);
  color: #fff;
}

/* ── Footer ───────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--divider);
  color: var(--text-dim);
  font-size: 0.8rem;
  line-height: 1.8;
  margin: 3rem auto 0;
  max-width: var(--mw);
  padding: 1.5rem 24px;
  text-align: center;
}

.site-footer a {
  color: var(--ink-light);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer a:hover { color: var(--gold); }

.site-footer .footer-sep {
  color: var(--divider);
  margin: 0 0.5rem;
}

.footer-mark {
  margin-bottom: 0.5rem;
  opacity: 0.6;
}

/* ── Language switcher ────────────────────────────────────────────── */

.lang-block {
  border-left: 3px solid var(--divider);
  margin: 2rem 0;
  padding-left: 1rem;
}

.lang-block:target {
  border-left-color: var(--gold);
  animation: flash-border 2s ease-out;
}

@keyframes flash-border {
  0% { border-left-color: var(--gold); }
  100% { border-left-color: var(--divider); }
}

.lang-label {
  color: var(--text-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ── Delete account page ──────────────────────────────────────────── */

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  counter-increment: step;
  margin-bottom: 1rem;
  padding-left: 2.5rem;
  position: relative;
}

.steps li::before {
  background: var(--ink);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  height: 1.5rem;
  width: 1.5rem;
  left: 0;
  position: absolute;
  top: 0.1rem;
}

.mailto-btn {
  background: var(--ink);
  border-radius: 8px;
  color: #fff !important;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.5rem 0;
  padding: 10px 20px;
  text-decoration: none;
}

.mailto-btn:hover {
  background: var(--gold);
}

/* ── Marginalia ───────────────────────────────────────────────────── */

.marginalia {
  border-left: 2px solid var(--gold);
  color: var(--text-dim);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-style: italic;
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
}

.marginalia::before {
  color: var(--gold);
  content: "✧ ";
  font-style: normal;
}

/* ── Service provider table ───────────────────────────────────────── */

.sp-table {
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
  width: 100%;
}

.sp-table th {
  background: var(--paper-warm);
  border-bottom: 2px solid var(--divider);
  color: var(--ink);
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
}

.sp-table td {
  border-bottom: 1px solid var(--divider);
  padding: 8px 12px;
  vertical-align: top;
}

.sp-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  html { font-size: 15px; }

  .site-nav {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  main { padding: 24px 16px 48px; }

  .hero { border-radius: 0 0 16px 16px; }
  .hero-center { padding: 40px 16px 48px; }
  .hero-banner { margin-bottom: 1.5rem; }
  .hero h1 { font-size: 1.55rem; }
  .hero .hero-sub { font-size: 1rem; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }

  .sec { margin-top: 3rem; }

  .cards {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 340px;
  }

  .card-shot { width: 160px; }

  .plans-table {
    font-size: 0.8rem;
    min-width: 100%;
  }

  .plans-table th,
  .plans-table td {
    padding: 8px 10px;
  }
}

@media (max-width: 400px) {
  .plans-scroll { margin: 0 -16px; }
  .plans-table { font-size: 0.75rem; }
  .plans-table th,
  .plans-table td { padding: 6px 8px; }
}

/* ── Print ────────────────────────────────────────────────────────── */

@media print {
  .site-nav,
  .site-footer,
  .nav-links,
  .hero,
  .close { display: none; }

  body { background: #fff; color: #000; }
  a { color: #000; }
  main { max-width: none; padding: 0; }
}
