/* JTBF landing page, shared by jtbf/index.html (English) and jtbf/zh-hant/index.html (Traditional Chinese).
   Every colour, font, space and radius comes from ds/tokens.css; components are the design system's n- classes.
   Where it departs from the design system (the navy hero with the Deco doorway motif behind the title,
   Federo for the app name, the nav wordmark and the footer lockup), it does so under HQ's ADR 0005. */

:root { color-scheme: light; --max: 1160px; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 25px; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.band-navy :focus-visible { outline-color: var(--brass); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: var(--radius-md); background: var(--canvas); color: var(--ink); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap {
  max-width: calc(var(--max) + 64px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}
.eyebrow { font-size: 11px; line-height: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--steel); margin: 0; }
:lang(zh) .eyebrow { font-size: 13px; letter-spacing: 0.12em; }

/* ---------- hero ---------- */
.band-navy { background: var(--brand-navy); color: var(--on-dark); }
.hero {
  /* clip, not hidden: a hidden box can still be scrolled, and jumping to #email scrolled the hero itself. */
  position: relative; overflow: hidden; overflow: clip; isolation: isolate;
  margin-top: calc(-1 * env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px);
  background:
    radial-gradient(circle at 76% 58%, rgba(31, 45, 74, 0.95) 0, rgba(31, 45, 74, 0.35) 36%, rgba(17, 25, 43, 0) 64%),
    var(--brand-navy);
}
@media (min-width: 960px) { .hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; } .hero > .wrap { flex: 1; display: flex; flex-direction: column; width: 100%; } }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
.nav-icon { width: 28px; height: 28px; flex: none; border-radius: 7px; }
.nav-brand span { font-family: var(--font-display); font-size: 19px; line-height: 24px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 500; }
.lang a, .lang span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: var(--radius-md); text-decoration: none; color: var(--on-dark-muted); }
.lang a:hover { color: var(--on-dark); }
.lang [aria-current] { color: var(--on-dark); }
.lang [aria-current]::after { content: ""; display: block; }
.lang .sep { padding: 0; color: var(--steel); min-height: 0; }

.hero-grid { position: relative; z-index: 1; flex: 1; display: grid; align-items: center; gap: 40px; padding-block: 20px 48px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; padding-block: 32px 72px; } }
#email { scroll-margin-top: 96px; }
.hero-copy { display: grid; gap: 20px; max-width: 36rem; }
.title-row { display: flex; align-items: center; gap: 16px; }
.app-name { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 11vw, 132px); line-height: 0.9; letter-spacing: 0.01em; color: var(--on-dark); }
.app-name small { display: block; margin-bottom: 16px; font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; letter-spacing: 0.02em; color: var(--brass); }
:lang(zh) .app-name small { letter-spacing: 0.08em; }
.promise { margin: 0; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.22; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark); text-wrap: balance; }
:lang(zh) .promise { letter-spacing: 0.02em; line-height: 1.4; }
.lede { margin: 0; font-size: 17px; line-height: 27px; color: var(--on-dark-muted); text-wrap: pretty; }

/* the waitlist form */
.waitlist { display: grid; gap: 10px; margin-top: 4px; }
.waitlist label { font-size: 14px; font-weight: 500; color: var(--on-dark); }
.wl-row { display: grid; gap: 10px; }
@media (min-width: 520px) { .wl-row { grid-template-columns: minmax(0, 1fr) auto; } }
.waitlist .n-input { width: 100%; height: 52px; font-size: 17px; }
.waitlist .n-input:focus { border-color: var(--brass); padding: calc(var(--space-sm) - 1px) calc(var(--space-md) - 1px); }
.waitlist .n-input:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.waitlist .n-btn { height: 52px; padding-inline: 24px; font-size: 16px; font-weight: 600; }
.waitlist .n-btn:hover { background: var(--card-tint-brass); }
.waitlist .n-btn:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.waitlist .n-btn[aria-disabled="true"] { cursor: progress; opacity: 0.8; }
.wl-perk { margin: 2px 0 0; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--brass); }
.wl-privacy { margin: 2px 0 0; font-size: 13px; line-height: 19px; color: var(--on-dark-muted); }
.wl-privacy a { color: var(--on-dark); text-underline-offset: 3px; }
.wl-status:empty { display: none; }
.wl-status .n-notice { font-size: 15px; }
.wl-done { padding: 20px; border-radius: var(--radius-lg); background: var(--card-tint-sage); color: var(--charcoal); }
.wl-done strong { display: block; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }
.wl-done p { margin: 4px 0 0; }

