/* Alliana Ollisari — site styles. Tokens only (see theme.css). Mobile-first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: var(--leading-tight); margin: 0; }
p { margin: 0; }
a { color: var(--brand-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; top: -100px; left: var(--space-2); z-index: 200;
  padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--space-2); }

.wrap { width: min(100%, 72rem); margin-inline: auto; }
.section { padding: var(--space-12) var(--space-3); }
.section-head { max-width: 40rem; margin-bottom: var(--space-6); }
.section-head-center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-1);
}
h2 { font-size: var(--text-2xl); }
.section-lead { color: var(--muted); margin-top: var(--space-2); }

/* self-drawing underline (hover-lift recipe) */
.link-draw {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0% 1px;
  transition: background-size 0.35s ease;
}
.link-draw:hover, .link-draw:focus-visible { background-size: 100% 1px; }

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  transition: padding 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.is-scrolled {
  padding-block: var(--space-1);
  background: var(--surface-veil);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--brand-line);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-family: var(--font-display); font-size: var(--text-lg); color: var(--on-surface); text-decoration: none;
}
.nav-brand .spark-icon { width: 18px; height: 18px; fill: var(--brand-text); }
.nav ul { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav ul a {
  color: var(--on-surface); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; padding-block: var(--space-1);
}
@media (min-width: 40rem) { .nav ul { gap: var(--space-4); } }

/* ── hero ────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--space-12) + var(--space-2)) var(--space-3) var(--space-8);
}
.hero::before {                                   /* the crimson vignette that breathes */
  content: ""; position: absolute; z-index: -2; inset: -20%;
  background: radial-gradient(circle 420px at 50% 34%, var(--brand) 0%, transparent 100%);   /* phone: blooms behind the portrait */
  opacity: 0.6;
  animation: vignette-breathe 16s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes vignette-breathe {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4%, 3%) scale(1.08); }
}
.hero-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.spark {
  position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 1.4); height: calc(var(--s) * 1.4);
  fill: var(--on-surface);
  animation: twinkle var(--d, 3s) ease-in-out var(--delay, 0s) infinite alternate;
}
.spark-gold { fill: var(--accent); }
.spark-red { fill: var(--brand-text); }
@keyframes twinkle { from { opacity: 0.2; } to { opacity: 1; } }

.hero-inner {
  width: min(100%, 72rem); margin-inline: auto;
  display: grid; gap: var(--space-6); align-items: center;
}
.hero-portrait {
  order: -1; margin: 0; justify-self: center; position: relative;
  width: min(100%, 260px);
  padding: var(--space-1); border: 1px solid var(--brand-line); border-radius: var(--radius-lg);
  background: var(--surface-alt);
}
.hero-portrait::before {                           /* offset gold hairline, like a second mat */
  content: ""; position: absolute; inset: -10px; pointer-events: none;
  border: 1px solid var(--accent-line); border-radius: calc(var(--radius-lg) + 8px);
}
.hero-portrait img { width: 100%; border-radius: var(--radius); }
.hero-copy { text-align: center; }
.wordmark { font-size: var(--text-hero); color: var(--brand-text); letter-spacing: -0.015em; margin: var(--space-1) 0 var(--space-2); }
.wordmark .mask { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.wordmark .line { display: inline-block; }
.hero-meta { color: var(--muted); font-size: var(--text-lg); font-family: var(--font-display); margin-bottom: var(--space-3); }
.status {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 0.5rem 1rem 0.5rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--brand-line); background: var(--brand-veil); box-shadow: var(--glow-brand);
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.02em; margin-bottom: var(--space-3);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand-text);
  box-shadow: 0 0 0 3px var(--brand-veil);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.hero-lead { color: var(--on-surface); font-size: var(--text-lg); max-width: 30rem; margin-inline: auto; margin-bottom: var(--space-4); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }

@media (min-width: 56rem) {
  .hero { min-height: 92svh; display: grid; align-content: center; }
  .hero::before { background: radial-gradient(circle 760px at 56% 46%, var(--brand) 0%, transparent 100%); }  /* behind wordmark AND portrait */
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-8); }
  .hero-portrait { order: 0; width: 100%; max-width: calc(371px + 2 * var(--space-1)); justify-self: end; }
  .hero-copy { text-align: left; }
  .hero-lead { margin-inline: 0; }
  .hero-cta { justify-content: flex-start; }
}

/* ── buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding: 0.875rem var(--space-3); border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: translate 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.btn .icon { width: 18px; height: 18px; transition: translate 0.3s ease; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover, .btn-primary:focus-visible { translate: 0 -3px; background: var(--brand-deep); }
.btn-primary:hover .icon, .btn-primary:focus-visible .icon { translate: 0 3px; }
.btn-ghost { color: var(--on-surface); border-color: var(--border-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible { translate: 0 -3px; border-color: var(--brand-text); color: var(--brand-text); }
.btn-ghost:hover .icon, .btn-ghost:focus-visible .icon { translate: 3px -3px; }

/* ── art wall ────────────────────────────────────── */
.art-wall { columns: 1; column-gap: var(--space-4); }
@media (min-width: 40rem) { .art-wall { columns: 2; } }
.art { break-inside: avoid; margin: 0 0 var(--space-4); }
.art-frame {
  display: block; padding: var(--space-1);
  border: 1px solid var(--brand-line); border-radius: var(--radius); background: var(--surface-alt);
  transition: translate 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.art-frame img { border-radius: var(--radius-sm); margin-inline: auto; }
.art-frame:hover, .art-frame:focus-visible { translate: 0 -5px; box-shadow: var(--shadow); border-color: var(--brand-text); }
.art figcaption {
  display: flex; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-1) var(--space-1) 0; font-size: var(--text-sm); color: var(--muted);
}
.art figcaption .price { font-family: var(--font-display); font-size: var(--text-base); color: var(--accent); }

/* ── how it works ────────────────────────────────── */
.how { background: var(--surface-alt); color: var(--on-surface-alt); }
.steps { list-style: none; margin: 0; padding: var(--space-2) 0 0; display: grid; gap: var(--space-6); }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }
.step { position: relative; padding-top: var(--space-4); border-top: 1px solid var(--border-strong); }
.step-num {                                        /* gold numeral sitting on the hairline */
  position: absolute; top: -0.62em; left: 0; padding-right: var(--space-1); line-height: 1;
  background: var(--surface-alt); font-family: var(--font-display); font-size: var(--text-xl); color: var(--accent);
}
.step-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--space-2);
  border: 1px solid var(--brand-line); border-radius: 50%; color: var(--brand-text);
}
.step-icon svg { width: 20px; height: 20px; }
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.step p { color: var(--muted); }

/* ── prices ──────────────────────────────────────── */
.tiers { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier {
  display: flex; flex-direction: column;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: translate 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.tier:hover, .tier:focus-within { translate: 0 -5px; box-shadow: var(--shadow); border-color: var(--brand-line); }
.tier-frame { display: block; padding: var(--space-2) var(--space-2) 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.tier-frame img { border-radius: var(--radius-sm); margin-inline: auto; }
.tier-frame-soon {
  aspect-ratio: 4 / 3; margin: var(--space-2) var(--space-2) 0;
  display: grid; place-content: center; justify-items: center; gap: var(--space-1);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  color: var(--muted); font-size: var(--text-sm);
}
.tier-frame-soon svg { width: 28px; height: 28px; color: var(--accent); }
.tier-body { padding: var(--space-3) var(--space-2) var(--space-3); display: grid; gap: var(--space-1); }
.tier h3 { font-size: var(--text-lg); }
.tier-sub { color: var(--muted); }
.tier-price { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1; color: var(--accent); }
.tier-price small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--muted); }
.tier-note { color: var(--muted); font-size: var(--text-sm); }
.addons {
  margin-top: var(--space-8); padding: var(--space-4);
  border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  display: grid; gap: var(--space-2);
}
.addons h3 { font-size: var(--text-lg); }
.addons ul { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.addons li { padding: var(--space-1) var(--space-2); border: 1px solid var(--border); border-radius: 999px; font-size: var(--text-sm); }
.addons strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-base); color: var(--accent); }
.tos-reminder { margin-top: var(--space-1); }

/* phones: compact horizontal tier rows — the art wall above stays the full-size showcase */
@media (max-width: 40rem) {
  .tiers { gap: var(--space-2); }
  .tier { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: var(--space-2); padding: var(--space-2); }
  .tier-frame, .tier-frame-soon { width: calc(96px + 2 * var(--space-1)); margin: 0; }
  .tier-frame {
    padding: var(--space-1); border: 1px solid var(--brand-line); border-radius: var(--radius); background: var(--surface);
  }
  .tier-frame img { width: 96px; height: 96px; object-fit: cover; object-position: left bottom; margin: 0; }
  .tier-frame-soon { aspect-ratio: 1; align-self: start; border-radius: var(--radius); padding: var(--space-1); text-align: center; }
  .tier-body { padding: 0; gap: 0.25rem; }
  .tier h3 { font-size: var(--text-base); }
  .tier-price { font-size: var(--text-xl); }
}

