/* Timeprint DB landing — styles translated from the Claude Design mock */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url('../fonts/archivo-latin.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/plex-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/plex-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic.woff2') format('woff2'); }

:root {
  --paper: #f6f4f0;
  --card: #fffefc;
  --card-dim: #f9f7f4;
  --ink: #17161a;
  --ink-2: #4b463f;
  --ink-3: #6b6660;
  --ink-4: #8b857d;
  --ink-5: #a09a92;
  --rule: #ddd8d1;
  --accent: #c2560c;
  --accent-hot: #f0821e;
  --accent-soft: #ffb057;
  --accent-bg: #fbf1e8;
  --accent-line: #f0dcc9;
  --night: #17161a;
  --night-deep: #0f0e11;
  --night-rule: #322f36;
  --night-text: #f4f1ec;
  --night-body: #b5afa7;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Helvetica, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: 44px;
  --label-col: 180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--accent-hot); color: #fff; }
code { font-family: var(--mono); }

.wrap { max-width: 1300px; margin: 0 auto; }
.mono { font-family: var(--mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 240, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { padding: 0 var(--gutter); height: 76px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 30px; width: 30px; display: block; }
.brand span { font-size: 17px; font-weight: 500; letter-spacing: 0.09em; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 500; }
.beta-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent-line); background: var(--accent-bg);
  padding: 3px 7px; border-radius: 2px;
}
.site-nav { display: flex; gap: 20px; margin-left: auto; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.site-nav a { color: var(--ink-3); }
.site-nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: 16px; font-weight: 600; padding: 16px 28px; border-radius: 2px; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); line-height: 1.2; transition: background .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fffdf9; }
.btn-primary:hover { background: var(--ink); color: #fffdf9; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-sm { font-size: 14px; padding: 9px 18px; }

/* ---------- Sections / chapter grid ---------- */
.section { padding: 120px var(--gutter); border-bottom: 1px solid var(--rule); }
.section.dark { background: var(--night); color: var(--night-text); border-bottom: 0; }
.chapter { display: grid; grid-template-columns: var(--label-col) 1fr; gap: 44px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); padding-top: 16px; line-height: 1.9; }
.label.muted { color: var(--ink-5); }
.dark .label { color: var(--accent-hot); }

h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; text-wrap: pretty; }
h1 { font-size: clamp(52px, 8vw, 104px); line-height: 0.96; letter-spacing: -0.02em; max-width: 20ch; }
h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.015em; max-width: 22ch; }
h2 em { font-style: italic; }
.dark h2 em { color: var(--accent-soft); }

