:root {
  --paper: #f4f0e8;
  --paper-light: #fbf9f4;
  --ink: #161713;
  --muted: #68685f;
  --line: #cbc7bc;
  --blue: #2762ff;
  --blue-dark: #1745c7;
  --acid: #d9ff62;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }

.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; letter-spacing: -0.03em; text-decoration: none; }
.brand-mark { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; }
.site-header nav { display: flex; align-items: center; gap: 31px; font-size: 13px; font-weight: 650; }
.site-header nav a { text-decoration: none; }
.site-header nav a:not(.nav-install):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-install { padding: 12px 17px; color: white; background: var(--ink); }

.hero {
  width: min(1380px, calc(100% - 64px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(620px, 1.22fr);
  gap: 68px;
  align-items: center;
  padding: 72px 0 90px;
}
.eyebrow { margin: 0 0 25px; text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgb(39 98 255 / 13%); }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(82px, 8vw, 132px); line-height: .78; font-weight: 500; letter-spacing: -.075em; }
.lede { max-width: 540px; margin: 42px 0 0; color: #3e3f39; font-family: var(--serif); font-size: 22px; line-height: 1.46; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 37px; }
.button { display: inline-flex; min-height: 51px; padding: 0 23px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 0; cursor: pointer; font-size: 13px; font-weight: 750; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-quiet { padding-inline: 4px; background: transparent; }
.button-outline { border-color: var(--ink); background: transparent; }
.button-outline:hover { color: white; background: var(--ink); }
.button-light { color: var(--ink); background: var(--paper-light); }
.button-outline-light { color: white; border-color: rgb(255 255 255 / 55%); background: transparent; }
.button-outline-light:hover { color: var(--ink); background: white; }
.microcopy { margin-top: 20px; color: var(--muted); font-size: 11px; }

.product-frame { min-width: 0; border: 1px solid #292b29; color: #eeeee9; background: #151716; box-shadow: 18px 22px 0 #d7d2c6; }
.frame-bar { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #333633; font: 11px var(--mono); color: #a4a8a1; }
.frame-state { display: flex; align-items: center; gap: 7px; }
.frame-state i { width: 6px; height: 6px; border-radius: 50%; background: #70d278; box-shadow: 0 0 7px #70d278; }
.workbench { display: grid; grid-template-columns: 1fr .9fr; min-height: 485px; }
.editor-pane, .preview-pane { position: relative; min-width: 0; padding-top: 47px; }
.editor-pane { display: grid; grid-template-columns: 42px 1fr; border-right: 1px solid #343735; }
.pane-label { position: absolute; top: 17px; left: 18px; font: 9px var(--mono); letter-spacing: .16em; color: #787c76; }
.line-numbers { padding: 6px 12px 0 0; color: #555a55; font: 12px/3.75 var(--mono); text-align: right; user-select: none; }
.source-copy { min-width: 0; padding: 3px 22px 25px 4px; font: 13px/1.65 var(--mono); }
.source-copy p { margin: 0 0 30px; }
.tex { color: #73b7ff; }
.natural-line { position: relative; color: #fff; }
.period { color: var(--acid); }
.progress-track { display: flex; gap: 3px; width: 88px; height: 4px; margin: -21px 0 33px; }
.progress-track span, .compile-meter i { flex: 1; background: #414541; animation: fill-cell 2.25s infinite; }
.progress-track span:nth-child(2), .compile-meter i:nth-child(2) { animation-delay: .15s; }
.progress-track span:nth-child(3), .compile-meter i:nth-child(3) { animation-delay: .3s; }
.progress-track span:nth-child(4), .compile-meter i:nth-child(4) { animation-delay: .45s; }
.progress-track span:nth-child(5), .compile-meter i:nth-child(5) { animation-delay: .6s; }
.progress-track span:nth-child(6), .compile-meter i:nth-child(6) { animation-delay: .75s; }
@keyframes fill-cell { 0%, 12% { background: #414541; } 20%, 70% { background: var(--blue); } 82%, 100% { background: #414541; } }
.command-line { color: #c7cac4; }
.command-line span { color: var(--acid); }
.preview-pane { padding-inline: 22px; background: #1b1d1c; }
.paper { min-height: 396px; padding: 42px 34px; color: #1c1d1a; background: #f8f7f2; font-family: var(--serif); box-shadow: 0 3px 18px rgb(0 0 0 / 25%); }
.paper-kicker { margin: 0 0 23px; color: #6d6d66; font: 8px var(--sans); letter-spacing: .15em; }
.paper h2 { margin: 20px 0 8px; font-size: 18px; }
.paper p { margin: 0; font-size: 13px; line-height: 1.52; }
.matrix { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 27px 0; }
.paren { font-size: 57px; font-weight: 200; line-height: 1; transform: scaleX(.55); }
.matrix-values { font-size: 15px; line-height: 1.45; text-align: center; }

.principle-strip { min-height: 110px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(32px, calc((100vw - 1380px) / 2)); color: white; background: var(--blue); }
.principle-strip p { margin: 0; font: 19px var(--mono); letter-spacing: -.04em; }
.principle-strip span { padding: 0 14px; color: var(--acid); }
.principle-strip .principle-note { font: 13px var(--sans); letter-spacing: 0; opacity: .75; }
.real-demo { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 125px 0 58px; }
.demo-heading { display: grid; grid-template-columns: 1fr 440px; align-items: end; gap: 70px; margin-bottom: 50px; }
.demo-heading .eyebrow { margin-bottom: 18px; color: var(--blue); }
.demo-heading h2 { margin: 0; font: 500 clamp(52px, 6vw, 84px)/.9 var(--serif); letter-spacing: -.055em; }
.demo-heading > p { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.demo-reel { overflow: hidden; border: 1px solid #2c2e2c; background: #171918; box-shadow: 18px 20px 0 #d7d2c6; }
.demo-reel video { display: block; width: 100%; aspect-ratio: 16 / 10; background: #171918; }
.demo-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; color: var(--muted); font: 11px var(--mono); }
.demo-caption span:first-child { color: var(--ink); font-weight: 700; }
.demo-caption i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #70d278; box-shadow: 0 0 7px #70d278; }
.voice-strip { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 82px 0 5px; display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 42px; }
.voice-strip .eyebrow { margin-bottom: 14px; color: var(--blue); }
.voice-strip h2 { margin: 0; font: 500 clamp(34px, 4vw, 54px)/1 var(--serif); letter-spacing: -.045em; }
.voice-strip p:not(.eyebrow) { max-width: 720px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.voice-strip .compatibility-note { font-size: 10px; }
.voice-icon { height: 92px; display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--blue); border: 1px solid var(--line); background: var(--paper-light); }
.voice-icon i { width: 5px; height: 18px; background: currentColor; animation: voice-wave 1.2s ease-in-out infinite alternate; }
.voice-icon i:nth-child(2), .voice-icon i:nth-child(6) { height: 34px; animation-delay: -.2s; }
.voice-icon i:nth-child(3), .voice-icon i:nth-child(5) { height: 54px; animation-delay: -.4s; }
.voice-icon i:nth-child(4) { height: 72px; animation-delay: -.6s; }
@keyframes voice-wave { to { transform: scaleY(.35); opacity: .55; } }

.overleaf-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 82px; padding-top: 120px; }
.overleaf-copy .eyebrow { margin-bottom: 18px; color: var(--blue); }
.overleaf-copy h2 { margin: 0; font: 500 clamp(48px, 5vw, 72px)/.93 var(--serif); letter-spacing: -.055em; }
.overleaf-copy > p:not(.eyebrow) { margin: 25px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.marker-pair { display: grid; gap: 1px; margin: 30px 0; border: 1px solid var(--line); background: var(--line); }
.marker-pair > div { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; background: var(--paper-light); }
.marker-pair code { font: 12px var(--mono); }
.marker-pair span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .11em; }
.overleaf-window { overflow: hidden; color: #ecede8; border: 1px solid #292b29; background: #151716; box-shadow: 16px 18px 0 #d7d2c6; }
.overleaf-bar { height: 39px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid #343735; }
.overleaf-bar span { width: 7px; height: 7px; border-radius: 50%; background: #535753; }
.overleaf-bar b { margin-left: 8px; color: #999d96; font: 10px var(--mono); }
.overleaf-code { min-height: 330px; display: grid; grid-template-columns: 38px 1fr; align-content: center; row-gap: 25px; padding: 33px 28px 33px 0; font: 12px/1.6 var(--mono); }
.overleaf-code i { color: #565b56; font-style: normal; text-align: right; }
.overleaf-code p { margin: 0 0 0 14px; overflow-wrap: anywhere; }
.overleaf-code p span { color: var(--acid); }
.overleaf-code .overleaf-result { color: #72b6ff; }

.section { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 135px 0; }
.section-heading { max-width: 740px; margin-bottom: 65px; }
.section-heading h2 { margin: 0; font: 500 clamp(46px, 5vw, 76px)/.99 var(--serif); letter-spacing: -.05em; }
.section-heading > p:last-child { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.section-heading.compact { max-width: 650px; }
.section-heading.compact h2 { font-size: clamp(42px, 4vw, 62px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.feature { min-height: 355px; padding: 34px; background: var(--paper-light); }
.feature-wide { grid-column: span 2; }
.feature-number { display: block; margin-bottom: 72px; color: var(--blue); font: 10px var(--mono); }
.feature h3 { margin: 0 0 16px; font: 500 31px var(--serif); letter-spacing: -.035em; }
.feature p { max-width: 510px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.dark-feature { color: white; background: var(--ink); }
.dark-feature p { color: #adafa8; }
.dark-feature .feature-number { color: var(--acid); }
.sentence-demo { display: flex; align-items: center; gap: 17px; margin-top: 38px; padding: 18px; color: #464741; border-left: 3px solid var(--blue); background: #efede6; font: 12px var(--mono); }
.sentence-demo b { color: var(--blue); }
.sentence-demo code { color: var(--ink); }
.compile-meter { display: flex; gap: 4px; width: 115px; height: 7px; margin-top: 45px; }

.proof-section { width: 100%; max-width: none; padding-inline: max(32px, calc((100vw - 1200px) / 2)); color: white; background: #171816; }
.proof-section .eyebrow { color: var(--acid); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #3b3c38; }
.metrics > div { min-height: 245px; padding: 38px 30px 38px 0; }
.metrics > div + div { padding-left: 38px; border-left: 1px solid #3b3c38; }
.metrics strong { display: block; font: 500 72px var(--serif); letter-spacing: -.06em; }
.metrics strong span { font-size: 25px; color: var(--acid); letter-spacing: -.02em; }
.metrics p { max-width: 250px; color: #a9aaa3; font-size: 13px; line-height: 1.55; }
.metric-caveat { margin-top: 18px; color: #73766f; font-size: 10px; }

.pricing-section { padding-bottom: 115px; }
.pricing-heading { max-width: 780px; text-align: center; margin-inline: auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 490px)); justify-content: center; gap: 20px; }
.pricing-grid-single { grid-template-columns: minmax(0, 560px); }
.price-card { position: relative; padding: 42px; border: 1px solid var(--line); background: var(--paper-light); }
.lifetime-card { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 12px 12px 0 #cfcabf; }
.best-for { position: absolute; top: 16px; right: 17px; padding: 7px 9px; color: var(--ink); background: var(--acid); font: 800 9px var(--sans); letter-spacing: .1em; }
.plan-name { margin: 0 0 31px; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .09em; }
.price { font: 500 83px/.85 var(--serif); letter-spacing: -.08em; }
.price span { display: inline-block; margin-right: 5px; font: 25px var(--sans); vertical-align: top; transform: translateY(9px); }
.price-detail { min-height: 43px; margin: 24px 0 28px; color: var(--muted); font-size: 13px; }
.lifetime-card .price-detail { color: #dce5ff; }
.price-card .button { width: 100%; }
.lifetime-card .button { color: var(--blue); background: white; }
.lifetime-card .button:hover { color: var(--ink); background: var(--acid); }
.price-card ul { display: grid; gap: 14px; margin: 34px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 13px; }
.lifetime-card ul { border-color: rgb(255 255 255 / 27%); }
.price-card li::before { content: "✓"; margin-right: 11px; color: var(--blue); font-weight: 900; }
.lifetime-card li::before { color: var(--acid); }
.quota-note { margin: 24px 0 0; color: #c7d4ff; font-size: 10px; line-height: 1.5; }
.student-price { margin: 18px 0 0; padding: 13px 15px; color: var(--ink); background: var(--acid); font-size: 11px; line-height: 1.45; }
.pricing-bottom { max-width: 720px; margin: 41px auto 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.checkout-error { margin: 11px 0 0; color: #fff6bd; font-size: 12px; }
.checkout-button[disabled] { cursor: wait; opacity: .75; transform: none; }

.faq-section { padding-top: 80px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 27px 3px; cursor: pointer; list-style: none; font: 500 21px var(--serif); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--blue); font: 300 26px var(--sans); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; margin: -5px 0 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.faq-list code { font-family: var(--mono); font-size: .9em; }

.final-cta { padding: 115px 32px; color: white; background: var(--blue); text-align: center; }
.final-cta .eyebrow { color: var(--acid); }
.final-cta h2 { margin: 0 0 42px; font: 500 clamp(58px, 7vw, 100px)/.9 var(--serif); letter-spacing: -.06em; }
.final-actions, .success-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
footer { width: min(1380px, calc(100% - 64px)); min-height: 145px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 30px; color: var(--muted); font-size: 11px; }
.footer-brand { color: var(--ink); }
footer nav { display: flex; gap: 22px; }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; }

.legal-page, .success-page { min-height: calc(100vh - 223px); width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0 120px; }
.legal-page h1, .success-page h1 { margin: 0 0 22px; font: 500 clamp(52px, 7vw, 80px)/.95 var(--serif); letter-spacing: -.055em; }
.legal-page h2 { margin: 45px 0 14px; font: 500 28px var(--serif); }
.legal-page p, .legal-page li, .success-page > p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.legal-date { margin-bottom: 50px; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.license-box { margin: 39px 0 24px; padding: 27px; color: white; background: var(--ink); }
.license-box label { display: block; margin-bottom: 11px; color: var(--acid); font: 10px var(--mono); letter-spacing: .1em; }
.license-row { display: flex; gap: 9px; }
.license-row input { min-width: 0; flex: 1; padding: 13px; color: white; border: 1px solid #50534d; background: #222421; font: 13px var(--mono); }
.license-row button { border: 0; color: var(--ink); background: var(--acid); padding: 0 18px; font-size: 12px; font-weight: 800; cursor: pointer; }
.success-steps { margin: 40px 0; padding-left: 22px; }
.success-steps li { margin: 11px 0; line-height: 1.6; }
.success-actions { justify-content: flex-start; margin-top: 32px; }
.loading-line { display: flex; gap: 5px; width: 110px; height: 7px; margin: 30px 0; }
.loading-line i { flex: 1; background: var(--line); animation: fill-cell 1.8s infinite; }
.loading-line i:nth-child(2) { animation-delay: .12s; }.loading-line i:nth-child(3) { animation-delay: .24s;}.loading-line i:nth-child(4) { animation-delay: .36s;}.loading-line i:nth-child(5) { animation-delay: .48s;}.loading-line i:nth-child(6) { animation-delay: .6s;}

.account-page { min-height: calc(100vh - 223px); width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 120px; }
.account-intro { max-width: 680px; }
.account-intro h1 { margin: 0 0 22px; font: 500 clamp(54px, 7vw, 88px)/.91 var(--serif); letter-spacing: -.06em; }
.account-intro > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; }
.auth-card { max-width: 540px; margin-top: 45px; padding: 34px; border: 1px solid var(--line); background: var(--paper-light); }
.auth-card h2 { margin: 0 0 10px; font: 500 29px var(--serif); }
.auth-card > p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.auth-form { display: flex; gap: 8px; margin-top: 23px; }
.auth-form input { min-width: 0; flex: 1; padding: 0 15px; border: 1px solid var(--line); background: white; }
.auth-form .button { width: auto; }
.form-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; }
.form-error { margin: 15px 0 0; color: #a42619; font-size: 12px; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 50px; }
.dashboard-head h1 { margin: 0; font: 500 clamp(48px, 6vw, 78px)/.95 var(--serif); letter-spacing: -.055em; }
.account-email { color: var(--muted); font-size: 13px; }
.dashboard-actions { display: flex; gap: 8px; }
.dashboard-actions .button { min-height: 43px; }
.account-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-card { min-height: 170px; padding: 25px; background: var(--paper-light); }
.stat-card p { margin: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.stat-card strong { display: block; margin-top: 29px; font: 500 45px var(--serif); letter-spacing: -.05em; }
.stat-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }
.account-panel { margin-top: 25px; padding: 32px; border: 1px solid var(--line); background: var(--paper-light); }
.account-panel h2 { margin: 0 0 13px; font: 500 31px var(--serif); }
.account-panel > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.license-inline { display: flex; gap: 8px; margin-top: 22px; }
.license-inline input { min-width: 0; flex: 1; padding: 13px; border: 1px solid var(--line); background: white; font: 12px var(--mono); }
.license-inline button { padding: 0 18px; border: 0; color: white; background: var(--ink); font-size: 12px; font-weight: 700; }
.device-list { display: grid; gap: 1px; margin-top: 20px; background: var(--line); }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; background: white; font-size: 12px; }
.device-row span:last-child { color: var(--muted); }
.education-badge { display: inline-block; margin-left: 8px; padding: 5px 8px; color: var(--ink); background: var(--acid); font-size: 9px; font-weight: 800; letter-spacing: .08em; vertical-align: middle; }
.purchase-panel { color: white; border-color: var(--blue); background: var(--blue); }
.purchase-panel > p { color: #d8e2ff; }
.purchase-price { margin: 27px 0; font: 500 63px var(--serif); letter-spacing: -.06em; }
.purchase-price s { margin-left: 8px; color: #b4c5ff; font-size: 23px; }
.purchase-panel .button { color: var(--blue); background: white; }

.platform-page { min-height: calc(100vh - 223px); width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 100px 0 130px; }
.platform-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .56fr); column-gap: 72px; align-items: end; }
.platform-intro .eyebrow, .install-steps .eyebrow { color: var(--blue); }
.platform-intro h1 { grid-column: 1; margin: 0; font: 500 clamp(63px, 7vw, 104px)/.88 var(--serif); letter-spacing: -.065em; }
.platform-intro > p:not(.eyebrow, .platform-note) { grid-column: 2; grid-row: 2; margin: 0 0 7px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.platform-intro > .button { grid-column: 1; width: fit-content; margin-top: 42px; }
.platform-intro .platform-note { grid-column: 1; max-width: 530px; margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.install-steps { margin-top: 112px; padding: 62px; border: 1px solid var(--line); background: var(--paper-light); }
.install-steps ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin: 35px 0 0; padding: 0; background: var(--line); list-style: none; counter-reset: install; }
.install-steps li { min-height: 225px; padding: 25px 22px; background: var(--paper-light); counter-increment: install; }
.install-steps li::before { content: "0" counter(install); display: block; margin-bottom: 60px; color: var(--blue); font: 10px var(--mono); }
.install-steps b { display: block; margin-bottom: 13px; font: 500 21px var(--serif); }
.install-steps span { color: var(--muted); font-size: 11px; line-height: 1.65; }
.install-steps code { font-family: var(--mono); font-size: .9em; }
.platform-proof { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border: 1px solid var(--ink); background: var(--ink); gap: 1px; }
.platform-proof > div { min-height: 180px; padding: 28px; background: var(--paper); }
.platform-proof strong { display: block; color: var(--blue); font: 500 47px var(--serif); letter-spacing: -.06em; }
.platform-proof p { max-width: 255px; margin: 29px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
@media (max-width: 800px) { .account-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-head { align-items: flex-start; flex-direction: column; }.dashboard-actions { width: 100%; }.dashboard-actions .button { flex: 1; } }
@media (max-width: 520px) { .auth-form { flex-direction: column; }.auth-form input { min-height: 50px; }.auth-form .button { width: 100%; }.account-grid { grid-template-columns: 1fr; }.license-inline { flex-direction: column; }.license-inline button { min-height: 44px; } }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 60px; }
  .hero-copy { max-width: 680px; }
  .product-frame { width: 100%; }
  .demo-heading { grid-template-columns: 1fr; gap: 28px; }
  .overleaf-section { grid-template-columns: 1fr; gap: 55px; }
  .overleaf-copy { max-width: 700px; }
  .platform-intro { grid-template-columns: 1fr; }
  .platform-intro > p:not(.eyebrow, .platform-note), .platform-intro > .button, .platform-intro .platform-note { grid-column: 1; grid-row: auto; }
  .platform-intro > p:not(.eyebrow, .platform-note) { max-width: 680px; margin-top: 34px; }
  .install-steps ol { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-wide { grid-column: span 2; }
  .metrics strong { font-size: 60px; }
}
@media (max-width: 720px) {
  .site-header, .hero, .section, .platform-page, footer { width: min(100% - 36px, 1200px); }
  .site-header { height: 67px; }
  .site-header nav a:not(.nav-install) { display: none; }
  .nav-install { padding: 10px 12px; }
  .hero { min-height: 0; padding: 62px 0 68px; }
  .hero h1 { font-size: clamp(73px, 24vw, 105px); }
  .lede { margin-top: 31px; font-size: 19px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 8px; }
  .button { width: 100%; }
  .product-frame { box-shadow: 8px 10px 0 #d7d2c6; }
  .workbench { grid-template-columns: 1fr; }
  .editor-pane { min-height: 390px; border-right: 0; border-bottom: 1px solid #343735; }
  .preview-pane { padding-bottom: 22px; }
  .principle-strip { min-height: 130px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding-inline: 18px; }
  .principle-strip p { font-size: 13px; }
  .principle-strip span { padding: 0 5px; }
  .real-demo { width: min(100% - 36px, 1200px); padding: 82px 0 40px; }
  .demo-heading { margin-bottom: 34px; }
  .demo-reel { box-shadow: 8px 10px 0 #d7d2c6; }
  .demo-caption { align-items: flex-start; flex-direction: column; line-height: 1.5; }
  .voice-strip { width: min(100% - 36px, 1200px); padding-top: 62px; grid-template-columns: 86px 1fr; gap: 20px; }
  .voice-strip .button { grid-column: 1 / -1; }
  .overleaf-section { padding-top: 75px; }
  .overleaf-window { box-shadow: 8px 10px 0 #d7d2c6; }
  .overleaf-code { min-height: 300px; padding-right: 15px; font-size: 10px; }
  .section { padding: 90px 0; }
  .section-heading { margin-bottom: 42px; }
  .feature-grid, .pricing-grid, .metrics { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; }
  .feature { min-height: 315px; padding: 28px; }
  .feature-number { margin-bottom: 50px; }
  .sentence-demo { align-items: flex-start; flex-direction: column; }
  .proof-section { width: 100%; padding-inline: 18px; }
  .metrics > div { min-height: 190px; }
  .metrics > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #3b3c38; }
  .price-card { padding: 34px 26px; }
  .final-actions, .success-actions { align-items: stretch; flex-direction: column; }
  .platform-page { padding: 65px 0 90px; }
  .platform-intro h1 { font-size: clamp(58px, 18vw, 82px); }
  .platform-intro > .button { width: 100%; }
  .install-steps { margin-top: 75px; padding: 28px 20px; }
  .install-steps ol, .platform-proof { grid-template-columns: 1fr; }
  .install-steps li { min-height: 185px; }
  .install-steps li::before { margin-bottom: 38px; }
  .platform-proof > div { min-height: 155px; }
  footer { grid-template-columns: 1fr 1fr; padding: 34px 0; }
  footer nav { justify-self: end; }
  footer > p:not(.copyright) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
