/* Klidora v0.3 — Immersive keyhole passage · Liquid Glass · luxury didone type
   Design system per ui-ux-pro-max: pattern=Immersive Experience, style=Liquid Glass,
   dark + gold accent, fluid 400-600ms motion, no emoji icons, reduced-motion safe. */

:root {
  --bg: #0b0618;
  --bg-2: #160d33;
  --glass: rgba(125, 95, 225, 0.08);
  --glass-border: rgba(202, 168, 79, 0.30);
  --gold: #caa84f;
  --gold-bright: #e8cd7f;
  --violet: #8a63e8;
  --violet-soft: #b894ff;
  --text: #f1ecff;
  --muted: #b9aedd;
  --font-display: "Bodoni Moda", "GFS Didot", "Didot", Georgia, serif;
  --font-body: "Commissioner", "Inter", "Segoe UI", system-ui, sans-serif;
  --ease-fluid: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Greek pages use GFS Didot first — Bodoni Moda is Latin-only and renders an
   uppercase Δ wrong (showed «ΛΟΥΛΕΥΕΙ»). GFS Didot has the full Greek alphabet. */
html[lang="el"] { --font-display: "GFS Didot", "Didot", "Bodoni Moda", Georgia, serif; }

/* Mobile/tablet: lift muted-text contrast for legibility in bright daylight (e.g. on a
   ship deck). Same violet family — only lighter, no style change. Desktop untouched. */
@media (max-width: 980px) { :root { --muted: #d6cdf2; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
/* dark html backdrop: any not-yet-painted compositor tile shows dark, never white */
html { scroll-behavior: smooth; background: #0b0618; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--bg);
  background-image: radial-gradient(1300px 900px at 50% -10%, var(--bg-2), var(--bg) 62%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ============ cosmos layers (fixed, behind everything) ============ */
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.nebula { position: fixed; border-radius: 50%; filter: blur(90px); z-index: 0; pointer-events: none; opacity: 0.55; }
.nebula-a {
  width: 58vw; height: 58vw; left: -20vw; top: -14vw;
  background: radial-gradient(circle, rgba(109, 75, 196, 0.38), transparent 65%);
  animation: nebDriftA 30s ease-in-out infinite alternate;
}
.nebula-b {
  width: 50vw; height: 50vw; right: -17vw; bottom: -15vw;
  background: radial-gradient(circle, rgba(202, 168, 79, 0.17), transparent 65%);
  animation: nebDriftB 36s ease-in-out infinite alternate;
}
@keyframes nebDriftA { from { translate: 0 0; scale: 1; } to { translate: 6vw 4vh; scale: 1.14; } }
@keyframes nebDriftB { from { translate: 0 0; scale: 1.08; } to { translate: -5vw -4vh; scale: 0.96; } }

.far-planet {
  position: fixed; right: 6vw; top: 13vh; width: 250px; height: auto;
  z-index: 0; pointer-events: none;
  filter: drop-shadow(0 0 36px rgba(109, 75, 196, 0.40));
  animation: planetBreath 18s ease-in-out infinite alternate;
}
.planet-moon {
  transform-box: view-box; transform-origin: 130px 105px;
  animation: moonOrbit 46s linear infinite;
}
@keyframes moonOrbit { to { transform: rotate(360deg); } }
@keyframes planetBreath { from { translate: 0 0; } to { translate: 0 18px; } }

/* ---- mystical geometry layers (fixed cosmos, behind everything) ---- */
.astrolabe {
  position: fixed; left: 50%; top: 44%;
  width: 92vmin; height: 92vmin;
  margin-left: -46vmin; margin-top: -46vmin;
  z-index: 0; pointer-events: none;
  color: rgba(202, 168, 79, 0.34);
  transform: translateZ(0);
}
/* every fixed cosmos prop gets its own GPU layer — scrolling never repaints them */
.far-planet, .orion, .fib-spiral, .moon { transform: translateZ(0); }
.astro-spin { transform-origin: 300px 300px; animation: astroSpin 240s linear infinite; }
.astro-spin-reverse { transform-origin: 300px 300px; animation: astroSpin 150s linear infinite reverse; }
@keyframes astroSpin { to { transform: rotate(360deg); } }
.astro-glyphs text { font-family: "Segoe UI Symbol", "Noto Sans Symbols", serif; }

.fib-spiral {
  position: fixed; left: -6vw; bottom: 6vh;
  width: 46vw; max-width: 640px; height: auto;
  z-index: 0; pointer-events: none;
  color: rgba(184, 148, 255, 0.30);
  animation: fibFloat 26s ease-in-out infinite alternate;
}
.fib-spiral text { font-family: var(--font-display); letter-spacing: 0.06em; }
@keyframes fibFloat { from { translate: 0 0; rotate: 0deg; } to { translate: 1.6vw -2.4vh; rotate: 1.8deg; } }

.orion {
  position: fixed; left: 7vw; top: 9vh; width: 190px;
  z-index: 0; pointer-events: none;
  color: rgba(232, 205, 127, 0.55);
  filter: drop-shadow(0 0 6px rgba(232, 205, 127, 0.25));
  animation: constDrift 36s ease-in-out infinite alternate;
}
@keyframes constDrift { from { translate: 0 0; } to { translate: 12px 16px; } }

.galaxy {
  position: fixed; right: -3vw; bottom: 10vh; width: 36vw; max-width: 540px;
  z-index: 0; pointer-events: none;
  transform: translateZ(0);            /* own GPU layer — never re-rasterised by scrolling */
  animation: galaxyDrift 36s ease-in-out infinite alternate;
}
/* translate/opacity only — no scale, no blend mode (both caused repaint flicker) */
@keyframes galaxyDrift {
  from { translate: 0 0; opacity: 0.85; }
  to   { translate: -2vw -2.5vh; opacity: 1; }
}

.moon {
  position: fixed; left: 16vw; bottom: 30vh; width: 56px;
  z-index: 0; pointer-events: none;
  color: rgba(232, 205, 127, 0.6);
  filter: drop-shadow(0 0 14px rgba(232, 205, 127, 0.35));
  animation: planetBreath 22s ease-in-out infinite alternate-reverse;
}

header, main, footer { position: relative; z-index: 2; }

/* ============ header ============ */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 22px 28px;
  animation: fadeDown 1s var(--ease-fluid) both;
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.brand-logo { height: 34px; transition: transform 0.5s var(--ease-fluid); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.08); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem; letter-spacing: 0.22em; color: var(--gold);
  text-transform: uppercase; font-weight: 500;
}
.lang-switch { color: var(--muted); font-size: 0.92rem; letter-spacing: 0.06em; }
.lang-switch a {
  color: var(--muted); text-decoration: none; padding: 6px 7px; cursor: pointer;
  transition: color 0.3s var(--ease-fluid), text-shadow 0.3s var(--ease-fluid);
}
.lang-switch a:hover { color: var(--gold-bright); text-shadow: 0 0 14px rgba(202, 168, 79, 0.65); }
.lang-switch a.active { color: var(--gold); font-weight: 600; }
.lang-switch a:focus-visible, .brand:focus-visible, .skip-link:focus-visible, .footer-links a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}

main { flex: 1; width: 100%; }

/* ============ THE PASSAGE ============ */
.passage { height: 235vh; position: relative; }

.door {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 20; pointer-events: none;
  transform-origin: 50% 46%;
  will-change: transform, opacity;
}

.watching-eye {
  position: fixed; left: 50%; top: 46%;
  width: min(34vh, 60vw); height: min(34vh, 60vw);
  transform: translate(-50%, -50%);
  z-index: 10; pointer-events: none;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.door-copy {
  position: fixed; left: 0; right: 0; top: 0; height: 100vh;
  z-index: 30; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; padding-bottom: 4.5vh;
  will-change: transform, opacity;
}
.door-kicker {
  font-family: var(--font-display);
  color: var(--gold); letter-spacing: 0.5em; text-transform: uppercase;
  font-size: 0.85rem; margin-bottom: 14px; padding-left: 0.5em;
  animation: fadeUp 1.2s 0.2s var(--ease-fluid) both;
}
.door-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  max-width: 22ch; line-height: 1.18;
  background: linear-gradient(110deg, var(--gold) 25%, #fdf3d0 42%, var(--violet-soft) 60%, var(--gold) 78%);
  background-size: 230% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: fadeUp 1.2s 0.35s var(--ease-fluid) both, shimmerMove 9s linear infinite;
}
@keyframes shimmerMove { to { background-position: -230% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.enter-hint {
  margin-top: 4.5vh; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 0.88rem; letter-spacing: 0.18em; text-transform: uppercase;
  animation: fadeUp 1.2s 0.55s var(--ease-fluid) both;
}
.hint-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.hint-line::after {
  content: ""; position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: hintDrop 2.2s var(--ease-fluid) infinite;
}
@keyframes hintDrop { to { top: 110%; } }

.skip-link {
  pointer-events: auto; cursor: pointer;
  margin-top: 18px; color: rgba(185, 174, 221, 0.6);
  font-size: 0.78rem; letter-spacing: 0.12em; text-decoration: none;
  border-bottom: 1px solid rgba(185, 174, 221, 0.25);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease-fluid), border-color 0.3s var(--ease-fluid);
  animation: fadeUp 1.2s 0.7s var(--ease-fluid) both;
}
.skip-link:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ============ INSIDE ============ */
.inner {
  max-width: 1020px; margin: 0 auto; padding: 10vh 22px 4vh;
  position: relative; z-index: 2;
}
.inner-head { text-align: center; margin-bottom: 7vh; }
.inner-kicker {
  font-family: var(--font-display);
  color: var(--violet-soft); letter-spacing: 0.42em; text-transform: uppercase;
  font-size: 0.8rem; margin-bottom: 16px; padding-left: 0.42em;
}
.inner-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem); line-height: 1.2;
  max-width: 26ch; margin: 0 auto;
}
.shimmer {
  background: linear-gradient(110deg, var(--gold) 25%, #fdf3d0 42%, var(--violet-soft) 60%, var(--gold) 78%);
  background-size: 230% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmerMove 9s linear infinite;
}
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px; padding: 9px 24px;
  border: 1px solid var(--glass-border); border-radius: 999px;
  background: linear-gradient(150deg, rgba(60, 40, 110, 0.55), rgba(28, 17, 58, 0.65));
  color: var(--gold); font-size: 0.88rem; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 0 22px rgba(202, 168, 79, 0.12), inset 0 0 18px rgba(202, 168, 79, 0.06);
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(202, 168, 79, 0.55); }
  50%      { box-shadow: 0 0 0 7px rgba(202, 168, 79, 0); }
}

/* ---- liquid glass cards ---- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 30px 0; }
@media (max-width: 720px) { .services { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 34px 30px;
  /* glass look without backdrop-filter — live backdrop blur caused scroll flicker */
  background:
    linear-gradient(150deg, rgba(70, 48, 130, 0.42), rgba(34, 21, 70, 0.55) 45%, rgba(48, 34, 28, 0.40));
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.5s var(--ease-fluid), border-color 0.5s var(--ease-fluid), box-shadow 0.5s var(--ease-fluid);
  will-change: transform;
}
.card::before {           /* iridescent top edge */
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 205, 127, 0.7), rgba(184, 148, 255, 0.7), transparent);
  background-size: 200% 100%;
  animation: iridShift 7s linear infinite;
}
@keyframes iridShift { to { background-position: -200% 0; } }
.card:hover { border-color: rgba(202, 168, 79, 0.6); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 34px rgba(202, 168, 79, 0.14); }
.card-glare { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s var(--ease-fluid); pointer-events: none; }
.card-ico { width: 46px; height: 46px; display: block; filter: drop-shadow(0 0 10px rgba(202, 168, 79, 0.35)); }
.card h2 {
  font-family: var(--font-display); font-weight: 500;
  color: var(--gold); font-size: 1.45rem; margin: 18px 0 12px; letter-spacing: 0.03em;
}
.card p { color: var(--muted); line-height: 1.68; font-size: 0.99rem; }

