/* smartigo.mintlane.io-in-waiting — standalone look for /smartigo/.
 * Deliberately independent of /styles.css: this page is a teaser, not an app card.
 * Moods: "dusk" (landing, night over the cabin) and "paper" (blog + legal, daylight reading).
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/smartigo/assets/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #101714;
  --night-2: #17211c;
  --night-line: rgba(244, 236, 216, .14);
  --paper: #f6efdd;
  --paper-2: #efe5cc;
  --paper-line: #d9cdb0;
  --ink: #2a2218;
  --ink-soft: #5f5645;
  --gold: #d9a441;
  --gold-deep: #9a6b14;
  --ember: #e8873a;
  --velvet: #6b1d2a;
  --velvet-dark: #3d0f18;
  --text-on-night: #f1e9d6;
  --text-on-night-soft: #b9b09a;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.dusk { background: var(--night); color: var(--text-on-night); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
.dusk a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── header ───────────────────────────────────────────── */
.head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  position: relative; z-index: 5;
}
.head--over { position: absolute; inset: 0 0 auto 0; }
.paper .head, body.paper .head { border-bottom: 1px solid var(--paper-line); background: var(--paper); }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; font-variation-settings: 'opsz' 48, 'SOFT' 60; }
.mark img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.head nav { display: flex; gap: 22px; font-size: .95rem; }
.head nav a { text-decoration: none; opacity: .85; padding: 6px 2px; }
.head nav a:hover, .head nav a[aria-current] { opacity: 1; text-decoration: underline; }

