/* Mayori – feliratkozó oldal. Szabina's design, variation B: signup up front, rounded card blocks on deep green. */
:root {
  --green: #0d4b3b;
  --deep: #08372d;
  --deeper: #062b23;
  --cream: #f8f3e9;
  --cream-2: #f1eadc;
  --ink: #204b40;
  --ink-soft: #4d6a61;
  --gold: #d4af37;
  --gold-soft: #e2c47c;
  --gold-text: #86672a;       /* gold for text on cream (AA contrast) */
  --line-gold: rgba(212, 175, 55, .28);
  --error: #f0b4a4;
  --error-dark: #a3361f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Montserrat, Arial, Helvetica, sans-serif;
  --page: 1472px;
  --edge: 16px;
  --r: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--deep); }

main, .foot { max-width: var(--page); margin: 0 auto; padding: 0 var(--edge); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--deep); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.card--cream :focus-visible, .card--gold :focus-visible { outline-color: var(--deep); }

/* ---------- type ---------- */
.eyebrow {
  display: block;
  margin: 0 0 24px;
  font: 500 12px/1.5 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow b { font-weight: 600; letter-spacing: .06em; padding-right: 14px; margin-right: 14px; border-right: 1px solid currentColor; }
.eyebrow--gold { color: var(--gold-soft); }
.eyebrow--dark { color: var(--deep); font-weight: 600; }

.h2 {
  font: 400 clamp(32px, 3.6vw, 50px)/1.12 var(--serif);
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}
.h2 em { display: block; color: var(--gold-text); }
.h2--light { color: var(--cream); }
.h2--light em { color: var(--gold-soft); }
.h2--sm { font-size: clamp(30px, 3.1vw, 44px); }
.h3 { font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--serif); color: var(--ink); }
.small { font-size: 13.5px; }
.hint { margin: 12px 0 0 !important; font-size: 13px; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 28px;
  font: 600 14.5px/1.2 var(--sans); letter-spacing: .03em;
  text-decoration: none; text-align: center; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--gold { color: var(--deep); background: var(--gold); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(212, 175, 55, .7); }
.btn--green { color: var(--cream); background: var(--green); }
.btn--green:hover { background: var(--deep); transform: translateY(-1px); }
.btn--deep { color: var(--cream); background: var(--deep); }
.btn--deep:hover { background: var(--green); transform: translateY(-1px); }
.btn--cream { color: var(--deep); background: var(--cream); }
.btn--cream:hover { background: #fff; }
.btn--line { color: var(--cream); border-color: var(--gold); background: transparent; }
.btn--line:hover { background: rgba(212, 175, 55, .12); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: 13px; }
.btn--arrow { padding: 8px 9px 8px 24px; }
.btn__ar { width: 38px; height: 38px; border-radius: 50%; background: var(--deep); display: grid; place-items: center; flex: none; }
.btn__ar svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn--arrow:hover .btn__ar svg { transform: translateX(2px); }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .75; }

.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}