/* ---- reveal ---- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease-fluid), transform 0.9s var(--ease-fluid); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---- steps ---- */
.how { text-align: center; margin: 9vh 0 4vh; }
.how h3 {
  font-family: var(--font-display); font-weight: 500;
  color: var(--gold); font-size: 1.3rem; letter-spacing: 0.1em; margin-bottom: 26px; text-transform: uppercase;
}
.steps { list-style: none; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.steps li {
  color: var(--muted); display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(150deg, rgba(54, 36, 100, 0.5), rgba(26, 16, 54, 0.6));
  border: 1px solid rgba(138, 99, 232, 0.22);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  border: 1px solid var(--violet); color: var(--violet-soft); font-weight: 600; position: relative;
}
.step-num::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(138, 99, 232, 0.7);
  animation: ringPulse 2.8s var(--ease-fluid) infinite;
}
.steps li:nth-child(2) .step-num::after { animation-delay: 0.9s; }
.steps li:nth-child(3) .step-num::after { animation-delay: 1.8s; }
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.06em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid), background 0.4s var(--ease-fluid);
}
.btn.gold {
  background: linear-gradient(150deg, var(--gold), #a8853a);
  color: #16102e; border-color: rgba(232, 205, 127, 0.6);
}
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(202, 168, 79, 0.35); }
.btn.ghost {
  background: transparent; color: var(--muted); border-color: rgba(185, 174, 221, 0.35);
}
.btn.ghost:hover { color: var(--text); border-color: var(--violet-soft); }
.btn.disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.card-cta { margin-top: 18px; }
.card-price {
  margin: 16px 0 0; font-family: "Bodoni Moda", serif; font-size: 1.5rem;
  font-weight: 600; color: var(--gold-bright); letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(202, 168, 79, 0.35);
}
.card-price.free { color: var(--violet-soft); text-shadow: 0 0 18px rgba(138, 99, 232, 0.4); }
.services-4 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .services-4 { grid-template-columns: 1fr; } }
.price-chip {
  display: inline-block; margin-top: 14px; padding: 5px 16px; border-radius: 999px;
  border: 1px solid rgba(202, 168, 79, 0.5); color: var(--gold-bright);
  font-family: "Bodoni Moda", serif; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em;
}
.price-chip.free { border-color: rgba(138, 99, 232, 0.55); color: var(--violet-soft); }
.services-3 { grid-template-columns: 1fr 1fr 1fr; }
.card-featured {
  max-width: 620px; margin: 30px auto 0; position: relative; z-index: 2; text-align: center;
  border: 1px solid rgba(202, 168, 79, 0.55);
  box-shadow: 0 0 40px rgba(202, 168, 79, 0.16), inset 0 0 24px rgba(202, 168, 79, 0.06);
}
.card-featured .card-ico { margin: 0 auto; }
.card-featured .card-price { font-size: 1.7rem; }
.featured-badge {
  display: inline-block; margin: 0 0 16px;
  background: linear-gradient(135deg, var(--gold-bright), #d4af6a); color: #1a0f00;
  font-size: 0.84rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 7px 24px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 3px 16px rgba(202, 168, 79, 0.4);
}
.daily-cta {
  display: block; max-width: 560px; margin: 30px auto 0; padding: 18px 26px; text-align: center;
  border: 1px solid rgba(138, 99, 232, 0.4); border-radius: 16px; text-decoration: none;
  background: rgba(138, 99, 232, 0.08); position: relative; z-index: 2;
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.daily-cta:hover { background: rgba(138, 99, 232, 0.15); box-shadow: 0 0 32px rgba(138, 99, 232, 0.22); transform: translateY(-2px); }
.daily-cta-main { display: block; font-family: var(--font-display); color: var(--violet-soft); font-size: 1.25rem; }
.daily-cta-sub { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
@media (max-width: 980px) { .services-3 { grid-template-columns: 1fr; } }

/* ---- order wizard ---- */
.wizard { max-width: 640px; margin: 0 auto; padding: 16vh 22px 8vh; position: relative; z-index: 2; }
.wizard-head { text-align: center; margin-bottom: 30px; }
.wizard-head h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.wizard-intro { color: var(--muted); line-height: 1.7; margin-top: 16px; font-size: 1.02rem; }
.step-person { font-family: var(--font-display); color: var(--gold-bright); font-size: 1.15rem; letter-spacing: 0.03em; margin: 0 0 10px; }
.field-help { margin-top: 10px; border: 1px solid var(--edge, rgba(180,150,255,0.18)); border-radius: 10px; background: rgba(20,14,40,0.35); }
.field-help summary { cursor: pointer; padding: 10px 14px; color: var(--gold-bright); font-size: 0.9rem; list-style: none; }
.field-help summary::before { content: "ℹ️ "; }
.field-help summary::-webkit-details-marker { display: none; }
.field-help[open] summary { border-bottom: 1px solid var(--edge, rgba(180,150,255,0.18)); }
.field-help p { margin: 0; padding: 12px 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.field-help p strong { color: var(--text); }
.form-error {
  background: rgba(220, 38, 38, 0.12); border: 1px solid rgba(220, 38, 38, 0.45);
  color: #ffd9d9; border-radius: 12px; padding: 12px 18px; margin-bottom: 18px; text-align: center;
}
.wizard-form {
  background: linear-gradient(150deg, rgba(70, 48, 130, 0.40), rgba(30, 18, 60, 0.55));
  border: 1px solid var(--glass-border); border-radius: 22px; padding: 30px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.wstep { display: none; border: none; }
.wstep.active { display: block; animation: fadeUp 0.6s var(--ease-fluid) both; }
.wstep label { display: block; color: var(--gold); font-size: 0.92rem; letter-spacing: 0.05em; margin: 18px 0 8px; }
.wstep label:first-child { margin-top: 0; }
.wstep input[type="date"], .wstep input[type="time"], .wstep input[type="text"],
.wstep input[type="email"], .wstep textarea, .wstep input[type="file"] {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(11, 6, 24, 0.65); border: 1px solid rgba(138, 99, 232, 0.35);
  color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
  color-scheme: dark;
}
.wstep select {
  width: 100%; padding: 13px 40px 13px 16px; border-radius: 12px;
  background: rgba(11, 6, 24, 0.65); border: 1px solid rgba(138, 99, 232, 0.35);
  color: var(--text); font-family: var(--font-body); font-size: 1rem; color-scheme: dark;
  transition: border-color 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23caa84f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.wstep input:focus, .wstep textarea:focus, .wstep select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 14px rgba(202, 168, 79, 0.25);
}
.field-note { color: var(--muted); font-size: 0.83rem; margin-top: 7px; line-height: 1.5; opacity: 0.85; }
.hint { color: rgba(185, 174, 221, 0.7); font-size: 0.83rem; margin-top: 7px; line-height: 1.5; }
.eye-pick { display: flex; gap: 14px; }
.eye-pick .pick {
  flex: 1; text-align: center; padding: 14px; border-radius: 12px; cursor: pointer;
  background: rgba(11, 6, 24, 0.6); border: 1px solid rgba(138, 99, 232, 0.35);
  color: var(--text); margin: 0; transition: border-color 0.3s, box-shadow 0.3s;
}
.eye-pick .pick input { display: none; }
.eye-pick .pick:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 16px rgba(202, 168, 79, 0.25); }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; margin-top: 16px; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #caa84f; flex: 0 0 auto; }
.check span { color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; }
.key-progress { display: flex; gap: 10px; margin: 0 auto; }
.key-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1px solid rgba(202, 168, 79, 0.5); background: transparent;
  transition: background 0.5s var(--ease-fluid), box-shadow 0.5s var(--ease-fluid);
}
.key-dot.lit { background: var(--gold-bright); box-shadow: 0 0 10px rgba(202, 168, 79, 0.6); }

/* ---- result page ---- */
.resultpage { max-width: 760px; margin: 0 auto; padding: 15vh 22px 8vh; position: relative; z-index: 2; }
.oracle-wait { text-align: center; padding-top: 8vh; }
.oracle-wait h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-top: 34px; }
.wait-eye { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.wait-core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle, #b894ff, #4a2f8f 70%);
  animation: glowPulse 2.2s ease-in-out infinite;
}
.wait-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(202, 168, 79, 0.55);
  animation: ringPulse 2.4s var(--ease-fluid) infinite;
}
.wait-ring.r2 { animation-delay: 1.2s; }
.reading { text-align: center; }
.reading h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: 36px; }
.reading-card {
  text-align: left; margin-bottom: 22px; border-radius: 20px; padding: 28px 30px;
  background: linear-gradient(150deg, rgba(70, 48, 130, 0.38), rgba(30, 18, 60, 0.55));
  border: 1px solid var(--glass-border);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.reading-ico { font-size: 1.7rem; }
.reading-card h2 { font-family: var(--font-display); font-weight: 500; color: var(--gold); font-size: 1.25rem; margin: 10px 0 12px; }
.reading-card p { color: var(--muted); line-height: 1.75; font-size: 0.99rem; }
.reading-card .big-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-bright); }
.inline-cta {
  display: inline-block; margin-top: 14px; padding: 9px 20px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-bright); text-decoration: none;
  font-size: 0.92rem; letter-spacing: 0.02em; transition: background 0.25s, box-shadow 0.25s;
}
.inline-cta:hover { background: rgba(202, 168, 79, 0.14); box-shadow: 0 0 18px rgba(202, 168, 79, 0.3); }
.reading-foot { margin-top: 34px; }
.translating-note {
  text-align: center; color: var(--gold-bright); font-size: 0.95rem; margin: 0 0 18px;
  padding: 10px 16px; border: 1px solid rgba(202,168,79,0.35); border-radius: 999px;
  display: inline-block; width: 100%; box-sizing: border-box; animation: pulse-soft 1.8s ease-in-out infinite;
}
@keyframes pulse-soft { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }
.reading-actions { display: flex; justify-content: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }

