/* Praxis V2 — bright, soft, modern.
   Layout: airy single page on a faint lavender-white ground. A floating pill
   header, a two-column hero with her watercolour in an arch and two small
   floating cards, then alternating white / tinted sections built from soft
   cards. Serif (Cormorant) only for headlines, a friendly sans (Figtree) for
   reading. Motion: one load-in sequence in the hero, gentle floating cards
   (paused off-screen), and scroll reveals done in pure CSS where supported.
   Everything animates only transform/opacity; reduced motion turns it off. */
:root {
  color-scheme: light;
  --bg: #fcfbff;
  --surface: #ffffff;
  --tint: #f4f2fd;
  --tint-strong: #e9e5fb;
  --ice: #edf6fb;
  --ink: #1b1d38;
  --ink-2: #4b4f6e;
  --ink-3: #6e7290;
  --primary: #4943c4;
  --primary-2: #3a34a6;
  --primary-soft: #ecebfd;
  --leaf: #4f7a3a;
  --line: rgba(27, 29, 56, 0.09);
  --line-strong: rgba(27, 29, 56, 0.16);
  --error: #b42332;
  --ok: #2f7a43;

  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.1875rem;
  --t-lg: clamp(1.2rem, 1.05rem + 0.5vw, 1.4rem);
  --t-h3: 1.25rem;
  --t-h2: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --t-h1: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(27, 29, 56, 0.05), 0 2px 8px rgba(27, 29, 56, 0.04);
  --shadow-md: 0 1px 2px rgba(27, 29, 56, 0.05), 0 10px 30px rgba(27, 29, 56, 0.07);
  --shadow-lg: 0 2px 6px rgba(27, 29, 56, 0.05), 0 24px 60px rgba(73, 67, 196, 0.12);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face { font-family: "Figtree"; src: url("fonts/figtree-var.woff") format("woff"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--t-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, p, ul, ol, dl, dd, blockquote, h1, h2, h3, h4 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color 0.2s; }
a:hover { color: var(--primary-2); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--primary-soft); }

h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--t-h1); line-height: 1.02; }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); font-weight: 650; line-height: 1.3; letter-spacing: -0.005em; }
p { text-wrap: pretty; }
.eyebrow, .mini {
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary);
}
.mini { color: var(--ink-3); }
.lead { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.lead-sm { font-size: var(--t-md); line-height: 1.6; color: var(--ink); }
.hint { font-size: var(--t-sm); color: var(--ink-3); }
.multiply, .aquarell { mix-blend-mode: multiply; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section-tint { background: linear-gradient(180deg, var(--tint) 0%, #f8f7fe 100%); }
.section-head { display: grid; gap: 0.9rem; max-width: 42rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head > p:not(.eyebrow) { color: var(--ink-2); font-size: var(--t-md); }

.skip { position: absolute; left: -999rem; top: 0.5rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 10px; }
.skip:focus { left: 0.5rem; }

/* ---------- buttons ---------- */
.btn, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3.1rem; padding: 0.75rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary, .button { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(27, 29, 56, 0.1), 0 8px 20px rgba(73, 67, 196, 0.28); }
.btn-primary:hover, .button:hover { background: var(--primary-2); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(27, 29, 56, 0.1), 0 14px 28px rgba(73, 67, 196, 0.32); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.btn-sm { min-height: 2.6rem; padding: 0.5rem 1.1rem; font-size: 0.95rem; }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.button[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)); pointer-events: none; }
.bar {
  pointer-events: auto; display: flex; align-items: center; gap: 1.25rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, background-color 0.3s;
}
.is-scrolled .bar { box-shadow: var(--shadow-md); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 64rem) and (hover: hover) {
    .bar { background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
  }
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand-mark { width: 2.5rem; height: 2.5rem; border-radius: 12px; box-shadow: var(--shadow-sm); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { font-weight: 650; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 0.76rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 0.2rem; }
.nav a { padding: 0.5rem 0.8rem; border-radius: 999px; color: var(--ink-2); font-weight: 550; font-size: 0.95rem; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.nav a:hover { background: var(--primary-soft); color: var(--primary); }
.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 0.5rem;
  min-height: 2.6rem; padding: 0.4rem 1rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu[open] .menu-icon { background: transparent; }
.menu[open] .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.menu[open] .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.75rem); width: min(18rem, calc(100vw - 2rem));
  display: grid; gap: 0.15rem; padding: 0.6rem; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform-origin: top right; animation: pop 0.22s var(--ease);
}
.menu-panel a { padding: 0.75rem 0.9rem; border-radius: 12px; color: var(--ink); font-weight: 550; text-decoration: none; }
.menu-panel a:hover { background: var(--tint); }
.menu-panel .menu-cta { margin-top: 0.3rem; background: var(--primary); color: #fff; text-align: center; }
.menu-panel .menu-cta:hover { background: var(--primary-2); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); overflow: clip; }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: min(70rem, 120vw); aspect-ratio: 1; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 62% 40%, rgba(122, 114, 240, 0.20), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(150, 196, 140, 0.16), transparent 70%),
    radial-gradient(closest-side at 80% 80%, rgba(126, 190, 228, 0.16), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0, 0, 0) rotate(0deg); } to { transform: translate3d(-4%, 3%, 0) rotate(8deg); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-text { display: grid; gap: 1.6rem; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; justify-self: start; padding: 0.4rem 0.9rem 0.4rem 0.7rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.chip-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(79, 122, 58, 0.15); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; padding-top: 0.5rem; }
.trust-logo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.45rem 0.75rem; box-shadow: var(--shadow-sm); }
.trust-logo { padding: 0.55rem 1rem; }
.trust-logo img { height: 3.1rem; width: auto; }
.trust-check { display: flex; align-items: center; gap: 0.5rem; font-size: var(--t-sm); font-weight: 600; color: var(--leaf); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 28rem); padding: 1rem 1.5rem 2rem; }
.arch {
  position: relative; border-radius: 999px 999px var(--r-xl) var(--r-xl); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lg); border: 8px solid #fff; aspect-ratio: 3 / 4;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 1rem 0.7rem 0.7rem;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md);
  font-size: 0.9rem; line-height: 1.3; max-width: 16rem;
}
.float-card strong { display: block; font-weight: 650; }
.float-card small { display: block; color: var(--ink-3); font-size: 0.8rem; }
.float-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex: none; }
.float-a { left: -1.5rem; top: 18%; animation: bob 7s ease-in-out infinite; }
.float-b { right: -1rem; bottom: 12%; animation: bob 8s ease-in-out -3s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.is-offscreen .float-a, .is-offscreen .float-b, .is-offscreen .hero-glow { animation-play-state: paused; }

.facts {
  margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.fact { padding: 1.4rem 1.5rem; display: grid; gap: 0.35rem; align-content: start; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.fact dd { font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; font-variant-numeric: lining-nums tabular-nums; }
.fact a { color: var(--ink); text-decoration: none; }
.fact a:hover { color: var(--primary); }

/* load-in sequence (hero only) */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-visual, .facts { animation: rise 0.9s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-text > :nth-child(4) { animation-delay: 0.24s; }
  .hero-text > :nth-child(5) { animation-delay: 0.32s; }
  .hero-visual { animation-delay: 0.15s; animation-duration: 1.1s; }
  .facts { animation-delay: 0.4s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- course ---------- */
.course {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--ice) 0%, #f6faff 60%, #fff 100%); border: 1px solid rgba(80, 140, 190, 0.18); box-shadow: var(--shadow-md);
}
.course-art img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.course-text { display: grid; gap: 1rem; min-width: 0; }
.badge { justify-self: start; padding: 0.35rem 0.85rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 650; }
.badge-ice { background: #dcedf8; color: #1f5a85; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.4rem; }

.kv { display: grid; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; }
.kv dt { color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; padding-top: 0.15rem; }
.kv dd { overflow-wrap: anywhere; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.about-visual { position: relative; max-width: 26rem; padding-bottom: 2rem; }
.portrait { border-radius: 999px 999px var(--r-xl) var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 8px solid #fff; aspect-ratio: 3 / 4; background: #fff; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.float-c { right: -1.5rem; bottom: 0; }
.about-text { display: grid; gap: 1.1rem; max-width: 40rem; min-width: 0; }
.about-text > p:not(.eyebrow):not(.lead-sm) { color: var(--ink-2); }

.disclosure { margin-top: 0.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.disclosure > summary, .qa > summary, .legal summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 650;
}
.disclosure > summary::-webkit-details-marker, .qa > summary::-webkit-details-marker, .legal summary::-webkit-details-marker { display: none; }
.disclosure > summary::after, .qa > summary::after, .legal summary::after {
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--primary-soft) center / 12px 12px no-repeat
    url("img/icon-plus.svg");
  transition: transform 0.3s var(--ease);
}
.disclosure[open] > summary::after, .qa[open] > summary::after, .legal details[open] > summary::after { transform: rotate(45deg); }
.disclosure > summary { padding: 1rem 1.1rem 1rem 1.25rem; }
.disclosure-body { padding: 0 1.25rem 1.25rem; display: grid; gap: 0.75rem; }
.disclosure-body .mini { margin-top: 0.5rem; }
.timeline-list { display: grid; gap: 0.6rem; }
.timeline-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; font-size: 0.98rem; }
.tl-year { color: var(--primary); font-weight: 650; font-variant-numeric: tabular-nums lining-nums; }

/* smooth open/close where the browser supports it (pure CSS, no script) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  @media (prefers-reduced-motion: no-preference) {
    details::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
    details[open]::details-content { block-size: auto; }
  }
}

/* ---------- specialties ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.5rem); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm); display: grid; gap: 0.7rem; align-content: start;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { color: var(--ink-2); }
.card-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 16px; background: var(--primary-soft); color: var(--primary); margin-bottom: 0.4rem; }

/* ---------- steps + pricing ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.25rem); position: relative; }
.steps::before { content: ""; position: absolute; top: 2.15rem; left: 2.5rem; right: 2.5rem; height: 2px; background: linear-gradient(90deg, var(--primary-soft), var(--tint-strong), var(--primary-soft)); }
.step { position: relative; display: grid; gap: 0.5rem; align-content: start; padding: 1.25rem 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-no { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; box-shadow: 0 0 0 6px var(--bg); margin-bottom: 0.4rem; }
.step-meta { font-size: var(--t-sm); font-weight: 650; color: var(--leaf); }
.step p:last-child { color: var(--ink-2); font-size: 0.98rem; }
.pricing {
  margin-top: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 0% 0%, #ffffff 0%, var(--tint) 55%, var(--tint-strong) 100%); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.price-main { display: grid; gap: 0.4rem; }
.price { display: grid; }
.price-figure { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 1; font-weight: 500; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.price-unit { color: var(--ink-3); font-size: var(--t-sm); margin-top: 0.4rem; }
.checks { display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--ink-2); font-size: 0.98rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2rem; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(79, 122, 58, 0.14) center / 11px 11px no-repeat
    url("img/icon-check.svg");
}

/* ---------- method ---------- */
.method { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.method-text { display: grid; gap: 1.1rem; max-width: 40rem; min-width: 0; }
.method-text > p:not(.eyebrow):not(.lead-sm) { color: var(--ink-2); }
.motto { margin-block: 0.75rem; padding: 1.5rem 1.6rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; gap: 0.5rem; }
.motto p { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--primary); }
.motto footer { color: var(--ink-2); font-size: 0.98rem; }
.kingdoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; position: sticky; top: 7rem; }
.kingdom { grid-template-columns: minmax(0, 1fr); min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0.6rem 0.6rem 0.9rem; box-shadow: var(--shadow-md); display: grid; gap: 0.6rem; transition: transform 0.4s var(--ease); }
.kingdom img { width: 100%; aspect-ratio: 379 / 420; object-fit: cover; border-radius: calc(var(--r-lg) - 0.6rem); }
.kingdom span { hyphens: manual; overflow-wrap: break-word; line-height: 1.3; text-align: center; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.kingdom:nth-child(1) { rotate: -2deg; }
.kingdom:nth-child(2) { rotate: 2deg; margin-top: 2.5rem; }
.kingdom:nth-child(3) { rotate: 1deg; grid-column: 1 / -1; width: 50%; justify-self: center; margin-top: -1.5rem; }
.kingdom:hover { transform: translateY(-4px) rotate(0deg); }

/* ---------- faq ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-side { display: grid; gap: 1rem; position: sticky; top: 7rem; min-width: 0; }
.faq-side > p:not(.eyebrow) { color: var(--ink-2); }
.faq-art { max-width: 14rem; margin-top: 1rem; }
.faq { display: grid; gap: 0.75rem; min-width: 0; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.qa[open] { box-shadow: var(--shadow-md); }
.qa > summary { padding: 1.15rem 1.15rem 1.15rem 1.4rem; }
.qa-body { padding: 0 1.4rem 1.3rem; color: var(--ink-2); }

/* ---------- practice ---------- */
.place { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; }
.place-photo { grid-column: 1 / 2; grid-row: 1; }
.place-photo img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; }
.place-card {
  grid-column: 2 / 3; grid-row: 1; margin-left: -4rem; position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 0.9rem; min-width: 0;
}
.place-card h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); }
.address { font-size: var(--t-md); font-weight: 600; line-height: 1.45; }
.hours { background: var(--tint); border-radius: var(--r-md); padding: 1rem 1.2rem; display: grid; gap: 0.5rem; }
.hours dl { display: grid; gap: 0.2rem; font-variant-numeric: tabular-nums lining-nums; }
.hours dl div { display: flex; justify-content: space-between; gap: 1rem; }
.hours dt { color: var(--ink-2); }
.hours dd { font-weight: 600; }

/* ---------- contact ---------- */
.contact-section { background: radial-gradient(90% 120% at 100% 0%, var(--tint-strong) 0%, var(--tint) 40%, var(--bg) 100%); }
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-info { display: grid; gap: 1.1rem; min-width: 0; }
.contact-info > p:not(.eyebrow):not(.hint) { color: var(--ink-2); font-size: var(--t-md); }
.contact-list { display: grid; gap: 0.7rem; margin-block: 0.5rem; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); min-width: 0; }
.contact-list small { display: block; font-size: 0.78rem; color: var(--ink-3); font-weight: 600; }
.contact-list a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ci { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 14px; background: var(--primary-soft); color: var(--primary); flex: none; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(1.25rem, 3.5vw, 2.5rem); min-width: 0; }

/* the form markup is shared with V1 */
.form { display: grid; gap: 1.1rem; min-width: 0; }
.field { display: grid; gap: 0.4rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field label { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.optional { font-weight: 450; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fbfbfe;
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 0.8rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field input:hover, .field textarea:hover { border-color: rgba(73, 67, 196, 0.45); }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(73, 67, 196, 0.14); }
.field textarea { resize: vertical; min-height: 9rem; }
.field-question input { max-width: 8rem; }
.hp { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--t-sm); color: var(--ink-3); }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.form-end .button { min-width: 10rem; }
.form-status { font-weight: 600; min-width: 0; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ok); }

/* ---------- legal ---------- */
main > section.legal { padding-block: 0 var(--section); display: grid; gap: 0.75rem; }
.legal .h-small { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.25rem; font-family: var(--font-text); }
.legal details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.legal summary { padding: 1rem 1.1rem 1rem 1.3rem; }
.legal-body { display: grid; gap: 0.9rem; padding: 0 1.3rem 1.5rem; max-width: 48rem; color: var(--ink-2); font-size: 0.98rem; overflow-wrap: break-word; }
.legal-body h3 { font-size: 1.05rem; color: var(--ink); margin-top: 0.5rem; }
.legal-body h4 { font-size: 1rem; color: var(--ink); }
.legal-body ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.4rem; }
.agb { list-style: decimal; padding-left: 1.5rem; display: grid; gap: 1.1rem; }
.agb > li > * + * { margin-top: 0.4rem; }
.agb h3 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 0.95rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid > div { display: grid; gap: 0.6rem; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.footer-brand { grid-auto-flow: row; }
.footer-brand strong { color: var(--ink); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-3); }
.dock { display: none; }

