/* BreathCoach: cyberhorizon.hu design language. Paper, ink, sky. Square corners, hairlines. */
:root {
  color-scheme: light;
  --paper: #F5F4EF;
  --panel: #E6E9DF;
  --ink: #202923;
  --muted: #4C574E;
  --rule: #C9CDC6;
  --sky: #39B5D5;
  --deep: #007B9F;
  --neg: #B3261F;
  --font: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
  --gutter: 16px;
  --maxw: 1160px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }

/* Type */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; margin-bottom: 18px; }
.display { font-weight: 500; letter-spacing: -0.045em; line-height: .95; font-size: clamp(56px, 15vw, 132px); }
.display-md { font-size: clamp(52px, 11vw, 104px); margin-bottom: 24px; }
.h2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(36px, 7.4vw, 64px); margin-bottom: 20px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--muted); max-width: 34em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 0;
  font: 500 16px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #33403a; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--panel); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 36px; font-size: 18px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.arrow-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.arrow-link::after { content: " ↗"; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 244, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { border: 1px solid var(--rule); }
.dot { color: var(--deep); }

/* Hero */
.hero { padding: 40px 0 0; }
.hero-grid { display: grid; gap: 40px; }
.hero-copy .lead { margin: 24px 0 32px; }
@media (min-width: 960px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 56px; }
}
.hero-art { position: relative; background: var(--sky); color: var(--ink); padding: 40px 0 0; display: flex; justify-content: center; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); }
@media (min-width: 720px) { .hero-art { margin: 0; } }
.arcs { position: absolute; left: 50%; bottom: 0; width: 150%; max-width: 900px; transform: translateX(-50%); opacity: .35; }
.hero-art .phone { position: relative; width: min(300px, 70%); margin-bottom: -2px; }

/* Phone screenshots: hairline frame, square corners */
.phone { border: 1px solid var(--ink); background: var(--paper); box-shadow: 0 24px 60px -30px rgba(32, 41, 35, .45); }
.phone img { width: 100%; }
.phone-tilt { max-width: 320px; justify-self: center; }

