/* Shared by index.html and every generated page (build.mjs). */

/* Saját tárolású változtatható betűk (Google Fonts, latin + latin-ext a magyar ő/ű miatt):
   nincs külső, renderelést blokkoló kérés, és a látogató IP-je sem megy a Google-höz. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/sora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/sora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #08131c;
  --color-bg-elevated: #0d1b27;
  --color-surface: #10222f;
  --color-surface-2: #16303f;
  --color-rule: rgba(234, 244, 246, 0.1);
  --color-rule-strong: rgba(234, 244, 246, 0.22);

  --color-text: #eaf4f6;
  --color-text-muted: #a4bcc8;
  --color-text-faint: #7a93a1;

  --color-primary: #f2994a;
  --color-primary-hover: #f7ab63;
  --color-primary-text: #1a1006;

  --color-accent: #2fbfa6;
  --color-accent-hover: #4fd6bf;
  --color-accent-ink: color-mix(in srgb, var(--color-accent) 70%, #ffffff);
  --color-accent-soft: color-mix(in srgb, var(--color-accent) 12%, transparent);
  --color-accent-rule: color-mix(in srgb, var(--color-accent) 45%, var(--color-rule));

  --font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-display: 'Sora', var(--font-family);

  --text-display: clamp(2.5rem, 1.7rem + 4vw, 4.5rem);
  --text-h1: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --text-h2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-h3: 1.125rem;
  --text-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --gutter: clamp(16px, 4vw, 48px);

  --shell-max: 1180px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --shadow-glow-primary: 0 8px 24px -10px rgba(242, 153, 74, 0.35);
  --shadow-panel-hover: 0 12px 32px -16px rgba(0, 0, 0, 0.6);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-family-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.15;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent-ink);
}

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

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-ink);
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 54ch;
}

.accent {
  color: var(--color-accent);
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  min-height: 52px;
  padding: 0 1.6em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.15s var(--ease-out);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--color-primary-text);
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 10px 30px -10px rgba(242, 153, 74, 0.5);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-rule-strong);
  color: var(--color-text);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-accent-rule);
  transform: translateY(-1px);
}

/* --- Header / nav --- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: var(--space-4);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.wordmark-orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--color-accent-hover) 85%, #ffffff) 0%,
    var(--color-accent) 38%,
    color-mix(in srgb, var(--color-accent) 40%, var(--color-bg)) 75%,
    var(--color-bg) 100%
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent) 40%, transparent);
  animation: breathe 8s var(--ease-out) infinite;
}

.wordmark-text {
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-cta .btn {
  min-height: 40px;
  padding: 0 1.25em;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  padding-block: var(--space-9) var(--space-8);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background: radial-gradient(
    ellipse at 50% 0%,
    color-mix(in srgb, var(--color-accent) 16%, transparent) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
  position: relative;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero-note {
  margin-top: var(--space-5);
  font-size: 0.875rem;
  color: var(--color-text-faint);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 320px;
}

.breath-orb-wrap {
  position: relative;
  width: min(72vw, 320px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--color-accent-rule);
}

.breath-ring--2 {
  inset: 12%;
}

.breath-orb {
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--color-accent-hover) 85%, #ffffff) 0%,
    var(--color-accent) 38%,
    color-mix(in srgb, var(--color-accent) 40%, var(--color-bg)) 75%,
    var(--color-bg) 100%
  );
  box-shadow:
    0 0 60px -10px color-mix(in srgb, var(--color-accent) 55%, transparent),
    0 0 0 1px color-mix(in srgb, var(--color-accent) 40%, transparent);
  animation: breathe 8s var(--ease-out) infinite;
}

.breath-label {
  position: absolute;
  bottom: -2.5rem;
  font-family: var(--font-family-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

@keyframes breathe {
  0% {
    transform: scale(0.86);
  }
  40% {
    transform: scale(1.08);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(0.86);
  }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* --- Sections --- */
section {
  padding-block: var(--space-9);
  border-top: 1px solid var(--color-rule);
}

.section-head {
  max-width: 60ch;
  margin-bottom: var(--space-7);
}

/* --- Technique cards --- */
.techniques-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .techniques-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .techniques-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.technique-card {
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition:
    transform 0.15s var(--ease-out),
    border-color 0.15s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.technique-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--tech-color, var(--color-accent)) 45%, var(--color-rule));
  box-shadow: var(--shadow-panel-hover);
}

