/*
Theme Name: SNDL Vault
Theme URI: https://www.storenowdecryptlater.com/
Author: Store Now, Decrypt Later
Description: Offline encrypted archive custody and bespoke decryption theme, designed for Divi Builder compatibility.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: sndl-vault
*/

:root {
  --sndl-ink: #050706;
  --sndl-panel: #090d0b;
  --sndl-panel-2: #0d1410;
  --sndl-line: #26352c;
  --sndl-text: #ecf1eb;
  --sndl-muted: #a6b1aa;
  --sndl-acid: #b8ff3d;
  --sndl-acid-soft: rgba(184, 255, 61, .12);
  --sndl-danger: #ff8b75;
  --sndl-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sndl-ink); }
body { margin: 0; background: var(--sndl-ink); color: var(--sndl-text); font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; line-height: 1.65; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--sndl-acid); color: var(--sndl-ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 9999; top: 1rem; left: 1rem; width: auto; height: auto; padding: .75rem 1rem; clip: auto; background: var(--sndl-text); color: var(--sndl-ink); }

.sndl-shell { width: min(calc(100% - 40px), var(--sndl-max)); margin-inline: auto; }
.sndl-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(184,255,61,.18); background: rgba(5,7,6,.9); backdrop-filter: blur(16px); }
.sndl-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sndl-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--sndl-text); text-decoration: none; font-weight: 500; letter-spacing: -.04em; }
.sndl-brand-mark { width: 13px; height: 13px; border: 1px solid var(--sndl-acid); box-shadow: inset 0 0 0 3px var(--sndl-ink); background: var(--sndl-acid); transform: rotate(45deg); }
.sndl-nav-links { display: flex; align-items: center; gap: clamp(14px,2.2vw,34px); }
.sndl-nav-links a { color: var(--sndl-muted); text-decoration: none; font-size: .76rem; letter-spacing: .08em; }
.sndl-nav-links a:hover, .sndl-nav-links a:focus-visible { color: var(--sndl-acid); }
.sndl-menu-toggle { display: none; border: 1px solid var(--sndl-line); background: transparent; color: var(--sndl-text); padding: .55rem .7rem; }