/* the Deco doorway motif: the icon's stepped doorway, repeated outwards like an Art Deco portal */
.motif-wrap { position: relative; }
.motif { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: var(--brass); stroke-linejoin: miter; }
.motif .door { stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.55; }
.motif .d0, .motif .d1 { opacity: 0.9; stroke-width: 2; }
.motif .d4, .motif .d5 { opacity: 0.35; }
.motif .rays path { stroke-width: 1.2; opacity: 0.4; }
.motif .arc { stroke-width: 1.4; opacity: 0.7; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (min-width: 960px) {
  .hero-grid { align-items: stretch; }
  .hero-copy { align-self: center; }
  .motif-wrap { align-self: end; margin-bottom: -72px; }
}
@media (max-width: 959px) {
  .motif-wrap { position: absolute; z-index: -1; top: -40px; right: -46vw; width: 110vw; max-width: 620px; opacity: 0.32; pointer-events: none; }
}
.motif .door { animation: draw 1500ms cubic-bezier(0.3, 0, 0.2, 1) both; }
.motif .d0 { animation-delay: 0ms; } .motif .d1 { animation-delay: 90ms; } .motif .d2 { animation-delay: 260ms; }
.motif .d3 { animation-delay: 340ms; } .motif .d4 { animation-delay: 520ms; } .motif .d5 { animation-delay: 600ms; }
.motif .arc { animation: draw 1100ms cubic-bezier(0.3, 0, 0.2, 1) 700ms both; }
.motif .rays { transform-box: fill-box; transform-origin: 50% 100%; animation: open 1300ms cubic-bezier(0.2, 0, 0, 1) 800ms both; }
.hero-copy > * { animation: lift 800ms cubic-bezier(0.2, 0, 0, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; } .hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; } .hero-copy > :nth-child(5) { animation-delay: 320ms; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes open { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lift { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- sections ---------- */
.section { padding-block: 80px; }
@media (max-width: 719px) { .section { padding-block: 64px; } }
.band-parchment { background: var(--surface); }
.section-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 4.4vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.5px; text-wrap: balance; }
:lang(zh) .section-head h2 { letter-spacing: 0.02em; line-height: 1.35; }
.section-head p { margin: 0; font-size: 18px; line-height: 28px; color: var(--slate); text-wrap: pretty; }
.section-head .n-deco-rule { margin-top: 4px; }

/* how it works: four numbered steps on a brass thread */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { position: relative; display: grid; align-content: start; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 16px; padding-bottom: 32px; }
.step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: var(--hairline); }
.step:last-child::before { display: none; }
.step-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--brand-navy); color: var(--brass); }
.step-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin: 0; padding-top: 2px; font-size: 20px; line-height: 28px; font-weight: 600; }
.step h3 span { display: block; font-size: 11px; line-height: 15px; letter-spacing: 1px; font-weight: 600; text-transform: uppercase; color: var(--steel); }
.step p { margin: 0; color: var(--slate); text-wrap: pretty; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0; }
  .step-ico { grid-row: auto; }
  .step::before { left: 64px; right: -24px; top: 23px; bottom: auto; width: auto; height: 2px; }
}
.facts { margin-top: 56px; display: grid; gap: 16px; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts .n-card { display: grid; gap: 8px; align-content: start; }
.facts .n-card h3 { margin: 0; font-size: 18px; line-height: 26px; }
.facts .n-card p { font-size: 15px; line-height: 23px; color: var(--charcoal); }

/* who it's for */
.who { display: grid; gap: 32px; }
@media (min-width: 900px) { .who { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: end; } .who .section-head { margin-bottom: 0; } }
.firms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.firms .n-tag { font-size: 15px; padding: 6px 12px; background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline-strong); }
.where { margin: 8px 0 0; }

