/* BöjtTárs — a landing és a jogi oldalak közös stíluslapja.
   A színek a Flutter app design tokenjeiből jönnek (lib/core/design/tokens.dart),
   hogy a weboldal és az alkalmazás ugyanazt a nyelvet beszélje. Ha ott változik
   a paletta, itt is át kell vezetni. */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --midnight: #0f1729;
  --dusk: #1b2438;
  --slate: #2a3550;
  --gold: #e8b44a;
  --gold-soft: #f5d68a;
  --gold-ink: #8a5a00;
  --sage: #7fb89e;
  --clay: #d9694f;
  --pearl: #f2f4f8;
  --mist: #8a94a8;

  --shell: min(1160px, 100% - 2.5rem);
  --radius: 20px;
  --radius-sm: 12px;

  --step--1: clamp(0.86rem, 0.83rem + 0.14vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--midnight);
  color: var(--pearl);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 680;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

img {
  max-width: 100%;
  height: auto; /* enélkül a width/height attribútum torzítja a képarányt */
  display: block;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--midnight);
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 650;
  z-index: 100;
}
.skip:focus { left: 0; }

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- fejléc */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--midnight) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.masthead[data-stuck='true'] {
  border-bottom-color: var(--slate);
  background: color-mix(in srgb, var(--midnight) 94%, transparent);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--pearl);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.wordmark svg { width: 30px; height: 30px; flex: none; }

.masthead nav {
  display: flex;
  gap: 1.7rem;
  font-size: var(--step--1);
}
.masthead nav a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}
.masthead nav a:hover { color: var(--pearl); }

@media (max-width: 900px) {
  .masthead nav { display: none; }
}

/* --------------------------------------------------------------- gombok */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: var(--step--1);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--gold {
  background: var(--gold);
  color: #23180a;
  box-shadow: 0 10px 30px -14px rgba(232, 180, 74, 0.9);
}
.btn--gold:hover { background: var(--gold-soft); }

.btn--ghost {
  border-color: var(--slate);
  color: var(--pearl);
}
.btn--ghost:hover { border-color: var(--gold); }

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% 30% auto -20%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 180, 74, 0.14), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 700;
  margin-bottom: 1.3rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero__lead {
  font-size: var(--step-1);
  color: var(--mist);
  max-width: 34ch;
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.hero__note {
  font-size: var(--step--1);
  color: var(--mist);
  max-width: 42ch;
}

/* A hero körív: ugyanaz a forma, mint az appban futó időzítő. */
.dial {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 420px);
  margin-inline: auto;
}
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial__track { fill: none; stroke: var(--slate); stroke-width: 12; }
.dial__arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 14px rgba(232, 180, 74, 0.45));
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.dial__readout {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.dial__time {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.dial__phase {
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 620;
  margin-top: 0.5rem;
}
.dial__goal {
  color: var(--mist);
  font-size: var(--step--1);
}

.dial__ticks text {
  fill: var(--mist);
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
}

/* ------------------------------------------------------------- szakaszok */

section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section-head { max-width: 56ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.section-head p { color: var(--mist); font-size: var(--step-1); }

/* Idővonal: a böjt élettani szakaszai, az app fasting_phases.dart-jából.
   Széles nézetben a jobb oldalon a futó időzítő valódi képernyője kíséri. */
.phases-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 1000px) {
  .phases-layout { grid-template-columns: 1fr; }
  .phases-layout__art { display: none; }
}

.phases-layout__art {
  position: sticky;
  top: 108px;
}
.phases-layout__art .device { width: clamp(200px, 19vw, 240px); }
.phases-layout__art p {
  color: var(--mist);
  font-size: var(--step--1);
  text-align: center;
  margin-top: 1.4rem;
  max-width: 30ch;
  margin-inline: auto;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--slate) 60%, transparent);
}
@media (max-width: 700px) {
  .timeline::before { left: 62px; }
}

.phase {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  padding-block: 1.3rem;
  align-items: start;
}
@media (max-width: 700px) {
  .phase { grid-template-columns: 62px 1fr; gap: 1.1rem; }
}