/* ---------- notice (unsubscribed) ---------- */
.notice { position: fixed; left: 0; right: 0; top: 0; z-index: 40; background: var(--cream); color: var(--ink); box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .45); animation: drop .6s var(--ease); }
.notice__in { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; padding-top: 20px; padding-bottom: 18px; }
.notice__title { margin: 0 0 4px; font: 400 22px/1.3 var(--serif); }
.notice__text { margin: 0; font-size: 15px; color: var(--ink-soft); }
.notice__close { flex: none; width: 48px; height: 48px; margin: -8px -12px 0 0; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------- hero card ---------- */
.hero { padding: var(--edge) 0; }
.hero__card {
  display: grid; grid-template-columns: 1.15fr .85fr;
  min-height: min(calc(100svh - 32px), 880px);
  border-radius: var(--r); overflow: hidden; background: var(--green);
}
.hero__copy { padding: 32px clamp(24px, 5vw, 72px) 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-width: 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.top__logo { display: block; width: 54px; flex: none; }
.top__right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill {
  margin: 0; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid rgba(212, 175, 55, .45); border-radius: 999px;
  font: 500 12px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.hero__title {
  font: 400 clamp(44px, 5.2vw, 78px)/1.03 var(--serif);
  letter-spacing: -.015em; color: var(--cream);
  margin-bottom: 28px;
}
.hero__title em { display: block; color: var(--gold-soft); }
.hero__lead { font: 400 clamp(19px, 1.6vw, 22px)/1.5 var(--serif); max-width: 32ch; margin-bottom: 12px; }
.hero__body { color: rgba(248, 243, 233, .84); max-width: 34em; margin-bottom: 32px; }

.hero__cta .btn { min-height: 58px; }
.hero__hint { margin: 14px 0 0; font-size: 13.5px; color: rgba(248, 243, 233, .78); }

.hero__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13.5px; color: rgba(248, 243, 233, .8); }
.hero__meta span { display: inline-flex; align-items: center; gap: 10px; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.hero__media { position: relative; min-height: 520px; overflow: hidden; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 25%; animation: zoom 2.4s var(--ease) both; }
.chips { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 8px 16px; border-radius: 999px; background: rgba(8, 55, 45, .82); font: 500 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes zoom { from { transform: scale(1.06); } to { transform: none; } }
.rise { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }

/* ---------- statement ---------- */
.statement { margin: 0 auto; max-width: 20em; padding: clamp(64px, 8vw, 104px) 16px clamp(56px, 7vw, 92px); text-align: center; font: 400 clamp(30px, 4vw, 54px)/1.18 var(--serif); color: var(--cream); }
.statement em { color: var(--gold-soft); }

/* ---------- cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: var(--edge); margin-bottom: var(--edge); }
.card { flex: 1 1 400px; min-width: 0; border-radius: var(--r); padding: clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; gap: 22px; }
.card p { margin: 0; }
.card .eyebrow { margin: 0; }
.card--cream { flex-basis: 560px; background: var(--cream); color: var(--ink-soft); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card__num { font: 400 56px/1 var(--serif); color: #a8862a; }
.card__foot { margin-top: auto; padding-top: 8px; }

.card--gold { background: var(--gold); color: var(--deep); justify-content: space-between; gap: 40px; }
.card--gold > div { display: flex; flex-direction: column; gap: 18px; }
.card--gold .eyebrow { margin-bottom: 6px; }
.card--gold .h2, .card--gold .h2 em, .card--gold .h3 { color: var(--deep); }
.card--gold .btn { align-self: flex-start; }
.facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 22px; border-top: 1px solid rgba(8, 55, 45, .35); margin-bottom: 8px; }
.facts__k { font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.facts__v { font: 400 clamp(22px, 2vw, 26px)/1.3 var(--serif); }
.facts__n { font-size: 13px; }

/* ---------- 02 panel ---------- */
.panel { display: flex; flex-wrap: wrap; gap: 56px; border-radius: var(--r); background: var(--green); padding: clamp(28px, 5vw, 80px); margin-bottom: var(--edge); color: rgba(248, 243, 233, .82); }
.panel__copy { flex: 1 1 440px; min-width: 0; }
.panel__copy .h2 { margin-bottom: 22px; }
.panel__intro { margin: 0 0 40px; max-width: 36em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; padding: 22px 24px; border-radius: 16px; background: rgba(8, 55, 45, .7); border: 1px solid rgba(212, 175, 55, .25); }
.steps .num { grid-row: span 2; margin: 0; line-height: 1.2; }
.num { display: block; font: 400 26px/1 var(--serif); color: var(--gold); margin-bottom: 14px; font-variant-numeric: oldstyle-nums; }
.steps h3 { font: 600 16px/1.4 var(--sans); color: var(--cream); margin-bottom: 6px; }
.steps p { margin: 0; font-size: 14px; color: rgba(248, 243, 233, .8); }
.panel__foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.panel__foot p { margin: 0; font: 400 20px/1.5 var(--serif); color: var(--cream); }
.panel__foot em { color: var(--gold-soft); }

.visual { flex: 1 1 360px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.visual__cap .eyebrow { margin-bottom: 8px; }
.visual__title { display: block; font: 400 clamp(26px, 2.4vw, 32px)/1.2 var(--serif); color: var(--cream); }
.visual__title em { color: var(--gold-soft); }
.visual__img { position: relative; flex: 1 1 auto; min-height: 480px; border-radius: 16px; overflow: hidden; background: var(--deeper); }
.visual__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; transition: transform 1.6s var(--ease); }
.visual__img:hover img { transform: scale(1.02); }
.aix { position: absolute; left: 20px; top: 20px; padding: 10px 18px; border-radius: 999px; background: rgba(8, 55, 45, .85); font: 400 18px/1 var(--serif); color: var(--gold-soft); }
.aix span { color: rgba(248, 243, 233, .6); }
.aix small { font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.visual__label { position: absolute; left: 20px; bottom: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(8, 55, 45, .85); font-size: 12px; color: var(--cream); }

/* ---------- 04 + 05 ---------- */
.card--outline { border: 1px solid rgba(212, 175, 55, .35); color: rgba(248, 243, 233, .82); }
.card--outline .btn { align-self: flex-start; }
.card--outline .small { color: rgba(248, 243, 233, .72); }
.perks { list-style: none; margin: 0; padding: 0; }
.perks li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid rgba(212, 175, 55, .25); }
.perks li:last-child { border-bottom: 1px solid rgba(212, 175, 55, .25); }
.perks .num { margin: 0; min-width: 36px; font-size: 22px; line-height: 1.3; }
.perks strong { display: block; font-weight: 600; color: var(--cream); }
.perks span:not(.num) { font-size: 14.5px; color: rgba(248, 243, 233, .78); }

.card--form { flex-basis: 480px; scroll-margin-top: var(--edge); }
.card--form:focus { outline: none; }
.card--form .h2 { font-size: clamp(32px, 3.4vw, 48px); }
.s5__intro { margin-bottom: 8px !important; }

.form { display: grid; gap: 20px; }
.form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.form__row .field { flex: 1 1 210px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input[type="email"], .field input[type="text"] {
  width: 100%; min-height: 54px; padding: 14px 18px;
  font: 400 16px/1.3 var(--sans); color: var(--ink);
  background: #fff; border: 1px solid rgba(32, 75, 64, .35); border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder { color: #7f8f88; }
.field input:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgba(212, 175, 55, .4); }
.field input[aria-invalid="true"] { border-color: var(--error-dark); box-shadow: 0 0 0 2px rgba(163, 54, 31, .2); }
.field__err { margin: 0 !important; font-size: 13.5px; color: var(--error-dark); }
.field__err:empty { display: none; }
.field__err::before { content: "! "; font-weight: 600; }

.field--check { grid-template-columns: 24px 1fr; column-gap: 14px; row-gap: 8px; align-items: start; }
.field--check input {
  appearance: none; -webkit-appearance: none; margin: 2px 0 0;
  width: 24px; height: 24px; border-radius: 6px;
  background: #fff; border: 1px solid rgba(32, 75, 64, .45);
  display: grid; place-content: center; cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.field--check input::after { content: ""; width: 11px; height: 6px; border: 2px solid var(--cream); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.field--check input:checked { background: var(--green); border-color: var(--green); }
.field--check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field--check input[aria-invalid="true"] { border-color: var(--error-dark); box-shadow: 0 0 0 2px rgba(163, 54, 31, .2); }
.field--check label { font-weight: 400; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft); cursor: pointer; }
.field--check .link { color: var(--ink); }
.field--check .field__err { grid-column: 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { min-height: 58px; font-size: 15px; }
.form__status { margin: -6px 0 0 !important; font-size: 14px; text-align: center; color: var(--ink); }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error-dark); }
.form__fine { margin: -4px 0 0 !important; font-size: 12.5px; text-align: center; color: var(--ink-soft); }

.btn .spin { width: 16px; height: 16px; margin-right: 4px; border: 2px solid rgba(8, 55, 45, .3); border-top-color: var(--deep); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.done { padding: 28px; border-radius: 16px; background: var(--cream-2); animation: rise .7s var(--ease); }
.done:focus { outline: none; }
.done__mark { display: block; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold-text); margin-bottom: 22px; position: relative; }
.done__mark::after { content: ""; position: absolute; left: 17px; top: 17px; width: 17px; height: 9px; border: 2px solid var(--green); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.done__title { font: 400 clamp(24px, 2.4vw, 30px)/1.25 var(--serif); color: var(--ink); margin-bottom: 12px; }
.done__text { margin: 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.foot { padding-top: 48px; padding-bottom: 28px; color: rgba(248, 243, 233, .7); font-size: 13px; }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 0 8px; }
.foot__logo { width: 46px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot__links .link { font-size: 14px; min-height: 44px; color: var(--gold-soft); }
.foot__links .link:hover { color: var(--cream); }
.foot__disc { margin: 28px 0 0; text-align: center; font-size: 12px; color: rgba(248, 243, 233, .58); }

/* ---------- legal dialogs ---------- */
.doc {
  width: min(720px, calc(100vw - 32px)); max-height: min(84vh, 900px);
  padding: 0; border: 0; border-radius: 16px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
}
.doc::backdrop { background: rgba(6, 43, 35, .72); backdrop-filter: blur(3px); }
.doc[open] { display: flex; flex-direction: column; animation: rise .45s var(--ease); }
.doc__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 28px; border-bottom: 1px solid rgba(32, 75, 64, .18); }
.doc__head h2 { font: 400 26px/1.2 var(--serif); }
.doc__close { width: 48px; height: 48px; margin-right: -12px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; }
.doc__body { padding: 28px; overflow: auto; font-size: 15.5px; }
.doc__body h3 { font: 600 12.5px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 24px 0 10px; color: var(--gold-text); }
.doc__body h3:first-child { margin-top: 0; }
.doc__body h3 { margin-top: 30px; }
.doc__body p { margin: 0 0 12px; }
.doc__body ul { margin: 0 0 14px; padding-left: 20px; }
.doc__body li { margin-bottom: 6px; }
.doc__body li::marker { color: var(--gold-text); }
.doc__meta { font-size: 13.5px; color: var(--ink-soft); }
.doc__todo { background: #fff3c4; color: #6b5310; padding: 0 4px; }
p.doc__todo { padding: 14px 16px; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__card { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { min-height: min(110vw, 560px); }
}

@media (max-width: 700px) {
  :root { --edge: 10px; --r: 20px; }
  .hero__copy { padding: 22px 20px 30px; gap: 36px; }
  .top__logo { width: 44px; }
  .pill { display: none; }
  .hero__title { font-size: clamp(40px, 11vw, 54px); }
  .hero__cta .btn { width: 100%; justify-content: space-between; }
  .hero__meta { flex-direction: column; }
  .chips { left: 16px; right: 16px; bottom: 16px; gap: 6px; }
  .chips li { font-size: 11.5px; padding: 7px 12px; }
  .card { padding: 30px 22px; }
  .card__num { font-size: 44px; }
  .card .btn, .panel__foot .btn { width: 100%; white-space: normal; }
  .panel { padding: 30px 22px; gap: 40px; }
  .visual__img { min-height: 420px; }
  .visual__label { left: 14px; right: 14px; bottom: 14px; border-radius: 12px; font-size: 11px; }
  .aix { left: 14px; top: 14px; }
  .steps li { grid-template-columns: 40px 1fr; padding: 20px; }
  .visual__img img { object-position: 70% 30%; }
  .foot__top { flex-direction: column; align-items: flex-start; }
  .doc__head, .doc__body { padding-left: 20px; padding-right: 20px; }
}

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