@charset "UTF-8";

/* ============================================================
   VITTO_ARMIN — پنج سال، یک رویا
   Complete responsive stylesheet — replacement edition
   RTL / Persian / mobile-first refinements / no external assets
   ============================================================ */

:root {
  color-scheme: dark;
  --bg: #090713;
  --bg-2: #100b20;
  --panel: rgba(23, 17, 43, .78);
  --panel-strong: #17112b;
  --panel-soft: rgba(255, 255, 255, .035);
  --line: rgba(214, 197, 255, .14);
  --line-strong: rgba(214, 197, 255, .24);
  --text: #f8f5ff;
  --muted: #b9b1ce;
  --subtle: #837b9c;
  --purple: #a78bfa;
  --purple-2: #7c3aed;
  --pink: #fb83c6;
  --cyan: #78e7ed;
  --gold: #ffd58a;
  --green: #9ce9c4;
  --danger: #ff9eae;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, .22);
  --shadow-card: 0 24px 75px rgba(0, 0, 0, .3);
  --shadow-glow: 0 0 60px rgba(153, 95, 255, .13);
  --container: 1180px;
  --header-height: 78px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 78% 8%, rgba(93, 43, 154, .18), transparent 31rem),
    radial-gradient(ellipse at 7% 31%, rgba(30, 107, 142, .08), transparent 30rem),
    linear-gradient(180deg, #0b0717 0%, #090713 45%, #0d0818 100%);
  color: var(--text);
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body, button, input, textarea, select {
  font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

::selection {
  color: #100a20;
  background: #d5bdff;
}

img, svg, video, canvas, iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button, input, a {
  -webkit-tap-highlight-color: transparent;
}

button, input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(120, 231, 237, .9);
  outline-offset: 4px;
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.ambient {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .2;
}

.ambient-one {
  top: 110px;
  right: -150px;
  width: 360px;
  height: 360px;
  background: #7639cb;
}

.ambient-two {
  top: 920px;
  left: -180px;
  width: 330px;
  height: 330px;
  background: #176a81;
  opacity: .11;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(105deg, #f4d4ff 0%, #bca4ff 38%, #78e7ed 72%, #ffd58a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(218, 204, 255, .09);
  background: rgba(9, 7, 19, .78);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  direction: ltr;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(230, 211, 255, .3);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(172, 130, 255, .24), rgba(251, 131, 198, .08));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 8px 25px rgba(124, 58, 237, .13);
  color: #f6eaff;
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  color: #f8f5ff;
  font-size: .97rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.brand-name b {
  color: var(--pink);
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: .83rem;
  transition: color .2s ease, background .2s ease;
}

.nav-links a {
  position: relative;
  padding-block: 9px;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease);
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid rgba(191, 162, 255, .32);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(137, 86, 230, .23), rgba(251, 131, 198, .07));
  color: #f6eeff;
  font-size: .82rem;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.nav-cta span {
  color: var(--cyan);
}

.nav-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 162, 255, .62);
  background: linear-gradient(135deg, rgba(137, 86, 230, .34), rgba(251, 131, 198, .12));
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  cursor: pointer;
}

.menu-lines {
  display: flex;
  width: 17px;
  flex-direction: column;
  gap: 4px;
}

.menu-lines i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(35px, 6vw, 78px);
  min-height: 650px;
  padding-block: 54px 62px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-block: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border: 1px solid rgba(189, 158, 255, .2);
  border-radius: 999px;
  background: rgba(139, 92, 246, .075);
  color: #d4c5f4;
  font-size: .8rem;
}

.eyebrow-dot,
.note-dot,
.private-pill > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(120, 231, 237, .1), 0 0 18px rgba(120, 231, 237, .65);
}

.hero h1 {
  max-width: 680px;
  margin: 24px 0 13px;
  font-size: clamp(3.2rem, 6.2vw, 5.65rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero h1 .gradient-text {
  display: block;
  padding-bottom: .1em;
}

.hero-subtitle {
  max-width: 570px;
  margin: 0 0 13px;
  color: #eee7fb;
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.9;
}

.hero-description {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: .97rem;
  line-height: 2.15;
}

.hero-actions,
.closing-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions {
  margin-top: 27px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: center;
  font-size: .87rem;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.btn:active:not(:disabled) {
  transform: translateY(0) scale(.99);
}

.btn-primary {
  border-color: rgba(226, 205, 255, .2);
  background: linear-gradient(110deg, #8f5bea 0%, #b36be2 48%, #d56db9 100%);
  box-shadow: 0 12px 26px rgba(134, 75, 215, .23), inset 0 1px 0 rgba(255,255,255,.19);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 17px 34px rgba(134, 75, 215, .34), inset 0 1px 0 rgba(255,255,255,.2);
}

.btn-quiet {
  border-color: var(--line);
  background: rgba(255,255,255,.035);
  color: #e8defa;
}

.btn-quiet:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  border-color: rgba(196, 168, 255, .45);
  background: rgba(174, 139, 255, .09);
}

.btn-outline {
  border-color: rgba(198, 178, 235, .25);
  background: rgba(255,255,255,.025);
  color: #eee6ff;
}

.play-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: var(--cyan);
  font-size: .61rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid rgba(213, 194, 255, .12);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.meta-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  font-size: 1.15rem;
}

.meta-gold { color: var(--gold); }
.meta-pink { color: var(--pink); }

.meta-item b,
.meta-item small,
.floating-note b,
.floating-note small {
  display: block;
}

.meta-item b {
  color: #f0eafa;
  font-size: .79rem;
  line-height: 1.5;
}

.meta-item small {
  margin-top: 3px;
  color: var(--subtle);
  font-size: .72rem;
}

.meta-divider {
  width: 1px;
  height: 34px;
  background: rgba(213,194,255,.15);
}

/* Hero book artwork */
.hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 500px;
  place-items: center;
  isolation: isolate;
}

.visual-glow {
  position: absolute;
  z-index: -2;
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 91, 238, .23) 0%, rgba(92, 53, 165, .11) 42%, transparent 70%);
  filter: blur(6px);
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  width: min(94%, 495px);
  aspect-ratio: 1;
  border: 1px solid rgba(188, 160, 255, .16);
  border-radius: 50%;
  transform: rotate(-20deg) scaleY(.82);
}

.orbit-a::before,
.orbit-b::before {
  position: absolute;
  top: 14%;
  left: 17%;
  width: 8px;
  height: 8px;
  border: 2px solid #e4c5ff;
  border-radius: 50%;
  background: var(--purple-2);
  box-shadow: 0 0 19px rgba(212, 173, 255, .9);
  content: "";
}

.orbit-b {
  width: min(78%, 410px);
  border-color: rgba(120, 231, 237, .16);
  transform: rotate(38deg) scaleY(.75);
}

.orbit-b::before {
  top: auto;
  right: 12%;
  bottom: 18%;
  left: auto;
  border-color: #a8f6f1;
  background: #1c8c98;
}

.book-shadow {
  position: absolute;
  bottom: 5%;
  width: 47%;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  filter: blur(18px);
}

.book-cover {
  position: relative;
  z-index: 2;
  display: block;
  width: min(54%, 278px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 5px 13px 13px 5px;
  background: #1b1230;
  box-shadow: -12px 17px 0 -8px rgba(73, 48, 104, .8), -20px 25px 45px rgba(0,0,0,.38), 0 27px 90px rgba(129, 72, 210, .25), inset 4px 0 0 rgba(255,255,255,.17);
  transform: perspective(1100px) rotateY(-7deg) rotateZ(-2deg);
  transition: transform .45s var(--ease), box-shadow .45s ease;
}

.book-cover:hover {
  box-shadow: -12px 17px 0 -8px rgba(73, 48, 104, .8), -24px 30px 48px rgba(0,0,0,.4), 0 35px 100px rgba(129, 72, 210, .34);
  transform: perspective(1100px) rotateY(-2deg) rotateZ(0deg) translateY(-5px);
}

.book-cover img {
  width: 100%;
  aspect-ratio: 595 / 842;
  object-fit: cover;
}

.cover-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.22), transparent 18%, transparent 70%, rgba(255,255,255,.06));
}

.floating-star {
  position: absolute;
  z-index: 3;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 213, 138, .7);
}

.star-a { top: 13%; right: 16%; font-size: 1.8rem; }
.star-b { top: 28%; left: 10%; color: var(--pink); font-size: 1.5rem; }
.star-c { right: 13%; bottom: 19%; color: var(--cyan); font-size: 1.25rem; }

.floating-note {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 66%;
  padding: 12px 15px;
  border: 1px solid rgba(215, 197, 255, .2);
  border-radius: 16px;
  background: rgba(20, 14, 37, .86);
  box-shadow: 0 14px 38px rgba(0,0,0,.23);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.note-top {
  top: 16%;
  left: 0;
}

.note-bottom {
  right: 0;
  bottom: 12%;
}

.floating-note b {
  color: #f4edff;
  font-size: .76rem;
  line-height: 1.5;
}

.floating-note small {
  margin-top: 3px;
  color: #aaa0c2;
  font-size: .66rem;
  line-height: 1.5;
}

.note-spark {
  color: var(--pink);
  font-size: 1.25rem;
}

.visual-index {
  position: absolute;
  bottom: 2%;
  left: 6%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  color: #827797;
  font-family: Georgia, serif;
  font-size: .72rem;
  letter-spacing: .1em;
}

.visual-index i {
  display: block;
  width: 35px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

/* Trust strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2px;
  overflow: hidden;
  border: 1px solid rgba(212, 193, 255, .13);
  border-radius: 19px;
  background: linear-gradient(110deg, rgba(30,22,50,.72), rgba(18,14,32,.82));
  box-shadow: var(--shadow-soft);
}

.trust-strip > div {
  display: flex;
  min-width: 0;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 12px;
  color: #dfd7ef;
  font-size: .87rem;
  text-align: center;
}

.trust-strip > div + div {
  border-right: 1px solid rgba(212, 193, 255, .12);
}

.strip-symbol {
  font-size: 1.3rem;
}

.symbol-violet { color: var(--purple); }
.symbol-pink { color: var(--pink); }
.symbol-cyan { color: var(--cyan); }
.symbol-gold { color: var(--gold); }

/* Shared sections */
.section {
  padding-block: 112px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c9b2ff;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.section-kicker::before {
  width: 19px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  content: "";
}

.section-heading h2,
.author-copy h2,
.closing-card h2 {
  margin: 12px 0 12px;
  color: var(--text);
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 900;
  line-height: 1.48;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.section-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: .98rem;
  line-height: 2.1;
}

/* About / story cards */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 20px;
}

.story-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: clamp(24px, 3vw, 37px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(33, 23, 57, .89), rgba(17, 12, 30, .94));
  box-shadow: var(--shadow-soft);
}

.story-main {
  background:
    radial-gradient(circle at 100% 0, rgba(145, 88, 230, .15), transparent 45%),
    linear-gradient(145deg, rgba(33, 23, 57, .92), rgba(17, 12, 30, .94));
}

.story-values {
  background:
    radial-gradient(circle at 0 100%, rgba(251, 131, 198, .07), transparent 45%),
    linear-gradient(145deg, rgba(29, 21, 49, .94), rgba(17, 12, 30, .96));
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.card-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  background: rgba(255,255,255,.04);
  font-size: 1.25rem;
}

.icon-purple { color: #c5a5ff; }
.icon-pink { color: var(--pink); }

.card-label {
  color: #8f84a7;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.story-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  color: #fbf8ff;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  line-height: 1.65;
}

.story-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: #bdb4d0;
  font-size: .92rem;
  line-height: 2.2;
}

.story-quote {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 14px 17px;
  border-right: 3px solid var(--pink);
  border-radius: 0 12px 12px 0;
  background: rgba(251, 131, 198, .055);
  color: #f5dff0;
  font-size: .95rem;
  font-weight: 700;
}

.card-decoration {
  position: absolute;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(179, 139, 255, .14);
  border-radius: 50%;
  pointer-events: none;
}

.decor-one { top: -76px; left: -56px; box-shadow: 0 0 0 22px rgba(179,139,255,.025), 0 0 0 45px rgba(179,139,255,.02); }
.decor-two { right: -72px; bottom: -82px; border-color: rgba(251,131,198,.12); }

.value-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.value-row {
  display: grid;
  grid-template-columns: 30px 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid rgba(218, 201, 255, .1);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.value-number {
  color: #817795;
  direction: ltr;
  font-family: Georgia, serif;
  font-size: .8rem;
}

.value-glyph {
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.glyph-gold { color: var(--gold); }
.glyph-pink { color: var(--pink); }
.glyph-cyan { color: var(--cyan); }

.value-row b,
.value-row small {
  display: block;
}

.value-row b {
  color: #f1eafa;
  font-size: .9rem;
}

.value-row small {
  margin-top: 2px;
  color: #a59bb9;
  font-size: .76rem;
  line-height: 1.8;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.principle-card {
  position: relative;
  min-width: 0;
  min-height: 235px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(216, 198, 255, .12);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(26, 19, 44, .77), rgba(15, 11, 27, .85));
  transition: border-color .25s ease, transform .25s var(--ease), background .25s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(190, 156, 255, .3);
  background: linear-gradient(145deg, rgba(33, 23, 57, .88), rgba(15, 11, 27, .9));
}

.principle-number {
  position: absolute;
  top: 19px;
  left: 21px;
  color: rgba(194, 179, 222, .3);
  direction: ltr;
  font-family: Georgia, serif;
  font-size: .82rem;
}

.principle-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  font-size: 1.35rem;
}

.icon-gradient-one { color: #ffb9de; background: rgba(251,131,198,.1); }
.icon-gradient-two { color: #c5b2ff; background: rgba(167,139,250,.1); }
.icon-gradient-three { color: #9bf0ef; background: rgba(120,231,237,.08); }

.principle-card h3 {
  margin: 17px 0 7px;
  color: #f7f2ff;
  font-size: 1.15rem;
}

.principle-card p {
  margin: 0;
  color: #ada3c2;
  font-size: .86rem;
  line-height: 2.05;
}

/* Quote band */
.quote-band {
  position: relative;
  display: flex;
  min-height: 195px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 30px;
  overflow: hidden;
  border: 1px solid rgba(207, 183, 255, .17);
  border-radius: 27px;
  background: linear-gradient(105deg, rgba(37, 23, 58, .86), rgba(20, 19, 43, .92), rgba(32, 19, 47, .86));
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.quote-mark {
  height: 28px;
  color: #d5a7ff;
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: .9;
  opacity: .85;
}

.quote-band > p {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0;
  color: #f1e7ff;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.9;
  text-wrap: balance;
}

.quote-signature {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: var(--pink);
  font-size: .85rem;
  font-weight: 800;
}

.signature-line {
  width: 35px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.quote-signature small {
  display: block;
  color: #9489aa;
  font-size: .68rem;
  font-weight: 500;
}

.quote-glow {
  position: absolute;
  right: 50%;
  bottom: -160px;
  width: 340px;
  height: 210px;
  border-radius: 50%;
  background: rgba(143, 91, 234, .16);
  filter: blur(70px);
  transform: translateX(50%);
}

/* Existing book-page preview grid */
.preview-heading { margin-bottom: 36px; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.preview-card {
  display: block;
  min-width: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(220, 202, 255, .15);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(29, 21, 49, .92), rgba(14, 10, 24, .94));
  color: inherit;
  text-align: right;
  cursor: zoom-in;
  box-shadow: 0 15px 40px rgba(0,0,0,.16);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}

.preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 168, 255, .43);
  box-shadow: 0 22px 45px rgba(0,0,0,.27), 0 0 28px rgba(139,92,246,.1);
}

.preview-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #1e1633;
}

.preview-image-wrap img {
  width: 100%;
  aspect-ratio: 595 / 842;
  object-fit: cover;
  transition: transform .55s var(--ease), filter .3s ease;
}

.preview-card:hover .preview-image-wrap img {
  transform: scale(1.025);
  filter: saturate(1.05);
}

.preview-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 10px;
  background: rgba(10, 6, 21, .74);
  color: #fff;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.preview-card:hover .preview-zoom,
.preview-card:focus-visible .preview-zoom {
  opacity: 1;
  transform: translateY(0);
}

.preview-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 9px 8px;
}

.preview-caption b,
.preview-caption small {
  display: block;
}

.preview-caption b {
  color: #f4edff;
  font-size: .85rem;
  line-height: 1.6;
}

.preview-caption small {
  margin-top: 3px;
  color: #988eae;
  font-size: .72rem;
}

.preview-index {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(190, 168, 235, .17);
  border-radius: 10px;
  color: #b5a3d7;
  direction: ltr;
  font-family: Georgia, serif;
  font-size: .78rem;
}

.preview-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  margin: 21px 0 0;
  color: #9f95b6;
  font-size: .79rem;
  line-height: 1.9;
  text-align: center;
}

.preview-note span { color: var(--gold); }

/* Challenge and quiz */
.challenge-section {
  position: relative;
  padding-block: 100px;
  overflow: hidden;
  border-block: 1px solid rgba(209, 189, 255, .08);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(108, 60, 181, .17), transparent 42rem),
    linear-gradient(180deg, rgba(18, 12, 34, .58), rgba(10, 8, 22, .8));
}

.challenge-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.challenge-background span {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(175, 144, 248, .07);
  border-radius: 50%;
}

.challenge-background span:nth-child(1) { top: -260px; right: -140px; box-shadow: 0 0 0 45px rgba(175,144,248,.018), 0 0 0 95px rgba(175,144,248,.015); }
.challenge-background span:nth-child(2) { bottom: -320px; left: -140px; border-color: rgba(120,231,237,.07); }
.challenge-background span:nth-child(3) { top: 35%; left: 42%; width: 190px; height: 190px; border-color: rgba(251,131,198,.06); }

.challenge-wrap {
  position: relative;
  z-index: 1;
}

.challenge-heading {
  margin-bottom: 35px;
}

.section-kicker-light { color: #d6c1ff; }

.quiz-card {
  width: min(100%, 820px);
  margin-inline: auto;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(211, 190, 255, .21);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0%, rgba(153, 93, 230, .1), transparent 36%),
    linear-gradient(145deg, rgba(28, 20, 48, .96), rgba(16, 12, 30, .97));
  box-shadow: 0 35px 90px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(216, 199, 255, .1);
}

.quiz-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.quiz-badge-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(210, 184, 255, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(151, 94, 234, .22), rgba(251, 131, 198, .09));
  color: var(--gold);
  font-size: 1.25rem;
}

.quiz-badge b,
.quiz-badge small {
  display: block;
}

.quiz-badge b {
  color: #f0e7ff;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: .71rem;
  letter-spacing: .09em;
  line-height: 1.6;
}

.quiz-badge small {
  margin-top: 4px;
  color: #9f94b8;
  font-size: .75rem;
}

