/* TudatOS Life – weboldal. TDI-színek az App/Theme.swift szerint. Külső betűtípus nincs (Google Fonts = IP-cím a Google-nek). */
:root {
  --bg: #F2F2F2; --card: #FFFFFF; --text: #1E326E; --muted: #5B6B85; --line: #E3E7EE;
  --accent: #2E7E7E; --accent-ink: #FFFFFF; --mint: #50BEAF; --gold: #D29B01; --coral: #D9644A;
  --navy: #0B1426; --navy-card: #13203A; --navy-text: #F2F2F2; --navy-muted: #9FB0C8; --navy-line: #22324F;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Helvetica, sans-serif;
  --gutter: clamp(16px, 5vw, 56px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B1426; --card: #13203A; --text: #F2F2F2; --muted: #9FB0C8; --line: #22324F; --accent: #46A0A0; --accent-ink: #0B1426; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--body); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

/* Fejléc */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 20px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; }
.top nav a { color: inherit; text-decoration: none; opacity: .8; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; text-decoration: underline; }

/* Főoldal: sötét hős-sáv mindkét módban */
.hero { background: var(--navy); color: var(--navy-text); }
.hero .top nav a { color: var(--navy-text); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: clamp(32px, 7vw, 96px) var(--gutter) clamp(56px, 9vw, 120px); max-width: 1280px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(40px, 6.2vw, 80px); font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--mint); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--navy-muted); max-width: 34em; margin: 28px 0 36px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.store { display: inline-flex; flex-direction: column; padding: 12px 22px; border-radius: 14px; background: var(--navy-text); color: var(--navy); line-height: 1.15; }
.store small { font-size: 12px; opacity: .7; }
.store b { font: 800 19px/1.2 var(--display); }
.hero .cta a { color: var(--mint); font-weight: 600; }

/* A „Ma” kártya – az app kezdőképernyője */
.today { background: var(--navy-card); border: 1px solid var(--navy-line); border-radius: 28px; padding: clamp(20px, 3vw, 30px); max-width: 420px; justify-self: end; width: 100%;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7); animation: rise .9s cubic-bezier(.16, 1, .3, 1) both .15s; }
.today header { display: flex; justify-content: space-between; color: var(--navy-muted); font-size: 14px; }
.score { display: flex; align-items: center; gap: 20px; margin: 22px 0 24px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 900 38px/1 var(--display); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 13px; color: var(--navy-muted); }
.pillars li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--c); }
.slot { border-top: 1px solid var(--navy-line); padding-top: 16px; margin-top: 16px; }
.slot small { color: var(--navy-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.slot p { margin: 4px 0 0; font-weight: 600; }
.slot q { display: block; margin-top: 6px; color: var(--navy-muted); font-size: 15px; quotes: "„" "”"; }
.bar { height: 8px; border-radius: 8px; background: var(--navy-line); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 80%; background: var(--mint); border-radius: inherit; animation: fill 1.2s cubic-bezier(.16, 1, .3, 1) both .6s; transform-origin: left; }

/* Szekciók */
.band { padding: clamp(64px, 10vw, 136px) var(--gutter); max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); }
.band h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 900; }
.band > div > p:first-of-type { margin-top: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; padding: 26px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 4px; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 800 15px/1.9 var(--display); color: var(--accent); }
.steps h3 { font-size: 23px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.premium { background: var(--accent); color: var(--accent-ink); }
.premium .band { align-items: end; }
.premium h2 { font-size: clamp(34px, 4.6vw, 60px); }
.premium p { font-size: clamp(18px, 1.5vw, 20px); margin: 0 0 18px; max-width: 32em; }
.premium a { color: inherit; font-weight: 700; }
.premium .fine { font-size: 15px; opacity: .85; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.facts li { padding-left: 28px; position: relative; }
.facts + p { margin-top: 32px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); }

/* Jogi oldalak */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) 80px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; margin-bottom: 10px; }
.doc h2 { font-size: 22px; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc .meta { color: var(--muted); margin: 0 0 8px; }
.doc li { margin-bottom: 8px; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.doc dt { color: var(--muted); }
.doc dd { margin: 0; }
.doc details { border-top: 1px solid var(--line); padding: 14px 0; }
.doc summary { cursor: pointer; font-weight: 650; }
.doc details p { margin: 10px 0 0; }

/* Lábléc */
.foot { border-top: 1px solid var(--line); padding: 36px var(--gutter) 48px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: inherit; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fill { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; } }

@media (max-width: 860px) {
  .hero-grid, .band { grid-template-columns: 1fr; }
  .today { justify-self: start; }
  .top nav .opt { display: none; }
}
@media (max-width: 420px) {
  .doc dl { grid-template-columns: 1fr; gap: 0; }
  .doc dd { margin-bottom: 10px; }
}