/* ---- Ask the Oracle (follow-up chat) ---- */
.oracle-chat { max-width: 760px; margin: 40px auto 0; position: relative; z-index: 2; }
.chat-head { text-align: center; margin-bottom: 22px; }
.chat-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; margin: 0 0 8px; }
.ask-intro { color: var(--muted); font-size: 0.98rem; line-height: 1.6; margin: 0; }
.chat-log { display: flex; flex-direction: column; gap: 16px; margin-bottom: 18px; }
.chat-turn { display: flex; flex-direction: column; gap: 8px; }
.chat-q, .chat-a {
  border-radius: 14px; padding: 13px 17px; line-height: 1.7; font-size: 0.99rem;
  border: 1px solid var(--edge, rgba(180,150,255,0.18));
}
.chat-q { align-self: flex-end; max-width: 85%; background: rgba(138, 99, 232, 0.12); color: var(--text); }
.chat-a { align-self: flex-start; max-width: 92%; background: rgba(202, 168, 79, 0.08); color: var(--text); }
.chat-q .who, .chat-a .who {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px;
}
.chat-q .who { color: var(--violet-soft); }
.chat-a .who { color: var(--gold); }
.chat-input { display: flex; gap: 10px; align-items: flex-end; }
.chat-input textarea {
  flex: 1; resize: vertical; min-height: 52px; border-radius: 12px; padding: 12px 14px;
  background: rgba(20, 14, 40, 0.5); border: 1px solid var(--edge, rgba(180,150,255,0.22));
  color: var(--text); font-family: inherit; font-size: 0.98rem;
}
.chat-meta { text-align: center; color: var(--muted); font-size: 0.86rem; margin: 12px 0 0; }
.chat-buy { text-align: center; margin-top: 8px; }
.chat-buy > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.buy-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.chat-test-note { margin-top: 12px; color: var(--gold); font-size: 0.82rem; opacity: 0.85; }