.technique-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.technique-orb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--tech-color) 85%, #ffffff) 0%,
    var(--tech-color) 45%,
    color-mix(in srgb, var(--tech-color) 40%, var(--color-bg)) 80%
  );
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tech-color) 45%, transparent);
}

.technique-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--tech-color) 70%, #ffffff);
}

.technique-meta {
  font-size: 0.6875rem;
  color: var(--color-text-faint);
  margin-left: auto;
  white-space: nowrap;
}

.technique-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- Feature grid --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  margin-bottom: var(--space-4);
  color: var(--color-accent-ink);
}

.feature-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* --- How it works --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding-top: var(--space-6);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-family-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 1.75rem + 1.6vw, 3.5rem);
  line-height: 1;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.step p {
  margin-bottom: 0;
}

/* --- Final CTA --- */
.cta-band {
  border-top: 1px solid var(--color-rule);
  padding-block: var(--space-9);
  text-align: center;
}

.cta-band .shell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-band h2 {
  max-width: 24ch;
}

.cta-band .lead {
  text-align: center;
  margin-inline: auto;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--color-rule);
  padding-block: var(--space-6);
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  color: var(--color-text-faint);
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-row a {
  color: var(--color-text-faint);
}

.footer-row a:hover {
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-orb,
  .breath-orb {
    animation: none;
  }
  .technique-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* --- Cookie consent banner --- */
#consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: none;
  gap: var(--space-4);
  padding: var(--space-4) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-rule-strong);
}

#consent-banner[data-open='true'] {
  display: flex;
  flex-direction: column;
}

#consent-banner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

#consent-banner .consent-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

#consent-banner .consent-actions .btn {
  min-height: 44px;
  padding: 0 1.2em;
  flex: 1;
}

@media (min-width: 640px) {
  #consent-banner[data-open='true'] {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }
  #consent-banner .consent-actions .btn {
    flex: none;
  }
}

/* --- Content pages (generated by build.mjs) ----------------------------- */
.technique-card h3 a,
.guide-card h2 a {
  color: inherit;
  text-decoration: none;
}

.technique-card h3 a:hover,
.guide-card h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.section-more {
  margin: var(--space-6) 0 0;
}

.page {
  --measure: 70ch;
  padding-block: var(--space-6) var(--space-9);
}

.crumbs {
  font-size: 0.875rem;
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
}

.crumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.article {
  max-width: var(--measure);
}

.article h1 {
  font-size: var(--text-h1);
  overflow-wrap: break-word;
}

.article .lead {
  max-width: none;
  margin-bottom: var(--space-6);
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.article-meta .technique-tag {
  font-size: inherit;
}

.page section {
  padding-block: var(--space-6) 0;
  margin-top: var(--space-6);
}

.article h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  margin-bottom: 0.6em;
}

.prose h2 {
  margin-top: 1.8em;
}

.article ul,
.article ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
  color: var(--color-text-muted);
}

.article li {
  margin-bottom: 0.6em;
  padding-left: 0.2em;
}

.article li::marker {
  color: color-mix(in srgb, var(--tech-color, var(--color-accent)) 75%, #ffffff);
}

.article strong {
  color: var(--color-text);
}

/* Health warnings: same role as the app's danger-tinted notice block. */
.notice,
.page section.notice {
  background: color-mix(in srgb, #e5484d 10%, transparent);
  border: 1px solid color-mix(in srgb, #e5484d 30%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.notice,
.notice p,
.notice li {
  color: var(--color-text);
}

.notice > :last-child {
  margin-bottom: 0;
}

.disclaimer,
.legal-note {
  font-size: 0.875rem;
  color: var(--color-text-faint);
}

.legal-note {
  max-width: var(--measure);
  margin-top: var(--space-7);
}

.page-more {
  margin-top: var(--space-6);
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1em;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-rule);
}

th {
  color: var(--color-text-faint);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--color-text-muted);
}

.page-cta {
  max-width: var(--measure);
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
  border-radius: var(--radius-xl);
}

.related {
  max-width: var(--measure);
  margin-top: var(--space-8);
}

.related h2 {
  font-size: var(--text-h3);
}

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related li {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
}

.related li span {
  color: var(--color-text-faint);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.guide-list {
  display: grid;
  gap: var(--space-4);
  max-width: var(--measure);
}

.guide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.guide-card h2 {
  font-size: 1.25rem;
}

.guide-card p {
  margin-bottom: 0;
}

/* Legal documents keep the app's own markup (.section per clause). */
.legal .section {
  padding-top: var(--space-5);
  margin-top: var(--space-5);
}

.legal .section:first-of-type {
  border-top: none;
}