.sndl-btn { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 48px; padding: .75rem 1rem; border: 1px solid var(--sndl-acid); background: var(--sndl-acid); color: var(--sndl-ink); text-decoration: none; font-size: .78rem; font-weight: 500; letter-spacing: .05em; cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.sndl-btn:hover, .sndl-btn:focus-visible { background: transparent; color: var(--sndl-acid); transform: translateY(-2px); }
.sndl-btn--ghost { background: transparent; color: var(--sndl-text); border-color: var(--sndl-line); }
.sndl-btn--ghost:hover, .sndl-btn--ghost:focus-visible { border-color: var(--sndl-acid); color: var(--sndl-acid); }

.sndl-hero { position: relative; min-height: calc(100vh - 72px); display: grid; align-items: center; overflow: hidden; border-bottom: 1px solid var(--sndl-line); }
.sndl-crypto-field { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .58; pointer-events: none; }
.sndl-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(184,255,61,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(184,255,61,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.sndl-hero-inner { position: relative; z-index: 2; padding: 100px 0 84px; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.6fr); gap: clamp(46px,7vw,110px); align-items: end; }
.sndl-kicker, .sndl-index { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--sndl-acid); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.sndl-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sndl-hero h1 { margin: 0; max-width: 850px; font-size: clamp(3.2rem,8.7vw,8rem); line-height: .87; letter-spacing: -.085em; font-weight: 500; text-transform: uppercase; }
.sndl-hero h1 span { display: block; color: var(--sndl-acid); }
.sndl-hero-aside { padding-bottom: 8px; }
.sndl-hero-aside p { margin: 0 0 28px; color: var(--sndl-muted); font-size: clamp(.94rem,1.3vw,1.06rem); }
.sndl-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sndl-proofline { grid-column: 1/-1; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 44px; border-top: 1px solid var(--sndl-line); border-bottom: 1px solid var(--sndl-line); }
.sndl-proofline div { padding: 18px 18px 18px 0; color: var(--sndl-muted); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }
.sndl-proofline div + div { padding-left: 18px; border-left: 1px solid var(--sndl-line); }
.sndl-proofline strong { display: block; margin-bottom: 4px; color: var(--sndl-text); font-size: .86rem; font-weight: 500; }

.sndl-section { padding: clamp(76px,10vw,140px) 0; border-bottom: 1px solid var(--sndl-line); }
.sndl-section--panel { background: var(--sndl-panel); }
.sndl-section-head { display: grid; grid-template-columns: 170px 1fr; gap: clamp(30px,7vw,100px); margin-bottom: clamp(42px,6vw,80px); }
.sndl-index { color: var(--sndl-muted); align-items: flex-start; }
.sndl-index::before { display: none; }
.sndl-section h2 { max-width: 900px; margin: 0; font-size: clamp(2.1rem,4.8vw,4.8rem); line-height: 1; letter-spacing: -.06em; font-weight: 500; }
.sndl-lede { max-width: 790px; color: var(--sndl-muted); font-size: clamp(1rem,1.7vw,1.25rem); }
.sndl-grid-2 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--sndl-line); border: 1px solid var(--sndl-line); }
.sndl-grid-3 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: var(--sndl-line); border: 1px solid var(--sndl-line); }
.sndl-card { min-width: 0; padding: clamp(26px,4vw,48px); background: var(--sndl-ink); }
.sndl-section--panel .sndl-card { background: var(--sndl-panel); }
.sndl-card-num { color: var(--sndl-acid); font-size: .7rem; letter-spacing: .12em; }
.sndl-card h3 { margin: 48px 0 14px; font-size: clamp(1.1rem,2vw,1.5rem); font-weight: 500; letter-spacing: -.03em; }
.sndl-card p, .sndl-card li { color: var(--sndl-muted); }
.sndl-card ul { padding-left: 1.2rem; margin-bottom: 0; }
.sndl-flow { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; counter-reset: flow; }
.sndl-flow-step { position: relative; min-height: 210px; padding: 26px 20px; border-top: 1px solid var(--sndl-acid); background: linear-gradient(180deg,var(--sndl-acid-soft),transparent); }
.sndl-flow-step::before { position: relative; z-index: 2; }
.sndl-flow-step .sndl-signal { position: absolute; top: -4px; left: 0; width: 8px; height: 8px; border: 1px solid var(--sndl-acid); background: var(--sndl-ink); transform: rotate(45deg); animation: sndl-signal-travel 5.2s linear infinite; animation-delay: calc(var(--step, 0) * -.72s); }
.sndl-flow-step::before { counter-increment: flow; content: "0" counter(flow); color: var(--sndl-acid); font-size: .72rem; }
.sndl-flow-step:not(:last-child)::after { content: "→"; position: absolute; top: 22px; right: -16px; color: var(--sndl-muted); }
.sndl-flow-step h3 { margin: 58px 0 10px; font-size: 1rem; font-weight: 500; }
.sndl-flow-step p { margin: 0; color: var(--sndl-muted); font-size: .82rem; }
.sndl-boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sndl-line); border: 1px solid var(--sndl-line); }
.sndl-boundary > div { padding: clamp(28px,4vw,50px); background: var(--sndl-panel-2); }
.sndl-boundary h3 { margin-top: 0; font-weight: 500; }
.sndl-boundary ul { list-style: none; padding: 0; margin: 24px 0 0; }
.sndl-boundary li { padding: 12px 0 12px 24px; border-top: 1px solid var(--sndl-line); color: var(--sndl-muted); position: relative; }
.sndl-boundary li::before { content: "+"; position: absolute; left: 0; color: var(--sndl-acid); }
.sndl-boundary--never li::before { content: "×"; color: var(--sndl-danger); }