/* ---- payment (test mode) ---- */
.paybox { text-align: center; }
.test-banner {
  background: rgba(202, 168, 79, 0.12); border: 1px dashed rgba(202, 168, 79, 0.5);
  color: var(--gold-bright); border-radius: 12px; padding: 12px 16px;
  font-size: 0.88rem; line-height: 1.5; margin-bottom: 22px;
}
.pay-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; margin-bottom: 22px;
  border-bottom: 1px solid rgba(202, 168, 79, 0.25);
  color: var(--text); font-size: 1.05rem;
}
.pay-row strong { font-family: var(--font-display); color: var(--gold-bright); font-size: 1.3rem; }
.pay-btn { width: 100%; padding: 14px; font-size: 1rem; }
.pay-secure { margin-top: 12px; color: rgba(185, 174, 221, 0.7); font-size: 0.82rem; line-height: 1.5; }
.pay-cancel {
  display: inline-block; margin-top: 16px; color: rgba(185, 174, 221, 0.6);
  font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid rgba(185, 174, 221, 0.25);
}
.pay-cancel:hover { color: var(--violet-soft); }

/* ---- per-service theme accents ---- */
.theme-astro .wizard-form, .theme-astro .reading-card { border-color: rgba(184, 148, 255, 0.4); }
.theme-iris .wizard-form, .theme-iris .reading-card { border-color: rgba(122, 200, 220, 0.35); }
.theme-num .wizard-form, .theme-num .reading-card { border-color: rgba(232, 205, 127, 0.45); }