/* Join form */
.join { max-width: 560px; }
.join-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 520px) { .join-row { flex-direction: row; } .join-row input { flex: 1; } }
.join input[type=email] {
  min-height: 52px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 0; background: #fff;
  font: 17px var(--font); color: var(--ink); width: 100%;
}
.join input[type=email][aria-invalid=true] { border-color: var(--neg); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-msg { min-height: 1.4em; margin-top: 10px; font-size: 14px; color: var(--neg); }
.form-msg:empty { min-height: 0; margin: 0; }
.join-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.join-note [data-social]:not(:empty)::after { content: " · "; }
.join-profile, .join-final { border-top: 1px solid var(--ink); padding-top: 20px; }
.join-done-title { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 22px 0 0; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 14px; border: 1px solid var(--rule); background: #fff; font-size: 15px; line-height: 1.2; transition: background-color .12s, border-color .12s, color .12s; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--deep); outline-offset: 2px; }
.profile-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* Strip */
.strip { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.strip-grid { display: grid; grid-template-columns: 1fr 1fr; }
.strip-grid > div { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.strip-grid > div:nth-child(odd) { padding-right: 12px; }
.strip-grid > div:nth-child(n+3) { border-bottom: 0; }
.strip-grid strong { display: block; font-size: clamp(24px, 4vw, 34px); font-weight: 500; letter-spacing: -0.03em; }
.strip-grid span { font-size: 14px; color: var(--muted); }
@media (min-width: 860px) {
  .strip-grid { grid-template-columns: repeat(4, 1fr); }
  .strip-grid > div { border-bottom: 0; padding: 28px 16px 28px 0; }
  .strip-grid > div + div { border-left: 1px solid var(--rule); padding-left: 24px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-panel { background: var(--panel); }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr .85fr; gap: 80px; }
  .split-rev { grid-template-columns: .85fr 1.15fr; }
}
@media (max-width: 899px) { .split-rev > figure { order: 2; } }
.split .phone { max-width: 320px; width: 100%; justify-self: center; }

.steps { margin-top: 36px; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.steps .num { font-size: 15px; font-weight: 600; color: var(--deep); padding-top: 2px; }
.steps p { color: var(--muted); }

.ticks { margin-top: 28px; border-top: 1px solid currentColor; }
.ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(32, 41, 35, .18); position: relative; }
.ticks li::before { content: "—"; position: absolute; left: 0; }

/* Sky band */
.sky { background: var(--sky); padding: 80px 0; }
.sky .lead { color: var(--ink); }
.sky .phone { box-shadow: 0 30px 70px -30px rgba(0, 60, 80, .55); }
@media (min-width: 960px) { .sky { padding: 120px 0; } }

/* Goals */
.goals { display: grid; margin-top: 36px; border-top: 1px solid var(--ink); }
.goals li { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.goals p { color: var(--muted); }
@media (min-width: 720px) {
  .goals { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
@media (min-width: 1040px) { .goals { grid-template-columns: repeat(3, 1fr); } }

/* Ink (safety) */
.ink { background: var(--ink); color: var(--paper); padding: 80px 0; }
.ink .lead, .ink .fine { color: #C9D2CB; }
.ink .eyebrow { color: var(--sky); }
.rules { border-top: 1px solid var(--paper); }
.rules li { padding: 16px 0; border-bottom: 1px solid rgba(245, 244, 239, .22); }
.rules li.fine { border-bottom: 0; padding-top: 20px; }
@media (min-width: 960px) { .ink { padding: 120px 0; } }

/* FAQ */
.faq-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 80px; } }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* Final CTA */
.final { padding: 96px 0; border-top: 1px solid var(--ink); }
.final-inner { display: grid; gap: 32px; justify-items: start; }
@media (min-width: 900px) { .final-inner { grid-template-columns: 1fr auto; align-items: end; } }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 120px; }
@media (min-width: 720px) { .foot { padding-bottom: 48px; } }
.foot-grid { display: grid; gap: 20px; }
.foot-grid p { margin-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr auto; } .foot-grid .fine { grid-column: 1 / -1; } }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(245, 244, 239, .96); border-top: 1px solid var(--rule);
  transform: translateY(110%); transition: transform .2s ease-out;
}
.sticky-cta.show { transform: none; }
@media (min-width: 720px) { .sticky-cta { display: none; } }

/* Simple pages (privacy, support, confirmed, unsubscribe, 404) */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 760px; }
.page .h2 { margin-bottom: 12px; }
.page .meta { color: var(--muted); margin-bottom: 40px; }
.doc section { border-top: 1px solid var(--rule); padding: 22px 0; }
.doc section:first-of-type { border-top-color: var(--ink); }
.doc h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 8px 0 16px; }
.doc h3 { margin-top: 4px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 10px; }
.doc ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.doc li + li { margin-top: 4px; }
.card { border: 1px solid var(--ink); background: #fff; padding: 24px; margin-top: 28px; }
.share-row { display: flex; gap: 10px; flex-direction: column; margin-top: 16px; }
.share-row input { min-height: 52px; padding: 0 14px; border: 1px solid var(--rule); font: 15px var(--font); width: 100%; background: var(--paper); color: var(--ink); }
@media (min-width: 560px) { .share-row { flex-direction: row; } .share-row input { flex: 1; } }
.big-num { font-size: clamp(64px, 18vw, 120px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }

/* Admin */
.admin table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.admin th, .admin td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.admin th { font-weight: 600; border-bottom-color: var(--ink); }
.admin td.n, .admin th.n { text-align: right; font-variant-numeric: tabular-nums; }
.admin .table-scroll { overflow-x: auto; }
.admin .kpis { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); margin: 20px 0 8px; }
.admin .kpis div { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.admin .kpis strong { display: block; font-size: 36px; font-weight: 500; letter-spacing: -0.03em; }
@media (min-width: 720px) { .admin .kpis { grid-template-columns: repeat(4, 1fr); } }
.admin h2 { font-size: 22px; font-weight: 500; margin-top: 40px; }
.admin .wrap { max-width: var(--maxw); }
.admin input[type=password], .admin input[type=email] { min-height: 48px; padding: 0 12px; border: 1px solid var(--ink); font: 16px var(--font); width: 100%; max-width: 420px; }
.admin .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* Utilities */
.m-0 { margin: 0 !important; }
.mt-32 { margin-top: 32px; }
.row-between { justify-content: space-between; align-items: center; }
.card-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }

[hidden] { display: none !important; }
