:root {
  --paper: #fbf6f3;
  --surface: #fffdfb;
  --blush: #fce3ee;
  --blush-text: #8a2455;
  --hairline: #ecdfe5;
  --ink: #3a2a33;
  --ink-soft: #5f4a55;
  --muted: #7a6670;
  --rose: #b8326a;
  --rose-deep: #962556;
  --rose-bright: #f74e8f;
  --sage: #3f6a53;
  --shadow: rgba(138, 36, 85, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="hu"] .en,
html[lang="en"] .hu { display: none; }

img { max-width: 100%; display: block; }

a { color: var(--rose); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-deep); }

:focus-visible { outline: 3px solid var(--rose-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.lang { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; }
.lang button { font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); background: none; border: 0; padding: 0.4rem 0.85rem; border-radius: 999px; cursor: pointer; min-height: 36px; }
.lang button[aria-pressed="true"] { background: var(--rose); color: #fff; }

/* hero */
.hero { display: grid; gap: 2.5rem; padding: 2rem 0 4rem; align-items: center; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 1.25rem; text-wrap: balance; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--rose); }
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; margin: 0 0 2rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

.btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.95rem 1.6rem; border-radius: 16px; background: var(--rose); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; box-shadow: 0 6px 16px var(--shadow); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.2s; min-height: 52px; }
.btn:hover { background: var(--rose-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px var(--shadow); }
.btn:active { transform: translateY(0); }
.note { font-size: 0.9rem; color: var(--muted); }

.bloom { position: relative; display: grid; place-items: center; min-height: 250px; order: -1; margin-bottom: 0.5rem; }
.bloom::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: var(--blush); animation: halo 1.6s var(--ease) both; }
.flower { position: relative; width: min(56%, 420px); animation: bloom 1.6s var(--ease) both, breathe 9s ease-in-out 1.6s infinite alternate; }
.phone { position: absolute; right: 2%; bottom: -1.5rem; width: min(36%, 190px); border-radius: 26px; border: 6px solid var(--ink); background: var(--ink); box-shadow: 0 24px 40px var(--shadow); animation: rise 1.2s var(--ease) 0.5s both; }
.phone img { border-radius: 20px; aspect-ratio: 1320 / 2868; width: 100%; height: auto; }

@keyframes bloom { from { opacity: 0; transform: scale(0.25) rotate(-80deg); } to { opacity: 1; transform: none; } }
@keyframes halo { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes breathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.045) rotate(4deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* sections */
section { padding: 4.5rem 0; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; }
.sub { color: var(--ink-soft); max-width: 46ch; margin: 0 0 2.5rem; font-size: 1.1rem; }

/* five beats */
.beats { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.beat { position: relative; padding: 0 0 2.2rem 4.2rem; }
.beat:last-child { padding-bottom: 0; }
.beat::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--rose-bright), var(--hairline)); transform-origin: top; }
.beat:last-child::before { display: none; }
.beat .dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; }
.beat .dot img { width: 26px; height: 26px; }
.beat h3 { font-family: var(--display); font-size: 1.35rem; margin: 0.15rem 0 0.25rem; letter-spacing: -0.015em; }
.beat p { margin: 0; color: var(--ink-soft); }

/* screens */
.screens { background: var(--blush); }
.shots { display: flex; gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem 1.25rem 2rem; margin: 0 -1.25rem; }
.shot { flex: 0 0 min(260px, 70vw); scroll-snap-align: center; margin: 0; }
.shot .phone-frame { border-radius: 34px; border: 8px solid var(--ink); background: var(--ink); box-shadow: 0 22px 36px var(--shadow); }
.shot .phone-frame img { border-radius: 26px; aspect-ratio: 1320 / 2868; width: 100%; height: auto; }
.shot figcaption { margin-top: 1rem; font-weight: 600; color: var(--blush-text); text-align: center; }

/* inside */
.big { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6.5vw, 4.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1.5rem; text-wrap: balance; }
.big span { color: var(--rose); }
.cite { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.label { display: block; color: var(--sage); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.6rem; }

/* private */
.private ul { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.9rem; max-width: 640px; }
.private li { position: relative; padding-left: 2.1rem; font-size: 1.15rem; font-weight: 600; }
.private li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 5px var(--paper); border: 2px solid var(--sage); }

/* closing */
.closing { text-align: center; background: var(--rose); color: #fff; border-radius: 32px; padding: 3.5rem 1.5rem; margin: 2rem 0 4rem; position: relative; overflow: hidden; }
.closing h2 { margin-inline: auto; max-width: 18ch; color: #fff; }
.closing .btn { background: #fff; color: var(--rose-deep); box-shadow: 0 8px 20px rgba(58, 42, 51, 0.25); }
.closing .btn:hover { background: var(--blush); color: var(--rose-deep); }
.closing .note { color: #fbe3ee; margin-top: 1rem; }
.closing .petal { position: absolute; width: 360px; right: -110px; bottom: -150px; opacity: 0.18; animation: breathe 12s ease-in-out infinite alternate; pointer-events: none; }

/* footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 2.5rem 0 3rem; color: var(--ink-soft); font-size: 0.95rem; }
.site-footer p { max-width: 70ch; margin: 0 0 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; font-weight: 600; }

/* document pages (privacy, support) */
.doc { max-width: 720px; padding: 2rem 0 4rem; }
.doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 0.75rem; }
.doc .meta { color: var(--muted); margin: 0 0 2.5rem; }
.doc h2 { font-size: 1.5rem; margin: 2.5rem 0 0.6rem; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink); max-width: 68ch; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: 0.4rem; }
.card { background: var(--surface); border-radius: 20px; padding: 1.25rem 1.4rem; box-shadow: 0 3px 14px var(--shadow); margin: 1rem 0; }
.card.alert { background: var(--blush); box-shadow: none; }
.card h3 { margin: 0 0 0.35rem; font-family: var(--display); font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-soft); }
.doc .card h2 { margin: 0 0 0.35rem; font-size: 1.15rem; letter-spacing: 0; }

/* reveal on scroll (content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .beat::before { transform: scaleY(0); transition: transform 0.9s var(--ease) 0.35s; }
.js .beat.in::before { transform: scaleY(1); }

@media (min-width: 880px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding: 3rem 0 6rem; }
  .bloom { min-height: 520px; order: 0; margin-bottom: 0; }
  .flower { width: min(78%, 420px); }
  .shots { justify-content: center; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .beat::before { transform: none; }
}
