/* LateFrame website. Brand: Inter Tight (self-hosted), graphite + signal yellow, see the brand guide. */
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("fonts/InterTight-400.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("fonts/InterTight-600.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 800; font-display: swap; src: url("fonts/InterTight-800.woff2") format("woff2"); }

:root {
  --yellow: #FFD21F;
  --graphite: #0F1012;
  --panel: #16181C;
  --line: #24272C;
  --chalk: #F4F1EA;
  --body: #D9DCE1;
  --steel: #A3A8B0;
  --max: 1080px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--graphite);
  color: var(--body);
  font-family: "Inter Tight", -apple-system, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--chalk); text-decoration-color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.lockup { display: flex; align-items: center; gap: 6px; text-decoration: none; }
.lockup .mark { width: 44px; height: 44px; }
.lockup .word { height: 23px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 16px; }
.nav a { text-decoration: none; color: var(--steel); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--chalk); }

/* Hero */
.hero { padding: 96px 0 72px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin: 0 0 18px; }
h1, h2, h3 { color: var(--chalk); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(48px, 9vw, 104px); }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.45; color: var(--body); max-width: 760px; margin: 26px 0 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; }
.pill-yellow { background: var(--yellow); color: var(--graphite); }
.pill-yellow:hover { color: var(--graphite); background: #FFE36B; }
.cta-note { color: var(--steel); font-size: 16px; }

/* Framed moment (the brand's corner device) */
.frame { position: relative; padding: 44px; }
.frame::before, .frame::after, .frame > .c3, .frame > .c4 { content: ""; position: absolute; width: 34px; height: 34px; border: 0 solid var(--yellow); }
.frame::before { left: 0; top: 0; border-left-width: 5px; border-top-width: 5px; }
.frame::after { right: 0; top: 0; border-right-width: 5px; border-top-width: 5px; }
.frame > .c3 { left: 0; bottom: 0; border-left-width: 5px; border-bottom-width: 5px; }
.frame > .c4 { right: 0; bottom: 0; border-right-width: 5px; border-bottom-width: 5px; }

/* Features */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--panel); border-radius: 18px; padding: 28px; }
.card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.card p { margin: 0; font-size: 17px; }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }

.origin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.origin blockquote { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--chalk); }

/* Long-form pages (privacy, support) */
.doc { padding: 72px 0 96px; max-width: 760px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); }
.doc .updated { color: var(--steel); font-size: 15px; margin: 14px 0 40px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc p, .doc li { font-size: 18px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.summary { background: var(--panel); border-radius: 18px; padding: 24px 28px; margin: 0 0 8px; border-left: 4px solid var(--yellow); }
.summary p { margin: 0; color: var(--chalk); }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--chalk); font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; }
.contact { display: inline-block; margin-top: 8px; font-size: 22px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--steel); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--steel); text-decoration: none; }
.site-footer a:hover { color: var(--chalk); }

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .hero { padding: 64px 0 48px; }
  .grid, .origin { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 56px 0; }
  .nav { gap: 16px; }
  .lockup .mark { width: 36px; height: 36px; }
  .lockup .word { height: 19px; }
  .frame { padding: 32px 24px; }
}

/* Teaser front page (design B on the canvas: the page is the viewfinder) */
.teaser { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 120px 40px; text-align: center; }
.teaser .corner { position: absolute; width: 90px; height: 90px; border: 0 solid var(--yellow); }
.teaser .tl { left: 48px; top: 48px; border-left-width: 7px; border-top-width: 7px; }
.teaser .tr { right: 48px; top: 48px; border-right-width: 7px; border-top-width: 7px; }
.teaser .bl { left: 48px; bottom: 48px; border-left-width: 7px; border-bottom-width: 7px; }
.teaser .br { right: 48px; bottom: 48px; border-right-width: 7px; border-bottom-width: 7px; }
.teaser .lockup .mark { width: 56px; height: 56px; }
.teaser .lockup .word { height: 29px; }
.teaser h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.035em; }
.teaser .soon { display: inline-flex; align-items: center; padding: 15px 26px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--yellow); color: var(--yellow); font-weight: 600; font-size: 19px; }
.teaser .legal { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 22px; font-size: 14px; }
.teaser .legal a { color: #5A5F66; text-decoration: none; }
.teaser .legal a:hover { color: var(--chalk); }
@media (max-width: 760px) {
  .teaser { gap: 26px; padding: 100px 28px; }
  .teaser .corner { width: 44px; height: 44px; }
  .teaser .tl, .teaser .tr { top: 20px; } .teaser .bl, .teaser .br { bottom: 20px; }
  .teaser .tl, .teaser .bl { left: 20px; } .teaser .tr, .teaser .br { right: 20px; }
  .teaser .tl { border-left-width: 5px; border-top-width: 5px; } .teaser .tr { border-right-width: 5px; border-top-width: 5px; }
  .teaser .bl { border-left-width: 5px; border-bottom-width: 5px; } .teaser .br { border-right-width: 5px; border-bottom-width: 5px; }
  .teaser .lockup .mark { width: 40px; height: 40px; }
  .teaser .lockup .word { height: 21px; }
  .teaser .soon { font-size: 16px; padding: 13px 22px; }
  .teaser .legal { bottom: 30px; font-size: 13px; }
}

/* Front page intro (assets/intro.js): a figure runs along the headline and flips into the mark.
   Without the .intro class on <html> (no JavaScript, reduced motion) the page shows the finished state. */
.lockup.big { --m: 96px; gap: 0; }
.lockup.big .markbox { position: relative; width: var(--m); height: var(--m); }
.lockup.big .markbox img { position: absolute; inset: 0; width: 100%; height: 100%; }
.lockup.big .wordwrap { display: block; overflow: hidden; max-width: 520px; }
.lockup.big .wordwrap .word { height: calc(var(--m) * 0.518); margin-left: calc(var(--m) * 0.12); max-width: none; }
.teaser h1 .bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.teaser .stage { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.intro .lockup.big .wordwrap { max-width: 0; transition: max-width 2s cubic-bezier(.25,.6,.2,1) 0.14s; }
.intro .lockup.big .markbox .figure { opacity: 0; }
.intro .teaser .fade { opacity: 0; transform: translateY(8px); transition: opacity 2s ease, transform 2s ease; }
.intro .teaser .rig { transition: opacity 0.12s linear; }
.intro .done .lockup.big .wordwrap { max-width: 520px; }
.intro .done .lockup.big .markbox .figure { opacity: 1; }
.intro .done .fade { opacity: 1; transform: none; }
.intro .done .fade.d1 { transition-delay: 0.45s; }
.intro .done .fade.d2 { transition-delay: 0.75s; }
.intro .done .stage .rig { opacity: 0; }
@media (max-width: 760px) { .lockup.big { --m: 68px; } }