/* ---------- scroll reveals: pure CSS, only where supported ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(0.985); } }

/* ---------- responsive ---------- */
@media (max-width: 68rem) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .menu { display: block; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .pricing .btn { grid-column: 1 / -1; justify-self: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 56rem) {
  .hero-grid, .about, .method, .faq-layout, .contact, .course { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: -1; width: min(100%, 22rem); padding: 0.5rem 1.5rem 1.5rem; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .about-visual { justify-self: center; max-width: 20rem; }
  .kingdoms { position: static; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .kingdom:nth-child(n) { rotate: 0deg; margin-top: 0; width: auto; grid-column: auto; }
  .kingdom { padding: 0.45rem 0.45rem 0.75rem; }
  .kingdom span { font-size: 0.68rem; letter-spacing: 0.08em; }
  .faq-side { position: static; }
  .faq-art { display: none; }
  .place { grid-template-columns: minmax(0, 1fr); }
  .place-photo, .place-card { grid-column: 1; }
  .place-card { grid-row: 2; margin: -3rem 1rem 0; }
}
@media (max-width: 40rem) {
  body { padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)); }
  .bar { gap: 0.6rem; }
  .brand-sub { display: none; }
  .brand-name { font-size: 0.92rem; }
  .menu-label { display: none; }
  .menu > summary { padding: 0.4rem 0.85rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-a { left: -0.5rem; }
  .float-b { right: -0.5rem; }
  .float-card { font-size: 0.82rem; padding: 0.55rem 0.75rem 0.55rem 0.55rem; }
  .float-icon { width: 2rem; height: 2rem; border-radius: 10px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .kv div, .timeline-list li { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .place-card { margin: -2rem 0.5rem 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .float-c { right: -0.5rem; }
  .dock {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 0.6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27, 29, 56, 0.06);
  }
  .dock .btn { min-height: 2.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
