/* ============================================================
   RINEL INSIDE — Premium Design System
   ============================================================ */

:root {
  /* RINĒLL brand palette — deep navy-indigo + warm bronze/copper (from the logo) */
  --navy: #2b2a4a;
  --navy-deep: #201f3a;
  --bg: #ffffff;
  --bg-alt: #f8f7f5;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(43, 42, 74, 0.09);
  --text: #2b2a4a;
  --text-soft: #6b6880;
  --gold: #a4744a;
  --gold-deep: #8a5f3c;
  --gold-light: #d3ac82;
  --gold-grad: linear-gradient(120deg, #8a5f3c 0%, #b8865a 45%, #d8b48f 60%, #a4744a 100%);
  /* Logo-style gradient: navy → mauve → bronze → navy */
  --brand-grad: linear-gradient(105deg, #2b2a4a 0%, #5c4a63 28%, #a4744a 52%, #8a5f3c 72%, #2b2a4a 100%);
  --shadow-sm: 0 1px 6px rgba(43, 42, 74, 0.05), 0 1px 2px rgba(43, 42, 74, 0.05);
  --shadow-md: 0 10px 34px rgba(43, 42, 74, 0.09);
  --shadow-gold: 0 8px 26px rgba(164, 116, 74, 0.24);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Assistant", "Heebo", system-ui, sans-serif;
  --font-display: "Heebo", "Assistant", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

/* Dark theme — deep navy-indigo like the logo letters, bronze accents */
html[data-theme="dark"] {
  --navy: #edeaf5;
  --navy-deep: #d8d3e8;
  --bg: #1b1a30;
  --bg-alt: #211f3b;
  --surface: rgba(48, 46, 82, 0.5);
  --surface-strong: rgba(41, 39, 71, 0.94);
  --border: rgba(211, 172, 130, 0.16);
  --text: #f0edf5;
  --text-soft: #b3aec6;
  --gold: #c99a6e;
  --gold-deep: #b8865a;
  --gold-light: #e6c8a4;
  --gold-grad: linear-gradient(120deg, #b8865a 0%, #d8b48f 45%, #eed9bd 60%, #c99a6e 100%);
  --brand-grad: linear-gradient(105deg, #b0aad4 0%, #c9a98f 35%, #e6c8a4 55%, #c99a6e 78%, #b0aad4 100%);
  --shadow-sm: 0 2px 10px rgba(10, 9, 24, 0.4);
  --shadow-md: 0 14px 44px rgba(10, 9, 24, 0.55);
  --shadow-gold: 0 10px 34px rgba(201, 154, 110, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-light); color: #2b2a4a; }

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- shared components ---------- */

.container { width: min(1120px, 92%); margin-inline: auto; }

.glass {
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid var(--border);
}

.gold-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: goldShift 6s ease-in-out infinite alternate;
}

@keyframes goldShift { to { background-position: 100% center; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
  will-change: transform;
}

.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; }

.btn-gold {
  background: var(--gold-grad);
  background-size: 200% auto;
  color: #262013;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-2px);
  background-position: 100% center;
  box-shadow: 0 16px 44px rgba(164, 116, 74, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-2px); }
html[data-theme="dark"] .btn-ghost:hover { color: var(--gold-light); }

.btn-sm { padding: 9px 20px; font-size: 0.92rem; }
.btn-lg { padding: 17px 38px; font-size: 1.12rem; }

.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(120%);
  animation: shine 3.4s var(--ease) infinite;
}

@keyframes shine { 20%, 100% { transform: translateX(-120%); } }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.14s; }
.delay-2 { transition-delay: 0.28s; }

/* ---------- background orbs & grain ---------- */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-1 { width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(196, 154, 110, 0.32), transparent 65%); top: -14%; inset-inline-start: -10%; }
.orb-2 { width: 36vw; height: 36vw; background: radial-gradient(circle, rgba(43, 42, 74, 0.14), transparent 65%); bottom: -12%; inset-inline-end: -8%; animation-delay: -6s; }
.orb-3 { width: 24vw; height: 24vw; background: radial-gradient(circle, rgba(216, 180, 143, 0.3), transparent 65%); top: 38%; inset-inline-end: 22%; animation-delay: -11s; }

html[data-theme="dark"] .orb { opacity: 0.4; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4vw, -3vw) scale(1.12); }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 14px;
  inset-inline: 0;
  z-index: 60;
  width: min(1120px, 94%);
  margin-inline: auto;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 22px;
}

