/* =========================================================================
   MealME — mealme.cloud
   Design system. No external fonts, no trackers. Dark-first + light mode.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --brand:        #2BD43C;   /* neon-green fill (broccoli) */
  --brand-bright: #5CF06A;
  --brand-deep:   #0F8A12;   /* readable green on light bg */
  --brand-ink:    #07140A;   /* text on green fills */

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --gutter: 22px;

  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
        Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --t-fast: .16s ease;
  --t:      .26s cubic-bezier(.4,0,.2,1);

  --shadow:    0 1px 2px rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.35);
}

/* Dark (default) */
html, :root {
  --bg:        #0A0B0E;
  --bg-2:      #0E1014;
  --surface:   #14161B;
  --surface-2: #191C22;
  --border:    #262A31;
  --border-2:  #333842;
  --text:      #EDEFF2;
  --text-2:    #A7AEB9;
  --text-3:    #6B727D;
  --accent:    #5CE84C;   /* link/inline accent */
  --glow:      rgba(52,216,38,.30);
  --hero-grad: radial-gradient(60% 80% at 70% 0%, rgba(43,212,60,.18), transparent 60%),
               radial-gradient(50% 60% at 0% 20%, rgba(43,212,60,.10), transparent 55%);
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 40px 100px -30px rgba(0,0,0,.75);
  color-scheme: dark;
}

/* Light */
html[data-theme="light"] {
  --bg:        #FFFFFF;
  --bg-2:      #F5F7F5;
  --surface:   #FFFFFF;
  --surface-2: #F3F5F3;
  --border:    #E6E9E6;
  --border-2:  #D5DAD5;
  --text:      #0D1117;
  --text-2:    #4C5562;
  --text-3:    #7A828D;
  --accent:    #0F8A12;
  --glow:      rgba(43,212,60,.22);
  --hero-grad: radial-gradient(60% 80% at 72% -5%, rgba(43,212,60,.16), transparent 60%),
               radial-gradient(46% 60% at 0% 12%, rgba(43,212,60,.10), transparent 55%);
  --shadow:    0 1px 2px rgba(16,24,40,.05), 0 12px 34px rgba(16,24,40,.08);
  --shadow-lg: 0 40px 90px -32px rgba(16,24,40,.22);
  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--t), color var(--t);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand); color: var(--brand-ink); }
h1,h2,h3,h4 { line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section--tight { padding: clamp(40px, 6vw, 76px) 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.section-head { max-width: 720px; margin: 0 auto clamp(34px, 5vw, 60px); }
.section-head.center { text-align: center; }
h2.h { font-size: clamp(28px, 4.4vw, 46px); margin: 14px 0 0; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.6vw, 19px); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px;
  border: 1px solid transparent; transition: transform var(--t-fast), background var(--t), border-color var(--t), opacity var(--t);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 26px -8px var(--glow); }
.btn--primary:hover { background: var(--brand-bright); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn--ghost:hover { border-color: var(--brand); color: var(--text); }
.btn--lg { padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { color: var(--text); }
.brand span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav-links a {
  padding: 9px 13px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-spacer { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center;
  color: var(--text-2); border: 1px solid var(--border); background: var(--surface);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-2); }
.icon-btn svg { width: 19px; height: 19px; }

/* Language menu */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 40px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 700; font-size: 14px; }
.lang-btn:hover { color: var(--text); border-color: var(--border-2); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast); z-index: 120;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--text-2);
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button[aria-current="true"] { color: var(--brand); }
.lang-menu button[aria-current="true"]::after { content: "✓"; font-weight: 800; }

/* Mobile menu toggle + drawer */
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .menu-toggle { display: inline-grid; }
  .mobile-drawer {
    position: fixed; inset: 66px 0 0 0; z-index: 90; background: var(--bg);
    padding: 18px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity var(--t), transform var(--t), visibility var(--t);
    overflow-y: auto;
  }
  .mobile-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-drawer a { padding: 15px 8px; font-size: 19px; font-weight: 700; border-bottom: 1px solid var(--border); }
  .mobile-drawer .btn { margin-top: 18px; }
}
@media (min-width: 901px) { .mobile-drawer { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px,6vw,72px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-grad); pointer-events: none; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(36px, 6.2vw, 68px); letter-spacing: -.03em; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { font-size: clamp(17px, 2vw, 21px); max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 17px; height: 17px; color: var(--brand); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 9px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; font-weight: 700; color: var(--text-2); margin-bottom: 22px;
}
.badge-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 20%, transparent); display: grid; place-items: center; }
.badge-pill .dot svg { width: 13px; height: 13px; color: var(--brand); }

