/* ── PRIZM V6 "Refraction" — shared design system for interior pages ── */
:root {
  --paper: #fdfdfb; --paper-2: #f6f6f2; --ink: #141417; --ink-2: #55555e; --ink-3: #8a8a94;
  --line: #e7e7e2; --line-2: #d8d8d2;
  --amber: #d97706; --red: #dc2626; --magenta: #db2777; --violet: #7c3aed; --teal: #0d9488;
  --spectral: linear-gradient(90deg, #d97706, #dc2626, #db2777, #7c3aed, #0d9488);
  --disp: "Archivo", -apple-system, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1220px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(124,58,237,0.15); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; }
h1, h2, h3 { font-family: var(--disp); font-stretch: 125%; letter-spacing: -0.02em; line-height: 1.04; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2.5px; background: var(--spectral); transform-origin: 0 50%; transform: scaleX(0); z-index: 300; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.wordmark { font-family: var(--disp); font-stretch: 125%; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.wordmark em { font-style: normal; background: linear-gradient(180deg, #d97706 0%, #db2777 45%, #7c3aed 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

nav { position: sticky; top: 0; z-index: 100; height: 72px; background: rgba(253,253,251,0.88); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 30px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
nav .wordmark { font-size: 20px; }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; transition: color 0.15s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--spectral); transition: right 0.25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { right: 0; }
.nav-cta { font-size: 14px; font-weight: 600; color: var(--paper); background: var(--ink); padding: 11px 22px; border-radius: 980px; transition: all 0.2s; }
.nav-cta:hover { background: #000; box-shadow: 0 8px 24px rgba(124,58,237,0.22); }
@media (max-width: 780px) { .nav-links { display: none; } }

.btn { display: inline-block; font-size: 15px; font-weight: 600; border-radius: 980px; padding: 14px 30px; transition: all 0.2s; cursor: pointer; border: 0; font-family: var(--sans); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,58,237,0.22); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }

/* ── Page hero ── */
.page-hero { padding: 92px 0 72px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--spectral); }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 700; max-width: 15ch; margin-bottom: 24px; text-wrap: balance; }
.page-hero h1 .grad { background: var(--spectral); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lead { font-size: 18px; color: var(--ink-2); max-width: 600px; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.page-hero .kicker { animation: rise 0.6s ease 0.05s both; }
.page-hero h1 { animation: rise 0.7s ease 0.15s both; }
.page-hero .lead { animation: rise 0.7s ease 0.28s both; }

section { padding: 100px 0; }
.sec-grid { display: grid; grid-template-columns: 190px 1fr; gap: 52px; align-items: start; }
.idx { font-family: var(--disp); font-stretch: 125%; font-weight: 800; font-size: clamp(64px, 8vw, 112px); line-height: 0.9; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); position: sticky; top: 110px; }
.sec-title { font-size: clamp(32px, 4.4vw, 54px); font-weight: 700; margin-bottom: 16px; text-wrap: balance; }
.sec-lead { font-size: 17px; color: var(--ink-2); max-width: 620px; margin-bottom: 44px; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; gap: 18px; } .idx { position: static; font-size: 54px; } }

/* ── Photography treatment: duotoned, spectral top edge ── */
.photo { position: relative; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: 0 10px 28px rgba(20,20,23,0.10), 0 2px 8px rgba(20,20,23,0.06); transition: box-shadow 0.3s ease; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.06) brightness(0.99); transition: transform 0.6s ease, filter 0.5s ease; }
.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(20,20,23,0.22), rgba(20,20,23,0) 50%); z-index: 1; pointer-events: none; }
.photo::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--spectral); z-index: 2; }
.photo:hover { box-shadow: 0 16px 36px rgba(20,20,23,0.14), 0 4px 10px rgba(20,20,23,0.08); }
.photo:hover img { transform: scale(1.035); filter: grayscale(0) contrast(1.04); }
.photo .cap { position: absolute; left: 18px; bottom: 14px; z-index: 2; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(253,253,251,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.4); }