.brand { display: flex; align-items: center; gap: 12px; }

/* Circle monogram — the RINĒLL logo mark */
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(164, 116, 74, 0.3);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.98rem;
}

.brand-text em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

a.brand { color: inherit; text-decoration: none; }

.site-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s;
}

.site-link:hover { color: var(--gold-deep); border-color: var(--gold); }
.site-link svg { width: 16px; height: 16px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

.theme-toggle:hover { color: var(--gold-deep); border-color: var(--gold); transform: rotate(18deg); }
.theme-toggle svg { width: 19px; height: 19px; }
html[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: none; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 130px 20px 90px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-content { position: relative; z-index: 2; max-width: 880px; }

.hero-eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 22px;
}

html[data-theme="dark"] .hero-eyebrow { color: var(--gold-light); }

/* Wide-tracked serif — the RINĒLL logotype look */
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 6.8rem);
  line-height: 1.06;
  letter-spacing: 0.22em;
  text-indent: 0.22em; /* compensate tracking so it stays centered */
  direction: ltr;
}

.hero-logo {
  width: clamp(110px, 16vw, 150px);
  margin: 0 auto 26px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(164, 116, 74, 0.25), var(--shadow-md);
  animation: logoFloat 5s ease-in-out infinite;
}

.hero-line { display: block; overflow: hidden; }

.hero-word {
  display: inline-block;
  transform: translateY(110%);
  animation: riseUp 1.1s var(--ease) forwards;
}

.hero-line:nth-child(2) .hero-word { animation-delay: 0.18s; }

@keyframes riseUp { to { transform: none; } }

.hero-tagline {
  margin-top: 20px;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--gold-deep);
  font-weight: 500;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .hero-tagline { color: var(--gold-light); }

.hero-sub {
  margin-top: 30px;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--text-soft);
  font-weight: 400;
}

.hero-cta {
  margin-top: 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-hint { font-size: 0.88rem; color: var(--text-soft); letter-spacing: 0.04em; }

.scroll-cue {
  position: absolute;
  bottom: 30px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 26px;
  height: 44px;
  border: 1.5px solid var(--text-soft);
  border-radius: 14px;
  opacity: 0.55;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  inset-inline-start: 50%;
  width: 4px;
  height: 8px;
  margin-inline-start: -2px;
  border-radius: 4px;
  background: var(--gold);
  animation: cueDrop 1.8s ease-in-out infinite;
}

@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); transition: background 0.5s var(--ease); }

.section-eyebrow {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.38em;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
}

html[data-theme="dark"] .section-eyebrow { color: var(--gold-light); }

.section-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
  line-height: 1.25;
  margin-bottom: 64px;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px;
}

.step-card {
  position: relative;
  border-radius: var(--radius);
  padding: 40px 30px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease);
}

.step-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.step-num {
  position: absolute;
  top: 22px;
  inset-inline-end: 26px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.45;
}

.step-illustration { width: 110px; margin-bottom: 22px; }
.ill-ring { stroke: var(--border); stroke-width: 1.4; }
.ill-gold { stroke: var(--gold); stroke-width: 1.8; }
.ill-gold-fill { fill: var(--gold); }
.ill-accent { stroke: var(--text-soft); stroke-width: 1.4; }
.ill-check { stroke: var(--gold-deep); fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill-dash { stroke-dasharray: 5 7; animation: spin 22s linear infinite; transform-origin: 60px 60px; }
.ill-spin-slow { stroke-dasharray: 30 12; animation: spin 9s linear infinite reverse; transform-origin: 60px 60px; }

@keyframes spin { to { transform: rotate(360deg); } }

.step-card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--text-soft); font-size: 0.98rem; }

/* ---------- benefits ---------- */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.benefit-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), opacity 0.9s var(--ease);
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(164, 116, 74, 0.5);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(196, 154, 110, 0.22), rgba(164, 116, 74, 0.1));
  border: 1px solid rgba(164, 116, 74, 0.35);
  color: var(--gold-deep);
}

html[data-theme="dark"] .benefit-icon { color: var(--gold-light); }
.benefit-icon svg { width: 26px; height: 26px; }
.benefit-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- trust ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 70px;
  text-align: center;
}