.quiz-counter {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid rgba(210, 190, 255, .13);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  color: #9286a8;
  font-family: Georgia, serif;
  font-size: .75rem;
  direction: ltr;
}

.quiz-counter strong {
  color: #f2dfff;
  font-size: 1.25rem;
}

.progress-track {
  height: 6px;
  margin-top: 21px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
}

#quiz-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple-2), var(--pink), var(--cyan));
  box-shadow: 0 0 16px rgba(174, 126, 255, .35);
  transition: width .35s ease;
}

.question-area {
  padding-top: 23px;
}

.question-kicker {
  margin: 0 0 8px;
  color: #bfa4ff;
  font-size: .78rem;
  font-weight: 800;
}

.question-area h3,
.quiz-result h3 {
  margin: 0;
  color: #fbf8ff;
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.question-hint {
  margin: 4px 0 20px;
  color: #a69bbd;
  font-size: .84rem;
}

.answer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.answer-option {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(209, 190, 246, .15);
  border-radius: 16px;
  background: rgba(255,255,255,.027);
  color: #dfd5ef;
  line-height: 1.75;
  text-align: right;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background .2s ease, border-color .2s ease, transform .2s var(--ease);
}

.answer-option:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 155, 255, .42);
  background: rgba(162, 124, 245, .08);
}

.answer-option[aria-pressed="true"],
.answer-option.selected,
.answer-option.is-selected {
  border-color: rgba(185, 146, 255, .7);
  background: linear-gradient(100deg, rgba(133, 86, 218, .19), rgba(251, 131, 198, .08));
  box-shadow: inset 0 0 0 1px rgba(179, 145, 255, .12);
}

.answer-option.correct,
.answer-option[data-correct="true"] {
  border-color: rgba(133, 231, 185, .5);
  background: rgba(97, 204, 154, .09);
}

.answer-option.incorrect {
  border-color: rgba(255, 142, 165, .47);
  background: rgba(255, 125, 151, .075);
}

.answer-letter {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(208, 188, 255, .16);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #cdbaff;
  font-size: .76rem;
  font-weight: 800;
}

.quiz-error {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: .82rem;
}

.quiz-error:not(:empty) {
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 142, 165, .18);
  border-radius: 10px;
  background: rgba(255, 142, 165, .05);
}

.quiz-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(167, 139, 250, .22);
  border-radius: 13px;
  background: rgba(167, 139, 250, .065);
  color: #d7caef;
  font-size: .85rem;
  line-height: 1.9;
}

.quiz-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.quiz-submit { min-width: 155px; }

.quiz-restart-link {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #a99bbc;
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(169,155,188,.3);
  text-underline-offset: 4px;
}

.quiz-restart-link:hover { color: var(--text); }

.quiz-result {
  padding-top: 25px;
  text-align: center;
}

.result-emblem {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid rgba(211, 179, 255, .35);
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(167,139,250,.17), rgba(251,131,198,.12));
  color: var(--gold);
  font-size: 1.8rem;
  box-shadow: 0 12px 35px rgba(118, 70, 194, .14);
}

.result-score {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 9px;
  color: #bcb0d2;
}

.result-score strong {
  color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 3.2rem;
  line-height: 1.2;
}

.quiz-result > p:not(.question-kicker):not(.telegram-note) {
  max-width: 570px;
  margin: 10px auto 20px;
  color: #b9afcb;
  font-size: .9rem;
  line-height: 2;
}

.result-actions {
  justify-content: center;
  margin-top: 22px;
}

.telegram-note {
  margin: 13px 0 0;
  color: #8d82a3;
  font-size: .73rem;
  line-height: 1.8;
}

.quiz-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px 24px;
  margin-top: 27px;
  padding-top: 18px;
  border-top: 1px solid rgba(216, 199, 255, .1);
  color: #9489a9;
  font-size: .73rem;
}

.quiz-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tiny-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}

.dot-pink { background: var(--pink); }
.dot-cyan { background: var(--cyan); }

.challenge-disclaimer {
  max-width: 780px;
  margin: 20px auto 0;
  color: #887e9d;
  font-size: .75rem;
  line-height: 1.9;
  text-align: center;
}

/* Private reader */
.reader-shell {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(213, 193, 255, .18);
  border-radius: 30px;
  background: linear-gradient(130deg, rgba(29, 20, 49, .93), rgba(16, 12, 29, .97));
  box-shadow: var(--shadow-card);
}

.reader-art {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 390px;
  place-items: center;
  overflow: hidden;
  border-left: 1px solid rgba(213, 193, 255, .1);
  background:
    radial-gradient(circle at 50% 46%, rgba(167,139,250,.18), transparent 44%),
    linear-gradient(150deg, rgba(83, 52, 134, .13), rgba(16, 12, 30, .1));
}

.reader-ring {
  position: absolute;
  width: 230px;
  aspect-ratio: 1;
  border: 1px solid rgba(190, 160, 255, .17);
  border-radius: 50%;
  transform: rotate(-24deg) scaleY(.82);
}

.ring-two {
  width: 170px;
  border-color: rgba(120, 231, 237, .18);
  transform: rotate(38deg) scaleY(.78);
}

.reader-lock {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100px;
  height: 115px;
  place-items: center;
  border: 1px solid rgba(222, 203, 255, .28);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(179, 139, 255, .21), rgba(120, 231, 237, .06));
  box-shadow: 0 22px 60px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
  color: #e6d7ff;
  font-size: 4rem;
  transform: rotate(-5deg);
}

.reader-glint {
  position: absolute;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 213, 138, .5);
}

.glint-one { top: 24%; right: 23%; font-size: 1.5rem; }
.glint-two { bottom: 22%; left: 23%; color: var(--pink); font-size: 1.7rem; }

.reader-content {
  min-width: 0;
  padding: clamp(25px, 4vw, 48px);
}

.private-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 11px;
  border: 1px solid rgba(156, 233, 196, .19);
  border-radius: 999px;
  background: rgba(103, 211, 157, .055);
  color: #bce9d3;
  font-size: .75rem;
  font-weight: 700;
}

.private-pill > span {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(156,233,196,.6);
}

.reader-content h3 {
  margin: 16px 0 7px;
  color: #f8f4ff;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.6;
}

.reader-description {
  margin: 0 0 23px;
  color: #afa4c3;
  font-size: .88rem;
  line-height: 2.1;
}

.book-login label {
  display: block;
  margin-bottom: 9px;
  color: #e7def8;
  font-size: .85rem;
  font-weight: 700;
}

.password-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.password-row input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid rgba(211, 192, 250, .19);
  border-radius: 14px;
  background: rgba(8, 6, 18, .55);
  color: var(--text);
  font-size: .88rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.password-row input::placeholder { color: #756b8a; }
.password-row input:focus {
  border-color: rgba(183, 148, 255, .65);
  background: rgba(9, 7, 20, .8);
  box-shadow: 0 0 0 4px rgba(167,139,250,.09);
}

.password-row .btn {
  flex: 0 0 auto;
  min-height: 50px;
  white-space: nowrap;
}

.login-message {
  margin: 11px 0 0;
  color: #8e84a2;
  font-size: .76rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.login-message:empty { display: none; }

.reader-open-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.reader-open-head b,
.reader-open-head small { display: block; }
.reader-open-head b { color: #f5edff; }
.reader-open-head small { color: #9c91b3; font-size: .75rem; }

.reader-open-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reader-open-actions .btn {
  min-height: 40px;
  padding: 8px 11px;
  font-size: .76rem;
}

.reader-frame {
  width: 100%;
  min-height: 640px;
  border: 1px solid rgba(215, 197, 255, .15);
  border-radius: 14px;
  background: #fff;
}

.reader-footnote {
  margin: 10px 0 0;
  color: #9086a5;
  font-size: .73rem;
  line-height: 1.9;
}

.privacy-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 18px 21px;
  border: 1px solid rgba(120, 231, 237, .13);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(31, 67, 76, .15), rgba(32, 22, 54, .34));
}

.privacy-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(120,231,237,.18);
  border-radius: 12px;
  color: var(--cyan);
}

.privacy-strip b,
.privacy-strip small { display: block; }
.privacy-strip b { color: #d6f5f0; font-size: .84rem; }
.privacy-strip small { margin-top: 3px; color: #9aa7b6; font-size: .75rem; line-height: 1.9; }

.privacy-check {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  margin-inline-start: auto;
  border-radius: 50%;
  background: rgba(156, 233, 196, .1);
  color: var(--green);
  font-size: .9rem;
}

/* Author section */
.author-section {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  padding-block: 30px 100px;
}

.author-orb {
  position: relative;
  display: grid;
  width: min(100%, 265px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(190, 164, 255, .2);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(145, 93, 226, .18), rgba(25, 16, 44, .16) 55%, transparent 70%);
}

.author-orb > span {
  display: grid;
  width: 110px;
  height: 110px;
  place-items: center;
  border: 1px solid rgba(236, 216, 255, .36);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(173, 129, 255, .25), rgba(251,131,198,.1));
  box-shadow: 0 20px 55px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
  color: #f5eaff;
  font-family: Georgia, serif;
  font-size: 3.5rem;
  font-weight: 800;
  transform: rotate(-8deg);
}

.author-orb i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 18px rgba(251,131,198,.65);
}

.author-orb i:nth-of-type(1) { top: 17%; right: 26%; }
.author-orb i:nth-of-type(2) { bottom: 17%; left: 25%; background: var(--cyan); box-shadow: 0 0 18px rgba(120,231,237,.6); }
.author-orb i:nth-of-type(3) { right: 6%; bottom: 38%; width: 6px; height: 6px; background: var(--gold); }

.author-copy { min-width: 0; }
.author-copy h2 {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3.3vw, 2.65rem);
}

.author-copy p {
  margin: 0;
  color: #b1a7c5;
  font-size: .93rem;
  line-height: 2.2;
}

.author-signature {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 19px;
  color: #eac2ff;
  font-size: .9rem;
  font-weight: 800;
}

.author-signature span {
  color: #8f84a5;
  font-size: .77rem;
  font-weight: 500;
}

/* Closing callout */
.closing-section {
  padding-bottom: 95px;
}

.closing-card {
  position: relative;
  padding: clamp(30px, 5vw, 64px) clamp(22px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(213, 192, 255, .21);
  border-radius: 31px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(164, 111, 238, .15), transparent 55%),
    linear-gradient(115deg, rgba(33, 21, 52, .93), rgba(17, 14, 33, .96), rgba(34, 18, 42, .9));
  box-shadow: var(--shadow-card);
  text-align: center;
}

.closing-glow {
  position: absolute;
  top: -220px;
  right: 50%;
  width: 480px;
  height: 280px;
  border-radius: 50%;
  background: rgba(146, 90, 236, .18);
  filter: blur(75px);
  pointer-events: none;
  transform: translateX(50%);
}

.closing-kicker {
  position: relative;
  z-index: 1;
  color: #bda7e9;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
}

.closing-kicker span { margin-right: 8px; color: var(--gold); }

.closing-card h2 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 14px auto 12px;
  font-size: clamp(1.85rem, 4.3vw, 3.2rem);
}

.closing-card p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  color: #aea4c2;
  font-size: .93rem;
  line-height: 2.1;
}

.closing-actions {
  position: relative;
  z-index: 1;
  justify-content: center;
  margin-top: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(212, 193, 255, .1);
  background: rgba(7, 6, 15, .72);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  padding-block: 25px 28px;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 1.05rem;
}

.footer-brand .brand-name { font-size: .85rem; }

.footer-inner > p {
  margin: 0;
  color: #9288a5;
  font-size: .77rem;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 17px;
}

.footer-links a { font-size: .74rem; }

.copyright {
  justify-self: end;
  color: #766d89;
  direction: ltr;
  font-family: Arial, sans-serif;
  font-size: .72rem;
}

/* Image lightbox */
.lightbox {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(3, 2, 8, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox[aria-hidden="true"] { display: none; }

.lightbox img {
  width: auto;
  max-width: min(100%, 980px);
  max-height: calc(100dvh - 52px);
  object-fit: contain;
  border: 1px solid rgba(240, 225, 255, .18);
  border-radius: 5px;
  background: #151021;
  box-shadow: 0 25px 90px rgba(0,0,0,.55);
}

.lightbox button {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(20, 13, 36, .85);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Mid-sized screens / tablet */
@media (max-width: 1020px) {
  :root { --container: 900px; }
  .nav { gap: 14px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: .77rem; }
  .brand-name { font-size: .89rem; }
  .nav-cta { padding: 9px 12px; font-size: .76rem; }
  .hero { gap: 28px; min-height: 590px; }
  .hero h1 { font-size: clamp(3rem, 6vw, 4.7rem); }
  .hero-visual { min-height: 430px; }
  .floating-note { max-width: 72%; padding: 10px 12px; }
  .section { padding-block: 90px; }
  .story-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
  .principle-grid { gap: 13px; }
  .principle-card { padding: 22px; }
  .preview-grid { gap: 13px; }
  .reader-shell { grid-template-columns: minmax(200px, .7fr) minmax(0, 1.3fr); }
  .reader-content { padding: 30px; }
  .footer-inner { grid-template-columns: auto minmax(0, 1fr); }
  .footer-links { grid-column: 1 / 2; }
  .copyright { grid-column: 2 / 3; grid-row: 2 / 3; }
}

/* Mobile layout */
@media (max-width: 760px) {
  :root { --header-height: 66px; }
  .wrap { width: calc(100% - 30px); }
  .site-header { background: rgba(9, 7, 19, .92); }
  .nav { min-height: var(--header-height); gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; font-size: 1.1rem; }
  .brand-name { font-size: .86rem; }
  .menu-btn { display: inline-flex; order: 3; margin-right: auto; font-size: .78rem; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 7px);
    right: 15px;
    left: 15px;
    display: none;
    max-height: min(72dvh, 460px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(213, 193, 255, .19);
    border-radius: 17px;
    background: rgba(16, 11, 31, .98);
    box-shadow: 0 18px 60px rgba(0,0,0,.5);
    backdrop-filter: blur(18px);
  }
  .menu-btn[aria-expanded="true"] + .nav-links { display: flex; }
  .nav-links a { padding: 11px 13px; border-radius: 10px; font-size: .88rem; }
  .nav-links a:hover { background: rgba(167,139,250,.08); }
  .nav-links a::after { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: auto;
    padding-block: 16px 40px;
  }
  .hero-visual {
    order: 1;
    width: 100%;
    min-height: clamp(270px, 76vw, 365px);
    margin: 0 auto;
  }
  .visual-orbit { width: min(88%, 330px); }
  .orbit-b { width: min(76%, 285px); }
  .book-cover { width: min(47%, 190px); border-radius: 4px 10px 10px 4px; }
  .book-shadow { width: 42%; bottom: 4%; }
  .floating-note { max-width: 60%; gap: 7px; padding: 8px 10px; border-radius: 12px; }
  .floating-note b { font-size: .65rem; }
  .floating-note small { font-size: .58rem; }
  .note-top { top: 13%; left: 0; }
  .note-bottom { right: 0; bottom: 9%; }
  .star-a { top: 10%; right: 14%; font-size: 1.35rem; }
  .star-b { top: 28%; left: 7%; font-size: 1.2rem; }
  .star-c { right: 10%; bottom: 19%; font-size: 1.05rem; }
  .visual-index { bottom: 0; left: 4%; font-size: .65rem; }
  .hero-copy { order: 2; padding-block: 7px 0; text-align: center; }
  .eyebrow { justify-content: center; max-width: 100%; font-size: .7rem; }
  .hero h1 { margin: 18px 0 10px; font-size: clamp(2.5rem, 10.2vw, 3.8rem); line-height: 1.27; letter-spacing: -.04em; }
  .hero-subtitle { max-width: 510px; margin-inline: auto; font-size: 1rem; line-height: 1.9; }
  .hero-description { max-width: 550px; margin-inline: auto; font-size: .88rem; line-height: 2.05; }
  .hero-actions { justify-content: center; gap: 9px; margin-top: 20px; }
  .hero-actions .btn { flex: 1 1 190px; min-height: 46px; padding: 11px 12px; font-size: .8rem; }
  .hero-meta { justify-content: center; gap: 12px; margin-top: 24px; padding-top: 17px; }
  .meta-item { gap: 7px; text-align: right; }
  .meta-icon { width: 31px; height: 31px; border-radius: 10px; font-size: .96rem; }
  .meta-item b { font-size: .7rem; }
  .meta-item small { font-size: .62rem; }
  .meta-divider { height: 29px; }

  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
  .trust-strip > div { min-height: 57px; gap: 7px; padding: 9px 6px; font-size: .73rem; }
  .trust-strip > div + div { border-right: 0; }
  .trust-strip > div:nth-child(odd) { border-left: 1px solid rgba(212,193,255,.1); }
  .trust-strip > div:nth-child(n+3) { border-top: 1px solid rgba(212,193,255,.1); }
  .strip-symbol { font-size: 1.08rem; }

  .section { padding-block: 68px; }
  .section-heading { margin-bottom: 28px; }
  .section-kicker { font-size: .69rem; }
  .section-heading h2 { margin-top: 9px; font-size: clamp(1.75rem, 7.4vw, 2.45rem); line-height: 1.5; }
  .section-heading p { font-size: .87rem; line-height: 2; }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .story-card { padding: 22px 20px; border-radius: 21px; }
  .card-topline { margin-bottom: 15px; }
  .story-card h3 { font-size: 1.22rem; }
  .story-card p { font-size: .86rem; line-height: 2.05; }
  .story-quote { margin-top: 18px; padding: 12px 13px; font-size: .87rem; }
  .value-row { grid-template-columns: 24px 24px minmax(0,1fr); gap: 8px; padding: 11px 9px; }
  .value-row b { font-size: .84rem; }
  .value-row small { font-size: .7rem; }
  .principle-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 13px; }
  .principle-card { display: grid; grid-template-columns: 48px minmax(0,1fr); column-gap: 14px; min-height: auto; padding: 18px; border-radius: 18px; }
  .principle-icon { grid-row: 1 / span 2; }
  .principle-card h3 { align-self: end; margin: 0 0 3px; font-size: 1.03rem; }
  .principle-card p { grid-column: 2 / 3; font-size: .8rem; line-height: 1.9; }
  .principle-number { top: 12px; left: 13px; font-size: .68rem; }

  .quote-band { min-height: 175px; padding: 26px 18px; border-radius: 22px; }
  .quote-band > p { font-size: 1.08rem; line-height: 1.95; }
  .quote-mark { font-size: 3.3rem; }
  .quote-signature { font-size: .78rem; }

  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .preview-card { padding: 5px; border-radius: 14px; }
  .preview-image-wrap { border-radius: 9px; }
  .preview-caption { gap: 4px; padding: 9px 5px 6px; }
  .preview-caption b { font-size: .7rem; }
  .preview-caption small { font-size: .61rem; }
  .preview-index { width: 25px; height: 25px; border-radius: 8px; font-size: .68rem; }
  .preview-zoom { width: 27px; height: 27px; right: 6px; bottom: 6px; opacity: 1; transform: none; }
  .preview-note { font-size: .72rem; }

  .challenge-section { padding-block: 68px; }
  .challenge-heading { margin-bottom: 26px; }
  .quiz-card { width: 100%; padding: 18px 15px; border-radius: 22px; }
  .quiz-top { gap: 9px; padding-bottom: 17px; }
  .quiz-badge { gap: 8px; }
  .quiz-badge-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 1.05rem; }
  .quiz-badge b { font-size: .59rem; letter-spacing: .04em; }
  .quiz-badge small { font-size: .68rem; }
  .quiz-counter { padding: 6px 8px; font-size: .67rem; }
  .quiz-counter strong { font-size: 1.05rem; }
  .question-area { padding-top: 18px; }
  .question-area h3, .quiz-result h3 { font-size: 1.12rem; line-height: 1.8; }
  .question-hint { margin-bottom: 15px; font-size: .78rem; }
  .answer-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .answer-option { min-height: 54px; padding: 10px 11px; gap: 9px; border-radius: 13px; font-size: .85rem; }
  .answer-letter { width: 29px; height: 29px; border-radius: 9px; }
  .quiz-controls { align-items: stretch; flex-direction: column; gap: 8px; margin-top: 16px; }
  .quiz-submit { width: 100%; min-height: 47px; }
  .quiz-restart-link { align-self: center; }
  .result-actions { flex-direction: column; align-items: stretch; }
  .result-actions .btn { width: 100%; }
  .quiz-foot { gap: 7px 13px; margin-top: 20px; padding-top: 14px; font-size: .66rem; }
  .challenge-disclaimer { font-size: .7rem; }

  .reader-shell { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .reader-art { min-height: 205px; border-left: 0; border-bottom: 1px solid rgba(213,193,255,.1); }
  .reader-ring { width: 180px; }
  .ring-two { width: 140px; }
  .reader-lock { width: 67px; height: 78px; border-radius: 19px; font-size: 2.75rem; }
  .glint-one { top: 17%; right: 25%; }
  .glint-two { bottom: 16%; left: 25%; }
  .reader-content { padding: 23px 18px; }
  .reader-content h3 { font-size: 1.35rem; }
  .reader-description { font-size: .82rem; }
  .password-row { flex-direction: column; }
  .password-row input { width: 100%; min-height: 49px; }
  .password-row .btn { width: 100%; }
  .reader-open-head { flex-direction: column; }
  .reader-open-actions { width: 100%; }
  .reader-open-actions .btn { flex: 1 1 auto; }
  .reader-frame { min-height: 55vh; border-radius: 10px; }
  .privacy-strip { align-items: flex-start; gap: 10px; padding: 14px; border-radius: 15px; }
  .privacy-icon { width: 32px; height: 32px; }
  .privacy-strip b { font-size: .78rem; }
  .privacy-strip small { font-size: .68rem; }
  .privacy-check { width: 23px; height: 23px; }

  .author-section { grid-template-columns: minmax(0,1fr); gap: 24px; padding-block: 10px 65px; text-align: center; }
  .author-orb { width: 165px; }
  .author-orb > span { width: 75px; height: 75px; border-radius: 23px; font-size: 2.5rem; }
  .author-copy h2 { font-size: clamp(1.55rem, 6.7vw, 2.1rem); }
  .author-copy p { font-size: .86rem; line-height: 2.05; }
  .author-signature { justify-content: center; font-size: .82rem; }

  .closing-section { padding-bottom: 65px; }
  .closing-card { padding: 31px 19px; border-radius: 23px; }
  .closing-kicker { font-size: .61rem; letter-spacing: .06em; }
  .closing-card h2 { font-size: clamp(1.65rem, 7vw, 2.35rem); line-height: 1.55; }
  .closing-card p { font-size: .84rem; }
  .closing-actions { flex-direction: column; align-items: stretch; }
  .closing-actions .btn { width: 100%; }

  .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding-block: 22px; text-align: center; }
  .footer-inner > p { font-size: .72rem; }
  .footer-links { grid-column: auto; justify-content: center; gap: 8px 14px; }
  .footer-links a { font-size: .72rem; }
  .copyright { grid-column: auto; grid-row: auto; justify-self: center; font-size: .69rem; }

  .lightbox { padding: 12px; }
  .lightbox img { max-width: 100%; max-height: calc(100dvh - 28px); }
  .lightbox button { top: max(10px, env(safe-area-inset-top)); left: max(10px, env(safe-area-inset-left)); width: 42px; height: 42px; }
}

/* Very small phones */
@media (max-width: 390px) {
  .wrap { width: calc(100% - 24px); }
  .brand-name { font-size: .78rem; }
  .hero-visual { min-height: 270px; }
  .book-cover { width: min(47%, 165px); }
  .floating-note { max-width: 64%; padding: 7px 8px; }
  .floating-note b { font-size: .58rem; }
  .floating-note small { font-size: .54rem; }
  .hero h1 { font-size: clamp(2.25rem, 10vw, 2.8rem); }
  .hero-subtitle { font-size: .91rem; }
  .hero-description { font-size: .81rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 8px; }
  .meta-item { gap: 5px; }
  .meta-icon { width: 27px; height: 27px; }
  .meta-item b { font-size: .64rem; }
  .meta-item small { font-size: .57rem; }
  .meta-divider { height: 27px; }
  .trust-strip > div { font-size: .68rem; }
  .section { padding-block: 58px; }
  .story-card { padding: 19px 16px; }
  .preview-grid { gap: 7px; }
  .preview-card { padding: 4px; }
  .preview-caption b { font-size: .64rem; }
  .preview-caption small { font-size: .56rem; }
  .preview-index { width: 22px; height: 22px; font-size: .62rem; }
  .quiz-card { padding: 15px 12px; }
  .quiz-badge b { font-size: .53rem; }
  .quiz-counter { gap: 3px; }
  .privacy-strip { gap: 8px; padding: 12px 10px; }
  .privacy-strip small { font-size: .64rem; }
  .privacy-check { display: none; }
}

/* Accessibility: reduce motion when requested */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Print fallback */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .ambient, .hero-visual, .challenge-section, .closing-section, .lightbox { display: none !important; }
  .wrap { width: 100%; }
  .section, .author-section { padding-block: 20px; }
  .story-card, .principle-card, .quote-band, .reader-shell { box-shadow: none; break-inside: avoid; }
}