.phase__hour {
  position: relative;
  text-align: right;
  padding-right: 1.6rem;
  padding-top: 0.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: var(--gold);
  font-size: var(--step-0);
  white-space: nowrap;
}
.phase__hour span {
  color: var(--mist);
  font-weight: 500;
  font-size: 0.82em;
}
.phase__hour::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--midnight);
  border: 2px solid var(--gold);
}
@media (max-width: 700px) {
  .phase__hour { padding-right: 1.15rem; font-size: var(--step--1); }
  .phase__hour span { display: none; }
}

.phase__body h3 {
  font-size: var(--step-1);
  margin-bottom: 0.4rem;
}
.phase__body p { color: var(--mist); max-width: 54ch; }

.disclaimer {
  margin-top: 2.5rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--clay);
  background: color-mix(in srgb, var(--clay) 8%, transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--mist);
  font-size: var(--step--1);
  max-width: 68ch;
}

/* --------------------------------------------------------------- funkciók */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(2.2rem, 5vw, 4rem);
}
.feature + .feature { border-top: 1px solid color-mix(in srgb, var(--slate) 55%, transparent); }
.feature:nth-child(even) .feature__art { order: -1; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__art { order: 0; }
}

.feature__tag {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 640;
  margin-bottom: 0.9rem;
}
.feature h3 {
  font-size: var(--step-2);
  margin-bottom: 1rem;
}
.feature p { color: var(--mist); max-width: 46ch; }

.feature__list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.feature__list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--step--1);
  color: var(--pearl);
}
.feature__list svg { width: 18px; height: 18px; margin-top: 0.28rem; color: var(--sage); }