.stat {
  padding: 26px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-plus { font-weight: 700; font-size: 1.3rem; color: var(--gold-deep); margin-inline-start: 2px; }
.stat-label { display: block; margin-top: 6px; font-size: 0.88rem; color: var(--text-soft); }

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.testimonial {
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), opacity 0.9s var(--ease);
}

.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.t-stars { color: var(--gold); letter-spacing: 4px; margin-bottom: 16px; font-size: 1.05rem; }
.testimonial blockquote { font-size: 1.02rem; line-height: 1.75; margin-bottom: 20px; }
.testimonial figcaption { display: flex; flex-direction: column; gap: 2px; }
.testimonial figcaption strong { font-size: 0.98rem; }
.testimonial figcaption span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- final cta / footer ---------- */

.final-cta {
  padding: 130px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(164, 116, 74, 0.1), transparent),
    var(--bg-alt);
  transition: background 0.5s var(--ease);
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.final-cta p { color: var(--text-soft); font-size: 1.1rem; margin-bottom: 36px; }

.footer {
  padding: 50px 0 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  width: 190px;
  margin: 0 auto 6px;
  border-radius: var(--radius-sm);
  background: #fff;
}

html[data-theme="dark"] .footer-logo {
  padding: 10px 14px;
  box-shadow: 0 0 0 1px rgba(211, 172, 130, 0.25);
}

.footer p { color: var(--text-soft); font-size: 0.88rem; margin-top: 10px; }
.footer-legal a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.footer-legal a:hover { color: var(--gold-deep); }
.footer-note { max-width: 560px; margin-inline: auto; font-size: 0.78rem !important; opacity: 0.75; }

/* ============================================================
   FULL-SCREEN APP
   ============================================================ */

.app {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

/* The author display:flex above would override the UA [hidden] rule,
   leaving an invisible overlay that blocks all clicks on the landing page. */
.app[hidden] { display: none !important; }

.app.open { opacity: 1; }
.app-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.app-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 26px;
}

.brand-sm { font-size: 0.85rem; }

.app-progress {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  overflow: hidden;
  max-width: 460px;
  margin-inline: auto;
}

.app-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--gold-grad);
  transition: width 0.7s var(--ease);
}

.app-close {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}

.app-close:hover { color: var(--text); border-color: var(--gold); transform: rotate(90deg); }
.app-close svg { width: 17px; height: 17px; }

.app-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 20px 22px 44px;
  overflow-y: auto;
}

/* ---------- screen transitions ---------- */

.screen {
  width: min(660px, 100%);
  text-align: center;
  animation: screenIn 0.7s var(--ease);
}

.screen.leaving { animation: screenOut 0.4s var(--ease) forwards; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(36px) scale(0.985); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes screenOut {
  to { opacity: 0; transform: translateY(-30px) scale(0.985); filter: blur(6px); }
}

/* ---------- welcome ---------- */

.welcome-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-gold), inset 0 0 0 1px rgba(164, 116, 74, 0.35);
  animation: logoFloat 4.5s ease-in-out infinite;
  position: relative;
}

.welcome-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-logo::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(164, 116, 74, 0.4);
  animation: pulseRing 2.6s var(--ease) infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes pulseRing {
  0% { transform: scale(0.94); opacity: 0.9; }
  100% { transform: scale(1.22); opacity: 0; }
}

.screen h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.screen .lead {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto 30px;
}

.time-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(164, 116, 74, 0.45);
  background: rgba(164, 116, 74, 0.1);
  color: var(--gold-deep);
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 38px;
}

html[data-theme="dark"] .time-chip { color: var(--gold-light); }
.time-chip svg { width: 17px; height: 17px; }

/* ---------- loading screens ---------- */

.loader-wrap { display: flex; flex-direction: column; align-items: center; gap: 34px; }

.loader-orbit {
  position: relative;
  width: 120px;
  height: 120px;
}

.loader-orbit .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold);
  animation: spin 1.3s linear infinite;
}

.loader-orbit .ring:nth-child(2) {
  inset: 14px;
  border-top-color: var(--gold-light);
  animation-duration: 1.9s;
  animation-direction: reverse;
}

.loader-orbit .ring:nth-child(3) {
  inset: 28px;
  border-top-color: var(--gold-deep);
  animation-duration: 2.6s;
}