/* ── Feature rows (image + text, alternating) ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feature:last-of-type { border-bottom: 0; }
.feature.flip .photo { order: 2; }
.feature .photo { aspect-ratio: 4 / 3; }
.feature .num { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--hue, var(--ink-3)); margin-bottom: 12px; }
.feature h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; margin-bottom: 12px; text-wrap: balance; }
.feature > div > p { font-size: 15.5px; color: var(--ink-2); max-width: 56ch; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { font-size: 12.5px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 980px; padding: 5px 13px; transition: all 0.2s; }
.feature:hover .chip { border-color: color-mix(in srgb, var(--hue) 35%, var(--line-2)); }
.go-link { font-size: 14px; font-weight: 600; color: var(--hue, var(--ink)); }
.go-link:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature.flip .photo { order: 0; } }

/* Hue assignments */
.hue-amber { --hue: var(--amber); } .hue-red { --hue: var(--red); } .hue-magenta { --hue: var(--magenta); }
.hue-violet { --hue: var(--violet); } .hue-teal { --hue: var(--teal); } .hue-indigo { --hue: #3f3fbf; }

/* ── Timeline (process page) ── */
.timeline { position: relative; margin-top: 8px; }
.timeline::before { content: ""; position: absolute; left: 29px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, #d97706, #db2777, #7c3aed, #0d9488); opacity: 0.55; }
.tl-step { display: grid; grid-template-columns: 60px 1fr; gap: 34px; padding: 44px 0; position: relative; }
.tl-dot { width: 60px; height: 60px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-stretch: 125%; font-weight: 800; font-size: 19px; position: relative; z-index: 1; transition: border-color 0.3s, box-shadow 0.3s; }
.tl-step:hover .tl-dot { border-color: var(--hue); box-shadow: 0 0 0 6px color-mix(in srgb, var(--hue) 10%, transparent); color: var(--hue); }
.tl-step h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 6px; }
.tl-step .when { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hue); margin-bottom: 14px; }
.tl-step > div > p { font-size: 15.5px; color: var(--ink-2); max-width: 62ch; margin-bottom: 18px; }
.gets { border-left: 3px solid; border-image: var(--spectral) 1; background: var(--paper-2); border-radius: 0 12px 12px 0; padding: 18px 22px; max-width: 560px; }
.gets .gt { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.gets ul { list-style: none; }
.gets li { font-size: 14px; color: var(--ink-2); padding: 4px 0 4px 22px; position: relative; }
.gets li::before { content: "◆"; position: absolute; left: 0; font-size: 9px; top: 9px; color: var(--hue, var(--violet)); }
@media (max-width: 640px) { .tl-step { grid-template-columns: 44px 1fr; gap: 18px; } .tl-dot { width: 44px; height: 44px; font-size: 15px; } .timeline::before { left: 21px; } }

/* ── Big stat/term cards (engagement) ── */
.term-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tcard { border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px; position: relative; overflow: hidden; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; background: #fff; }
.tcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--hue); opacity: 0; transition: opacity 0.3s; }
.tcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,20,23,0.08); border-color: color-mix(in srgb, var(--hue) 30%, var(--line)); }
.tcard:hover::before { opacity: 1; }
.tcard .tnum { font-family: var(--disp); font-stretch: 125%; font-weight: 800; font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--hue); margin-bottom: 16px; }
.tcard h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.tcard p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 720px) { .term-cards { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { border-top: 1px solid var(--line-2); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--disp); font-stretch: 125%; font-size: 19px; font-weight: 700; padding: 24px 44px 24px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 26px; color: var(--ink-3); transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { font-size: 15px; color: var(--ink-2); padding: 0 44px 26px 0; max-width: 70ch; }
.faq details a { font-weight: 600; border-bottom: 2px solid; border-image: var(--spectral) 1; }

/* ── Dark CTA band ── */
.band { background: var(--ink); color: var(--paper); border-radius: 30px; margin: 0 22px 100px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 2px; background: var(--spectral); opacity: 0.9; }
.band-in { max-width: var(--maxw); margin: 0 auto; padding: 84px 48px; text-align: center; }
.band h2 { font-size: clamp(28px, 4.2vw, 52px); font-weight: 700; margin-bottom: 14px; text-wrap: balance; }
.band h2 .grad { background: linear-gradient(90deg, #f59e0b, #ec4899, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band p { color: #a1a1a8; font-size: 16px; max-width: 52ch; margin: 0 auto 34px; }
.band .btn-primary { background: var(--paper); color: var(--ink); }
.band .btn-primary:hover { background: #fff; box-shadow: 0 12px 36px rgba(236,72,153,0.25); }
@media (max-width: 780px) { .band-in { padding: 60px 28px; } }

/* ── Footer ── */
.spectral-rule { height: 2px; background: var(--spectral); border: 0; opacity: 0.9; }
footer { padding: 70px 30px 46px; font-size: 13.5px; color: var(--ink-3); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.ghost { position: absolute; left: 50%; transform: translateX(-50%); bottom: -0.32em; font-family: var(--disp); font-stretch: 125%; font-weight: 800; font-size: clamp(130px, 24vw, 330px); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; color: var(--ink); opacity: 0.04; pointer-events: none; white-space: nowrap; }
.ghost em { font-style: normal; background: linear-gradient(180deg, #d97706, #db2777, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; position: relative; padding-bottom: 90px; }
.footer-inner .wordmark { font-size: 17px; display: block; margin-bottom: 8px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Theme toggle ── */
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-2); display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex: none; font-family: var(--sans); }
.theme-btn:hover { border-color: var(--ink-3); color: var(--ink); transform: rotate(-12deg); }
.theme-btn .ic-sun { display: none; }
html[data-theme="dark"] .theme-btn .ic-sun { display: block; }
html[data-theme="dark"] .theme-btn .ic-moon { display: none; }

/* ── Dark theme ── */
html[data-theme="dark"] {
  --paper: #121215; --paper-2: #1a1a1f; --ink: #f2f2f4; --ink-2: #a5a5ae; --ink-3: #77777f;
  --line: #26262c; --line-2: #35353c;
  --amber: #f59e0b; --red: #ef4444; --magenta: #ec4899; --violet: #8b5cf6; --teal: #2dd4bf;
  --spectral: linear-gradient(90deg, #f59e0b, #ef4444, #ec4899, #8b5cf6, #2dd4bf);
}
html[data-theme="dark"] ::selection { background: rgba(139,92,246,0.3); }
html[data-theme="dark"] nav { background: rgba(18,18,21,0.82); }
html[data-theme="dark"] .wordmark em, html[data-theme="dark"] .ghost em { background: linear-gradient(180deg, #f59e0b 0%, #ec4899 45%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="dark"] .nav-cta:hover { background: #fff; box-shadow: 0 8px 28px rgba(236,72,153,0.3); }
html[data-theme="dark"] .btn-primary:hover { background: #fff; box-shadow: 0 12px 36px rgba(139,92,246,0.35); }
html[data-theme="dark"] .btn-ghost { background: rgba(18,18,21,0.4); }
html[data-theme="dark"] .hue-indigo { --hue: #7aa2ff; }
html[data-theme="dark"] .photo { box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3); }
html[data-theme="dark"] .photo:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.35); }
html[data-theme="dark"] .photo img { filter: grayscale(0.35) contrast(1.08) brightness(0.82); }
html[data-theme="dark"] .photo:hover img { filter: grayscale(0) contrast(1.05) brightness(0.92); }
html[data-theme="dark"] .photo::before { background: linear-gradient(165deg, rgba(10,10,12,0.42), rgba(10,10,12,0.05) 55%); }
html[data-theme="dark"] .photo .cap { color: rgba(242,242,244,0.94); text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
html[data-theme="dark"] .tcard { background: var(--paper-2); }
html[data-theme="dark"] .tcard:hover { box-shadow: 0 22px 50px rgba(0,0,0,0.5); }
html[data-theme="dark"] .prin { background: var(--paper-2); }
html[data-theme="dark"] input, html[data-theme="dark"] textarea { background: var(--paper-2); border-color: var(--line-2); color: var(--ink); }
html[data-theme="dark"] input:focus, html[data-theme="dark"] textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.22); }
html[data-theme="dark"] .timeline::before { background: linear-gradient(180deg, #f59e0b, #ec4899, #8b5cf6, #2dd4bf); }
html[data-theme="dark"] .tl-step:hover .tl-dot { box-shadow: 0 0 26px color-mix(in srgb, var(--hue) 40%, transparent); }
/* CTA bands invert to warm paper on the dark ground */
html[data-theme="dark"] .band { background: #f4f3ef; color: #141417; }
html[data-theme="dark"] .band h2 { color: #141417; }
html[data-theme="dark"] .band h2 .grad { background: linear-gradient(90deg, #d97706, #db2777, #7c3aed); -webkit-background-clip: text; background-clip: text; }
html[data-theme="dark"] .band p { color: #6a6a72; }
html[data-theme="dark"] .band .btn-primary { background: #141417; color: #f4f3ef; }
html[data-theme="dark"] .band .btn-primary:hover { background: #000; box-shadow: 0 12px 36px rgba(124,58,237,0.3); }
html[data-theme="dark"] .ghost { opacity: 0.05; }

/* ── Legal / document pages ── */
.nav-back { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-back:hover { color: var(--ink); }
.legal-hero { max-width: 880px; margin: 0 auto; padding: 72px 30px 12px; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; margin: 16px 0 12px; }
.legal-hero h1 span { background: var(--spectral); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal-hero .hero-meta { font-size: 13.5px; color: var(--ink-3); }
.page-wrap { max-width: 880px; margin: 0 auto; padding: 28px 30px 96px; }
.page-wrap h2, .policy-section h2 { font-size: 24px; font-weight: 700; margin: 44px 0 14px; }
.page-wrap h3, .policy-section h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.page-wrap p, .policy-section p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
.page-wrap ul, .page-wrap ol, .policy-section ul, .policy-section ol { margin: 0 0 14px 22px; font-size: 15.5px; color: var(--ink-2); }
.page-wrap li { margin-bottom: 4px; }
.page-wrap a, .policy-section a { color: var(--violet); }
.highlight-box { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid; border-image: var(--spectral) 1; padding: 20px 24px; margin: 8px 0 36px; font-size: 15px; }
.highlight-box p { margin: 0; }
.warning-box { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.25); border-radius: 10px; padding: 20px 24px; margin: 8px 0 36px; font-size: 15px; }
.warning-box p { margin: 0; }
.toc { border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin-bottom: 40px; font-size: 14.5px; }
.toc h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0 0 0 20px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--violet); }
.contact-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; margin-top: 36px; font-size: 15px; }
.footer-brand { font-family: var(--disp); font-stretch: 125%; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