/* ── tos ─────────────────────────────────────────── */
.tos { background: var(--surface-alt); color: var(--on-surface-alt); }
.tos-grid { display: grid; gap: var(--space-6); }
@media (min-width: 56rem) { .tos-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-8); } }
.tos-col h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.tos-col ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: grid; gap: var(--space-1); }
.tos-col li { display: flex; gap: var(--space-1); align-items: flex-start; }
.tos-col li svg { width: 18px; height: 18px; flex: none; margin-top: 0.2em; }
.list-yes svg { color: var(--accent); }
.list-no svg { color: var(--brand-text); }
.terms { margin: 0; display: grid; gap: var(--space-3); }
.terms div { padding-top: var(--space-2); border-top: 1px solid var(--border-strong); }
.terms dt { font-family: var(--font-display); font-size: var(--text-lg); }
.terms dd { margin: var(--space-1) 0 0; color: var(--muted); }
.tos-full { margin-top: var(--space-6); }

/* ── contact ─────────────────────────────────────── */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before {                                 /* static crimson glow low in the room */
  content: ""; position: absolute; z-index: -1; inset: auto -20% -30% -20%; height: 70%;
  background: radial-gradient(50% 60% at 50% 100%, var(--brand) 0%, transparent 70%);
  opacity: 0.22;
}
.contact::after {                                  /* crimson echo at top centre, behind the gold spark */
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto 0; height: 34rem;
  background: radial-gradient(circle 380px at 50% 7rem, var(--brand) 0%, transparent 100%);
  opacity: 0.34;
}
.quote { margin: 0 auto var(--space-8); max-width: 40rem; text-align: center; }
.quote-spark { width: 22px; height: 22px; fill: var(--accent); margin: 0 auto var(--space-2); display: block; }
.quote p { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.quote cite { font-style: normal; color: var(--muted); font-size: var(--text-sm); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile {
  display: grid; gap: 0.25rem; justify-items: start; align-content: start; width: 100%; height: 100%;
  padding: var(--space-3) var(--space-2);
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--on-surface); text-decoration: none; text-align: left; cursor: pointer;
  transition: translate 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.tile:hover, .tile:focus-visible { translate: 0 -5px; box-shadow: var(--shadow); border-color: var(--brand-text); }
.tile-icon {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-1);
  border-radius: 50%; background: var(--brand-veil); color: var(--brand-text);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-name { font-family: var(--font-display); font-size: var(--text-lg); }
.tile-handle { font-size: var(--text-sm); color: var(--muted); overflow-wrap: anywhere; }
.tile-hint { font-size: var(--text-sm); color: var(--accent); }
.tile.is-copied { border-color: var(--accent); }

/* ── footer ──────────────────────────────────────── */
.footer { padding: var(--space-6) var(--space-3); border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: var(--text-sm); }

/* ── lightbox ────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: var(--space-3); border: 0; background: transparent; color: var(--on-surface);
}
.lightbox::backdrop { background: var(--scrim); }
.lightbox[open] { display: grid; place-items: center; }
.lb-fig { margin: 0; display: grid; gap: var(--space-2); justify-items: center; max-width: 100%; }
.lb-fig img {
  width: auto; height: auto; max-width: min(100%, 772px); max-height: calc(100svh - 7rem);
  padding: var(--space-1); border: 1px solid var(--brand-line); border-radius: var(--radius-sm); background: var(--surface-alt);
}
.lb-fig figcaption { color: var(--muted); font-size: var(--text-sm); text-align: center; }
.lb-btn {
  position: fixed; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface-veil); color: var(--on-surface); cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.lb-btn:hover, .lb-btn:focus-visible { border-color: var(--brand-text); color: var(--brand-text); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: var(--space-2); right: var(--space-2); }
.lb-prev { left: var(--space-2); top: 50%; translate: 0 -50%; }
.lb-next { right: var(--space-2); top: 50%; translate: 0 -50%; }
body.lb-open { overflow: hidden; }

/* ── reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