/* ── hero ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px); isolation: isolate; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('/smartigo/assets/dusk.webp') 70% 22% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 23, 20, .55) 0%, rgba(16, 23, 20, .15) 35%, rgba(16, 23, 20, .82) 78%, var(--night) 100%),
    linear-gradient(90deg, rgba(16, 23, 20, .78) 0%, rgba(16, 23, 20, 0) 62%);
}
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); } }
.hero__inner { max-width: 1120px; width: 100%; margin: 0 auto; }
.eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(2.5rem, 7.2vw, 5.6rem); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 0 28px; max-width: 14ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
.hero p.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 34em; color: var(--text-on-night); opacity: .92; margin: 0 0 34px; text-shadow: 0 1px 14px rgba(0,0,0,.5); }
.soon {
  display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold);
}
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(232, 135, 58, .6); animation: ember 2.6s ease-out infinite; }
@keyframes ember { 70% { box-shadow: 0 0 0 14px rgba(232, 135, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 135, 58, 0); } }
.cue { position: absolute; left: 50%; bottom: 20px; width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { opacity: .2; transform: translateY(-6px); } 50% { opacity: 1; transform: none; } }

/* ── generic sections on dusk ─────────────────────────── */
.section { padding: clamp(64px, 11vw, 140px) var(--gutter); }
.wrap { max-width: 1040px; margin: 0 auto; }
.kicker { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
h2.display { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 96, 'SOFT' 40; font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 22px; text-wrap: balance; }

.trail { display: flex; align-items: center; gap: 18px; max-width: 520px; margin: 0 auto; color: var(--text-on-night-soft); }
.trail::before, .trail::after { content: ''; flex: 1; border-top: 2px dotted rgba(217, 164, 65, .45); }
.trail img { width: 38px; height: 38px; opacity: .9; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

/* questions */
.questions { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: q; }
.questions li {
  counter-increment: q; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--night-line);
  font-family: var(--serif); font-size: clamp(1.25rem, 2.7vw, 1.85rem); line-height: 1.3; font-variation-settings: 'opsz' 48;
}
.questions li:last-child { border-bottom: 1px solid var(--night-line); }
.questions li::before { content: counter(q, decimal-leading-zero); font-family: var(--sans); font-size: .85rem; letter-spacing: .16em; color: var(--gold); }
.aside { color: var(--text-on-night-soft); max-width: 38em; margin-top: 30px; }

/* ── the curtain ──────────────────────────────────────── */
.stage-wrap { text-align: center; }
.stage {
  position: relative; display: block; width: 100%; max-width: 980px; margin: 44px auto 0; aspect-ratio: 16 / 10; padding: 0;
  border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #0a0706; color: inherit; font: inherit;
  box-shadow: 0 0 0 1px rgba(217, 164, 65, .55), 0 0 0 7px #1b130e, 0 0 0 8px rgba(217, 164, 65, .35), 0 40px 90px rgba(0, 0, 0, .6);
  -webkit-tap-highlight-color: transparent;
}
.stage__backdrop { position: absolute; inset: -8%; background: url('/smartigo/assets/dusk.webp') 62% 32% / cover; filter: blur(16px) brightness(.5) saturate(1.2); transition: filter 1.4s ease, transform 2s ease; transform: scale(1.04); }
.stage__light { position: absolute; inset: 0; background: radial-gradient(ellipse 28% 80% at 50% 62%, rgba(255, 198, 120, .55), rgba(255, 198, 120, 0) 72%); opacity: .5; transition: opacity 1s ease; }
.stage__whisper { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 3.2vw, 2.2rem); color: #ffe3b0; text-shadow: 0 0 24px rgba(255, 190, 100, .8); opacity: 0; transition: opacity .8s ease .2s; }
.curtain { position: absolute; top: 0; bottom: 0; width: 53%; transition: transform 1.3s cubic-bezier(.22, .8, .2, 1); will-change: transform;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.34) 0, rgba(0,0,0,.34) 1.2%, rgba(255,255,255,.07) 4.6%, rgba(0,0,0,.2) 8.4%, rgba(0,0,0,0) 10%),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 30%, rgba(0,0,0,.35)),
    linear-gradient(90deg, var(--velvet-dark), var(--velvet) 55%, #82293a);
}
.curtain--l { left: 0; transform-origin: left; box-shadow: inset -12px 0 24px rgba(0, 0, 0, .35); }
.curtain--r { right: 0; transform-origin: right; box-shadow: inset 12px 0 24px rgba(0, 0, 0, .35); background-position: 100% 0; }
.curtain--r { background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.34) 0, rgba(0,0,0,.34) 1.2%, rgba(255,255,255,.07) 4.6%, rgba(0,0,0,.2) 8.4%, rgba(0,0,0,0) 10%),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0) 30%, rgba(0,0,0,.35)),
    linear-gradient(270deg, var(--velvet-dark), var(--velvet) 55%, #82293a); }
.valance { position: absolute; left: 0; right: 0; top: 0; height: 13%; z-index: 3; background: linear-gradient(180deg, #2c0a11, var(--velvet) 80%); border-bottom: 3px solid var(--gold); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.valance::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 22px; background: radial-gradient(circle at 50% 0, var(--velvet) 0 66%, transparent 68%) 0 0 / 44px 22px repeat-x; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.plaque {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 4; padding: 16px 30px 14px; text-align: center; min-width: 220px;
  background: linear-gradient(145deg, #f0cf83, #c8902f 55%, #e2b65e); color: #2a1a05; border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 245, 210, .5), inset 0 0 0 5px rgba(120, 76, 8, .35);
  transition: opacity .5s ease, transform .9s ease;
}
.plaque b { display: block; font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; line-height: 1.15; font-variation-settings: 'opsz' 72, 'SOFT' 80; }
.plaque span { display: block; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; margin-top: 6px; opacity: .8; }

/* peek: hover / focus. open: after a tap. */
@media (hover: hover) { .stage:hover .curtain--l, .stage:focus-visible .curtain--l { transform: translateX(-9%); } .stage:hover .curtain--r, .stage:focus-visible .curtain--r { transform: translateX(9%); } .stage:hover .stage__light, .stage:focus-visible .stage__light { opacity: .9; } }
.stage.is-open .curtain--l { transform: translateX(-62%); }
.stage.is-open .curtain--r { transform: translateX(62%); }
.stage.is-open .stage__backdrop { filter: blur(7px) brightness(.72) saturate(1.2); transform: scale(1.0); }
.stage.is-open .stage__light { opacity: 1; }
.stage.is-open .stage__whisper { opacity: 1; }
.stage.is-open .plaque { opacity: 0; transform: translate(-50%, -62%); }
.stage.twitch .curtain--l { animation: twitchL 1.8s ease .3s 1; }
.stage.twitch .curtain--r { animation: twitchR 1.8s ease .3s 1; }
@keyframes twitchL { 0%, 100% { transform: none; } 30% { transform: translateX(-5%); } 55% { transform: translateX(-2%); } }
@keyframes twitchR { 0%, 100% { transform: none; } 30% { transform: translateX(5%); } 55% { transform: translateX(2%); } }
.stage-caption { margin: 22px auto 0; font-size: .95rem; color: var(--text-on-night-soft); max-width: 36em; }

/* ── notes teaser on dusk ─────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 44px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; transition: transform .35s ease, border-color .35s ease; color: var(--text-on-night); }
.card:hover { transform: translateY(-4px); border-color: rgba(217, 164, 65, .6); color: var(--text-on-night); }
.card img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; filter: saturate(.9) brightness(.85); transition: filter .4s; }
.card:hover img { filter: saturate(1.05) brightness(1); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.25; margin: 0; font-variation-settings: 'opsz' 36; }
.card p { margin: 0; font-size: .95rem; color: var(--text-on-night-soft); line-height: 1.55; }
.card small { margin-top: auto; padding-top: 6px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.more { margin-top: 34px; }
.more a { color: var(--gold); }

/* ── footer ───────────────────────────────────────────── */
.foot { padding: 44px var(--gutter) 56px; border-top: 1px solid var(--night-line); color: var(--text-on-night-soft); font-size: .92rem; }
body.paper .foot { border-top-color: var(--paper-line); color: var(--ink-soft); background: var(--paper-2); }
.foot__in { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot a { text-decoration: none; padding: 6px 0; }
.foot a:hover { text-decoration: underline; }

/* ── reading pages (blog + legal) ─────────────────────── */
.read { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) var(--gutter) 40px; }
.read .crumb { font-size: .9rem; color: var(--ink-soft); margin-bottom: 26px; }
.read .crumb a { text-decoration: none; }
.read .crumb a:hover { text-decoration: underline; }
.read h1 { font-family: var(--serif); font-weight: 500; font-variation-settings: 'opsz' 120, 'SOFT' 40; font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 20px; text-wrap: balance; }
.read .meta { font-size: .88rem; color: var(--ink-soft); letter-spacing: .04em; margin: 0 0 34px; }
.read .figure { margin: 0 calc(-1 * var(--gutter)) 38px; border-radius: 0; overflow: hidden; }
@media (min-width: 820px) { .read .figure { margin-left: -60px; margin-right: -60px; border-radius: var(--radius); } }
.read .figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.read h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin: 2.3em 0 .6em; font-variation-settings: 'opsz' 48; }
.read h3 { font-size: 1.1rem; margin: 1.8em 0 .4em; }
.read p, .read li { max-width: 40em; }
.read p { margin: 0 0 1.2em; }
.read .lead { font-size: 1.28rem; line-height: 1.55; color: var(--ink); font-family: var(--serif); font-variation-settings: 'opsz' 36; }
.read blockquote { margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; font-style: italic; color: #4b3a1c; }
.read ul, .read ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.read li { margin-bottom: .5em; }
.read hr { border: 0; text-align: center; margin: 2.6em 0; }
.read hr::after { content: '· · ·'; letter-spacing: .6em; color: var(--gold-deep); }
.read .sources { margin-top: 3em; padding: 22px 26px; background: var(--paper-2); border-radius: var(--radius); font-size: .9rem; color: var(--ink-soft); }
.read .sources h2 { font-size: 1rem; margin: 0 0 .6em; font-family: var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.read .sources li { margin-bottom: .4em; }
.endnote { margin-top: 3em; padding: 28px; border: 1px dashed var(--gold-deep); border-radius: var(--radius); background: rgba(217, 164, 65, .1); }
.endnote p { margin: 0 0 .8em; font-family: var(--serif); font-size: 1.18rem; line-height: 1.45; }
.endnote a { font-weight: 500; }
.nextup { max-width: 720px; margin: 0 auto; padding: 10px var(--gutter) 70px; }
.nextup h2 { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); font-family: var(--sans); margin: 0 0 14px; }
.nextup a { display: block; padding: 14px 0; border-top: 1px solid var(--paper-line); text-decoration: none; font-family: var(--serif); font-size: 1.2rem; }
.nextup a:hover { color: var(--gold-deep); }

.postlist { list-style: none; margin: 30px 0 0; padding: 0; }
.postlist li { padding: 28px 0; border-top: 1px solid var(--paper-line); max-width: none; display: grid; grid-template-columns: 1fr; gap: 6px; }
.postlist li:last-child { border-bottom: 1px solid var(--paper-line); }
.postlist a { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; text-decoration: none; font-variation-settings: 'opsz' 48; }
.postlist a:hover { color: var(--gold-deep); }
.postlist p { margin: 4px 0 0; color: var(--ink-soft); }
.postlist small { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }

.legal h2 { font-size: 1.35rem; }
.legal .stand { color: var(--ink-soft); font-size: .92rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 0 0 1.4em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--paper-line); }
.legal th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.legal .note { background: var(--paper-2); border-left: 3px solid var(--gold); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .95rem; }

/* ── reveal on scroll (only when JS is present) ───────── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .12s; } .js .rv.d2 { transition-delay: .24s; }

@media (max-width: 640px) {
  .head nav { gap: 14px; }
  .questions li { grid-template-columns: 38px 1fr; gap: 12px; }
  .stage { aspect-ratio: 4 / 5; }
  .plaque { min-width: 170px; padding: 12px 20px; }
  .stage.is-open .curtain--l { transform: translateX(-58%); }
  .stage.is-open .curtain--r { transform: translateX(58%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__bg, .cue, .soon i, .stage.twitch .curtain { animation: none !important; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .curtain, .stage__backdrop, .plaque, .stage__whisper, .stage__light { transition-duration: .01s !important; }
}