/* ---------- Phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: var(--glow); filter: blur(70px); z-index: 0; }
.phone {
  position: relative; z-index: 1; width: min(300px, 78vw); aspect-ratio: 1206/2622;
  background: #0b0c10; border-radius: 46px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #23262d, inset 0 0 0 7px #0b0c10;
  border: 1px solid #2a2e36;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: linear-gradient(180deg, #0e1014, #0a0b0e); display: flex; flex-direction: column; }
/* real app screenshot in the hero device — shown by theme + language */
.hero-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
html[lang="de"][data-theme="light"] .shot-de-light,
html[lang="de"][data-theme="dark"]  .shot-de-dark,
html:not([lang="de"])[data-theme="light"] .shot-en-light,
html:not([lang="de"])[data-theme="dark"]  .shot-en-dark { display: block; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 14px; z-index: 5; }
.scr-top { padding: 30px 18px 8px; display: flex; align-items: center; justify-content: space-between; }
.scr-top .greet { font-size: 12px; color: #8b929c; }
.scr-top .name { font-size: 16px; font-weight: 800; color: #fff; }
.scr-top .brocc { width: 30px; height: 30px; border-radius: 9px; }
.ring-card { margin: 6px 16px 12px; background: #14161b; border: 1px solid #23262d; border-radius: 20px; padding: 16px; display: flex; gap: 14px; align-items: center; }
.ring { --p: 68; width: 92px; height: 92px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--brand) calc(var(--p)*1%), #23262d 0);
  display: grid; place-items: center; position: relative; }
.ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #14161b; }
.ring .num { position: relative; z-index: 1; text-align: center; }
.ring .num b { display: block; font-size: 21px; color: #fff; line-height: 1; }
.ring .num small { font-size: 9.5px; color: #8b929c; }
.macros { flex: 1; display: grid; gap: 9px; }
.macro { font-size: 11px; }
.macro .ml { display: flex; justify-content: space-between; color: #aab1bc; margin-bottom: 4px; }
.macro .bar { height: 6px; border-radius: 4px; background: #23262d; overflow: hidden; }
.macro .bar i { display: block; height: 100%; border-radius: 4px; }
.scr-meals { padding: 2px 16px; display: grid; gap: 9px; }
.meal { display: flex; align-items: center; gap: 11px; background: #14161b; border: 1px solid #23262d; border-radius: 15px; padding: 9px; }
.meal img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; flex: none; }
.meal .mt { flex: 1; min-width: 0; }
.meal .mt b { display: block; font-size: 12.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal .mt span { font-size: 10.5px; color: #8b929c; }
.meal .kc { font-size: 12px; font-weight: 800; color: var(--brand); }
.scr-tab { margin-top: auto; display: flex; justify-content: space-around; padding: 12px 8px 16px; border-top: 1px solid #1b1e24; background: #0b0c10; }
.scr-tab i { width: 22px; height: 22px; border-radius: 7px; background: #2a2e36; }
.scr-tab i.on { background: var(--brand); }
.scan-fab { position: absolute; right: 18px; bottom: 70px; z-index: 6; width: 52px; height: 52px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; box-shadow: 0 10px 24px -6px var(--glow); }
.scan-fab svg { width: 24px; height: 24px; color: var(--brand-ink); }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-size: clamp(26px, 3.6vw, 40px); color: var(--text); letter-spacing: -.03em; }
.stat span { color: var(--text-2); font-size: 14px; font-weight: 600; }

/* ---------- Feature grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
  transition: transform var(--t), border-color var(--t), background var(--t);
}
.fcard:hover { transform: translateY(-4px); border-color: var(--border-2); }
.fcard .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }
.fcard .ico svg { width: 23px; height: 23px; }
.fcard h3 { font-size: 18.5px; }
.fcard p { color: var(--text-2); font-size: 15px; margin-top: 9px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step .n { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 8px; }

/* ---------- Alternating showcase rows ---------- */
.showcase { display: grid; gap: clamp(48px, 8vw, 92px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.row.rev .row-media { order: -1; }
.row-text h3 { font-size: clamp(24px, 3vw, 34px); }
.row-text p { color: var(--text-2); margin-top: 16px; font-size: 17px; }
.row-text .ticks { margin-top: 20px; display: grid; gap: 12px; }
.row-text .ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.row-text .ticks svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.row-media { position: relative; }
.media-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 4/3; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,12,8,.55)); }
.media-tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 9px;
  background: rgba(10,11,14,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12);
  color: #fff; padding: 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.media-tag svg { width: 16px; height: 16px; color: var(--brand); }
.float-chip {
  position: absolute; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow);
  border-radius: 14px; padding: 11px 14px; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 9px;
}
.float-chip svg { width: 18px; height: 18px; color: var(--brand); }
.float-chip.tr { top: -16px; right: -10px; }
.float-chip.bl { bottom: -16px; left: -10px; }

/* ---------- Privacy callout ---------- */
.privacy-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(28px,4vw,52px);
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.privacy-card .shield { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
.privacy-card .shield svg { width: 38px; height: 38px; }
.privacy-card h2 { font-size: clamp(22px, 3vw, 32px); }
.privacy-card p { color: var(--text-2); margin-top: 12px; }
.privacy-card .links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 18px; }
.privacy-card .links a { color: var(--accent); font-weight: 700; font-size: 15px; }
.privacy-card .links a:hover { text-decoration: underline; }

/* ---------- Pricing / Pro ---------- */
.pro-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 30%, transparent), 0 30px 70px -34px var(--glow); position: relative; }
.plan .tier { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.plan.pro .tier { color: var(--brand); }
.plan .price { margin: 12px 0 4px; font-size: 17px; color: var(--text-2); }
.plan .price b { font-size: 34px; color: var(--text); letter-spacing: -.03em; }
.plan .desc { color: var(--text-2); font-size: 14.5px; min-height: 40px; }
.plan ul { margin: 18px 0 24px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.plan li svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 2px; }
.plan li.muted { color: var(--text-3); }
.plan li.muted svg { color: var(--text-3); }
.plan .btn { margin-top: auto; }
.pro-badge { position: absolute; top: 18px; right: 18px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.pro-note { color: var(--text-3); font-size: 13px; text-align: center; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.qa { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 22px; height: 22px; flex: none; position: relative; transition: transform var(--t); }
.qa summary .pm::before, .qa summary .pm::after { content: ""; position: absolute; background: var(--text-2); border-radius: 2px; }
.qa summary .pm::before { inset: 10px 3px; height: 2px; }
.qa summary .pm::after { inset: 3px 10px; width: 2px; }
.qa[open] summary .pm::after { opacity: 0; }
.qa[open] summary .pm { transform: rotate(90deg); }
.qa .ans { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(40px,6vw,72px); text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface)); border: 1px solid var(--border); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 120% at 50% 0%, var(--glow), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(26px, 4vw, 42px); }
.cta-band p { color: var(--text-2); margin: 14px auto 0; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; }

/* App store badge (inline svg button) */
.store-badge { display: inline-flex; align-items: center; gap: 11px; background: #000; color: #fff; border: 1px solid #2a2e36;
  padding: 10px 18px; border-radius: 13px; }
html[data-theme="light"] .store-badge { background:#000; color:#fff; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .sb { text-align: left; line-height: 1.1; }
.store-badge .sb small { font-size: 10px; opacity: .8; display:block; }
.store-badge .sb b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.store-badge.soon { opacity: .55; cursor: default; }
.store-badge.soon:hover { opacity: .55; }

/* ---------- Roadmap ---------- */
.rm-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; max-width: max-content; margin: 0 auto clamp(34px,5vw,52px); }
.rm-tab { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--text-2); transition: color var(--t-fast), background var(--t-fast); }
.rm-tab .cnt { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-3); }
.rm-tab .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.rm-tab:hover { color: var(--text); }
.rm-tab.active { background: var(--brand); color: var(--brand-ink); }
.rm-tab.active .cnt { background: rgba(7,20,10,.18); color: var(--brand-ink); }
@media (max-width: 720px){ .rm-tabs { max-width: 100%; border-radius: 18px; } .rm-tab { flex: 1 1 40%; justify-content: center; } }

.rm-panel { display: none; }
.rm-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rm-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.rm-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--s-color, var(--border-2)); }
.rm-item .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rm-item .tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--s-color, var(--text-2)); }
.rm-item .tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s-color, var(--text-2)); }
.rm-item .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.rm-item .ico svg { width: 18px; height: 18px; }
.rm-item h3 { font-size: 17.5px; }
.rm-item p { color: var(--text-2); font-size: 14.5px; margin-top: 7px; }
.rm-empty { text-align: center; color: var(--text-3); padding: 40px; }
.rm-legend { display:flex; flex-wrap:wrap; gap:18px; justify-content:center; margin-top: 34px; color: var(--text-3); font-size: 13px; }
.rm-legend span { display:inline-flex; align-items:center; gap:7px; }
.rm-legend i { width:9px;height:9px;border-radius:50%; display:inline-block; }
@media (max-width: 680px){ .rm-list { grid-template-columns: 1fr; } }