.body { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.dark .body { color: var(--night-body); }
.body + .body { margin-top: 22px; }
.body code { font-size: 16px; color: var(--accent); }
.dark .body code { color: var(--accent-soft); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 44px; align-items: start; }

.shot { margin-top: 56px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); padding: 8px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 2px; }
.shot-frame { position: relative; }
.shot-callout { position: absolute; max-width: 40%; margin: 0; padding: 12px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink-2); background: var(--accent-bg); border: 1px solid var(--accent-line); border-left: 3px solid var(--accent); border-radius: 2px; }
.shot-callout b { color: var(--accent); font-weight: 500; }
.shot-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 10px 2px 2px; }
.shot-theme { display: flex; border: 1px solid var(--rule); border-radius: 99px; overflow: hidden; font-family: var(--mono); font-size: 12px; }
.shot-theme[hidden] { display: none; }
.shot-theme button { font: inherit; color: var(--ink-3); background: none; border: 0; padding: 5px 14px; cursor: pointer; }
.shot-theme button[aria-pressed="true"] { color: #fffdf9; background: var(--ink-2); }
.shot-theme button:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: -2px; }
.shot-note { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--ink-4); line-height: 1.5; }
.dark .shot { border-color: var(--night-rule); background: var(--night-deep); }
.shot-placeholder { height: 260px; border-radius: 2px; background: repeating-linear-gradient(135deg, #efebe5 0 10px, #f6f3ee 10px 20px); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--ink-4); line-height: 1.8; }
.shot-placeholder span { color: var(--ink-2); }

/* Card grids (1px rule between cells) */
.cells { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.cell { background: var(--card); padding: 20px 22px; }
.cell h3 { margin: 0; font-size: 15px; font-weight: 600; }
.cell p { margin: 5px 0 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.cells.three { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.cells.three .cell { padding: 26px; }
.query { font-family: var(--mono); font-size: 13px; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: 2px; padding: 9px 11px; margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 96px var(--gutter) 0; }
.hero .label { color: var(--ink-5); padding-top: 14px; }
.hero-lower { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; margin-top: 48px; align-items: end; }
.hero-lower .body { font-size: 19px; line-height: 1.6; }
.cta-stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.fine { font-family: var(--mono); font-size: 12px; color: var(--ink-4); line-height: 1.8; }
.hero .shot { margin-top: 88px; box-shadow: 0 30px 60px -30px rgba(23, 22, 26, 0.25); }
.hero .shot-callout { left: 54%; top: 31%; } /* empty right half of S1's header card */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.stat { padding: 26px 0 26px 26px; border-right: 1px solid var(--rule); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--serif); font-size: 40px; line-height: 1; }
.stat .n.accent { color: var(--accent); }
.stat .k { font-family: var(--mono); font-size: 11px; color: var(--ink-4); margin-top: 8px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.body.strong { color: var(--ink); font-weight: 500; }

/* Ownership tree */
.tree { margin-top: 28px; border: 1px solid var(--rule); background: var(--card); border-radius: 4px; padding: 24px; font-family: var(--mono); font-size: 13px; line-height: 2; color: var(--ink-2); overflow-x: auto; white-space: nowrap; }
.tree .root { color: var(--ink); }
.tree .hl { color: var(--accent); }
.tree .dim { color: var(--ink-5); }

/* People chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; font-family: var(--mono); font-size: 12px; }
.chips span { border: 1px solid var(--rule); background: var(--card); color: var(--ink-2); padding: 7px 13px; border-radius: 99px; }

/* Code panel */
.code { border: 1px solid var(--night-rule); border-radius: 4px; background: var(--night-deep); overflow: hidden; }
.code-head { padding: 13px 18px; border-bottom: 1px solid #262329; font-family: var(--mono); font-size: 12px; color: #77716a; display: flex; gap: 9px; align-items: center; }
.code-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-hot); display: block; }
.code pre { margin: 0; padding: 22px; font-family: var(--mono); font-size: 13px; line-height: 1.95; color: var(--night-body); overflow-x: auto; }
.code .kw { color: #77716a; } .code .id { color: var(--accent-soft); } .code .lit { color: var(--accent-hot); } .code .cm { color: #5a554f; }

/* Pull quote + inline link to the form */
.pull { margin: 56px 0 0; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.aside-link { display: inline-block; margin-top: 28px; font-family: var(--mono); font-size: 13px; }

/* Ch02: jobs, proof cells, stated limit */
.jobs { margin: 44px 0 0; padding: 0; list-style: none; counter-reset: job; display: grid; gap: 14px; }
.jobs li { counter-increment: job; display: flex; gap: 18px; font-size: 20px; line-height: 1.5; color: var(--night-text); }
.jobs li::before { content: counter(job, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--accent-hot); padding-top: 7px; }
.cells.proof { grid-template-columns: repeat(3, 1fr); margin-top: 44px; }
.cells.proof .cell { padding: 24px; }
.cells.proof .cell:last-child:nth-child(3n+2) { grid-column: span 2; }
.cell h3 code { font-size: 14px; color: var(--accent); }
.dark .cells { background: var(--night-rule); border-color: var(--night-rule); }
.dark .cell { background: var(--night-deep); }
.dark .cell h3 { color: var(--night-text); }
.dark .cell p { color: var(--night-body); }
.dark code { color: var(--accent-soft); }
.limit { margin: 32px 0 0; font-family: var(--mono); font-size: 13px; line-height: 1.8; color: var(--night-body); max-width: 80ch; }
.limit b { color: var(--accent-hot); font-weight: 500; }

/* Ch03: dark sub-panel, sub-headings */
.panel-dark { margin-top: 56px; background: var(--night); color: var(--night-text); border-radius: 4px; padding: 40px; }
.panel-dark h3, h3.sub { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.panel-dark h3 span { font-family: var(--mono); font-size: 12px; color: var(--accent-hot); margin-left: 10px; white-space: nowrap; }
.panel-dark .body { color: var(--night-body); max-width: 70ch; }
.panel-dark .shot { margin-top: 32px; border-color: var(--night-rule); background: var(--night-deep); }
#ai { margin-top: 64px; }
.body.after { margin-top: 36px; max-width: 62ch; }

/* Ch05: questions and answers */
.qa { margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--night-rule); border: 1px solid var(--night-rule); border-radius: 4px; overflow: hidden; }
.qa > div { background: var(--night-deep); padding: 28px; }
.qa dt { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--night-text); }
.qa dd { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--night-body); }
.qa a { color: var(--accent-soft); }
.qa a:hover { color: var(--night-text); }

/* State B interlude */
.state-b { text-align: center; }
.state-b .wrap { max-width: 860px; }
.state-b .body { margin: 20px auto 0; max-width: 58ch; }
.state-b .pull { margin: 36px auto 0; }

.section.roadmap { padding: 110px var(--gutter); }
.roadmap .label { padding-top: 10px; }

/* Roadmap */
.roadmap h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.06; max-width: 26ch; }
.roadmap .cells { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.roadmap .cell { background: var(--card-dim); padding: 16px 20px; font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; }
.roadmap .cell span { font-family: var(--mono); color: var(--ink-5); }

/* ---------- Beta / interview ---------- */
.beta .cols { margin-top: 44px; }
.offer { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.offer li { background: var(--card); padding: 16px 20px; font-size: 15px; color: var(--ink-2); line-height: 1.5; display: flex; gap: 14px; }
.offer li b { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--accent); padding-top: 3px; white-space: nowrap; }

.signup { border: 1px solid var(--rule); background: var(--card); border-radius: 4px; padding: 28px; }
.signup label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.signup .field { margin-bottom: 20px; }
.signup input[type=email], .signup select, .signup textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-radius: 2px; padding: 12px 14px;
}
.signup textarea { min-height: 96px; resize: vertical; }
.signup input:focus, .signup select:focus, .signup textarea:focus { outline: 2px solid var(--accent-hot); outline-offset: -1px; border-color: transparent; }
.signup .check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink-2); line-height: 1.5; margin-bottom: 22px; cursor: pointer; }
.signup .check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.signup .btn { width: 100%; }
.signup .note { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--ink-4); line-height: 1.7; }
.form-status { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.form-status.ok { color: #2f7a3a; }
.form-status.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.signup .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.signup input[type=text] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; padding: 12px 14px; }
.signup label .opt { text-transform: none; letter-spacing: 0; }
.signup .note a { color: inherit; }

/* Plain text pages (privacy.html) */
.prose { max-width: 64ch; }
.prose h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1; margin-bottom: 24px; }
.prose h2 { font-size: 28px; margin: 40px 0 10px; }
.prose p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.prose a { color: var(--accent); }