.loader-orbit .core {
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  background: var(--gold-grad);
  animation: corePulse 1.6s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.loader-msg {
  min-height: 1.8em;
  font-size: 1.12rem;
  font-weight: 600;
  animation: msgIn 0.5s var(--ease);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.loader-bar {
  width: min(360px, 80vw);
  height: 6px;
  border-radius: 6px;
  background: var(--border);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: var(--gold-grad);
  background-size: 200% auto;
  animation: goldShift 2s linear infinite alternate;
  transition: width 0.45s var(--ease);
}

.loader-sub { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- photo upload ---------- */

.upload-zone {
  position: relative;
  border: 2px dashed rgba(164, 116, 74, 0.55);
  border-radius: var(--radius);
  padding: 46px 28px;
  background: rgba(164, 116, 74, 0.05);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  cursor: pointer;
  margin-bottom: 26px;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(164, 116, 74, 0.12);
  transform: scale(1.012);
}

.upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.upload-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #262013;
}

.upload-icon svg { width: 28px; height: 28px; }
.upload-zone h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.upload-zone p { color: var(--text-soft); font-size: 0.92rem; }

.upload-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
  text-align: start;
}

.upload-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
}

.upload-rule svg { width: 17px; height: 17px; color: var(--gold-deep); flex-shrink: 0; }
html[data-theme="dark"] .upload-rule svg { color: var(--gold-light); }

.upload-preview {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-gold);
  animation: screenIn 0.6s var(--ease);
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.link-btn:hover { color: var(--gold-deep); }

/* ---------- question cards ---------- */

.q-card {
  background: var(--surface-strong);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-md);
  text-align: start;
}

.q-step { font-size: 0.82rem; letter-spacing: 0.24em; color: var(--gold-deep); font-weight: 700; margin-bottom: 14px; }
html[data-theme="dark"] .q-step { color: var(--gold-light); }

.q-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.6vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.q-hint { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 26px; }

.q-options { display: grid; gap: 12px; }

.q-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.q-option:hover { border-color: var(--gold); transform: translateX(-4px); }

.q-option.selected {
  border-color: var(--gold);
  background: rgba(164, 116, 74, 0.12);
  box-shadow: 0 4px 18px rgba(164, 116, 74, 0.2);
}

.q-option .radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-soft);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.25s;
}

.q-option.selected .radio { border-color: var(--gold-deep); }

.q-option.selected .radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-grad);
  animation: popIn 0.3s var(--ease);
}

.q-option.multi .radio { border-radius: 6px; }
.q-option.multi.selected .radio::after { border-radius: 3px; }

@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.q-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.q-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(164, 116, 74, 0.15);
}

/* scale (1-10) */

.scale-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.scale-dot {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s var(--ease);
}

.scale-dot:hover { border-color: var(--gold); transform: translateY(-3px); }

.scale-dot.selected {
  background: var(--gold-grad);
  color: #262013;
  border-color: transparent;
  box-shadow: var(--shadow-gold);
  transform: translateY(-3px) scale(1.08);
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  gap: 14px;
}

.q-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.q-back:hover { color: var(--text); }
.q-back svg { width: 16px; height: 16px; }

/* ---------- generating (AI) ---------- */

.gen-tokens {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 420px;
  min-height: 3em;
  direction: ltr;
  opacity: 0.65;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-all;
}

/* ---------- error ---------- */

.error-box {
  border: 1px solid rgba(200, 60, 60, 0.4);
  background: rgba(200, 60, 60, 0.08);
  color: #b03a3a;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 26px;
  font-weight: 500;
}

html[data-theme="dark"] .error-box { color: #ef9a9a; }

/* ============================================================
   REPORT DASHBOARD
   ============================================================ */

.report {
  width: min(920px, 100%);
  text-align: start;
  animation: screenIn 0.8s var(--ease);
  padding-bottom: 40px;
}

.report-header { text-align: center; margin-bottom: 44px; }

.report-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 14px;
}

html[data-theme="dark"] .report-badge { color: var(--gold-light); }

.report-header h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); margin-bottom: 10px; }
.report-header .lead { margin-bottom: 0; }

.report-scores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.score-card {
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 24px;
}