/* ---------- Language blocks (legal pages) ---------- */
.lang-block { display: none; }
html[lang="de"] .lang-block[data-lang="de"],
html[lang="en"] .lang-block[data-lang="en"],
html[lang="es"] .lang-block[data-lang="es"],
html[lang="pt"] .lang-block[data-lang="pt"] { display: block; }
html:not([lang]) .lang-block[data-lang="de"] { display: block; }

/* ---------- Article / legal ---------- */
.page-hero { padding: clamp(40px,6vw,72px) 0 0; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 50px); }
.page-hero .lead { max-width: 720px; }
.updated { color: var(--text-3); font-size: 14px; margin-top: 14px; }
.article { max-width: 800px; margin: 0 auto; }
.article h2 { font-size: clamp(21px, 2.6vw, 27px); margin: 40px 0 14px; padding-top: 12px; }
.article h3 { font-size: 18px; margin: 26px 0 8px; }
.article p, .article li { color: var(--text-2); font-size: 16px; }
.article p { margin: 12px 0; }
.article ul, .article ol { margin: 12px 0; padding-left: 22px; }
.article ul { list-style: disc; }
.article ol { list-style: decimal; }
.article li { margin: 7px 0; }
.article a { color: var(--accent); font-weight: 600; }
.article a:hover { text-decoration: underline; }
.article strong { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.article th, .article td { text-align: left; padding: 11px 13px; border: 1px solid var(--border); vertical-align: top; }
.article th { background: var(--surface); color: var(--text); font-weight: 700; }
.article td { color: var(--text-2); }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0; }
.callout p { margin: 6px 0; color: var(--text-2); }
.callout strong { color: var(--text); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.toc b { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.toc ol { margin: 12px 0 0; padding-left: 20px; }
.toc a { color: var(--accent); font-weight: 600; font-size: 15px; }

/* TOC card list for support */
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.info-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.info-card .ico svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 18px; }
.info-card p { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.info-card a.mail { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; }

/* Steps for account deletion */
.del-steps { counter-reset: d; display: grid; gap: 14px; margin: 22px 0; }
.del-step { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.del-step .n { counter-increment: d; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; }
.del-step .n::before { content: counter(d); }
.del-step h3 { font-size: 17px; }
.del-step p { color: var(--text-2); margin-top: 5px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: clamp(44px,6vw,72px) 0 36px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--text-2); font-size: 14.5px; max-width: 300px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14.5px; padding: 6px 0; transition: color var(--t-fast); }
.foot-col a:hover { color: var(--brand); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13.5px; }
.foot-bottom .made { display: inline-flex; align-items: center; gap: 7px; }
.foot-bottom .made svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { order: -1; min-height: 0; margin-bottom: 14px; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .row, .row.rev .row-media { grid-template-columns: 1fr; order: 0; }
  .pro-wrap { grid-template-columns: 1fr; }
  .privacy-card { grid-template-columns: 1fr; text-align: center; }
  .privacy-card .shield { margin: 0 auto; }
  .privacy-card .links { justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .fgrid, .steps, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-cta .btn { width: 100%; }
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity: 1; transform: none; } }