/* Készülék-keret a valódi app-képekhez. */
.device {
  position: relative;
  width: clamp(200px, 62vw, 252px);
  margin-inline: auto;
  border-radius: clamp(28px, 3.4vw, 38px);
  padding: clamp(7px, 0.9vw, 11px);
  background: linear-gradient(160deg, #35405c, #141b2c 60%);
  box-shadow:
    0 40px 70px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.device::after {
  content: '';
  position: absolute;
  top: clamp(13px, 1.7vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 29%;
  height: clamp(13px, 1.5vw, 19px);
  border-radius: 999px;
  background: #05070d;
}
.device img {
  border-radius: clamp(21px, 2.5vw, 29px);
  width: 100%;
  display: block;
}

.device--tilt { transform: rotate(-2.2deg); }
.device--tilt-r { transform: rotate(2.2deg); }

/* --------------------------------------------------------------- sémák */

.schemes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.scheme {
  border: 1px solid var(--slate);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 640;
  font-size: var(--step--1);
  background: color-mix(in srgb, var(--dusk) 70%, transparent);
}
.scheme span { color: var(--mist); font-weight: 500; }
.scheme--wide { border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

/* ---------------------------------------------------------------- kártya */

.panel {
  background: linear-gradient(155deg, color-mix(in srgb, var(--dusk) 92%, transparent), var(--midnight));
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.plan__name {
  font-size: var(--step-1);
  font-weight: 660;
  margin-bottom: 0.3rem;
}
.plan__price {
  font-size: var(--step-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin-block: 0.6rem 0.2rem;
}
.plan__price small {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0;
}
.plan__note { color: var(--mist); font-size: var(--step--1); }

.plan--premium {
  border-color: color-mix(in srgb, var(--gold) 50%, transparent);
  position: relative;
}
.plan--premium::before {
  content: 'Prémium';
  position: absolute;
  top: -0.75rem;
  left: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--gold);
  color: #23180a;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.plan__features {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.7rem;
  font-size: var(--step--1);
}
.plan__features li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.7rem;
  align-items: start;
}
.plan__features svg { width: 17px; height: 17px; margin-top: 0.25rem; color: var(--sage); }

/* -------------------------------------------------------------- bizalom */

.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
@media (max-width: 720px) {
  .trust { grid-template-columns: 1fr; }
}
.trust__item h3 {
  font-size: var(--step-0);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.trust__item svg { width: 19px; height: 19px; color: var(--gold); flex: none; }
.trust__item p { color: var(--mist); font-size: var(--step--1); }

/* -------------------------------------------------------------- letöltés */

.download {
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(232, 180, 74, 0.16), transparent 70%),
    var(--dusk);
  border-radius: clamp(20px, 4vw, 34px);
  padding: clamp(2.4rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  border: 1px solid var(--slate);
}
.download h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.download > p {
  color: var(--mist);
  max-width: 50ch;
  margin-inline: auto;
  font-size: var(--step-1);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2.3rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.7rem;
  border-radius: 16px;
  background: #05070d;
  border: 1px solid #3a4560;
  color: var(--pearl);
  text-decoration: none;
  min-width: 236px;
  transition: border-color 0.2s, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.store-badge:hover { border-color: var(--gold); transform: translateY(-2px); }
.store-badge svg { width: 32px; height: 32px; flex: none; }
.store-badge span { display: block; text-align: left; line-height: 1.25; }
.store-badge small {
  display: block;
  font-size: 0.72rem;
  color: var(--mist);
  letter-spacing: 0.02em;
}
.store-badge strong { font-size: 1.16rem; font-weight: 650; letter-spacing: -0.015em; }

.store-badge[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}
.store-badge[aria-disabled='true'] small::after {
  content: ' (hamarosan)';
  color: var(--gold);
}

/* ------------------------------------------------------------------ GYIK */

.faq { display: grid; gap: 0.6rem; max-width: 62rem; }
.faq details {
  border: 1px solid var(--slate);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--dusk) 55%, transparent);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-weight: 620;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex: none;
  margin-right: 4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq div {
  padding: 0 1.3rem 1.2rem;
  color: var(--mist);
  max-width: 68ch;
}

/* ----------------------------------------------------------------- lábléc */

.footer {
  border-top: 1px solid var(--slate);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2.5rem;
  font-size: var(--step--1);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.2rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1rem;
  font-weight: 640;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer a { color: var(--pearl); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer dl { margin: 0; display: grid; gap: 0.4rem; color: var(--mist); }
.footer dt { font-weight: 620; color: var(--pearl); }
.footer dd { margin: 0 0 0.5rem; }
.footer__base {
  border-top: 1px solid color-mix(in srgb, var(--slate) 60%, transparent);
  padding-top: 1.6rem;
  color: var(--mist);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
}

/* ------------------------------------------------------- belépő animáció */

/* A tartalom alapból LÁTHATÓ. Az elrejtést a JS kapcsolja be a <html>-en, így
   ha a szkript nem fut le (hiba, blokkolás, régi böngésző), az oldal akkor is
   teljes egészében olvasható marad. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ jogi oldal */

.legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 74ch;
}
.legal h1 { font-size: var(--step-3); margin-bottom: 0.7rem; }
.legal .legal__meta { color: var(--mist); margin-bottom: 2.5rem; font-size: var(--step--1); }
.legal h2 {
  font-size: var(--step-1);
  margin-top: 2.6rem;
  margin-bottom: 0.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--slate) 60%, transparent);
}
.legal h3 { font-size: var(--step-0); margin-top: 1.8rem; margin-bottom: 0.5rem; }
.legal p, .legal li { color: var(--mist); }
.legal p { margin-bottom: 1rem; }
.legal ul, .legal ol { padding-left: 1.3rem; margin-bottom: 1.2rem; display: grid; gap: 0.5rem; }
.legal strong { color: var(--pearl); }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: var(--step--1);
}
.legal th, .legal td {
  text-align: left;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--slate) 60%, transparent);
  vertical-align: top;
}
.legal th { color: var(--pearl); font-weight: 620; white-space: nowrap; width: 1%; }
.legal td { color: var(--mist); }
.legal .callout {
  border-left: 3px solid var(--clay);
  background: color-mix(in srgb, var(--clay) 8%, transparent);
  padding: 1.1rem 1.3rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.4rem;
}
.legal .callout p:last-child { margin-bottom: 0; }