.sndl-rfp-layout { display: grid; grid-template-columns: .62fr 1.38fr; gap: clamp(36px,7vw,100px); align-items: start; }
.sndl-rfp-intro { position: sticky; top: 110px; }
.sndl-rfp-intro p { color: var(--sndl-muted); }
.sndl-form { display: grid; gap: 34px; }
.sndl-fieldset { margin: 0; padding: 0 0 34px; border: 0; border-bottom: 1px solid var(--sndl-line); }
.sndl-fieldset legend { width: 100%; margin: 0 0 24px; color: var(--sndl-acid); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.sndl-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.sndl-field--full { grid-column: 1/-1; }
.sndl-field label { display: block; margin-bottom: 8px; color: var(--sndl-text); font-size: .78rem; }
.sndl-field label span { color: var(--sndl-muted); }
.sndl-field input, .sndl-field select, .sndl-field textarea { width: 100%; min-height: 48px; border: 1px solid var(--sndl-line); border-radius: 0; padding: 12px 14px; background: var(--sndl-panel-2); color: var(--sndl-text); }
.sndl-field textarea { min-height: 125px; resize: vertical; }
.sndl-field input:focus, .sndl-field select:focus, .sndl-field textarea:focus { outline: 2px solid var(--sndl-acid); outline-offset: 2px; border-color: var(--sndl-acid); }
.sndl-check { display: flex; align-items: flex-start; gap: 10px; color: var(--sndl-muted); font-size: .78rem; }
.sndl-check input { margin-top: .35rem; accent-color: var(--sndl-acid); }
.sndl-hp { position: absolute !important; left: -10000px !important; }
.sndl-notice { margin-bottom: 26px; padding: 18px; border: 1px solid var(--sndl-line); background: var(--sndl-panel); }
.sndl-notice--success { border-color: var(--sndl-acid); }
.sndl-notice--error { border-color: var(--sndl-danger); }

.sndl-article-list { display: grid; gap: 1px; background: var(--sndl-line); border: 1px solid var(--sndl-line); }
.sndl-article-card { display: grid; grid-template-columns: 130px 1fr auto; gap: 30px; align-items: center; padding: 28px; background: var(--sndl-ink); text-decoration: none; }
.sndl-article-card:hover h3 { color: var(--sndl-acid); }
.sndl-article-card time, .sndl-article-card span { color: var(--sndl-muted); font-size: .72rem; }
.sndl-article-card h3 { margin: 0; font-size: clamp(1rem,2vw,1.5rem); font-weight: 500; }
.sndl-content { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: clamp(80px,10vw,140px) 0; }
.sndl-content h1 { font-size: clamp(2.5rem,6vw,5.6rem); line-height: .96; letter-spacing: -.065em; font-weight: 500; }
.sndl-content h2 { margin-top: 2.5em; font-size: clamp(1.45rem,3vw,2.3rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; }
.sndl-content p, .sndl-content li { color: var(--sndl-muted); }
.sndl-content a { color: var(--sndl-acid); }
.sndl-meta { color: var(--sndl-acid); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }

.sndl-final { text-align: center; padding: clamp(90px,14vw,190px) 0; background: radial-gradient(circle at 50% 110%,rgba(184,255,61,.15),transparent 50%); }
.sndl-final h2 { max-width: 920px; margin: 0 auto 36px; font-size: clamp(2.6rem,7vw,7rem); line-height: .9; letter-spacing: -.075em; font-weight: 500; text-transform: uppercase; }
.sndl-footer { padding: 42px 0; border-top: 1px solid var(--sndl-line); color: var(--sndl-muted); }
.sndl-footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.sndl-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.sndl-footer a { text-decoration: none; font-size: .75rem; }
.sndl-footer a:hover { color: var(--sndl-acid); }

.sndl-motion-ready { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.25,1); }
.sndl-motion-ready.is-visible { opacity: 1; transform: translateY(0); }
.sndl-card { position: relative; overflow: hidden; }
.sndl-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg,transparent 0%,rgba(184,255,61,.055) 48%,transparent 55%); transform: translateY(-120%); }
.sndl-card.is-visible::after { animation: sndl-integrity-scan 4.8s ease-in-out 1; animation-delay: .35s; }

@keyframes sndl-signal-travel { from { left: 0; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
@keyframes sndl-integrity-scan { 0% { transform: translateY(-120%); } 100% { transform: translateY(120%); } }

@media (max-width: 900px) {
  .sndl-menu-toggle { display: inline-flex; }
  .sndl-nav-links { display: none; position: absolute; inset: 72px 0 auto; padding: 22px; background: var(--sndl-ink); border-bottom: 1px solid var(--sndl-line); flex-direction: column; align-items: stretch; }
  .sndl-nav-links.is-open { display: flex; }
  .sndl-hero-inner, .sndl-rfp-layout { grid-template-columns: 1fr; }
  .sndl-rfp-intro { position: static; }
  .sndl-proofline { grid-template-columns: 1fr 1fr; }
  .sndl-proofline div:nth-child(3) { border-left: 0; border-top: 1px solid var(--sndl-line); }
  .sndl-proofline div:nth-child(4) { border-top: 1px solid var(--sndl-line); }
  .sndl-flow { grid-template-columns: 1fr 1fr; }
  .sndl-flow-step:not(:last-child)::after { display: none; }
}

@media (max-width: 680px) {
  .sndl-shell { width: min(calc(100% - 28px), var(--sndl-max)); }
  .sndl-hero { min-height: auto; }
  .sndl-hero-inner { padding-top: 74px; }
  .sndl-section-head { grid-template-columns: 1fr; gap: 8px; }
  .sndl-grid-2, .sndl-grid-3, .sndl-boundary, .sndl-fields, .sndl-flow { grid-template-columns: 1fr; }
  .sndl-proofline { grid-template-columns: 1fr; }
  .sndl-proofline div + div, .sndl-proofline div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--sndl-line); }
  .sndl-field--full { grid-column: auto; }
  .sndl-article-card { grid-template-columns: 1fr; gap: 10px; }
  .sndl-footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .sndl-motion-ready { opacity: 1; transform: none; }
  .sndl-crypto-field { display: none; }
}