/* Explicit accents for the cover card and first decorative reader ring */
.preview-cover {
  border-color: rgba(199, 159, 255, .25);
  background: linear-gradient(145deg, rgba(43, 27, 66, .94), rgba(15, 10, 25, .96));
}

.preview-cover .preview-image-wrap {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.ring-one {
  border-color: rgba(190, 160, 255, .17);
}

/* ============================================================
   VITTO_ARMIN — Premium Visual Refinement Layer
   Append this block to the VERY END of assets/css/style.css.
   Safe, CSS-only polish; no JavaScript or HTML behavior changes.
   ============================================================ */

:root {
  --va-lilac: #c9b5ff;
  --va-rose: #ffacd9;
  --va-mint: #9cf4ed;
  --va-hairline: rgba(224, 209, 255, .16);
  --va-glass: rgba(22, 15, 40, .76);
  --va-card-shadow: 0 20px 60px rgba(0, 0, 0, .24), 0 1px 0 rgba(255, 255, 255, .035) inset;
}

/* Subtle overall depth without introducing external assets. */
body {
  background-image:
    radial-gradient(ellipse at 84% 11%, rgba(124, 58, 237, .17), transparent 34rem),
    radial-gradient(ellipse at 5% 55%, rgba(30, 154, 169, .075), transparent 31rem),
    radial-gradient(ellipse at 95% 78%, rgba(219, 87, 164, .055), transparent 28rem),
    linear-gradient(180deg, #0b0717 0%, #090713 46%, #0d0818 100%);
}

/* More intentional text selection and smoother anchor navigation. */
::selection {
  color: #10091c;
  background: #e2c9ff;
}

/* Header: clearer edge and a restrained premium sheen. */
.site-header {
  border-bottom-color: rgba(220, 202, 255, .13);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.brand-mark {
  border-color: rgba(230, 211, 255, .38);
  background: linear-gradient(145deg, rgba(172, 130, 255, .29), rgba(251, 131, 198, .12) 72%, rgba(120, 231, 237, .08));
}

.nav-cta,
.btn,
.menu-btn {
  -webkit-user-select: none;
  user-select: none;
}

/* Buttons: slightly richer highlights while keeping existing colors. */
.btn-primary {
  background-image: linear-gradient(112deg, #8752e4 0%, #a85cdb 48%, #d968b4 100%);
  box-shadow: 0 13px 30px rgba(134, 75, 215, .24), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-primary:focus-visible,
.nav-cta:focus-visible,
.menu-btn:focus-visible {
  outline-color: var(--va-mint);
  box-shadow: 0 0 0 5px rgba(120, 231, 237, .09);
}

/* Cards: stronger separation from the page, understated hover feedback. */
.story-card,
.principle-card,
.preview-card,
.quiz-card,
.reader-shell,
.closing-card,
.quote-band {
  box-shadow: var(--va-card-shadow);
}

.story-card,
.principle-card,
.preview-card,
.quiz-card,
.reader-shell,
.closing-card,
.quote-band {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.story-card,
.principle-card,
.preview-card {
  transition-property: transform, border-color, box-shadow, background;
  transition-duration: .28s;
  transition-timing-function: cubic-bezier(.2, .75, .25, 1);
}

.story-card:hover,
.principle-card:hover {
  border-color: rgba(197, 168, 255, .28);
  box-shadow: 0 25px 65px rgba(0, 0, 0, .27), 0 0 28px rgba(139, 92, 246, .055);
}

/* Decorative separators get a consistent jewel-toned finish. */
.section-heading h2,
.author-copy h2,
.closing-card h2 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.section-kicker::before {
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--va-rose), var(--va-lilac), var(--va-mint));
}

/* Book preview images remain crisp and their cards keep a stable shape. */
.preview-image-wrap {
  isolation: isolate;
}

.preview-image-wrap img {
  backface-visibility: hidden;
}

.preview-card:focus-visible {
  outline-offset: 4px;
  border-color: rgba(156, 244, 237, .55);
}

/* Quiz: make progress and answer states more legible. */
#quiz-progress-bar {
  background: linear-gradient(90deg, #8b5cf6 0%, #ec78c0 52%, #78e7ed 100%);
  box-shadow: 0 0 19px rgba(174, 126, 255, .30);
}

.answer-option {
  position: relative;
  isolation: isolate;
}

.answer-option:focus-visible {
  outline-offset: 3px;
  border-color: rgba(156, 244, 237, .6);
}

.answer-option[aria-pressed="true"],
.answer-option.selected,
.answer-option.is-selected {
  border-color: rgba(201, 181, 255, .68);
  background: linear-gradient(105deg, rgba(133, 86, 218, .18), rgba(251, 131, 198, .085), rgba(120, 231, 237, .035));
}

.quiz-feedback {
  border-color: rgba(201, 181, 255, .25);
  background: linear-gradient(110deg, rgba(167, 139, 250, .075), rgba(120, 231, 237, .035));
}

/* Private reader and password input: visibly defined focus and surface. */
.reader-shell {
  border-color: rgba(213, 193, 255, .22);
}

.password-row input {
  color-scheme: dark;
}

.password-row input:focus-visible {
  outline: 2px solid var(--va-mint);
  outline-offset: 2px;
}

.reader-frame {
  color-scheme: light;
}

/* Lightbox: guard against tall images on short landscape phone screens. */
.lightbox {
  overscroll-behavior: contain;
}

.lightbox img {
  max-width: min(100%, 1080px);
}

/* Responsive refinement: tablet layouts avoid crowding before the mobile breakpoint. */
@media (min-width: 761px) and (max-width: 1100px) {
  .nav {
    gap: 11px;
  }

  .nav-links {
    gap: clamp(8px, 1.2vw, 14px);
  }

  .nav-links a {
    font-size: .75rem;
  }

  .brand-name {
    font-size: .83rem;
  }

  .nav-cta {
    padding-inline: 10px;
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .preview-card {
    padding: 8px;
  }

  .preview-caption b {
    font-size: .84rem;
  }

  .preview-caption small {
    font-size: .72rem;
  }
}

/* Small-screen usability improvements. */
@media (max-width: 760px) {
  .site-header {
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    backdrop-filter: blur(16px) saturate(135%);
  }

  .hero-visual {
    overflow: clip;
  }

  .hero-meta .meta-item {
    flex: 0 1 auto;
  }

  .preview-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
  }

  .quiz-card,
  .reader-shell,
  .closing-card {
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
  }

  .answer-option {
    min-height: 56px;
  }

  .reader-frame {
    min-height: 50vh;
    min-height: 50dvh;
  }
}

@media (max-width: 390px) {
  .quiz-top {
    align-items: flex-start;
  }

  .quiz-counter {
    white-space: nowrap;
  }

  .quiz-badge {
    max-width: calc(100% - 78px);
  }

  .quiz-badge b,
  .quiz-badge small {
    overflow-wrap: anywhere;
  }

  .floating-note {
    max-width: 61%;
  }
}

/* Touch devices do not need hover-only motion; keep focus feedback intact. */
@media (hover: none) {
  .story-card:hover,
  .principle-card:hover,
  .preview-card:hover {
    border-color: var(--va-hairline);
    box-shadow: var(--va-card-shadow);
  }

  .preview-card:hover .preview-image-wrap img {
    transform: none;
    filter: none;
  }
}

/* Accessibility: honor reduced motion and high-contrast preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .book-cover,
  .btn,
  .preview-card,
  .preview-image-wrap img,
  .answer-option,
  .principle-card,
  .story-card {
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(235, 225, 255, .28);
    --line-strong: rgba(235, 225, 255, .42);
    --muted: #d0c8e0;
  }

  .nav-links a,
  .footer-links a,
  .story-card p,
  .principle-card p,
  .reader-description,
  .hero-description,
  .section-heading p {
    color: #d0c8e0;
  }
}
/* ============================================================
   VITTO_ARMIN — CINEMATIC EDITION / VISUAL UPGRADE
   Added after the existing stylesheet and prior refinement layer.
   Keeps the existing HTML hooks, quiz behavior, and secure reader intact.
   ============================================================ */
:root {
  --va-ink: #080611;
  --va-plum: #1a0e2f;
  --va-glass-border: rgba(223, 199, 255, .22);
  --va-pink-glow: rgba(236, 100, 180, .18);
  --va-violet-glow: rgba(129, 89, 255, .25);
}

html { scroll-padding-top: calc(var(--header-height) + 22px); }
body {
  background:
    radial-gradient(ellipse at 81% 4%, rgba(119, 58, 202, .22), transparent 36rem),
    radial-gradient(ellipse at 5% 35%, rgba(29, 150, 169, .09), transparent 32rem),
    radial-gradient(ellipse at 95% 68%, rgba(221, 76, 159, .08), transparent 33rem),
    linear-gradient(180deg, #090614 0%, #080611 45%, #0e0818 100%);
}

.site-header {
  border-bottom-color: rgba(225, 204, 255, .17);
  background: rgba(8, 6, 17, .84);
  box-shadow: 0 9px 34px rgba(0, 0, 0, .20);
}

/* A distinct, editorial hero panel makes the cover the visual focal point. */
.hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, .97fr);
  gap: clamp(34px, 5.2vw, 78px);
  min-height: 780px;
  margin-top: 22px;
  margin-bottom: 20px;
  padding: clamp(42px, 5vw, 72px) clamp(26px, 4vw, 58px);
  border: 1px solid rgba(220, 197, 255, .18);
  border-radius: 38px;
  background:
    radial-gradient(ellipse at 77% 42%, rgba(125, 68, 207, .19), transparent 31rem),
    radial-gradient(ellipse at 12% 3%, rgba(252, 132, 198, .075), transparent 25rem),
    linear-gradient(128deg, rgba(25, 16, 44, .80), rgba(12, 9, 25, .72) 53%, rgba(24, 12, 39, .88));
  box-shadow: 0 36px 100px rgba(0, 0, 0, .29), inset 0 1px 0 rgba(255, 255, 255, .045);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid rgba(235, 218, 255, .045);
  border-radius: 28px;
  pointer-events: none;
  content: "";
}
.hero::after {
  position: absolute;
  z-index: -1;
  top: 7%;
  right: 43%;
  width: 1px;
  height: 86%;
  background: linear-gradient(transparent, rgba(217, 193, 255, .10), transparent);
  content: "";
}
.hero-copy { padding-block: 18px; }
.eyebrow {
  padding: 9px 16px;
  border-color: rgba(218, 177, 255, .28);
  background: linear-gradient(110deg, rgba(150, 91, 238, .14), rgba(235, 109, 185, .075));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  color: #e6d9ff;
  font-size: .84rem;
}
.hero h1 {
  max-width: 700px;
  margin-top: 28px;
  margin-bottom: 20px;
  font-size: clamp(4.1rem, 6.5vw, 6.9rem);
  line-height: 1.18;
  letter-spacing: -.065em;
  text-shadow: 0 7px 32px rgba(177, 128, 255, .07);
}
.hero h1 .gradient-text {
  background-image: linear-gradient(104deg, #ffe2f2 0%, #d6b7ff 34%, #a8eeff 70%, #ffda9d 100%);
}
.hero-subtitle {
  max-width: 610px;
  margin-bottom: 15px;
  color: #fff3fb;
  font-size: clamp(1.1rem, 1.7vw, 1.38rem);
  line-height: 1.95;
}
.hero-description { max-width: 620px; font-size: .98rem; line-height: 2.2; color: #c8bfdc; }
.hero-actions { margin-top: 32px; gap: 13px; }
.hero-actions .btn { min-height: 54px; padding-inline: 20px; border-radius: 16px; }
.hero-meta { margin-top: 38px; padding-top: 25px; gap: 25px; border-top-color: rgba(225, 206, 255, .17); }
.meta-icon { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(140deg, rgba(188, 148, 255, .12), rgba(255, 255, 255, .025)); }
.meta-item b { font-size: .84rem; }
.meta-item small { font-size: .75rem; }

.hero-visual {
  min-height: 660px;
  border: 1px solid rgba(213, 186, 255, .12);
  border-radius: 31px;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(150, 91, 238, .14), transparent 57%),
    linear-gradient(145deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .006));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 22px 55px rgba(0,0,0,.11);
}
.visual-glow { width: 92%; background: radial-gradient(circle, rgba(169, 99, 255, .30) 0%, rgba(217, 82, 173, .11) 42%, transparent 72%); filter: blur(12px); }
.visual-orbit { width: min(96%, 580px); border-color: rgba(203, 172, 255, .19); }
.orbit-b { width: min(82%, 480px); border-color: rgba(120, 231, 237, .20); }
.book-cover {
  width: min(67%, 380px);
  border-radius: 7px 17px 17px 7px;
  border-color: rgba(255,255,255,.44);
  box-shadow: -15px 19px 0 -9px rgba(91, 55, 128, .85), -28px 36px 62px rgba(0,0,0,.48), 0 32px 100px rgba(139, 81, 226, .31), inset 5px 0 0 rgba(255,255,255,.2);
  transform: perspective(1450px) rotateY(-8deg) rotateZ(-2.2deg);
}
.book-cover:hover { box-shadow: -15px 19px 0 -9px rgba(91,55,128,.85), -30px 40px 66px rgba(0,0,0,.5), 0 42px 115px rgba(139,81,226,.4); }
.book-cover img { display: block; object-fit: cover; }
.cover-shine { background: linear-gradient(117deg, rgba(255,255,255,.26), transparent 18%, transparent 69%, rgba(255,255,255,.06)); }
.book-shadow { bottom: 7%; width: 58%; height: 42px; filter: blur(22px); }
.floating-note { border-color: rgba(224, 202, 255, .23); background: rgba(15, 10, 28, .88); box-shadow: 0 18px 40px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(16px); }
.note-top { top: 11%; left: -2%; }
.note-bottom { right: -1%; bottom: 11%; }
.visual-index { color: rgba(227, 211, 255, .78); font-size: .76rem; letter-spacing: .18em; }
.visual-index i { background: linear-gradient(90deg, var(--pink), var(--purple), var(--cyan)); }

/* Stronger visual rhythm across the whole landing page. */
.trust-strip {
  margin-top: 24px;
  border-color: rgba(219, 198, 255, .18);
  background: linear-gradient(105deg, rgba(21, 14, 38, .92), rgba(15, 12, 27, .88));
  box-shadow: 0 22px 58px rgba(0,0,0,.17), inset 0 1px 0 rgba(255,255,255,.035);
}
.section { padding-block: clamp(82px, 8.2vw, 122px); }
.section-heading { margin-bottom: 42px; }
.section-heading h2, .author-copy h2, .closing-card h2 { letter-spacing: -.035em; }
.story-card, .principle-card, .preview-card, .quiz-card, .reader-shell, .closing-card, .quote-band {
  border-color: rgba(220, 199, 255, .17);
  background-color: rgba(19, 13, 34, .84);
}
.story-main { background: radial-gradient(ellipse at 90% 6%, rgba(158, 102, 255, .11), transparent 55%), rgba(19, 13, 34, .84); }
.story-values { background: radial-gradient(ellipse at 10% 100%, rgba(242, 101, 183, .08), transparent 52%), rgba(19, 13, 34, .84); }
.principle-card { padding: clamp(23px, 2.6vw, 34px); }
.preview-card { padding: 13px; border-radius: 22px; }
.preview-image-wrap { border-radius: 15px; background: #160e27; }
.preview-image-wrap img { transition: transform .55s cubic-bezier(.2,.75,.25,1), filter .55s ease; }
.preview-card:hover .preview-image-wrap img { transform: scale(1.035); filter: saturate(1.08) contrast(1.02); }
.preview-caption { padding: 17px 8px 8px; }
.quote-band { padding: clamp(30px, 5vw, 58px); border-radius: 28px; }

/* The romantic challenge gets its own stronger, immersive visual treatment. */
.challenge-section {
  border-top: 1px solid rgba(222, 190, 255, .12);
  border-bottom: 1px solid rgba(222, 190, 255, .12);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 66, 185, .22), transparent 42rem),
    radial-gradient(ellipse at 5% 60%, rgba(208, 80, 157, .08), transparent 26rem),
    linear-gradient(180deg, rgba(16, 9, 28, .93), rgba(9, 7, 18, .98));
}
.challenge-wrap { padding-block: clamp(76px, 8.4vw, 116px); }
.challenge-heading { max-width: 850px; }
.challenge-heading h2 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); line-height: 1.45; }
.quiz-card {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(24px, 4.1vw, 48px);
  border: 1px solid rgba(221, 196, 255, .23);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(162, 102, 255, .12), transparent 38%),
    linear-gradient(145deg, rgba(27, 18, 46, .96), rgba(13, 10, 25, .97));
  box-shadow: 0 34px 95px rgba(0,0,0,.34), 0 0 60px rgba(135,79,208,.07), inset 0 1px 0 rgba(255,255,255,.055);
}
.quiz-top { gap: 20px; padding-bottom: 22px; border-bottom: 1px solid rgba(220,199,255,.13); }
.quiz-badge { gap: 13px; }
.quiz-badge-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 15px; border: 1px solid rgba(241,193,255,.25); background: linear-gradient(140deg, rgba(163,111,255,.18), rgba(236,103,185,.12)); color: #ffd4ef; font-size: 1.25rem; }
.quiz-badge b { letter-spacing: .12em; font-size: .74rem; color: #e9d9ff; }
.quiz-badge small { color: #b9a9d3; font-size: .78rem; }
.quiz-counter { padding: 9px 13px; border: 1px solid rgba(216,194,255,.17); border-radius: 15px; background: rgba(255,255,255,.035); }
.quiz-counter strong { color: #f4d8ff; font-size: 1.5rem; }
.progress-track { height: 7px; margin-top: 22px; background: rgba(255,255,255,.075); }
#quiz-progress-bar { height: 100%; border-radius: inherit; transition: width .35s ease, background .35s ease; }
.question-area { padding-top: 30px; }
.question-kicker { color: #d2b9ff; font-size: .83rem; font-weight: 800; }
.question-area h3 { max-width: 760px; margin: 12px 0 17px; color: #fff7ff; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.95; text-wrap: pretty; }
.question-hint { color: #a79abf; font-size: .86rem; }
.answer-list { display: grid; gap: 12px; margin-top: 22px; }
.answer-option {
  min-height: 72px;
  gap: 15px;
  padding: 17px 18px;
  border-color: rgba(213,192,244,.16);
  border-radius: 17px;
  background: linear-gradient(100deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
}
.answer-option:hover:not(:disabled) { border-color: rgba(202,164,255,.43); background: linear-gradient(100deg, rgba(141,97,221,.12), rgba(238,119,189,.045)); transform: translateY(-1px); }
.option-letter { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border-radius: 12px; border: 1px solid rgba(216,190,255,.19); background: rgba(158,112,246,.10); color: #e0ceff; font-weight: 900; }
.option-text { color: #e8e1f3; line-height: 1.95; }
.answer-option.correct { border-color: rgba(130,235,198,.46); background: linear-gradient(100deg, rgba(51,170,127,.13), rgba(255,255,255,.018)); }
.answer-option.correct .option-letter { color: #aaf4d7; border-color: rgba(130,235,198,.3); background: rgba(51,170,127,.14); }
.answer-option.incorrect { border-color: rgba(250,135,173,.36); background: linear-gradient(100deg, rgba(200,70,111,.095), rgba(255,255,255,.012)); }
.quiz-feedback { margin-top: 20px; padding: 17px 18px; border-radius: 16px; color: #d9d0e8; line-height: 2; }
.quiz-controls { align-items: center; gap: 14px; margin-top: 25px; }
.quiz-submit { min-width: 170px; min-height: 52px; }
.quiz-restart-link { padding: 10px 14px; color: #c3b5db; border-radius: 12px; }
.quiz-foot { gap: 14px 23px; padding-top: 20px; margin-top: 25px; border-top: 1px solid rgba(220,199,255,.12); color: #9d91b7; }
.challenge-disclaimer { max-width: 850px; margin: 22px auto 0; color: #a79ab9; line-height: 2; }
.quiz-result { padding-top: 28px; }
.result-emblem { width: 66px; height: 66px; border: 1px solid rgba(222,193,255,.24); border-radius: 22px; background: linear-gradient(140deg, rgba(157,102,255,.17), rgba(239,110,190,.1)); color: #f6ceef; font-size: 2rem; }
.result-score { margin-block: 20px; }
.result-score strong { color: #f0d6ff; font-size: clamp(3rem, 7vw, 4.5rem); }

/* Keep the private reader visually clear and stable. */
.reader-shell { border-color: rgba(216,194,255,.2); border-radius: 28px; overflow: hidden; }
.reader-content { padding: clamp(22px, 4vw, 44px); }
.reader-frame { width: 100%; min-height: 70vh; border: 1px solid rgba(212,193,255,.15); border-radius: 13px; background: #fff; }
.privacy-strip { border-color: rgba(154,234,204,.17); background: linear-gradient(100deg, rgba(39,115,91,.10), rgba(18,14,31,.76)); }
.closing-card { padding: clamp(35px, 6vw, 70px); border-radius: 34px; }
.site-footer { border-top-color: rgba(220,199,255,.14); background: rgba(6,5,13,.45); }

@media (min-width: 1400px) {
  .hero { min-height: 820px; }
  .hero-visual { min-height: 700px; }
  .book-cover { width: min(69%, 405px); }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); min-height: 650px; gap: 25px; padding: 36px 25px; }
  .hero-visual { min-height: 560px; }
  .book-cover { width: min(70%, 320px); }
  .hero h1 { font-size: clamp(3.7rem, 6vw, 5.2rem); }
  .hero::after { right: 46%; }
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: auto;
    margin-top: 10px;
    margin-bottom: 18px;
    padding: 13px 13px 27px;
    border-radius: 26px;
  }
  .hero::before { inset: 7px; border-radius: 20px; }
  .hero::after { display: none; }
  .hero-visual {
    order: 1;
    min-height: clamp(365px, 104vw, 465px);
    margin: 0 auto;
    border: 0;
    border-radius: 20px;
    background: radial-gradient(ellipse at 50% 50%, rgba(147,82,226,.10), transparent 65%);
    box-shadow: none;
  }
  .visual-orbit { width: min(94%, 405px); }
  .orbit-b { width: min(80%, 340px); }
  .book-cover { width: min(62%, 255px); border-radius: 5px 13px 13px 5px; }
  .book-shadow { bottom: 5%; width: 54%; }
  .note-top { top: 10%; left: 0; }
  .note-bottom { right: 0; bottom: 9%; }
  .hero-copy { order: 2; padding: 8px 6px 0; text-align: center; }
  .eyebrow { margin-inline: auto; font-size: .72rem; }
  .hero h1 { margin: 20px 0 13px; font-size: clamp(3rem, 11vw, 4.2rem); line-height: 1.28; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-description { font-size: .89rem; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 22px; }
  .hero-actions .btn { width: 100%; flex: none; }
  .hero-meta { justify-content: center; gap: 12px; margin-top: 24px; padding-top: 18px; }
  .meta-item { flex: 0 1 auto; }
  .meta-divider { display: none; }
  .trust-strip { margin-top: 16px; }
  .section { padding-block: 67px; }
  .section-heading { margin-bottom: 28px; }
  .preview-card { padding: 8px; border-radius: 16px; }
  .preview-caption { padding: 12px 5px 5px; }
  .challenge-wrap { padding-block: 70px; }
  .challenge-heading h2 { font-size: clamp(2rem, 8.4vw, 3rem); line-height: 1.55; }
  .quiz-card { padding: 19px 14px; border-radius: 23px; }
  .quiz-top { align-items: flex-start; }
  .quiz-badge-icon { width: 38px; height: 38px; border-radius: 12px; }
  .quiz-badge b { font-size: .61rem; letter-spacing: .07em; }
  .quiz-badge small { font-size: .72rem; }
  .question-area { padding-top: 23px; }
  .question-area h3 { font-size: 1.13rem; line-height: 2; }
  .answer-option { min-height: 66px; gap: 11px; padding: 13px 11px; border-radius: 14px; }
  .option-letter { width: 32px; height: 32px; flex-basis: 32px; border-radius: 10px; }
  .option-text { font-size: .84rem; line-height: 1.95; }
  .quiz-controls { align-items: stretch; flex-direction: column; }
  .quiz-submit { width: 100%; }
  .quiz-restart-link { align-self: center; }
  .quiz-foot { justify-content: center; }
  .reader-frame { min-height: 58vh; min-height: 58dvh; }
  .closing-card { padding: 30px 20px; }
}

@media (max-width: 390px) {
  .hero-visual { min-height: 350px; }
  .book-cover { width: min(62%, 220px); }
  .floating-note { max-width: 58%; padding: 7px 8px; }
  .floating-note b { font-size: .58rem; }
  .floating-note small { font-size: .53rem; }
  .hero h1 { font-size: clamp(2.7rem, 10.3vw, 3.3rem); }
  .quiz-counter { padding: 7px 10px; }
  .quiz-counter strong { font-size: 1.25rem; }
  .quiz-badge { gap: 8px; }
  .quiz-badge b { max-width: 142px; overflow-wrap: anywhere; }
  .answer-list { gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-cover, .preview-image-wrap img, .answer-option, #quiz-progress-bar { transition: none !important; }
}


/* === VITTO ARMIN: responsive containment repair (append-only) ===
/* Preserve the original hero/content. These rules prevent children from widening the viewport. */
*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; }
body { width: 100%; max-width: 100%; overflow-x: clip; }
main, header, footer, section, nav, .wrap, .nav, .site-header, .site-footer { min-width: 0; max-width: 100%; }
img, video, iframe, svg, canvas { max-width: 100%; }
img { height: auto; }
button, input, textarea, select { max-width: 100%; font: inherit; }
.wrap { width: min(100% - 36px, 1240px); }
.story-grid > *, .principle-grid > *, .preview-grid > *, .quiz-card, .reader-shell > *, .footer-inner > *, .closing-actions > * { min-width: 0; }
.story-card, .principle-card, .preview-card, .quiz-card, .reader-shell, .closing-card, .quote-band { overflow-wrap: anywhere; }
.preview-card img, .preview-image-wrap img, .book-cover img { display: block; max-width: 100%; }
.answer-option, .option-text, .question-area h3, .result-actions, .telegram-note { min-width: 0; overflow-wrap: anywhere; }
.btn { white-space: normal; overflow-wrap: anywhere; }
.btn-telegram { border-color: rgba(91, 190, 151, .42); background: linear-gradient(135deg, rgba(37, 151, 112, .23), rgba(48, 105, 135, .20)); box-shadow: 0 10px 30px rgba(18, 127, 96, .12); }
.btn-telegram:hover { border-color: rgba(111, 226, 177, .72); transform: translateY(-2px); }
.footer-links { min-width: 0; max-width: 100%; flex-wrap: wrap; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
  .nav, .site-header .nav { gap: 10px; }
  .hero, .section, .challenge-section, .author-section, .closing-section, .trust-strip, .quote-band { min-width: 0; }
  .story-grid, .principle-grid, .preview-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-card, .principle-card, .preview-card, .quiz-card, .reader-shell, .closing-card { min-width: 0; }
  .quiz-top { min-width: 0; gap: 10px; }
  .quiz-badge { min-width: 0; max-width: calc(100% - 70px); }
  .quiz-badge > span:last-child { min-width: 0; overflow-wrap: anywhere; }
  .quiz-counter { flex: 0 0 auto; }
  .quiz-foot { flex-wrap: wrap; }
  .password-row { min-width: 0; flex-wrap: wrap; }
  .password-row input, .password-row button { min-width: 0; width: 100%; }
  .reader-open-head, .reader-open-actions { min-width: 0; flex-wrap: wrap; }
  .reader-open-actions > * { min-width: 0; flex: 1 1 140px; }
  .closing-actions { min-width: 0; }
  .closing-actions > .btn { width: 100%; min-width: 0; }
  .footer-links { column-gap: 12px; row-gap: 10px; }
}

@media (max-width: 430px) {
  .wrap { width: calc(100% - 24px); }
  .preview-grid { gap: 8px; }
  .preview-card { padding: 7px; }
  .preview-caption { min-width: 0; gap: 5px; }
  .preview-caption > span:first-child { min-width: 0; }
  .preview-caption b, .preview-caption small { overflow-wrap: anywhere; }
  .quiz-card { padding-inline: 12px; }
  .answer-option { grid-template-columns: 30px minmax(0, 1fr); }
  .option-text { font-size: clamp(.78rem, 3.4vw, .88rem); }
  .quiz-foot > span { white-space: normal; }
}

@media (max-width: 359px) {
  .wrap { width: calc(100% - 20px); }
  .brand-name { font-size: .9rem; }
  .menu-btn { padding-inline: 8px; }
  .hero-visual { max-width: 100%; }
  .floating-note { max-width: 55%; }
  .quiz-badge b { letter-spacing: 0; }
  .preview-caption { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn-telegram { transition: none; }
}

/* Challenge readability and same-page private reader enhancements */
#answer-list{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;align-items:stretch}
#answer-list .answer-option{display:flex;align-items:flex-start;gap:13px;width:100%;min-width:0;padding:15px 16px;border:1px solid rgba(185,157,255,.34);border-radius:17px;background:linear-gradient(115deg,rgba(126,91,201,.19),rgba(34,26,59,.92) 52%,rgba(35,87,111,.15));color:#fbf8ff;text-align:right;white-space:normal;overflow-wrap:anywhere;line-height:1.95;box-shadow:0 7px 22px rgba(4,2,15,.18),inset 0 1px rgba(255,255,255,.045);transition:border-color .18s ease,background .18s ease,transform .18s ease}
#answer-list .answer-option:hover:not(:disabled){border-color:rgba(127,229,242,.72);background:linear-gradient(115deg,rgba(126,91,201,.28),rgba(34,26,59,.96) 52%,rgba(35,120,145,.22));transform:translateY(-1px)}
#answer-list .answer-option:focus-visible{outline:3px solid rgba(127,229,242,.75);outline-offset:3px}
#answer-list .answer-option[aria-pressed="true"],#answer-list .answer-option.selected,#answer-list .answer-option.is-selected{border-color:#c5a8ff;background:linear-gradient(115deg,rgba(149,105,244,.32),rgba(48,32,78,.97) 52%,rgba(48,126,151,.23));box-shadow:0 0 0 2px rgba(174,135,255,.13),0 10px 26px rgba(4,2,15,.22)}
#answer-list .answer-letter,#answer-list .option-letter{flex:0 0 36px;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;border:1px solid rgba(201,177,255,.4);background:linear-gradient(140deg,rgba(165,128,255,.3),rgba(111,218,236,.15));color:#f2eaff;font-weight:900}
#answer-list .option-text{min-width:0;flex:1;color:#f6f0ff;line-height:2}
#answer-list .answer-option.correct{border-color:rgba(130,235,198,.78);background:linear-gradient(110deg,rgba(51,170,127,.23),rgba(26,54,53,.78))}
#answer-list .answer-option.incorrect{border-color:rgba(250,135,173,.72);background:linear-gradient(110deg,rgba(200,70,111,.2),rgba(58,28,51,.82))}
.reader-embed-wrap[hidden],#book-gate[hidden],#book-viewer[hidden],.reader-ready-panel[hidden],.reader-locked-panel[hidden]{display:none!important}
.reader-native-card{width:100%;min-width:0;margin-top:16px;padding:clamp(16px,3vw,26px);border:1px solid rgba(190,160,255,.28);border-radius:18px;background:linear-gradient(145deg,rgba(32,24,59,.96),rgba(16,12,34,.98));box-shadow:0 18px 44px rgba(5,3,15,.22)}
#book-login label{display:block;margin-bottom:10px;color:#eee4ff;font-size:13px}
.book-password-row{display:flex;align-items:stretch;gap:10px;min-width:0}
.book-password-row input{flex:1;min-width:0;height:51px;border:1px solid rgba(255,255,255,.22);border-radius:13px;background:#0e0a1c;color:#fff;padding:0 14px;outline:none}
.book-password-row input:focus{border-color:#b49aff;box-shadow:0 0 0 3px rgba(156,128,255,.2)}
.book-login-message{min-height:24px;color:#7fe5f2;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
.book-security-note{color:#c2b9d5;font-size:11px;line-height:1.9}
.book-viewer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.book-viewer-head small{display:block;color:#c2b9d5;margin-top:5px;font-size:12px}
.reader-pages{display:flex;flex-direction:column;gap:16px;min-width:0}
.reader-page{margin:0;padding:8px;min-width:0;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:#100c22}
.reader-page img{display:block;width:100%;max-width:100%;height:auto;border-radius:6px;background:#fff;touch-action:pan-y pinch-zoom}
.reader-page figcaption{text-align:center;color:#c2b9d5;font-size:11px;padding:9px 0 2px}
@media(max-width:560px){#answer-list{gap:10px}#answer-list .answer-option{padding:13px 12px;gap:10px;border-radius:14px;font-size:.91rem;line-height:1.9}#answer-list .answer-letter,#answer-list .option-letter{flex-basis:31px;width:31px;height:31px;border-radius:10px}.book-password-row{flex-direction:column}.book-password-row .btn{width:100%}.reader-native-card{padding:14px;border-radius:14px}.reader-page{padding:5px;border-radius:10px}}
@media(prefers-reduced-motion:reduce){#answer-list .answer-option{transition:none}}


/* Final refinement: same-page book gate and elegant editorial accents */
.hero-story-chip{position:absolute;z-index:3;max-width:205px;padding:11px 14px;border:1px solid rgba(239,193,123,.42);border-radius:15px;background:linear-gradient(135deg,rgba(20,12,36,.94),rgba(43,20,54,.86));color:#f4e6f3;font-size:.82rem;line-height:1.8;box-shadow:0 12px 32px rgba(0,0,0,.24);backdrop-filter:blur(10px)}
.hero-story-chip-one{top:22%;right:-2%;transform:rotate(2deg)}.hero-story-chip-two{bottom:22%;left:-2%;transform:rotate(-2deg)}
.hero-rose-art{position:absolute;z-index:2;left:-2%;bottom:4%;width:90px;height:115px;pointer-events:none;filter:drop-shadow(0 10px 12px rgba(0,0,0,.32))}
.rose-petal{position:absolute;display:block;width:33px;height:39px;border-radius:70% 45% 65% 40%;background:radial-gradient(circle at 35% 28%,#ff9aa9 0 8%,#d52d5a 33%,#761333 76%);border:1px solid rgba(255,205,215,.45)}
.rp1{left:24px;top:7px;transform:rotate(5deg)}.rp2{left:7px;top:23px;transform:rotate(-35deg)}.rp3{left:40px;top:25px;transform:rotate(38deg)}
.rose-leaf{position:absolute;width:26px;height:45px;top:53px;background:linear-gradient(135deg,#75b68a,#194c3b);border-radius:100% 0 100% 0;transform:rotate(-24deg)}.rl1{left:10px}.rl2{left:47px;top:58px;transform:rotate(36deg)}
.reader-book-card{display:grid;grid-template-columns:minmax(160px,.72fr) minmax(0,1.28fr);gap:clamp(20px,4vw,44px);align-items:center;padding:clamp(18px,3vw,34px)}
.reader-book-cover{position:relative;max-width:310px;margin-inline:auto;isolation:isolate}.reader-book-cover img{display:block;width:100%;height:auto;border-radius:9px;border:1px solid rgba(234,202,130,.65);box-shadow:0 22px 55px rgba(0,0,0,.48),0 0 0 6px rgba(235,202,130,.07)}.reader-cover-glow{position:absolute;inset:-8px;border-radius:14px;border:1px solid rgba(230,186,255,.28);z-index:-1}
#reader-ready-panel{display:flex;flex-wrap:wrap;gap:12px;align-items:center}#reader-ready-panel .reader-ready-message{flex-basis:100%}#reader-ready-panel .btn{min-height:48px}
#quiz-result .result-score{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}#quiz-result .result-actions{display:flex;gap:10px;flex-wrap:wrap}
.reader-pdf-fallback{margin:18px 0;text-align:center}.reader-pdf-fallback a{color:#e4b7ff;text-decoration:underline;text-underline-offset:4px}
@media(max-width:680px){.hero-story-chip{max-width:150px;font-size:.72rem;padding:8px 10px}.hero-story-chip-one{right:0;top:12%}.hero-story-chip-two{left:0;bottom:12%}.hero-rose-art{width:62px;height:82px;transform:scale(.72);transform-origin:bottom left;left:0;bottom:0}.reader-book-card{grid-template-columns:minmax(0,1fr);gap:22px}.reader-book-cover{width:min(68%,240px)}#reader-ready-panel .btn{width:100%;justify-content:center}.reader-embed-heading{flex-wrap:wrap;gap:10px}}
@media(max-width:360px){.hero-story-chip{max-width:128px;font-size:.68rem}.reader-book-card{padding:15px}.reader-book-cover{width:min(74%,210px)}}


/* Inline full-PDF reader: replacement for the missing 26-image page sequence. */
.reader-pdf-frame {
  display: block;
  width: 100%;
  height: min(82vh, 1120px);
  min-height: 620px;
  border: 1px solid rgba(190, 160, 255, .25);
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 700px) {
  .reader-pdf-frame {
    height: 74vh;
    min-height: 520px;
    border-radius: 9px;
  }
}
@media (max-width: 420px) {
  .reader-pdf-frame {
    height: 70vh;
    min-height: 460px;
  }
}


/* New-tab book action: premium gold / rose accent, mobile-friendly. */
.btn-book-external {
  border: 1px solid rgba(255, 231, 168, .82);
  background: linear-gradient(112deg, #f0d48e 0%, #f4b2cf 54%, #c5a1ff 100%);
  color: #23152e;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(225, 178, 121, .18), inset 0 1px 0 rgba(255,255,255,.62);
  text-shadow: 0 1px 0 rgba(255,255,255,.16);
}
.btn-book-external:hover:not(:disabled) {
  box-shadow: 0 16px 34px rgba(225, 178, 121, .28), 0 0 0 3px rgba(235, 201, 135, .08), inset 0 1px 0 rgba(255,255,255,.7);
  filter: saturate(1.06);
}
.btn-book-external:focus-visible {
  outline: 3px solid rgba(240, 212, 142, .85);
  outline-offset: 3px;
}
.btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}
.book-open-feedback {
  flex-basis: 100%;
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(127, 229, 242, .28);
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(127,229,242,.07), rgba(196,161,255,.08));
  color: #e4faff;
  font-size: .82rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
  text-align: center;
}
.book-open-feedback[hidden] { display: none !important; }
.btn-book-external[hidden], #open-book-new-tab-result[hidden], #open-book-new-tab[hidden] { display: none !important; }
#reader-ready-panel .book-open-feedback { flex-basis: 100%; }
#quiz-result .book-open-feedback { max-width: 680px; margin-inline: auto; }
@media (max-width: 680px) {
  #open-book-new-tab-result,
  #reader-ready-panel .btn-book-external { width: 100%; justify-content: center; }
}


/* === VITTO_ARMIN visual refinement: clean hero, original image framing and legible challenge === */
.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(26px, 4.5vw, 66px);
  min-height: 0;
  padding-block: clamp(30px, 4.7vw, 70px) clamp(26px, 4vw, 52px);
}
.hero-copy { padding-block: 18px; }
.hero-visual.hero-portrait-stage {
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2.2vw, 28px);
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}
.hero-portrait-stage::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(92%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 190, 69, .17) 0%, rgba(225, 151, 44, .06) 44%, transparent 71%);
  filter: blur(6px);
}
.hero-portrait-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6% 7%;
  border: 1px solid rgba(250, 207, 101, .48);
  border-radius: 34px 110px 34px 110px;
  transform: rotate(4deg);
  box-shadow: 13px 15px 0 -7px rgba(248, 188, 56, .42), -13px -13px 0 -7px rgba(237, 90, 151, .42);
  pointer-events: none;
}
.hero-portrait {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 415px);
  max-width: 415px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(255, 221, 132, .88);
  border-radius: 27px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .38), 0 0 0 7px rgba(242, 190, 69, .08), 0 0 0 13px rgba(232, 89, 143, .06);
  background: #0c1428;
  image-rendering: auto;
}
.portrait-frame { position: absolute; z-index: -1; inset: 3% 2%; border: 1px solid rgba(255,255,255,.16); border-radius: 40px 122px 40px 122px; pointer-events:none; }
.portrait-frame-back { transform: rotate(-5deg); border-color: rgba(231, 94, 152, .5); }
.portrait-frame-front { inset: 1% 6%; transform: rotate(2deg); border-color: rgba(255, 210, 97, .58); }
.portrait-spark { position:absolute; z-index:2; color:#ffd971; text-shadow:0 0 18px rgba(255,210,97,.55); pointer-events:none; }
.portrait-spark-one { top:3%; right:9%; font-size:1.7rem; }
.portrait-spark-two { bottom:4%; left:7%; color:#f4a8cf; font-size:1.5rem; }

.hero-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: -2px;
  margin-bottom: clamp(26px, 4vw, 52px);
}
.hero-insight {
  position: relative;
  min-width: 0;
  padding: 19px 20px 18px;
  overflow: hidden;
  border: 1px solid rgba(246, 205, 95, .38);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(27, 22, 28, .98), rgba(35, 25, 33, .92));
  color: #fff7e2;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .17), inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-insight::before { content:""; position:absolute; inset:7px; border:1px solid rgba(245,199,82,.12); border-radius:12px; pointer-events:none; }
.hero-insight .insight-symbol { display:block; margin-bottom:7px; color:#ffd45f; font-size:1.25rem; }
.hero-insight p { position:relative; margin:0; font-size:clamp(.95rem,1.25vw,1.09rem); font-weight:850; line-height:1.9; }
.hero-insight small { display:block; margin-top:5px; color:#dbc99a; font-size:.78rem; line-height:1.7; }
.hero-insight.insight-ink { background:linear-gradient(135deg,#090d18,#172033); border-color:rgba(246,205,95,.55); }
.hero-insight.insight-violet { background:linear-gradient(135deg,#21122f,#341b43); border-color:rgba(238,156,213,.42); }
.hero-insight.insight-violet .insight-symbol { color:#f6add7; }
.hero-insight.insight-violet small { color:#dfb9d8; }
.trust-strip { margin-top: 0; }

/* Make preview cards preserve every edge of the original uploaded page images. */
.preview-image-wrap { background:#0b1020; }
.preview-image-wrap img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 1086 / 1536;
  object-fit: contain;
  object-position:center;
  image-rendering:auto;
  backface-visibility:hidden;
}
.preview-card:hover .preview-image-wrap img { transform:scale(1.012); filter:none; }
.preview-zoom { opacity:1; transform:none; }
.lightbox { z-index:999; padding:clamp(12px,3vw,30px); }
.lightbox img { width:auto; height:auto; max-width:min(100%, 1160px); max-height:calc(100dvh - 64px); object-fit:contain; border-radius:10px; }

/* Large, high-contrast answer states and a structured teaching card. */
.question-kicker { font-size:1rem; }
.question-area h3 { font-size:clamp(1.35rem,2.5vw,1.8rem); line-height:1.95; }
.question-hint { font-size:1rem; line-height:1.8; }
#answer-list .answer-option {
  min-height:76px;
  padding:16px 18px;
  gap:14px;
  font-size:1.08rem;
  line-height:2;
  border-width:1px;
}
#answer-list .option-text { color:#f5f2fb; font-size:inherit; line-height:2; }
#answer-list .option-letter { width:39px; height:39px; flex-basis:39px; color:#ffe09a; background:rgba(238,183,59,.12); border-color:rgba(243,203,95,.35); font-size:1rem; }
#answer-list .answer-option.correct,
#answer-list .answer-option[aria-pressed="true"].correct {
  background:#176b43 !important;
  border-color:#6be6a4 !important;
  color:#ffffff !important;
  box-shadow:0 0 0 2px rgba(77,220,142,.2),0 8px 24px rgba(0,0,0,.18) !important;
}
#answer-list .answer-option.correct .option-text,
#answer-list .answer-option.correct .option-letter { color:#ffffff !important; }
#answer-list .answer-option.correct .option-letter { background:#0d5734 !important; border-color:#8cf0b8 !important; }
#answer-list .answer-option.incorrect,
#answer-list .answer-option[aria-pressed="true"].incorrect {
  background:#8f202c !important;
  border-color:#ff8d98 !important;
  color:#ffffff !important;
  box-shadow:0 0 0 2px rgba(255,100,115,.17),0 8px 24px rgba(0,0,0,.16) !important;
}
#answer-list .answer-option.incorrect .option-text,
#answer-list .answer-option.incorrect .option-letter { color:#ffffff !important; }
#answer-list .answer-option.incorrect .option-letter { background:#721522 !important; border-color:#ffabb3 !important; }
#answer-list .answer-option:disabled { cursor:default; opacity:1; transform:none; }
.quiz-feedback[hidden] { display:none !important; }
.quiz-feedback {
  display:block;
  margin-top:22px;
  padding:clamp(18px,2.6vw,26px);
  border:1px solid rgba(242,199,88,.46);
  border-radius:19px;
  background:linear-gradient(145deg,rgba(29,27,27,.98),rgba(18,21,32,.98));
  color:#f8f4eb;
  font-size:1.02rem;
  line-height:2.05;
  box-shadow:0 16px 38px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.06);
}
.quiz-feedback-title { display:block; margin-bottom:9px; color:#ffdc78; font-size:1.16rem; font-weight:900; line-height:1.8; }
.quiz-feedback p { margin:10px 0 0; }
.quiz-feedback-reason { color:#f7f0e7; }
.quiz-feedback-correct { padding:12px 14px; border-right:3px solid #51d99a; border-radius:8px; background:rgba(28,113,73,.19); color:#e3ffed; }
.quiz-feedback-takeaway { margin-top:14px !important; padding:13px 14px; border:1px solid rgba(242,199,88,.25); border-radius:12px; background:rgba(242,199,88,.07); color:#ffe6a2; }
.quiz-feedback.feedback-correct { border-color:rgba(82,223,149,.46); background:linear-gradient(145deg,rgba(12,44,32,.97),rgba(17,25,31,.98)); }
.quiz-feedback.feedback-correct .quiz-feedback-title { color:#8df2b6; }
.quiz-feedback.feedback-wrong { border-color:rgba(255,115,129,.6); background:linear-gradient(145deg,rgba(52,20,28,.98),rgba(25,20,31,.98)); }
.quiz-feedback.feedback-wrong .quiz-feedback-title { color:#ffabb2; }
.quiz-submit { font-size:1.05rem; min-height:56px; }
.quiz-restart-link { font-size:.95rem; }
.quiz-result h3 { font-size:clamp(1.45rem,2.8vw,2rem); }
.quiz-result p { font-size:1.02rem; line-height:2; }

@media (max-width: 900px) {
  .hero { grid-template-columns:minmax(0,1fr) minmax(0,.88fr); gap:22px; }
  .hero-description { font-size:.94rem; }
  .hero-insight { padding:16px 14px; }
}
@media (max-width: 760px) {
  .hero {
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:22px 16px 24px;
  }
  .hero-visual.hero-portrait-stage { order:1; width:100%; min-height:0; padding:20px 12px; margin:0 auto; overflow:visible; }
  .hero-copy { order:2; text-align:right; width:100%; padding:6px 3px; }
  .hero-portrait { width:min(100%, 415px); max-width:415px; border-radius:22px; }
  .hero-insight-grid { grid-template-columns:minmax(0,1fr); gap:11px; margin-top:10px; margin-bottom:25px; }
  .hero-insight { padding:15px 17px; }
  .hero-insight p { font-size:1rem; }
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-actions .btn { width:100%; }
  .hero-meta { flex-wrap:wrap; justify-content:flex-start; }
  .question-area h3 { font-size:1.27rem; }
  #answer-list .answer-option { min-height:68px; padding:14px 12px; gap:10px; font-size:1rem; }
  #answer-list .option-letter { width:34px;height:34px;flex-basis:34px; }
  .quiz-feedback { font-size:.98rem; line-height:2; padding:17px 14px; }
  .quiz-feedback-title { font-size:1.08rem; }
  .quiz-submit { width:100%; }
  .preview-grid { gap:12px; }
  .preview-card { min-height:0; }
}
@media (max-width: 430px) {
  .hero h1 { font-size:clamp(2.55rem,10.4vw,3.35rem); line-height:1.35; }
  .hero-subtitle { font-size:1rem; }
  .hero-description { font-size:.93rem; }
  .portrait-frame-back { inset:3% 0; }
  .portrait-frame-front { inset:1% 5%; }
  .portrait-spark-one { right:4%; top:2%; }
  .portrait-spark-two { left:3%; bottom:3%; }
  .preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #answer-list { grid-template-columns:minmax(0,1fr); }
  #answer-list .answer-option { font-size:1rem; }
  .quiz-controls { flex-direction:column; align-items:stretch; }
  .quiz-restart-link { align-self:center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-portrait, .hero-visual::after, .hero-insight, .preview-card img, #answer-list .answer-option { transition:none !important; }
}


/* Final homepage placement: portrait remains fully visible and the hero begins at page top. */
#home > .hero:first-child { position: relative; order: 0; margin-top: 0; visibility: visible; opacity: 1; transform: none; }
.hero-visual.hero-portrait-stage { align-self: center; }
.hero-portrait { object-fit: contain; object-position: center; height: auto; }


/* FINAL GOLD PORTRAIT HERO — original portrait pixels preserved */
:root { --va-gold: #f2cf78; --va-gold-soft: #ffe5a0; --va-night: #061426; }
body {
  background:
    radial-gradient(ellipse at 84% 4%, rgba(203,157,63,.10), transparent 34rem),
    radial-gradient(ellipse at 8% 36%, rgba(37,83,125,.13), transparent 30rem),
    linear-gradient(180deg,#06101f 0%,#091326 46%,#0b1020 100%);
}
.site-header { background:rgba(5,15,29,.94); border-bottom-color:rgba(242,207,120,.23); }
.hero.hero-gold {
  display:block; min-height:0; margin-top:16px; margin-bottom:24px;
  padding:clamp(24px,3.2vw,44px); border:1px solid rgba(242,207,120,.88);
  border-radius:32px; background:linear-gradient(145deg,rgba(5,20,38,.98),rgba(13,18,35,.98));
  box-shadow:0 24px 65px rgba(0,0,0,.28),inset 0 0 0 5px rgba(242,207,120,.055);
}
.hero.hero-gold::before { inset:10px; border:1px solid rgba(242,207,120,.40); border-radius:25px; z-index:0; }
.hero.hero-gold::after { display:none; }
.hero-gold-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(260px,.82fr); align-items:center; gap:clamp(24px,4vw,56px); position:relative; z-index:1; direction:ltr; }
.hero-gold-side, .hero-destiny-card { direction:rtl; }
.hero-gold-portrait { position:relative; isolation:isolate; width:100%; max-width:600px; margin:0 auto; padding:8px; border:2px solid var(--va-gold); border-radius:29px; background:linear-gradient(135deg,rgba(242,207,120,.18),rgba(255,255,255,.015) 42%,rgba(242,207,120,.08)); box-shadow:0 0 0 5px rgba(242,207,120,.07),0 25px 55px rgba(0,0,0,.4); }
.hero-gold-portrait::before { content:""; position:absolute; inset:5px; border:1px solid rgba(255,229,160,.68); border-radius:22px; pointer-events:none; z-index:2; }
.hero-gold-portrait .hero-portrait { display:block; position:relative; z-index:1; width:100%; height:auto; max-height:690px; aspect-ratio:415/545; object-fit:contain; object-position:center; border-radius:21px; background:#071426; }
.hero-gold-frame { position:absolute; inset:-9px; border:1px solid rgba(242,207,120,.4); border-radius:34px; pointer-events:none; }
.hero-gold-frame-back { inset:-15px 12px 12px -15px; border-color:rgba(242,207,120,.20); }
.hero-gold-side { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; min-width:0; }
.hero-lily-frame { position:relative; width:100%; max-width:430px; min-height:220px; display:grid; place-items:center; overflow:hidden; border-radius:25px; background:radial-gradient(ellipse at 50% 45%,rgba(242,207,120,.09),transparent 70%); }
.hero-lily-glow { position:absolute; inset:15% 10%; background:radial-gradient(ellipse,rgba(255,224,147,.13),transparent 70%); filter:blur(12px); }
.hero-lily-frame img { display:block; position:relative; width:100%; max-width:400px; height:auto; max-height:310px; object-fit:contain; filter:drop-shadow(0 12px 20px rgba(0,0,0,.28)); }
.hero-destiny-card { width:100%; max-width:430px; position:relative; padding:clamp(22px,3vw,36px) clamp(17px,2.4vw,30px); border:1px solid rgba(242,207,120,.92); border-radius:26px; background:linear-gradient(145deg,rgba(5,20,38,.98),rgba(8,24,42,.94)); box-shadow:inset 0 0 0 5px rgba(242,207,120,.06),0 18px 42px rgba(0,0,0,.22); text-align:center; }
.hero-destiny-card::before { content:""; position:absolute; inset:6px; border:1px solid rgba(242,207,120,.42); border-radius:19px; pointer-events:none; }
.hero-card-ornament { display:flex; justify-content:center; align-items:center; gap:24px; color:var(--va-gold); margin-bottom:10px; }
.hero-card-ornament i { width:44px; height:1px; background:var(--va-gold); }
.hero-card-ornament b { font-size:15px; }
.hero-destiny-card h1 { margin:0 0 15px; color:var(--va-gold-soft); font-size:clamp(2.3rem,4.3vw,3.8rem); line-height:1.4; font-weight:900; letter-spacing:0; text-shadow:0 5px 24px rgba(242,207,120,.10); }
.hero-destiny-lead { margin:0 0 2px; color:#fff7e5; font-size:clamp(1.05rem,1.8vw,1.35rem); font-weight:800; line-height:1.9; }
.hero-destiny-copy { margin:0; color:#c6cbd4; font-size:clamp(.98rem,1.6vw,1.18rem); line-height:2; }
.hero-card-smile { display:block; position:relative; width:120px; height:28px; margin:17px auto 0; border-bottom:2px solid rgba(242,207,120,.9); border-radius:0 0 60% 60%; }
.hero-card-smile::before,.hero-card-smile::after { content:""; position:absolute; top:0; width:6px; height:6px; border-radius:50%; background:var(--va-gold-soft); }
.hero-card-smile::before { left:-7px; }.hero-card-smile::after { right:-7px; }
.hero-gold-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:23px; }
.hero-gold-actions .btn { min-height:44px; padding:10px 15px; border-radius:13px; font-size:.87rem; }
.hero-gold-quote { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:clamp(12px,3vw,36px); margin-top:clamp(26px,4vw,46px); padding:clamp(20px,3vw,31px) 18px; border:1px solid rgba(242,207,120,.85); border-radius:23px; background:rgba(4,19,36,.72); box-shadow:inset 0 0 0 4px rgba(242,207,120,.035); text-align:center; }
.hero-gold-quote p { margin:0 0 5px; color:#fff8e8; font-size:clamp(1.02rem,2vw,1.35rem); font-weight:850; line-height:1.9; }
.hero-gold-quote small { color:#f1d48c; font-size:clamp(.9rem,1.6vw,1.05rem); line-height:1.9; }
.hero-quote-star { color:var(--va-gold); font-size:1.65rem; flex:0 0 auto; }
@media (max-width:760px) {
  .hero.hero-gold { margin:10px 12px 20px; padding:20px 16px 22px; border-radius:25px; }
  .hero.hero-gold::before { inset:7px; border-radius:19px; }
  .hero-gold-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  .hero-gold-portrait { order:1; width:min(100%,440px); padding:6px; border-radius:23px; }
  .hero-gold-portrait .hero-portrait { width:100%; max-height:none; aspect-ratio:415/545; object-fit:contain; border-radius:17px; }
  .hero-gold-frame { border-radius:27px; }
  .hero-gold-side { order:2; gap:10px; }
  .hero-lily-frame { min-height:0; height:clamp(155px,48vw,235px); }
  .hero-lily-frame img { max-height:100%; width:min(100%,360px); }
  .hero-destiny-card { padding:21px 17px 23px; border-radius:22px; }
  .hero-destiny-card h1 { font-size:clamp(2.2rem,10vw,3.1rem); }
  .hero-gold-actions { gap:8px; margin-top:18px; }
  .hero-gold-actions .btn { flex:1 1 140px; }
  .hero-gold-quote { gap:10px; margin-top:22px; padding:19px 10px; border-radius:18px; }
  .hero-gold-quote p { font-size:1rem; }
  .hero-gold-quote small { font-size:.9rem; }
  .hero-quote-star { font-size:1.15rem; }
}
@media (max-width:390px) {
  .hero.hero-gold { margin-inline:8px; padding:17px 12px 18px; }
  .hero-gold-portrait { padding:5px; }
  .hero-gold-actions { flex-direction:column; }
  .hero-gold-actions .btn { width:100%; }
}


/* Final home composition: use the entire supplied artwork as one image; do not crop/split it. */
.hero-composition {
  --hc-gold: #f4d17d;
  --hc-ink: #061426;
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(16px, 2.5vw, 24px);
  width: min(100% - 36px, 980px);
  margin: clamp(18px, 3vw, 32px) auto clamp(28px, 4vw, 46px);
  padding: 0;
  isolation: isolate;
}
.hero-composition-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.hero-composition-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(244, 209, 125, .64);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(244,209,125,.10), rgba(8,22,42,.9) 38%, rgba(117,74,170,.12));
  box-shadow: 0 18px 46px rgba(0,0,0,.28), 0 0 0 4px rgba(244,209,125,.045), inset 0 1px 0 rgba(255,255,255,.10);
}
.hero-composition-art::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(244,209,125,.16);
  border-radius: 30px;
  pointer-events: none;
}
.hero-composition-image {
  display: block;
  width: auto;
  height: min(76svh, 900px);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 2 / 3;
  border-radius: 17px;
  image-rendering: auto;
  box-shadow: 0 7px 22px rgba(0,0,0,.2);
}
.hero-composition-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 13px;
  width: min(100%, 490px);
  margin: 0 auto;
}
.hero-action-button {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 210px;
  min-width: 0;
  min-height: 66px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 17px;
  text-align: right;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
}
.hero-action-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .42;
  background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 50%);
  pointer-events: none;
}
.hero-action-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
}
.hero-action-button:focus-visible {
  outline: 3px solid rgba(255,226,150,.95);
  outline-offset: 4px;
}
.hero-action-challenge {
  color: #201707;
  border-color: rgba(255,223,147,.78);
  background: linear-gradient(115deg, #f4c75f 0%, #f7dc91 55%, #e6ae44 100%);
  box-shadow: 0 8px 22px rgba(207,155,48,.18), inset 0 1px 0 rgba(255,255,255,.68);
}
.hero-action-challenge:hover { box-shadow: 0 12px 26px rgba(207,155,48,.28), inset 0 1px 0 rgba(255,255,255,.72); }
.hero-action-preview {
  color: #f5f2ff;
  border-color: rgba(164,139,255,.52);
  background: linear-gradient(115deg, #35265d 0%, #4b367a 55%, #243e65 100%);
  box-shadow: 0 8px 22px rgba(62,49,114,.24), inset 0 1px 0 rgba(255,255,255,.16);
}
.hero-action-preview:hover { box-shadow: 0 12px 26px rgba(62,49,114,.34), inset 0 1px 0 rgba(255,255,255,.2); }
.hero-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 1.1rem;
  border: 1px solid currentColor;
  background: rgba(255,255,255,.12);
}
.hero-action-copy {
  display: grid;
  gap: 2px;
  line-height: 1.45;
  min-width: 0;
}
.hero-action-copy small {
  font-size: .71rem;
  font-weight: 650;
  opacity: .83;
  white-space: normal;
}
.hero-action-copy b {
  font-size: .96rem;
  line-height: 1.45;
  font-weight: 900;
}
.hero-action-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  margin-inline-start: auto;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: .9rem;
  opacity: .9;
}
@media (max-width: 640px) {
  .hero-composition {
    width: calc(100% - 28px);
    gap: 16px;
    margin-top: 17px;
    margin-bottom: 30px;
  }
  .hero-composition-art { padding: 5px; border-radius: 19px; }
  .hero-composition-art::before { inset: -6px; border-radius: 24px; }
  .hero-composition-image { height: min(73svh, 760px); border-radius: 13px; }
  .hero-composition-actions { width: min(100%, 380px); gap: 10px; }
  .hero-action-button { flex: 1 1 100%; min-height: 58px; padding: 9px 13px; border-radius: 15px; }
  .hero-action-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
  .hero-action-copy small { font-size: .70rem; }
  .hero-action-copy b { font-size: .93rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-action-button { transition: none; }
  .hero-action-button:hover { transform: none; }
}


/* Final requested polish: clear, tactile entry buttons and a compact, easy-to-answer quiz. */
.hero-action-button {
  min-height: 74px;
  cursor: pointer;
  border-width: 1.5px;
  box-shadow: 0 10px 0 rgba(5, 3, 17, .18), 0 14px 28px rgba(5, 3, 17, .24), inset 0 1px 0 rgba(255,255,255,.7);
  -webkit-tap-highlight-color: transparent;
}
.hero-action-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.22);
  pointer-events: none;
}
.hero-action-button:hover {
  transform: translateY(-4px);
}
.hero-action-challenge:hover {
  box-shadow: 0 4px 0 rgba(101, 65, 7, .26), 0 19px 32px rgba(207,155,48,.34), inset 0 1px 0 rgba(255,255,255,.78);
}
.hero-action-preview:hover {
  box-shadow: 0 4px 0 rgba(8, 5, 25, .28), 0 19px 32px rgba(83,65,151,.38), inset 0 1px 0 rgba(255,255,255,.24);
}
.hero-action-button:active {
  transform: translateY(1px) scale(.99);
  box-shadow: 0 2px 0 rgba(5,3,17,.16), 0 5px 14px rgba(5,3,17,.18), inset 0 1px 0 rgba(255,255,255,.55);
}
.hero-action-icon {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 9px rgba(0,0,0,.08);
}
.hero-action-arrow {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  border-width: 1.5px;
  background: rgba(255,255,255,.18);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease;
}
.hero-action-button:hover .hero-action-arrow {
  transform: translate(-2px, -1px);
  background: rgba(255,255,255,.28);
}
.hero-action-copy b {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s ease;
}
.hero-action-button:hover .hero-action-copy b,
.hero-action-button:focus-visible .hero-action-copy b {
  text-decoration-color: currentColor;
}

/* A short explanation prevents the answer key from pushing the next step far away. */
.quiz-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  font-size: .9rem;
  line-height: 1.8;
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
}
.quiz-feedback-title {
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.65;
}
.quiz-feedback-summary {
  margin: 4px 0 0 !important;
  font-size: .88rem;
  line-height: 1.75;
  color: #f5f0ff;
}
.quiz-controls {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px -4px 0;
  padding: 10px;
  border: 1px solid rgba(205,183,255,.24);
  border-radius: 17px;
  background: rgba(20, 14, 38, .96);
  box-shadow: 0 10px 30px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.055);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.quiz-submit {
  min-height: 52px;
  flex: 1 1 auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 13px;
  font-weight: 900;
  box-shadow: 0 5px 15px rgba(130,74,210,.25), inset 0 1px 0 rgba(255,255,255,.18);
}
.quiz-restart-link {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 11px;
  white-space: nowrap;
}
#quiz-result .result-actions .btn,
#reader-ready-panel .btn {
  cursor: pointer;
}

@media (max-width: 680px) {
  .hero-composition-actions { gap: 12px; }
  .hero-action-button {
    min-height: 66px;
    padding: 11px 13px;
    border-radius: 16px;
  }
  .hero-action-arrow { width: 28px; height: 28px; flex-basis: 28px; }
  .quiz-card { scroll-margin-top: 82px; }
  .question-area { padding-top: 18px; }
  .question-area h3 { margin: 8px 0 12px; line-height: 1.8; }
  .question-hint { margin: 5px 0 8px; }
  #answer-list { gap: 9px; margin-top: 12px; }
  #answer-list .answer-option {
    min-height: 0;
    padding: 11px 12px;
    gap: 10px;
    border-radius: 13px;
    line-height: 1.75;
    font-size: .9rem;
  }
  #answer-list .option-letter,
  #answer-list .answer-letter {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 9px;
  }
  .quiz-feedback { margin-top: 10px; padding: 10px 12px; }
  .quiz-controls {
    bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 12px -2px 0;
    padding: 8px;
    border-radius: 15px;
  }
  .quiz-submit { width: auto; min-width: 0; min-height: 48px; padding: 10px 12px; font-size: .93rem; }
  .quiz-restart-link { min-height: 42px; padding: 7px 8px; font-size: .78rem; }
}
@media (max-width: 360px) {
  .quiz-controls { gap: 6px; padding: 7px; }
  .quiz-restart-link { padding-inline: 5px; font-size: .73rem; }
  .quiz-submit { font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-action-button,
  .hero-action-arrow,
  .hero-action-copy b { transition: none !important; }
}


/* VITTO_ARMIN — optional reflection tools, future challenge, share and FAQ (v2) */
.quiz-insights[hidden], .future-plan[hidden] { display: none !important; }
.quiz-insights { margin: 24px 0 8px; padding-top: 20px; border-top: 1px solid rgba(224,207,255,.17); }
.quiz-insights-heading { margin: 0 0 14px; color: #f5e9ff; font-size: 1.08rem; }
.quiz-insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quiz-insight-card { min-width: 0; padding: 15px; border: 1px solid rgba(216,193,255,.17); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(128,87,182,.065)); }
.quiz-insight-card h5 { margin: 0 0 5px; color: #ffe1a0; font-size: .97rem; }
.quiz-insight-score { display: inline-block; margin-bottom: 10px; color: #d6c8ee; font-size: .86rem; }
.quiz-insight-meter { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.quiz-insight-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b48bff, #f0c96d); }
.quiz-insight-card p { margin: 11px 0 0; color: #dcd3e9; font-size: .88rem !important; line-height: 1.85 !important; }
.quiz-insights-note { margin: 12px 0 0; color: #a99ebd; font-size: .82rem !important; line-height: 1.8 !important; }

.reflection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.reflection-prompt, .future-question { display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid rgba(205,183,255,.18); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(136,95,192,.05)); color: #f4eefb; }
.reflection-prompt > span, .future-question > span { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(196,160,255,.12); border: 1px solid rgba(211,181,255,.18); color: #eed6a0; font-size: .85rem; font-weight: 900; }
.reflection-prompt b, .future-question b { font-size: .95rem; line-height: 1.85; }
.reflection-prompt textarea, .future-question textarea { display: block; width: 100%; min-height: 90px; resize: vertical; padding: 12px 13px; border: 1px solid rgba(220,201,255,.2); border-radius: 12px; background: rgba(5,4,13,.35); color: #fff; font: inherit; font-size: .9rem; line-height: 1.9; outline: none; }
.reflection-prompt textarea::placeholder, .future-question textarea::placeholder { color: #9f94b2; }
.reflection-prompt textarea:focus, .future-question textarea:focus { border-color: rgba(213,180,255,.7); box-shadow: 0 0 0 3px rgba(178,130,255,.12); }
.reflection-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.optional-share-note { margin: 11px 0 0; padding: 11px 14px; border-right: 3px solid rgba(212,173,88,.78); border-radius: 10px; background: rgba(212,173,88,.055); color: #cfc2df; font-size: .85rem; line-height: 1.95; }
.reflection-actions .btn-telegram { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.interaction-status { min-height: 1.6em; margin: 10px 0 0; color: #d3c2ef; font-size: .9rem; line-height: 1.8; }
.local-only-note { margin: 7px 0 0; color: #9d93b0; font-size: .82rem; line-height: 1.8; }

.future-challenge-panel { overflow: hidden; border: 1px solid rgba(213,184,255,.22); border-radius: 22px; background: linear-gradient(145deg, rgba(23,15,40,.8), rgba(11,10,22,.86)); box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.future-challenge-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.future-challenge-panel > summary::-webkit-details-marker { display: none; }
.future-challenge-panel > summary b { display: block; color: #f8efff; font-size: 1.08rem; }
.future-challenge-panel > summary small { display: block; margin-top: 5px; color: #b7a9ca; font-size: .84rem; line-height: 1.7; }
.future-summary-icon { display: grid; width: 37px; height: 37px; flex: 0 0 37px; place-items: center; border: 1px solid rgba(255,219,145,.28); border-radius: 12px; color: #ffdfa0; transition: transform .2s ease; }
.future-challenge-panel[open] .future-summary-icon { transform: rotate(45deg); }
.future-challenge-body { padding: 3px 22px 22px; border-top: 1px solid rgba(213,184,255,.13); }
.future-question { margin-top: 14px; }
.future-question textarea { min-height: 76px; }
.future-challenge-body > #future-build-plan { margin-top: 16px; }
.future-plan { margin-top: 24px; padding: 20px; border: 1px solid rgba(236,202,122,.23); border-radius: 18px; background: rgba(181,132,38,.06); }
.future-plan > h3 { margin: 0 0 14px; color: #ffdfa0; font-size: 1.2rem; }
.future-plan-steps { display: grid; gap: 12px; }
.future-plan-step { padding: 14px 15px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(215,190,255,.12); }
.future-plan-step h5 { margin: 0 0 7px; color: #eee1ff; font-size: .98rem; }
.future-plan-step p, .future-plan-balance { margin: 0; white-space: pre-line; color: #d8cfe7; font-size: .92rem; line-height: 1.9; overflow-wrap: anywhere; }
.future-plan-balance { margin-top: 14px; padding: 12px 14px; border-right: 3px solid #d4ad58; background: rgba(212,173,88,.06); border-radius: 9px; }

.faq-list { display: grid; gap: 11px; max-width: 900px; margin-inline: auto; }
.faq-item { overflow: hidden; border: 1px solid rgba(207,184,255,.18); border-radius: 15px; background: rgba(255,255,255,.025); }
.faq-item summary { position: relative; padding: 17px 20px; cursor: pointer; list-style: none; color: #f4eaff; font-weight: 800; line-height: 1.85; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: left; margin-right: 12px; color: #e6c779; font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: #c7bdd8; font-size: .92rem; line-height: 2; overflow-wrap: anywhere; }
.faq-item code { color: #ffe4a5; font-family: ui-monospace, monospace; }
.closing-actions > .interaction-status { flex: 1 0 100%; width: 100%; text-align: center; }
.btn-share-site { border: 1px solid rgba(205,177,255,.38); background: linear-gradient(135deg, rgba(141,101,224,.2), rgba(216,173,94,.09)); box-shadow: 0 8px 24px rgba(104,65,160,.13); }
.btn-share-site:hover { border-color: rgba(226,202,255,.7); transform: translateY(-2px); }

@media (max-width: 820px) {
  .quiz-insights-grid { grid-template-columns: 1fr; }
  .reflection-grid { grid-template-columns: 1fr; }
  .reflection-prompt textarea { min-height: 82px; }
}
@media (max-width: 680px) {
  .future-challenge-panel > summary { padding: 17px 15px; }
  .future-challenge-body { padding-inline: 14px; padding-bottom: 16px; }
  .reflection-prompt, .future-question { padding: 15px; }
  .reflection-actions { flex-direction: column; align-items: stretch; }
  .reflection-actions .btn { width: 100%; }
  .future-plan { padding: 14px; }
  .faq-item summary { padding: 15px 14px; font-size: .92rem; }
  .faq-item p { padding: 0 14px 15px; font-size: .87rem; }
  .quiz-insight-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .future-summary-icon { transition: none; }
}


/* VITTO_ARMIN FINAL — session-only forms, growth path and transparent digital achievements */
.pathways-section { padding-top: clamp(54px, 7vw, 88px); }
.pathways-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pathway-card { min-width: 0; padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(213,184,255,.2); border-radius: 22px; background: linear-gradient(145deg, rgba(29,20,47,.82), rgba(13,11,25,.88)); box-shadow: 0 18px 42px rgba(0,0,0,.13); }
.pathway-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pathway-icon { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 42px; border: 1px solid rgba(235,204,127,.3); border-radius: 14px; background: rgba(220,180,91,.08); color: #ffdfa0; font-size: 1.35rem; }
.pathway-kicker { color: #d8c1f5; font-size: .83rem; font-weight: 800; letter-spacing: .02em; }
.pathway-card h3 { margin: 0 0 10px; color: #fff3d4; font-size: clamp(1.2rem, 2.3vw, 1.55rem); line-height: 1.6; }
.pathway-card > p { color: #cfc4df; font-size: .92rem; line-height: 2; }
.pathway-note { margin: 12px 0; color: #a99ebd !important; font-size: .82rem !important; line-height: 1.9 !important; }
.quran-card { position: relative; overflow: hidden; border-color: rgba(235,204,127,.28); background: radial-gradient(ellipse at 85% 0%, rgba(214,174,92,.11), transparent 55%), linear-gradient(145deg, rgba(34,27,40,.94), rgba(13,11,25,.92)); }
.quran-card::after { content: "۞"; position: absolute; left: 16px; bottom: -25px; color: rgba(235,204,127,.055); font-size: 8rem; line-height: 1; pointer-events: none; }
.quran-icon { color: #f4d895; border-color: rgba(235,204,127,.38); background: rgba(220,180,91,.12); }
.quran-verse { position: relative; z-index: 1; margin: 18px 0 12px; padding: 18px 16px; border-right: 3px solid #d9b66c; border-radius: 12px; background: rgba(220,180,91,.07); color: #ffedbd; font-family: inherit; font-size: clamp(1.2rem, 2.6vw, 1.65rem); font-weight: 800; line-height: 2.15; text-align: center; }
.quran-reference { margin: 0 0 12px; color: #e7cc8e !important; font-size: .84rem !important; font-weight: 800; text-align: center; }
.quran-translation { margin: 0; color: #d6ccdf !important; font-size: .92rem !important; line-height: 2.1 !important; text-align: center; }

.text-link { display: inline-flex; margin: 2px 0 14px; color: #e9cf91; text-underline-offset: 4px; line-height: 1.9; font-size: .88rem; }
.pathway-prompt { display: block; margin: 8px 0; color: #f3eaff; font-size: .92rem; line-height: 1.9; font-weight: 800; }
.week-progress-row { display: grid; grid-template-columns: auto minmax(80px, 1fr); align-items: center; gap: 12px; margin: 18px 0 12px; color: #e9d8ff; font-size: .86rem; font-weight: 800; }
.week-progress-track { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.1); }
.week-progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b48bff, #f0c96d); transition: width .2s ease; }
.week-checklist { display: grid; gap: 9px; }
.week-task { display: flex; align-items: flex-start; gap: 11px; padding: 12px 13px; border: 1px solid rgba(211,187,255,.12); border-radius: 13px; background: rgba(255,255,255,.025); cursor: pointer; color: #e7deef; line-height: 1.8; }
.week-task input { width: 19px; height: 19px; flex: 0 0 19px; margin: 3px 0 0; accent-color: #d9b56b; cursor: pointer; }
.week-task span { display: block; font-size: .91rem; }
.week-task b { display: inline-block; min-width: 60px; margin-left: 5px; color: #f3d99d; }
.week-task:has(input:checked) { border-color: rgba(219,190,112,.36); background: rgba(216,177,86,.06); }
.week-task:has(input:checked) span { color: #d8cdbd; }
.week-completion-note { min-height: 1.8em; margin: 14px 0 0 !important; color: #e7d19a !important; font-weight: 800; }
.achievement-section { margin-top: clamp(28px, 5vw, 52px); padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(213,184,255,.16); border-radius: 22px; background: rgba(18,13,30,.5); }
.achievement-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.achievement-heading h3 { margin: 6px 0 0; color: #fff2d1; font-size: 1.35rem; }
.achievement-heading p { max-width: 490px; margin: 0; color: #aa9dbd; font-size: .85rem; line-height: 1.9; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.achievement-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 15px; border: 1px solid rgba(209,190,239,.13); border-radius: 15px; background: rgba(255,255,255,.02); opacity: .72; transition: border-color .2s ease, background .2s ease, opacity .2s ease; }
.achievement-card.is-earned { border-color: rgba(221,188,104,.38); background: linear-gradient(135deg, rgba(218,179,88,.09), rgba(153,112,214,.06)); opacity: 1; }
.achievement-symbol { display: grid; width: 37px; height: 37px; place-items: center; flex: 0 0 37px; border: 1px solid rgba(208,186,245,.2); border-radius: 12px; color: #c1b4d4; font-size: 1.15rem; }
.achievement-card.is-earned .achievement-symbol { border-color: rgba(237,203,128,.34); color: #ffe3a2; }
.achievement-card > div { min-width: 0; display: grid; gap: 4px; }
.achievement-card b { color: #f3eaff; font-size: .92rem; line-height: 1.7; }
.achievement-card small { color: #a99ebd; font-size: .78rem; line-height: 1.7; }
.achievement-card [data-achievement-status] { color: #9c92aa; font-size: .75rem; line-height: 1.7; }
.achievement-card.is-earned [data-achievement-status] { color: #e4c87f; font-weight: 800; }
.prize-policy { display: flex; gap: 15px; align-items: flex-start; margin-top: 20px; padding: 20px; border: 1px solid rgba(215,186,114,.22); border-radius: 18px; background: rgba(208,164,67,.045); }
.prize-policy-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; border: 1px solid rgba(230,198,119,.25); color: #ffdfa0; font-size: 1.4rem; }
.prize-policy h3 { margin: 4px 0 7px; color: #ffdfa0; font-size: 1.1rem; }
.prize-policy p { margin: 0; color: #cfc4df; font-size: .9rem; line-height: 2; }
.prize-policy .prize-policy-footer { margin-top: 9px; color: #e8d49c; font-weight: 800; }

@media (max-width: 920px) {
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .achievement-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 700px) {
  .pathways-grid { grid-template-columns: 1fr; }
  .achievement-grid { grid-template-columns: 1fr; }
  .achievement-section { padding: 16px; }
  .prize-policy { padding: 15px; }
  .week-progress-row { grid-template-columns: 1fr; gap: 8px; }
  .week-task { padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .week-progress-track > span, .achievement-card { transition: none !important; }
}


/* Accessible skip link and local-data backup/restore controls */
.skip-link { position: fixed; z-index: 10000; top: 10px; right: 10px; transform: translateY(-160%); padding: 12px 16px; border: 2px solid #f0cb7d; border-radius: 12px; background: #171025; color: #fff4da; font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.local-data-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.local-data-actions .btn, .backup-import-label { min-height: 44px; }
.backup-import-label { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 700px) { .local-data-actions { display: grid; grid-template-columns: 1fr; width: 100%; } .local-data-actions .btn { width: 100%; } }



/* VITTO ARMIN — future web-design services, portfolio, indicative tiers, and feedback */
.services-section { padding-top: clamp(54px, 7vw, 88px); }
.services-launch-card { display:grid; grid-template-columns:minmax(0, .78fr) minmax(0, 1.22fr); gap:clamp(22px,4vw,48px); align-items:center; overflow:hidden; padding:clamp(20px,4vw,40px); border:1px solid rgba(221,190,116,.24); border-radius:26px; background:radial-gradient(ellipse at 12% 20%,rgba(141,101,224,.16),transparent 48%),linear-gradient(145deg,rgba(31,22,49,.92),rgba(12,10,24,.96)); box-shadow:0 22px 56px rgba(0,0,0,.18); }
.services-launch-art { position:relative; display:grid; min-height:245px; place-items:center; overflow:hidden; border:1px solid rgba(212,184,255,.16); border-radius:22px; background:radial-gradient(circle at 50% 50%,rgba(217,178,99,.12),transparent 45%),linear-gradient(135deg,rgba(106,75,157,.13),rgba(18,17,34,.4)); }
.services-launch-orbit { position:absolute; width:190px; height:190px; border:1px solid rgba(227,199,133,.22); border-radius:42% 58% 56% 44%; transform:rotate(26deg); }
.services-launch-orbit.orbit-a { width:220px; height:145px; border-color:rgba(191,157,255,.24); transform:rotate(-30deg); }
.services-launch-orbit.orbit-b { width:145px; height:220px; }
.services-code-mark { position:relative; color:#ffedbd; font:800 clamp(3.2rem,7vw,5.8rem)/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:-.12em; text-shadow:0 0 36px rgba(222,183,101,.2); }
.services-launch-star { position:absolute; top:22%; right:22%; color:#e9ce8d; font-size:1.4rem; }
.services-launch-copy { min-width:0; }
.services-badges { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:13px; }
.services-live-badge,.services-soon-badge { display:inline-flex; align-items:center; min-height:28px; padding:5px 10px; border-radius:999px; font-size:.77rem; font-weight:800; }
.services-live-badge { border:1px solid rgba(191,157,255,.26); background:rgba(151,108,221,.1); color:#e4d3ff; }
.services-soon-badge { border:1px solid rgba(227,194,117,.27); background:rgba(213,173,82,.08); color:#f0d89e; }
.services-launch-copy h3 { margin:0 0 10px; color:#fff0c9; font-size:clamp(1.35rem,3vw,2rem); line-height:1.65; }
.services-launch-copy p { margin:0 0 18px; color:#d0c5e0; font-size:.95rem; line-height:2.05; }
.services-order-button { min-width:220px; text-decoration:none; }
.services-order-note { display:block; margin-top:10px; color:#b8accb; font-size:.78rem; line-height:1.85; }
.services-subheading { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; margin:clamp(32px,5vw,52px) 0 17px; }
.services-subheading h3 { margin:5px 0 0; color:#fff0cf; font-size:clamp(1.15rem,2.6vw,1.5rem); line-height:1.7; }
.services-subheading > p { max-width:420px; margin:0; color:#aca0c0; font-size:.84rem; line-height:1.9; }
.services-project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.services-project-card { min-width:0; overflow:hidden; border:1px solid rgba(213,184,255,.16); border-radius:21px; background:linear-gradient(145deg,rgba(28,20,46,.82),rgba(13,11,26,.93)); }
.services-project-preview { position:relative; display:flex; min-height:195px; flex-direction:column; align-items:center; justify-content:center; gap:13px; overflow:hidden; border-bottom:1px solid rgba(215,188,255,.11); background:radial-gradient(ellipse at 50% 0%,rgba(198,151,255,.22),transparent 54%),linear-gradient(140deg,#201832,#100d20); }
.mock-window-dots { position:absolute; top:15px; left:16px; display:flex; gap:5px; direction:ltr; }
.mock-window-dots i { width:7px; height:7px; border-radius:50%; background:rgba(241,209,141,.7); }
.mock-window-dots i:nth-child(2) { background:rgba(201,164,255,.6); }.mock-window-dots i:nth-child(3) { background:rgba(144,216,220,.6); }
.mock-monogram { display:grid; width:58px; height:58px; place-items:center; border:1px solid rgba(235,205,131,.4); border-radius:19px; color:#ffe4a6; font:800 2rem/1 Georgia,serif; background:rgba(205,167,87,.08); box-shadow:0 0 45px rgba(208,170,88,.08); }
.mock-preview-line { width:43%; height:6px; border-radius:99px; background:rgba(222,209,240,.36); }.mock-preview-line.line-wide { width:58%; height:9px; background:linear-gradient(90deg,rgba(246,220,164,.9),rgba(194,158,248,.74)); }
.mock-preview-button { width:92px; height:24px; border:1px solid rgba(221,192,127,.46); border-radius:99px; background:rgba(215,177,91,.1); }
.services-project-body { padding:19px 20px 22px; }.services-project-label { color:#e6c985; font-size:.78rem; font-weight:800; }.services-project-body h4 { margin:7px 0 9px; color:#f7edff; font-size:1.08rem; line-height:1.7; }.services-project-body p { margin:0 0 14px; color:#bfb3d0; font-size:.88rem; line-height:2; }
.services-text-link,.services-muted-link { display:inline-flex; align-items:center; gap:8px; font-size:.86rem; font-weight:800; }.services-text-link { color:#f0d699; text-underline-offset:4px; }.services-muted-link { color:#9588aa; }
.services-upcoming-art { position:relative; display:flex; min-height:195px; flex-direction:column; align-items:center; justify-content:center; gap:13px; overflow:hidden; border-bottom:1px solid rgba(215,188,255,.11); background:radial-gradient(circle at 85% 10%,rgba(225,191,111,.13),transparent 36%),linear-gradient(140deg,#1a142a,#111020); }
.services-upcoming-art > span { color:#e9cd8b; font-size:2rem; }.services-upcoming-art b { color:#d7c7f2; font-size:.9rem; letter-spacing:.19em; direction:ltr; }.services-upcoming-art i { display:block; width:40%; height:5px; border-radius:99px; background:rgba(201,182,226,.17); }.services-upcoming-art i:nth-of-type(2) { width:54%; }.services-upcoming-art i:nth-of-type(3) { width:30%; }
.services-pricing-heading { margin-top:clamp(36px,5vw,58px); }
.services-pricing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.services-price-card { min-width:0; padding:22px 20px; border:1px solid rgba(213,184,255,.17); border-radius:19px; background:linear-gradient(155deg,rgba(27,20,44,.82),rgba(15,12,27,.88)); }
.services-price-card.services-price-featured { border-color:rgba(229,196,121,.32); background:radial-gradient(ellipse at 100% 0%,rgba(216,177,89,.09),transparent 52%),linear-gradient(155deg,rgba(35,27,45,.94),rgba(15,12,27,.9)); }
.services-price-icon { display:grid; width:42px; height:42px; place-items:center; margin-bottom:13px; border:1px solid rgba(218,188,117,.23); border-radius:13px; color:#f2d697; background:rgba(214,173,88,.07); font-size:1.25rem; }
.services-price-label { color:#b9a8d6; font-size:.77rem; font-weight:800; }.services-price-card h4 { margin:7px 0 8px; color:#fff0ce; font-size:1.08rem; }.services-price-card p { min-height:84px; margin:0 0 13px; color:#c6bad6; font-size:.86rem; line-height:1.95; }
.services-price-status { display:block; padding-top:12px; border-top:1px solid rgba(213,184,255,.1); color:#e7cd91; font-size:.77rem; font-weight:800; line-height:1.8; }
.services-order-details { margin-top:16px; border:1px solid rgba(213,184,255,.15); border-radius:17px; background:rgba(255,255,255,.025); overflow:hidden; }
.services-order-details summary { padding:16px 19px; cursor:pointer; color:#eee3fb; font-weight:800; list-style:none; line-height:1.8; }.services-order-details summary::-webkit-details-marker { display:none; }.services-order-details summary::after { content:'+'; float:left; color:#e7ca86; font-size:1.2rem; }.services-order-details[open] summary::after { content:'−'; }
.services-order-template { padding:0 19px 18px; }.services-order-template > p { color:#b8accb; font-size:.86rem; line-height:1.9; }.services-template-text { padding:15px; border-right:3px solid rgba(224,190,112,.7); border-radius:11px; background:rgba(220,180,91,.055); color:#e5daef; font-size:.87rem; line-height:2; }
@media (max-width:850px) { .services-launch-card { grid-template-columns:minmax(0,1fr); }.services-launch-art { min-height:190px; }.services-pricing-grid { grid-template-columns:1fr; }.services-price-card p { min-height:0; } }
@media (max-width:700px) { .services-project-grid { grid-template-columns:1fr; }.services-subheading { align-items:flex-start; flex-direction:column; gap:6px; }.services-launch-card { padding:17px; border-radius:20px; }.services-launch-art { min-height:160px; }.services-order-button { width:100%; min-width:0; }.services-project-body { padding:17px; }.services-order-template { padding-inline:13px; } }
@media (prefers-reduced-motion: reduce) { .services-launch-card *, .services-project-card * { transition:none!important; animation:none!important; } }


/* VITTO_ARMIN — approved refinement layer (31 Oct 2026) */
:root {
  --vitto-lilac: #cbb6ff;
  --vitto-rose: #ffadd7;
  --vitto-cyan: #9be8ee;
  --vitto-gold: #efd18e;
  --vitto-surface: rgba(25, 18, 42, .82);
  --vitto-border: rgba(221, 198, 255, .17);
  --vitto-muted: #c4b8d5;
}
html { scroll-padding-top: 88px; }
img, svg, video, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--vitto-cyan); outline-offset: 3px; }
::selection { color: #130d20; background: #dfc9ff; }
.nav-utilities { display:flex; align-items:center; gap:9px; }
.install-app-button { min-height:42px; padding:9px 13px; border:1px solid rgba(229,198,125,.35); border-radius:999px; background:rgba(222,183,100,.1); color:#f5dba0; font-weight:800; cursor:pointer; }
.install-app-button[hidden] { display:none !important; }
.session-dashboard-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.session-stat-card { min-width:0; padding:19px; border:1px solid var(--vitto-border); border-radius:19px; background:linear-gradient(145deg,rgba(31,23,49,.88),rgba(15,12,27,.92)); box-shadow:0 14px 36px rgba(0,0,0,.12); }
.session-stat-label { display:block; color:var(--vitto-muted); font-size:.83rem; font-weight:700; }
.session-stat-value { display:block; margin:8px 0 5px; color:#fff0cb; font-size:clamp(1.1rem,2.2vw,1.65rem); line-height:1.5; overflow-wrap:anywhere; }
.session-stat-card small { color:#a99bbd; font-size:.78rem; line-height:1.8; }
.session-total-wrap { margin-top:18px; padding:17px 19px; border:1px solid var(--vitto-border); border-radius:16px; background:rgba(255,255,255,.025); }
.session-total-copy { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:11px; color:#e9def8; font-size:.88rem; }
.session-total-copy span { color:var(--vitto-gold); font-weight:900; font-variant-numeric:tabular-nums; }
.session-total-track { height:10px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.09); }
.session-total-track > span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#9b7ae0,#82d5db,#e9c77e); transition:width .25s ease; }
.faq-search-label { display:block; margin:0 0 7px; color:#e8d9ff; font-weight:800; }
.faq-search-input { display:block; width:100%; min-height:48px; margin-bottom:8px; padding:11px 14px; border:1px solid var(--vitto-border); border-radius:13px; background:rgba(255,255,255,.045); color:#f8f1ff; }
.faq-search-input::placeholder { color:#9d91af; }
.faq-search-status { min-height:1.6em; margin:4px 0 10px; color:#b8a9ca; font-size:.82rem; }
.faq-item[hidden] { display:none !important; }
.feedback-card { max-width:820px; margin-inline:auto; padding:clamp(18px,3vw,28px); border:1px solid var(--vitto-border); border-radius:22px; background:linear-gradient(145deg,rgba(30,22,47,.88),rgba(14,12,25,.94)); }
.feedback-card label { display:block; margin:12px 0 7px; color:#ebdcff; font-weight:800; }
.feedback-card select, .feedback-card textarea { width:100%; min-width:0; padding:12px 14px; border:1px solid var(--vitto-border); border-radius:12px; background:#171127; color:#f7efff; line-height:1.9; }
.feedback-card textarea { resize:vertical; }
.feedback-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; }
.feedback-meta small { color:#b5a8c7; }
.back-to-top { position:fixed; z-index:60; inset-inline-start:18px; bottom:18px; display:grid; width:46px; height:46px; place-items:center; border:1px solid rgba(231,199,126,.35); border-radius:50%; background:rgba(27,20,42,.94); color:#f3d99e; box-shadow:0 8px 28px rgba(0,0,0,.25); font-size:1.4rem; cursor:pointer; opacity:0; pointer-events:none; transform:translateY(8px); transition:opacity .2s ease, transform .2s ease; }
.back-to-top.is-visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.nav-links a:focus-visible, .btn:focus-visible, .answer-option:focus-visible { outline-color:var(--vitto-cyan); }
@media (max-width:900px) { .session-dashboard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:700px) {
  .nav-utilities { gap:6px; }
  .install-app-button { min-height:40px; padding:8px 10px; font-size:.78rem; }
  .session-dashboard-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .session-stat-card { padding:14px 12px; }
  .feedback-meta { align-items:stretch; flex-direction:column; }
  .feedback-meta .btn { width:100%; }
  .back-to-top { inset-inline-start:12px; bottom:12px; width:43px; height:43px; }
}
@media (max-width:360px) {
  .session-dashboard-grid { grid-template-columns:1fr; }
  .nav-utilities { gap:4px; }
}
@media (prefers-reduced-motion:reduce) {
  .session-total-track > span, .back-to-top { transition:none !important; }
}

/* Small-screen protection for newly added utilities and dashboard. */
.nav, .nav-utilities, .feedback-card, .session-dashboard-section { min-width: 0; }
.nav-utilities { flex-shrink: 0; }
@media (max-width: 700px) {
  .nav-utilities { gap: 5px; }
  .install-app-button { font-size: .72rem; padding-inline: 8px; }
}
@media (max-width: 360px) {
  .install-app-button { padding-inline: 7px; font-size: .68rem; }
}


/* VITTO_ARMIN visual experience upgrade — 31 Oct 2026 */
:root {
  --vitto-ice: #a8eff0;
  --vitto-mist: rgba(214, 197, 255, .08);
}
html { scroll-padding-top: calc(var(--header-height) + 28px); }
body { background-attachment: fixed; }
.section-heading h2, .closing-card h2 { text-wrap: balance; }
.section-heading p, .story-card p, .principle-card p, .feedback-card p { text-wrap: pretty; }
.page-scroll-progress {
  position: fixed; z-index: 150; inset: 0 0 auto; height: 3px;
  background: rgba(255,255,255,.035); pointer-events: none;
}
.page-scroll-progress > span {
  display: block; width: 0; height: 100%;
  background: linear-gradient(90deg, #9b7ae0 0%, #87dadd 48%, #efd18e 100%);
  box-shadow: 0 0 15px rgba(135,218,221,.55);
  transform-origin: right center;
}
.network-status {
  position: relative; z-index: 40; width: min(var(--container), calc(100% - 32px));
  margin: 10px auto 0; padding: 11px 15px; border: 1px solid rgba(255,174,142,.32);
  border-radius: 14px; background: rgba(87,39,43,.88); color: #ffe5d8;
  font-size: .84rem; line-height: 1.9; text-align: center;
}
.network-status[hidden] { display: none !important; }
.nav-links a[aria-current="location"] { color: #ffe2a3; }
.nav-links a[aria-current="location"]::after { transform: scaleX(1); }
.has-scroll-reveal .js-reveal {
  opacity: 0; transform: translateY(17px) scale(.992);
  transition: opacity .58s ease, transform .58s cubic-bezier(.2,.7,.2,1);
}
.has-scroll-reveal .js-reveal.is-revealed { opacity: 1; transform: none; }
.story-card, .principle-card, .preview-card, .session-stat-card, .services-project-card,
.services-price-card, .achievement-card, .faq-item, .feedback-card {
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease, background-color .24s ease;
}
@media (hover:hover) and (pointer:fine) {
  .story-card:hover, .principle-card:hover, .session-stat-card:hover,
  .services-project-card:hover, .services-price-card:hover, .achievement-card:hover {
    transform: translateY(-4px); border-color: rgba(227,198,130,.3);
    box-shadow: 0 22px 58px rgba(0,0,0,.22), 0 0 32px rgba(173,140,242,.06);
  }
  .preview-card:hover { transform: translateY(-5px); }
}
.hero-action-button, .btn, .nav-cta, .install-app-button { min-height: 46px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--vitto-ice); outline-offset: 4px; }
.local-save-control {
  display: flex; align-items: center; gap: 13px; width: 100%; min-height: 76px;
  margin: 18px 0; padding: 14px 16px; border: 1px solid rgba(151,225,213,.2);
  border-radius: 16px; background: linear-gradient(110deg,rgba(121,211,194,.07),rgba(255,255,255,.025));
  cursor: pointer;
}
.local-save-control input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.local-save-control input:focus-visible + .local-save-switch { outline: 3px solid var(--vitto-ice); outline-offset: 4px; }
.local-save-switch { position: relative; flex: 0 0 48px; width: 48px; height: 28px; border: 1px solid rgba(220,206,246,.35); border-radius: 99px; background: rgba(255,255,255,.1); transition: background .2s ease,border-color .2s ease; }
.local-save-switch::after { content: ''; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #c5bbd6; transition: transform .2s ease,background .2s ease; }
.local-save-control input:checked + .local-save-switch { border-color: rgba(139,225,205,.65); background: rgba(87,190,163,.28); }
.local-save-control input:checked + .local-save-switch::after { transform: translateX(-20px); background: #9ce9c4; }
.local-save-control > span:last-child { display: grid; gap: 2px; }
.local-save-control b { color: #e7ffef; font-size: .92rem; }
.local-save-control small { color: #b9b0c9; font-size: .77rem; line-height: 1.8; }
.local-data-warning { line-height: 2; }
.feedback-card select, .feedback-card textarea { border-color: rgba(205,184,237,.22); }
.feedback-card select:focus, .feedback-card textarea:focus,
.reflection-prompt textarea:focus, .future-question textarea:focus { border-color: rgba(151,231,230,.58); box-shadow: 0 0 0 3px rgba(151,231,230,.07); }
.reader-loading, #reader-loading { line-height: 2; }
@media (max-width: 700px) {
  .network-status { width: calc(100% - 22px); margin-top: 7px; padding: 9px 11px; font-size: .78rem; }
  .local-save-control { align-items: flex-start; padding: 13px 12px; }
  .local-save-control small { font-size: .73rem; }
}
@media (prefers-reduced-motion: reduce) {
  .has-scroll-reveal .js-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .story-card, .principle-card, .preview-card, .session-stat-card, .services-project-card,
  .services-price-card, .achievement-card, .faq-item, .feedback-card,
  .local-save-switch, .local-save-switch::after { transition: none !important; }
}


.hero-composition-art picture, .preview-image-wrap picture, .reader-book-cover picture { display: block; }


/* VITTO_ARMIN — mobile scrolling and paint-performance refinement */
html { scroll-behavior: smooth; }
.page-scroll-progress { height: 4px; background: rgba(255,255,255,.055); }
.page-scroll-progress > span { box-shadow: 0 0 7px rgba(135,218,221,.30); }
@media (max-width: 760px) {
  body { background-attachment: scroll !important; }
  .site-header {
    background: rgba(9,7,19,.97) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .ambient { filter: none !important; opacity: .045 !important; }
  .hero-story-chip, .floating-note {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  /* Reveal-on-scroll looks decorative on desktop but can make long mobile pages feel sticky. */
  .has-scroll-reveal .js-reveal,
  .has-scroll-reveal .js-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .story-card, .principle-card, .preview-card, .session-stat-card,
  .services-project-card, .services-price-card, .achievement-card, .faq-item {
    transition: none !important;
  }
  .page-scroll-progress > span { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}


/* VITTO_ARMIN v4 — lightweight touch scrolling on mobile */
@media (max-width: 760px) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .ambient, .hero-visual::before, .hero-visual::after,
  .closing-glow, .visual-glow { filter: none !important; }
  .has-scroll-reveal .js-reveal,
  .has-scroll-reveal .js-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .story-card, .principle-card, .preview-card, .answer-option,
  .reader-book-card, .reflection-prompt, .future-challenge-panel,
  .pathway-card, .achievement-card, .session-stat-card,
  .services-launch-card, .services-project-card, .services-price-card,
  .faq-item, .author-section, .closing-card, .back-to-top {
    transition: none !important;
  }
  .page-scroll-progress > span { box-shadow: none !important; }
}


/* VITTO gallery entry — additive styling; preserves existing homepage design. */
.hero-composition-actions { width: min(100%, 710px); gap: 12px; }
.hero-action-button { flex: 1 1 205px; }
.hero-action-gallery { color: #effff8; border-color: rgba(105, 207, 164, .7); background: linear-gradient(115deg, #123e31 0%, #176047 54%, #1b7456 100%); box-shadow: 0 8px 22px rgba(32, 129, 91, .24), inset 0 1px 0 rgba(255,255,255,.18); }
.hero-action-gallery:hover { box-shadow: 0 12px 28px rgba(32, 159, 105, .34), inset 0 1px 0 rgba(255,255,255,.22); }
@media (max-width: 640px) { .hero-composition-actions { width: min(100%, 380px); } .hero-action-button { flex: 1 1 100%; } }


/* V13: low-cost mobile rendering and readable quiz feedback. */
@media (max-width: 760px) {
  .ambient { display: none !important; }
  .page-scroll-progress > span { box-shadow: none !important; }
  .quiz-controls { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  #answer-list .answer-option { transition: none !important; }
  .quiz-feedback { contain: layout style; }
}
#answer-list .answer-option.correct { position: relative; }
#answer-list .answer-option.incorrect { position: relative; }
.quiz-feedback[data-answer-state="correct"] .quiz-feedback-summary { color: #bff8d6; }
.quiz-feedback[data-answer-state="wrong"] .quiz-feedback-summary { color: #ffd0d4; }
.quiz-feedback-reason { overflow-wrap: anywhere; }

/* V14: compact mobile quiz layout to reduce unnecessary scrolling */
@media (max-width: 640px) {
  .challenge-section { padding-block: 34px !important; }
  .challenge-heading { margin-bottom: 16px !important; }
  .quiz-card { padding: 13px 12px !important; border-radius: 18px !important; }
  .quiz-top { padding-bottom: 10px !important; }
  .question-area { padding-top: 10px !important; }
  .question-area h3 { margin: 6px 0 9px !important; font-size: 1.03rem !important; line-height: 1.55 !important; }
  .question-kicker { margin-bottom: 4px !important; }
  .question-hint { margin: 0 0 9px !important; font-size: .72rem !important; line-height: 1.55 !important; }
  .answer-list { gap: 6px !important; }
  .answer-option { min-height: 44px !important; padding: 7px 9px !important; gap: 8px !important; border-radius: 11px !important; line-height: 1.45 !important; font-size: .82rem !important; }
  .option-letter { width: 25px !important; height: 25px !important; flex: 0 0 25px !important; }
  .quiz-controls { margin-top: 10px !important; gap: 6px !important; }
  .quiz-submit { min-height: 43px !important; }
  .quiz-feedback { margin-top: 9px !important; padding: 10px 11px !important; font-size: .82rem !important; line-height: 1.65 !important; }
  .quiz-foot { margin-top: 12px !important; padding-top: 9px !important; }
}


/* V15: compact, glanceable quiz cards on phones. */
@media (max-width: 640px) {
  .challenge-section { padding-block: 24px !important; }
  .challenge-heading { margin-bottom: 12px !important; }
  .challenge-heading h2 { font-size: clamp(1.18rem, 5vw, 1.5rem) !important; line-height: 1.45 !important; }
  .challenge-heading p { margin-top: 6px !important; font-size: .78rem !important; line-height: 1.5 !important; }
  .quiz-card { padding: 11px 10px !important; }
  .quiz-top { padding-bottom: 8px !important; }
  .question-area { padding-top: 8px !important; }
  .question-area h3 { margin: 4px 0 7px !important; font-size: .98rem !important; line-height: 1.4 !important; }
  .question-hint { margin: 0 0 7px !important; font-size: .7rem !important; line-height: 1.4 !important; }
  #answer-list, .answer-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px !important; margin-top: 9px !important; }
  #answer-list .answer-option, .answer-option { display: flex !important; align-items: center !important; min-height: 64px !important; padding: 8px 7px !important; gap: 6px !important; border-radius: 12px !important; font-size: .78rem !important; line-height: 1.38 !important; text-align: right !important; }
  #answer-list .option-letter, .option-letter { width: 23px !important; height: 23px !important; flex: 0 0 23px !important; border-radius: 8px !important; font-size: .72rem !important; }
  #answer-list .option-text, .option-text { line-height: 1.4 !important; font-size: inherit !important; }
  .quiz-feedback { margin-top: 8px !important; padding: 8px 10px !important; font-size: .78rem !important; line-height: 1.5 !important; }
  .quiz-feedback-title { margin-bottom: 2px !important; font-size: .9rem !important; }
  .quiz-feedback p { margin-top: 5px !important; }
  .quiz-controls { position: sticky !important; bottom: calc(5px + env(safe-area-inset-bottom, 0px)) !important; margin: 8px -1px 0 !important; padding: 6px !important; }
  .quiz-submit { min-height: 42px !important; font-size: .86rem !important; }
  .quiz-restart-link { min-height: 38px !important; font-size: .72rem !important; }
  .quiz-foot { display: none !important; }
}
@media (max-width: 360px) {
  #answer-list .answer-option, .answer-option { min-height: 60px !important; font-size: .73rem !important; padding: 7px 6px !important; }
  .quiz-controls { gap: 5px !important; }
}


/* V17: readable complete quiz choices; use one full-width row on narrow screens. */
#answer-list, .answer-list { grid-template-columns: 1fr !important; }
#answer-list .answer-option {
  display: flex !important;
  align-items: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px 16px !important;
  gap: 12px !important;
  white-space: normal !important;
  overflow: visible !important;
  text-align: right !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}
#answer-list .option-text {
  display: block !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  font-size: 1rem !important;
  line-height: 1.9 !important;
}
@media (max-width: 640px) {
  #answer-list, .answer-list { grid-template-columns: 1fr !important; gap: 10px !important; }
  #answer-list .answer-option { padding: 13px 12px !important; gap: 10px !important; font-size: .98rem !important; line-height: 1.85 !important; }
  #answer-list .option-text { font-size: .98rem !important; line-height: 1.85 !important; }
  #answer-list .option-letter, #answer-list .answer-letter { flex: 0 0 30px !important; width: 30px !important; height: 30px !important; }
  .question-area h3 { font-size: 1.05rem !important; line-height: 1.7 !important; }
}
@media (max-width: 360px) {
  #answer-list .answer-option { padding: 12px 10px !important; font-size: .95rem !important; }
  #answer-list .option-text { font-size: .95rem !important; }
}