.score-ring { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .track { fill: none; stroke: var(--border); stroke-width: 8; }

.score-ring .value {
  fill: none;
  stroke: url(#goldGrad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  transition: stroke-dashoffset 1.6s var(--ease) 0.3s;
}

.score-ring .score-num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
}

.score-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.score-info p { color: var(--text-soft); font-size: 0.88rem; }

.report-grid { display: grid; gap: 22px; }

.report-section {
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
}

.report-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.report-section-head .r-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(196, 154, 110, 0.24), rgba(164, 116, 74, 0.1));
  border: 1px solid rgba(164, 116, 74, 0.35);
  color: var(--gold-deep);
  flex-shrink: 0;
}

html[data-theme="dark"] .report-section-head .r-icon { color: var(--gold-light); }
.report-section-head .r-icon svg { width: 22px; height: 22px; }
.report-section-head h2 { font-size: 1.28rem; font-weight: 700; }

.persona-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.report-section p, .report-section li { color: var(--text-soft); font-size: 0.99rem; }
.report-section p strong, .report-section li strong { color: var(--text); }

.sw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

.item-list { list-style: none; display: grid; gap: 14px; }

.item-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.item-list li:hover { border-color: rgba(164, 116, 74, 0.5); transform: translateX(-3px); }

.item-list .bullet {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  background: var(--gold-grad);
  color: #262013;
}

.item-list .bullet svg { width: 12px; height: 12px; }
.item-list .bullet.warn { background: linear-gradient(140deg, #d9a0a0, #c56b6b); color: #fff; }

.keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.keyword {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(164, 116, 74, 0.5);
  background: rgba(164, 116, 74, 0.1);
  color: var(--gold-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

html[data-theme="dark"] .keyword { color: var(--gold-light); }

/* roadmap */

.roadmap { display: grid; gap: 0; position: relative; }

.roadmap-week {
  position: relative;
  padding: 0 46px 30px 0;
}

.roadmap-week::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: -6px;
  inset-inline-start: 15px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(164, 116, 74, 0.15));
}

.roadmap-week:last-child::before { display: none; }

.roadmap-dot {
  position: absolute;
  top: 2px;
  inset-inline-start: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #262013;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(164, 116, 74, 0.18);
}

.roadmap-week h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.roadmap-week ul { list-style: none; display: grid; gap: 6px; }
.roadmap-week ul li { position: relative; padding-inline-start: 18px; }
.roadmap-week ul li::before { content: "◆"; position: absolute; inset-inline-start: 0; top: 1px; color: var(--gold); font-size: 0.6rem; }

.closing {
  text-align: center;
  padding: 44px 34px !important;
  background:
    radial-gradient(ellipse 80% 100% at 50% 120%, rgba(164, 116, 74, 0.18), transparent),
    var(--surface);
}

.closing p {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.85;
  color: var(--text);
  max-width: 640px;
  margin-inline: auto;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.toast {
  position: fixed;
  bottom: 28px;
  inset-inline-start: 50%;
  transform: translate(50%, 90px);
  z-index: 200;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid rgba(164, 116, 74, 0.5);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(18px);
}

.toast.show { transform: translate(50%, 0); opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .nav-inner { padding: 8px 8px 8px 16px; }
  .brand-text { font-size: 0.82rem; }
  .site-link { padding: 0 10px; font-size: 0.82rem; }
  .nav .btn-sm { white-space: nowrap; }
}

@media (max-width: 420px) {
  .nav .brand-text { display: none; }
  .section { padding: 76px 0; }
  .app-topbar { padding: 14px 16px; }
  .score-card { flex-direction: column; text-align: center; }
  .q-footer { flex-direction: column-reverse; align-items: stretch; }
  .q-footer .btn { justify-content: center; }
  .roadmap-week { padding-inline-end: 38px; }
}

/* ============================================================
   PRINT (PDF EXPORT)
   ============================================================ */

@media print {
  body > *:not(.app) { display: none !important; }
  .app { position: static; opacity: 1 !important; background: #fff; display: block; }
  .app-bg, .app-topbar, .report-actions, .toast { display: none !important; }
  .app-stage { display: block; padding: 0; overflow: visible; }
  .report { width: 100%; animation: none; }
  .report-section, .score-card, .testimonial { box-shadow: none !important; break-inside: avoid; border: 1px solid #ddd; }
  .score-ring .value { transition: none; }
  :root {
    --bg: #fff; --surface: #fff; --surface-strong: #fff;
    --text: #2b2a4a; --text-soft: #55526b; --border: #ddd;
  }
}