/* pricing */
.plans { display: grid; gap: 16px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.n-price-card ul { padding-left: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.n-price-card li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.n-price-card li svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--sage-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.price-was { font-size: 18px; font-weight: 400; color: var(--slate); text-decoration: line-through; margin-left: 4px; }
.price-note { margin: 0; font-size: 14px; line-height: 21px; color: var(--slate); }
.price-note strong { color: var(--ink); font-weight: 600; }
.plans-foot { margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--slate); font-size: 15px; }

/* FAQ */
.n-faq { display: grid; gap: 8px; max-width: 800px; }
.n-faq details { border: 1px solid var(--hairline); }
.n-faq summary { min-height: 28px; }
:lang(zh) .n-faq summary { font-size: 17px; }

/* privacy */
.privacy dl { max-width: 800px; }
.privacy dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--hairline-strong); }
.privacy dl > div { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--hairline); }
@media (min-width: 720px) { .privacy dl > div { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.privacy dt { font-weight: 600; }
.privacy dd { margin: 0; color: var(--charcoal); }
.privacy a { color: var(--link-blue); text-underline-offset: 3px; }

/* screenshots placeholder area (hidden until real screenshots exist) */

/* ---------- footer ---------- */
.foot { padding-block: 72px 40px; position: relative; overflow: hidden; overflow: clip; isolation: isolate; }
.foot h2 { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; max-width: 14em; text-wrap: balance; }
:lang(zh) .foot h2 { letter-spacing: 0.02em; line-height: 1.3; }
.foot .again { margin-top: 28px; }
.signoff { margin-top: 72px; padding-top: 32px; border-top: 1px solid rgba(185, 178, 163, 0.3); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.lockup { display: grid; justify-items: start; gap: 12px; text-decoration: none; }
.lockup-row { display: flex; align-items: center; gap: 14px; }
.lockup .n-mark { width: 44px; height: 44px; }
.lockup .name { font-family: var(--font-display); font-size: 28px; line-height: 34px; color: var(--on-dark); }
.lockup .n-deco-rule { margin-left: 58px; }
.lockup small { font-size: 13px; color: var(--on-dark-muted); }
.signoff-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; line-height: 18px; color: var(--on-dark-muted); }
.signoff-meta a { color: var(--on-dark); text-underline-offset: 3px; }
.foot-contact { display: grid; gap: 10px; justify-items: start; }
.foot-label { margin: 0; font-size: 11px; line-height: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--on-dark-muted); }
.foot-email { font-size: 17px; line-height: 24px; color: var(--on-dark); text-underline-offset: 4px; overflow-wrap: anywhere; }
.foot-email:hover { color: var(--brass); }
.foot-socials { list-style: none; margin: 0 0 0 -11px; padding: 0; display: flex; gap: 4px; }
.foot-socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md); }
.foot-socials svg { width: 22px; height: 22px; fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-socials a:hover svg { stroke: var(--on-dark); }
.foot-socials a:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.privacy-note { margin: 0; flex-basis: 100%; font-size: 13px; line-height: 19px; color: var(--on-dark-muted); }
.privacy-note a { color: inherit; }
.privacy-note button { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.foot-fan { position: absolute; z-index: -1; right: 0; bottom: 0; width: min(520px, 80vw); height: auto; pointer-events: none; fill: none; stroke: var(--brass); }
.foot-fan .arc { stroke-width: 1.2; opacity: 0.4; }
.foot-fan .ray { stroke-width: 1; opacity: 0.2; }

/* Chinese headings: break at punctuation rather than mid-phrase where the line allows it. */
:lang(zh) :is(.promise, .section-head h2, .foot h2) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .foot h2 { font-size: clamp(28px, 5vw, 56px); }

/* real app screens (sample data), one per step */
.shot { grid-column: 2; margin: 16px 0 0; max-width: 240px; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--hairline-strong); background: var(--canvas); }
.shots-note { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: var(--steel); }
@media (min-width: 900px) {
  .step { grid-template-rows: auto auto 1fr auto; align-content: stretch; }
  .shot { grid-column: auto; margin: 8px 0 0; max-width: none; align-self: end; }
  .shots-note { margin-top: 24px; }
}

/* the doorway's loop, after it has drawn: light rises up both sides of each doorway and meets at the top,
   rippling from the innermost door outwards, while the sunburst shimmers. Slow and calm, like the studio medallion. */
.motif .glint { stroke: var(--card-tint-brass); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(179, 139, 69, 0.8)); stroke-linecap: round; stroke-dasharray: 0.14 2; stroke-dashoffset: 0.14; opacity: 0; animation: glint 9s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.motif .glint.d0 { animation-delay: 2.6s; } .motif .glint.d1 { animation-delay: 2.8s; } .motif .glint.d2 { animation-delay: 3.0s; }
.motif .glint.d3 { animation-delay: 3.2s; } .motif .glint.d4 { animation-delay: 3.4s; } .motif .glint.d5 { animation-delay: 3.6s; }
@keyframes glint {
  0% { stroke-dashoffset: 0.14; opacity: 0; }
  4% { opacity: 0.9; }
  30% { opacity: 0.9; }
  36% { stroke-dashoffset: -1; opacity: 0; }
  100% { stroke-dashoffset: -1; opacity: 0; }
}
.motif .rays path { animation: shimmer 6s ease-in-out infinite alternate; }
.motif .rays path:nth-child(3n+1) { animation-delay: 2.4s; }
.motif .rays path:nth-child(3n+2) { animation-delay: 4.4s; }
.motif .rays path:nth-child(3n) { animation-delay: 6.4s; }
@keyframes shimmer { from { opacity: 0.4; } to { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) {
  .motif .glint { display: none; }
  .motif .rays path { animation: none; }
}