/* ---- legal ---- */
.legal { padding: 16vh 22px 6vh; max-width: 760px; margin: 0 auto; animation: fadeUp 0.9s var(--ease-fluid) both; }
.legal h1 { font-family: var(--font-display); font-weight: 500; color: var(--gold); font-size: 1.7rem; margin-bottom: 8px; }
.draft-note { color: var(--violet-soft); font-size: 0.85rem; margin-bottom: 24px; font-style: italic; }
.legal p { color: var(--muted); line-height: 1.7; margin-bottom: 15px; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid rgba(202, 168, 79, 0.18);
  margin-top: 6vh; padding: 26px 20px; text-align: center;
}
.footer-disclaimer { color: var(--muted); font-size: 0.82rem; max-width: 740px; margin: 0 auto 13px; line-height: 1.55; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 11px; }
.footer-links a { color: var(--violet); text-decoration: none; font-size: 0.88rem; cursor: pointer; transition: color 0.3s var(--ease-fluid); }
.footer-links a:hover { color: var(--violet-soft); }
.footer-copy { color: rgba(185, 174, 221, 0.5); font-size: 0.8rem; }

/* ============ no-motion fallback: door rests open ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #sky, .nebula, .far-planet { display: none; }
  .astrolabe, .fib-spiral, .orion, .moon, .galaxy { opacity: 0.5; }
  [data-reveal] { opacity: 1; transform: none; }
  .passage { height: 100vh; }
  .door, .watching-eye { display: none; }
  .door-copy { position: absolute; visibility: visible !important; opacity: 1 !important; }
}

/* ============ iris photo capture ============ */
.iris-upload { margin: 4px 0 2px; }
.iris-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.iris-drop {
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  padding: 26px 18px; border: 1.5px dashed var(--glass-border); border-radius: 14px;
  background: rgba(125, 95, 225, 0.06); cursor: pointer; color: var(--muted);
  transition: border-color 0.3s var(--ease-fluid), background 0.3s var(--ease-fluid);
}
.iris-drop:hover { border-color: var(--gold); background: rgba(202, 168, 79, 0.07); }
.iris-drop svg { width: 42px; height: 42px; opacity: 0.9; }
.iris-drop-main { color: var(--text); font-size: 0.98rem; }
.iris-drop-sub { font-size: 0.82rem; }
.iris-cam-btn { margin-top: 10px; width: 100%; }
.iris-preview { margin-top: 8px; text-align: center; }
.iris-preview img { max-width: 100%; max-height: 260px; border-radius: 12px; border: 1px solid var(--glass-border); }
.iris-retake {
  display: inline-block; margin-top: 8px; background: transparent; cursor: pointer;
  border: 1px solid rgba(185, 174, 221, 0.35); color: var(--muted); border-radius: 999px;
  padding: 7px 16px; font-family: var(--font-body); font-size: 0.85rem;
}
.iris-retake:hover { color: var(--text); border-color: var(--violet-soft); }
.iris-quality { margin-top: 9px; font-size: 0.86rem; line-height: 1.5; }
.iris-quality.ok { color: #7bd58f; }
.iris-quality.warn { color: var(--gold-bright); }

/* ============ karmic partner portrait ============ */
.karmic-portrait {
  width: 100%; max-width: 460px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top;
  display: block; margin: 8px auto 16px;
  border-radius: 16px; border: 1px solid var(--glass-border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  background: var(--bg-2);   /* on-brand dark, never grey — safety if an image is ever off-ratio */
}
.karmic-caption {
  color: var(--muted); font-size: 0.95rem; line-height: 1.7;
  text-align: center; max-width: 640px; margin: 0 auto;
}

/* ============ birth-place autocomplete ============ */
.place-ac { position: relative; display: block; }
.place-ac-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  list-style: none; margin: 0; padding: 5px; max-height: 244px; overflow-y: auto;
  background: rgba(18, 11, 38, 0.98); border: 1px solid var(--glass-border);
  border-radius: 12px; box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px); display: none;
}
.place-ac-list.open { display: block; }
.place-ac-item {
  padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--muted);
  font-size: 0.92rem; line-height: 1.3; transition: background 0.15s var(--ease-fluid);
}
.place-ac-item.active, .place-ac-item:hover { background: rgba(202, 168, 79, 0.16); color: var(--text); }

/* ============ small screens ============ */
@media (max-width: 720px) {
  .site-header { padding: 16px 18px; }
  .brand-name { font-size: 1.15rem; letter-spacing: 0.16em; }
  .passage { height: 215vh; }
  .door-copy { padding-bottom: 9vh; }
  .card { padding: 28px 22px; }
  .far-planet { width: 132px; right: 3vw; top: 10vh; }
  .astrolabe { width: 130vmin; height: 130vmin; margin-left: -65vmin; margin-top: -65vmin; color: rgba(202, 168, 79, 0.26); }
  .fib-spiral { width: 78vw; left: -14vw; bottom: 4vh; color: rgba(184, 148, 255, 0.22); }
  .orion { width: 120px; left: 4vw; top: 11vh; }
  .galaxy { width: 62vw; right: -8vw; bottom: 8vh; }
  .moon { left: 8vw; bottom: 24vh; width: 42px; }
}
