/* ============================================================
   Kryptex 10 Years — page-specific components.
   Sits on top of css/landing.css (pv2, copied verbatim from
   kryptex.com). Typography, buttons and section idioms mirror
   the CURRENT MAIN LANDING (templates/v2/public/landing/index.html):
   - hero: eyebrow 21px/500 + headline clamp(40px,6.4vw,92px)/500/.9
   - section titles: 23→30px / 500 / -0.03em (app-mockup__title)
   - buttons: kx-cta (r12, h45, #2f7dfa, icon tile) — from landing.css
   - inline highlight: kx-hl (#ecf1f5, r6)
   - dark section: exchange-section (black, heading 35→45px / 400)
   ============================================================ */

/* pv2 pages force Google Sans over the Montserrat default */
.pv2, .pv2 *, .pv2-nav, .pv2-nav *, .pv2-footer, .pv2-footer * { font-family: 'Google Sans', sans-serif !important; }

html { scroll-behavior: smooth; }
/* the site sets this globally in _reboot.scss; without it white-on-dark
   text (nav, footer) renders visibly bolder on macOS */
body { margin: 0; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: #cee3f7; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #4aa7ff; outline-offset: 3px; border-radius: 4px; }

#decade, #stories, #share, #faq { scroll-margin-top: 80px; }

/* ── Shared bits ────────────────────────────────────────────── */
.anniv-container { max-width: 1480px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .anniv-container { padding: 0 24px; } }
@media (min-width: 1024px) { .anniv-container { padding: 0 32px; } }

/* section title — app-mockup__title 1:1 */
.anniv-h2 { font-size: 23px; font-weight: 500; letter-spacing: -0.03em; color: #0a0a0a; margin: 0; }
@media (min-width: 640px) { .anniv-h2 { font-size: 30px; } }
/* section lead — app-mockup__meta-text scale */
.anniv-lead { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #6b7280; max-width: 70ch; }

/* inline highlight — kx-hl 1:1 */
.grad { display: inline-block; background: #ecf1f5; color: inherit; border-radius: 6px; padding: 0 8px; }

/* draft/tentative marks — outline pill, like the section badges */

/* secondary action next to kx-cta: same geometry, panel color */
.anniv-pill { display: inline-flex; align-items: center; justify-content: center; height: 45px; padding: 0 22px; border-radius: 12px; background: #ecf1f5; color: #0a0a0a; font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .15s; }
.anniv-pill:hover { background: #e2e8ee; }

/* ── Hero — main-landing idiom (values copied 1:1) ──────────── */
.pv2 .hero { position: relative; z-index: 5; padding: 180px 32px 72px; display: flex; flex-direction: column; align-items: center; background: #fff; min-height: 96vh; justify-content: center; overflow: hidden; }
/* WebGL wave-grid layer — sits under the hero content */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* the scene fades into the white page toward the bottom edge */
.hero__bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; background: linear-gradient(to bottom, #fff0, #fff); }
.pv2 .hero > *:not(.hero__bg) { position: relative; z-index: 1; }
/* desktop: lift the text block off the exact center, the gem stays put */
@media (min-width: 751px) { .pv2 .hero > *:not(.hero__bg) { transform: translateY(-40px); } }
/* ...and drop the gem itself a bit below the center (the fade stays at the hero edge) */
.hero__bg canvas { transform: translateY(50px); }
.pv2 .hero__eyebrow { display: block; margin: 0; font-size: 21px; font-weight: 500; line-height: 1.32; color: #0a0a0a; text-align: center; }
.pv2 .hero__lead { margin: 18px 0 0; padding: 0; font-weight: 500; font-size: clamp(40px, 6.4vw, 92px); letter-spacing: -0.03em; line-height: .9; color: #0a0a0a; text-align: center; text-wrap: balance; max-width: min(11em, 92vw); }
.anniv-sub { margin: 24px auto 0; max-width: 620px; font-size: 19px; font-weight: 400; line-height: 1.5; color: #000000a6; text-align: center; }
.anniv-cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 48px; flex-wrap: wrap; }
@media (max-width: 750px) {
  /* no canvas on phones — drop the 96vh frame so the hero hugs its content;
     centred: equal padding, plus 10px extra below */
  .pv2 .hero { padding: 96px 16px 106px; min-height: 0; }
  /* the WebGL bundle isn't loaded on phones; keep the layer hidden as a safety net */
  .hero__bg { display: none; }
  .pv2 .hero__eyebrow { font-size: 18px; }
  .pv2 .hero__lead { margin-top: 18px; font-size: 12vw; line-height: 1.02; }
  .anniv-sub { font-size: 17px; margin-top: 18px; }
  .anniv-cta-row { margin-top: 32px; }
}

/* ── The decade — editorial timeline on a full-bleed dark section
     (exchange-section idiom: black 100vw, heading 35→45/400).
     Desktop: the band pins at 10vh while the page scroll drives the
     year strip sideways — down → right, up → left. ─────────────── */
.anniv-decade { background: #0a0a0a; padding: 96px 0 96px; }
@media (min-width: 1024px) {
  /* the section itself is a transparent scroll track; the JS sets its height
     to band height + horizontal overflow of the strip */
  .anniv-decade { background: transparent; padding: 0; }
  .decade-sticky { position: sticky; top: 10vh; height: 80vh; box-sizing: border-box; background: #0a0a0a; padding: 96px 0; }
}
.anniv-decade .anniv-h2 { font-size: 35px; font-weight: 400; letter-spacing: -0.025em; line-height: 0.95; color: #e9f2fd; }
@media (min-width: 640px) { .anniv-decade .anniv-h2 { font-size: 45px; } }
/* pool-section__pill idiom (outline pill), dark-section colors */
.anniv-decade__pill { display: inline-block; font-size: 12px; font-weight: 400; letter-spacing: 0; line-height: normal; padding: 2px 8px; border-radius: 99px; color: #e9f2fd; border: 1px solid #e9f2fd; vertical-align: middle; margin-inline-start: 6px; }
/* editorial layout: title + era switcher on the left, chronology columns on the right */
.decade-layout { display: flex; flex-direction: column; gap: 40px; padding-inline: 16px; }
@media (min-width: 640px) { .decade-layout { padding-inline: 24px; } }
/* content lines up with the .anniv-container content edge */
@media (min-width: 1024px) { .decade-layout { flex-direction: row; gap: 0; padding-inline: max(32px, calc((100vw - 1480px) / 2 + 32px)); height: 100%; } .mile-grid { height: 100%; } }
.decade-side { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 1024px) { .decade-side { flex: 0 0 280px; padding-inline-end: 32px; } }

/* era switcher — radio-list, pinned to the bottom of the side column */
.decade-eras { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; }
@media (min-width: 1024px) { .decade-eras { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: auto; padding-top: 48px; } }
.era { position: relative; display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 400; color: #5f6570; transition: color .25s; }
.era::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transition: background .25s; }
.era:hover { color: #a3a9b1; }
.era.act { color: #e9f2fd; }
.era.act::before { background: #379fff; }
/* below the side-by-side breakpoint the eras are a plain row — no radio dot */
@media (max-width: 1023px) {
  .era::before { display: none; }
}

/* chronology strip — all ten years in a single row, overflowing to the right */
.decade-panels { flex: 1; min-width: 0; }
@media (min-width: 1024px) { .decade-panels { overflow: hidden; } }
.mile-grid { display: flex; }

.card { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; border-inline-start: 1px solid rgba(233, 242, 253, .14); padding-inline: 24px; }
/* fixed column width so the strip overflows instead of squeezing */
@media (min-width: 1024px) { .card { flex: 0 0 clamp(280px, 23vw, 360px); } }
.card .yr { font-size: clamp(36px, 3.2vw, 52px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.card .blkno { font-size: 14px; font-weight: 500; color: #e9f2fd; margin-top: 28px; }
.card p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: #a3a9b1; }
/* title + copy sit at the bottom of the column, where the photos used to be */
@media (min-width: 1024px) { .card .blkno { margin-top: auto; padding-top: 28px; } }
/* 2026 — the anniversary column: white type, a burst of strokes above the year */
.card.now .yr, .card.now .blkno { color: #fff; }
.card.now .yr { position: relative; align-self: flex-start; }
.card.now .yr::before { content: ""; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 46px; height: 33px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 40' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath vector-effect='non-scaling-stroke' d='M9 34 L3 20'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M27 30 L29 5'/%3E%3Cpath vector-effect='non-scaling-stroke' d='M47 34 L53 20'/%3E%3C/svg%3E") no-repeat center / contain; }

/* below the side-by-side breakpoint the active panel scrolls horizontally (hero-cards idiom) */
@media (max-width: 1023px) {
  .mile-grid { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px; padding-top: 44px; margin-top: -44px; }
  .mile-grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 280px; }
  .card:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* ── Miner stories — story wall inside the social-proof panel idiom ── */
.social-proof { border-bottom: 0; }
.stories-panel__lead { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: #6b7280; }
@media (max-width: 750px) { .stories-panel__lead { margin-top: 6px; } }
/* the marquee column must be allowed to shrink; centre the rows vertically */
.stories-panel__col { min-width: 0; justify-content: center; }
.st-wall { overflow: hidden; position: relative; }
.st-wall::before, .st-wall::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.st-wall::before { left: 0; background: linear-gradient(90deg, #ecf1f5, transparent); }
.st-wall::after { right: 0; background: linear-gradient(-90deg, #ecf1f5, transparent); }
.st-row { display: flex; gap: 12px; width: max-content; padding: 2px 0; }
.st-row .track { display: flex; gap: 12px; animation: stmq var(--dur, 60s) linear infinite; }
.st-wall:hover .track { animation-play-state: paused; }
@keyframes stmq { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
/* story card — white on the panel, badge takes the panel color */
.st { display: flex; flex-direction: column; width: 380px; flex: none; white-space: normal; background: #fff; border-radius: 10px; padding: 24px 26px; }
@media (max-width: 640px) { .st { width: 300px; } }
.st .q { margin: 0; font-size: 15px; line-height: 1.55; color: #0a0a0a; }
.st .q::before { content: "\201C"; color: #2f7dfa; font-size: 30px; line-height: 0; vertical-align: -8px; margin-right: 2px; }
.st .meta { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.st .who { font-size: 14px; font-weight: 500; color: #0a0a0a; }
.st .since { font-size: 12.5px; font-weight: 500; color: #000000a6; background: #ecf1f5; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .st-row .track { animation: none; }
  .st-wall { overflow-x: auto; }
}

/* ── Share form ─────────────────────────────────────────────── */
.anniv-share { background: #fff; padding-top: 85px; }
@media (max-width: 750px) { .anniv-share { padding-top: 65px; } }
/* section title — faq-section__title idiom */
.anniv-share .anniv-h2 { font-size: 30px; font-weight: 500; color: #0a0a0a; margin: 0 auto 14px; line-height: 35px; max-width: 744px; }
/* prize line — same centered column as the form */
.anniv-share .anniv-lead { max-width: 744px; margin: 0 auto; font-size: 16px; }
/* stacked labeled fields in a narrow column */
.idea-form { max-width: 744px; margin: 28px auto 0; display: flex; flex-direction: column; gap: 22px; }
.idea-form .ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
@media (max-width: 560px) { .idea-form .ff-row { grid-template-columns: 1fr; } }
.idea-form .ff { min-width: 0; }
.idea-form .ff__label { display: block; font-size: 16px; font-weight: 500; color: #0a0a0a; margin-bottom: 8px; line-height: 1.3; }
/* 16px floor: iOS zooms the page on focus below 16px */
.idea-form .ff__input { display: block; box-sizing: border-box; width: 100%; border: 1px solid #dfe5ec; border-radius: 12px; background: #fff; padding: 13px 16px; font: inherit; font-size: 16px; line-height: 1.4; color: #0a0a0a; transition: border-color .15s; }
.idea-form .ff__input--area { resize: vertical; min-height: 120px; }
.idea-form .ff__input::placeholder { color: #9aa3af; }
.idea-form .ff__input:hover { border-color: #c8d2dd; }
.idea-form .ff__input:focus { outline: none; border-color: #2f7dfa; }
/* Tangem prize panel above the button row */
.idea-form .tangem-note { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #ecf1f5; border-radius: 12px; padding: 12px 12px 12px 20px; }
.idea-form .tangem-note p { margin: 0; font-size: 15px; line-height: 1.45; color: #0a0a0a; }
.idea-form .tangem-note img { flex: 0 0 auto; width: 100px; height: 60px; display: block; position: relative; z-index: 1; transition: transform .25s ease; transform-origin: center; }
/* desktop only: hovering the card itself blows it up past the panel bounds */
@media (min-width: 1024px) {
  .idea-form .tangem-note img { cursor: zoom-in; }
  .idea-form .tangem-note img:hover { transform: scale(3); }
}
@media (max-width: 560px) { .idea-form .tangem-note { flex-direction: column; align-items: flex-start; gap: 14px; } }

/* required-field hint: hidden until the wrapper gets .ff--error */
.idea-form .ff__err { display: none; margin-top: 6px; font-size: 13px; line-height: 1.4; color: #e5484d; }
.idea-form .ff--error .ff__err { display: block; }
.idea-form .ff--error .ff__input { border-color: #e5484d; }
.idea-form .ff--captcha { min-height: 65px; }
/* success note shown instead of the form */
.idea-form .form-ok { margin: 0; font-size: 17px; font-weight: 500; color: #0a0a0a; background: #e7f6ec; border-radius: 12px; padding: 16px 20px; }
.idea-form .frow { display: flex; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.idea-form .fine { font-size: 12.5px; line-height: 1.5; color: #687181; max-width: 52ch; }

/* ── Letter — review-card idiom: black panel, white text ─────── */
.anniv-letter { margin-top: 96px; background: #fff; }
@media (max-width: 750px) { .anniv-letter { margin-top: 60px; } }
/* rounded card, same width as the form panel above */
.anniv-letter__outer { position: relative; overflow: hidden; background: #0a0a0a; border-radius: 10px; padding: 48px 24px; }
/* the blue-glass shape from the landing eco-card, hugging the right edge */
.anniv-letter__bg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: auto; height: 100%; max-width: none; pointer-events: none; display: block; }
/* below desktop the copy spans the card — the shape would sit right under the text */
/* .pv2 prefix outweighs landing.css's `.pv2 img { display: block }` */
@media (max-width: 1023px) { .pv2 .anniv-letter__bg { display: none; } }
.anniv-letter__outer > :not(.anniv-letter__bg) { position: relative; }
@media (min-width: 640px) { .anniv-letter__outer { padding: 64px 40px; } }
@media (min-width: 1024px) { .anniv-letter__outer { padding: 100px 64px; } }
.anniv-letter__h2 { margin: 0; font-size: 35px; font-weight: 400; letter-spacing: -0.025em; line-height: 1.1; color: #fff; }
@media (min-width: 640px) { .anniv-letter__h2 { font-size: 45px; } }
.anniv-letter__body { max-width: 720px; margin-top: 22px; }
.anniv-letter__body p { margin: 0 0 22px; font-size: 17px; line-height: 1.55; color: #fff; }
@media (min-width: 768px) { .anniv-letter__body p { font-size: 18px; line-height: 1.45; } }
.anniv-letter__body p:last-child { margin-bottom: 0; }
/* signature — separate author row (round logo mark + name), like the reference card */
.anniv-letter__sign { display: flex; align-items: center; gap: 14px; margin-top: 48px; }
.anniv-letter__sign-ava { width: 44px; height: 44px; border-radius: 50%; background: #ffffff26; display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
.anniv-letter__sign-ava img { width: 27px; height: auto; display: block; margin-top: 3px; }
.anniv-letter__sign-name { font-size: 17px; font-weight: 500; color: #fff; }

/* ── FAQ: styled by landing.css; just page rhythm ───────────── */
.pv2 .faq-section { padding-bottom: 110px; }

/* ── Footer extras (ported from the pv2_footer template's inline styles) ── */
.pv2-footer__soc{width:auto!important;min-width:26px;padding:0 7px!important;justify-content:flex-start!important;overflow:hidden}
.pv2-footer__soc-count{max-width:0;overflow:hidden;opacity:0;white-space:nowrap;font-size:11px;font-weight:600;font-family:'Google Sans',sans-serif;margin-left:0;transition:max-width .25s ease,opacity .2s ease,margin-left .25s ease}
.pv2-footer__soc:hover .pv2-footer__soc-count{max-width:60px;opacity:1;margin-left:6px}
.pv2-footer__heartbeat{width:20px;height:20px;background:#242424;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.pv2-footer__heartbeat polyline{stroke:#00DA85;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;fill:none;stroke-dasharray:27;stroke-dashoffset:27;animation:pv2-hb 2s ease-out infinite}
@keyframes pv2-hb{0%{stroke-dashoffset:27;opacity:1}60%{stroke-dashoffset:0;opacity:1}85%{stroke-dashoffset:0;opacity:.4}100%{stroke-dashoffset:0;opacity:0}}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