/* Thank-you state that replaces the form after submit */
.signup-done { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.signup-done:focus { outline: none; }
.signup-done h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--ink); margin: 0 0 18px; }
.signup-done p { margin: 0 0 14px; }
.signup-done .fine code { overflow-wrap: anywhere; }
.signup-done .done-warn { color: #b3261e; }
.signup-done a { color: var(--accent); }

/* ---------- Final CTA ---------- */
.get { padding: 140px var(--gutter) 120px; text-align: center; }
.get .wrap { max-width: 900px; }
.get img { width: 76px; height: 76px; display: block; margin: 0 auto 34px; }
.get h2 { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.02em; max-width: none; }
.get .body { margin: 26px auto 0; font-size: 19px; line-height: 1.6; max-width: 50ch; }
.get .actions { display: flex; gap: 14px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.get .fine { margin-top: 26px; font-size: 13px; }
.get h2 em { font-style: italic; color: var(--accent); }

/* Download row + first 10 minutes */
.download-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 56px; text-align: left; }
.dl-main .fine { margin-top: 16px; }
.dl-main code { font-size: 11px; word-break: break-all; }
.smartscreen { margin: 0; }
.smartscreen img { display: block; width: 100%; max-width: 320px; height: auto; border: 1px solid var(--rule); border-radius: 2px; }
.smartscreen figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.first-ten { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--rule); text-align: left; }
.steps { margin: 20px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps .shot-placeholder.sm { height: 130px; border: 1px solid var(--rule); }
.steps h3 { margin: 16px 0 0; font-size: 17px; font-weight: 600; }
.steps h3::before { content: counter(step) '. '; color: var(--accent); }
.steps p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.get .pricing { margin-top: 56px; color: var(--ink-4); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 40px var(--gutter); }
.site-footer .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-footer .brand { color: var(--ink-3); gap: 10px; }
.site-footer .brand img { height: 22px; width: 22px; }
.site-footer .brand span { font-size: 14px; letter-spacing: 0.08em; }
.site-footer .fine { margin-left: auto; color: var(--ink-5); }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; }
.footer-links a { color: var(--ink-3); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .shot-callout { position: static; max-width: none; margin-top: 10px; font-size: 12px; }
  .cells.proof { grid-template-columns: repeat(2, 1fr); }
  .cells.proof .cell:last-child:nth-child(3n+2) { grid-column: auto; }
  .cells.proof .cell:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .chapter { grid-template-columns: 1fr; gap: 20px; }
  .label { padding-top: 0 !important; }
  .label br { display: none; }
  .label .sep::before { content: ' · '; }
  .hero { padding-top: 56px; }
  .hero-lower, .cols { grid-template-columns: 1fr; gap: 28px; }
  .hero .shot { margin-top: 56px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:first-child { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--rule); display: flex; align-items: baseline; gap: 16px; }
  .stat .k { margin-top: 0; }
  .qa, .download-row, .steps { grid-template-columns: 1fr; }
  .panel-dark { padding: 28px 20px; }
  .cells.three { grid-template-columns: 1fr; }
  .roadmap .cells { grid-template-columns: 1fr; }
  .section { padding: 80px var(--gutter); }
  .section.roadmap { padding: 72px var(--gutter); }
  .get { padding: 96px var(--gutter) 80px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .beta-tag { display: none; }
  .cells.proof, .signup .field-row { grid-template-columns: 1fr; }
  .cells.proof .cell:last-child:nth-child(odd) { grid-column: auto; }
  .jobs li { font-size: 18px; }
  .panel-dark h3 span { display: block; margin: 8px 0 0; }
  .body { font-size: 17px; }
  .btn { padding: 15px 22px; }
  .hero-lower .btn { width: 100%; text-align: center; }
}
