/* Shared shell for the secondary pages (Privacy & Security, About us, Careers).
   Same tokens and type as phone2.html — Albert Sans + Georgia, the same
   colours — kept in one file so the three pages stay in step. There is no
   Figma redline for these pages yet; the layout borrows the landing page's
   "practical parts" and pricing rhythm (32 px gutters, 36 px serif titles,
   16/20.8 body). */

@font-face {
  font-family: "Albert Sans";
  src: url("/assets/fonts/AlbertSans-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("/assets/fonts/AlbertSans-Italic-var.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #EFF3F6;
  --ink: #000521;
  --ink-2: #4D5270;
  --ink-3: #737998;
  --blue: #0B2EDB;
  --line: #E5E6EC;
  --card: #F1F2F8;
  --white: #FFFFFF;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 20.8px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol { margin: 0; }
img { display: block; }
a { color: var(--blue); }

.page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 32px 32px 0;
}
.topbar__logo { width: 50px; height: 25px; }
.topbar__back {
  font-weight: 500;
  font-size: 14px;
  line-height: 16px;
  color: var(--ink-2);
  text-decoration: none;
}
.topbar__links { display: none; }

/* ---------- content ---------- */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding: 80px 32px 100px;
}
.head { display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  font-weight: 400;
  font-size: 14px;
  line-height: 15.4px;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  color: var(--blue);
}
.h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 36px;
  letter-spacing: -0.72px;
}
.h2 {
  font-weight: 900;
  font-size: 20px;
  line-height: 26px;
}
.prose { display: flex; flex-direction: column; gap: 44px; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ol { padding-left: 22px; }
.prose li::marker { color: var(--ink-3); }
.prose sup { font-size: 0.7em; line-height: 0; color: var(--blue); }
/* Italic asides and asterisked footnotes, as in the source doc */
.prose .note { font-style: italic; }
.prose .footnote {
  font-size: 14px;
  line-height: 18.2px;
  color: var(--ink-3);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* Privacy & Security: an effective date, then two summary parts, each a
   serif title over its own run of sections */
.effective { font-weight: 500; font-size: 14px; line-height: 18.2px; color: var(--ink-3); }
.part { display: flex; flex-direction: column; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.part__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  line-height: 30px;
  letter-spacing: -0.56px;
  color: var(--ink);
}
.fine { font-size: 14px; line-height: 18.2px; color: var(--ink-3); }

/* About us: intro copy, then one card per founder */
.about__intro { display: flex; flex-direction: column; gap: 16px; }
.about__intro p { font-size: 16px; line-height: 20.8px; color: var(--ink); }
.founders { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.founder {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: 32px;
  background: var(--card);
}
.founder__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--blue);
}
.founder__text { display: flex; flex-direction: column; gap: 12px; }
.founder__name { font-weight: 900; font-size: 20px; line-height: 26px; color: var(--ink); }
.founder__text p { color: var(--ink-2); }

/* FAQs: one collapsed row per question, same pattern as the pricing card's
   expandable rows on the landing page */
.prose:has(.faq) { gap: 0; }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .h2 { font-size: 17px; line-height: 22px; }
.faq summary img { flex: none; width: 24px; height: 24px; transition: transform 200ms ease; }
.faq[open] summary img { transform: rotate(180deg); }
.faq__body { display: flex; flex-direction: column; gap: 12px; padding: 0 0 24px; }
.faq__body p, .faq__body li { color: var(--ink-2); }
.faq__body .footnote { margin-top: 4px; }

/* Careers: an intro, a "How we work" facts grid, then one row per open role.
   Each role page repeats the head (title, meta, Apply) over prose sections. */
.lead { display: flex; flex-direction: column; gap: 16px; }
.lead p { font-size: 16px; line-height: 20.8px; color: var(--ink); }
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin: 4px 0 0;
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
}
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-weight: 400; font-size: 12px; line-height: 14px; letter-spacing: 0.36px; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 20.8px; color: var(--ink); }
.facts sup { font-size: 0.7em; line-height: 0; color: var(--blue); }
.prose .roles { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 0; }
.role { border-top: 1px solid var(--line); }
.role:last-child { border-bottom: 1px solid var(--line); }
.role a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  color: inherit;
  text-decoration: none;
}
.role a > span { display: flex; flex-direction: column; gap: 4px; }
.role__title { font-weight: 900; font-size: 17px; line-height: 22px; color: var(--ink); }
.role__meta { font-weight: 500; font-size: 14px; line-height: 18.2px; color: var(--ink-3); }
.role__arrow { flex: none; width: 24px; height: 24px; color: var(--blue); transition: transform 200ms ease; }
.role a:hover .role__arrow { transform: translateX(4px); }
.apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}
.head .apply { margin-top: 8px; }
.apply__alt { font-weight: 500; font-size: 14px; line-height: 18.2px; color: var(--ink-3); }
.apply__alt a { color: var(--ink-2); }
.head .apply__alt { margin-top: -12px; }
.prose .posting__cta .apply__alt { margin-top: -4px; }
.eyebrow a { color: inherit; text-decoration: none; }
.posting__meta { font-weight: 500; font-size: 14px; line-height: 18.2px; color: var(--ink-3); }
.prose .posting__cta { padding-top: 24px; border-top: 1px solid var(--line); }
.prose .posting__cta .apply { margin-top: 8px; }
.prose .question { font-style: italic; color: var(--ink); }

/* Unlock: the password page app.js serves for every gated route */
.unlock__form { display: flex; flex-direction: column; gap: 12px; }
.unlock__label { padding: 0 8px; font-weight: 500; font-size: 14px; line-height: 18.2px; color: var(--ink-3); }
.unlock__input {
  width: 100%;
  height: 60px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 20.8px;
  appearance: none;
  -webkit-appearance: none;
}
.unlock__input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.unlock__error { font-weight: 500; font-size: 14px; line-height: 18.2px; color: #E0523C; padding: 0 8px; }
.unlock__go { width: 100%; height: 60px; border: 0; border-radius: 16px; margin-top: 4px; cursor: pointer; font-family: inherit; }

/* Legal pages (/privacy, /terms-of-service, generated by tools/legal/build.py) and
   the summary lists on /privacy-security */
.legal__actions { font-weight: 500; font-size: 14px; line-height: 18.2px; color: var(--ink-3); }
.toc { padding: 20px 24px; border-radius: 16px; background: var(--card); }
.toc__title { font-weight: 700; font-size: 14px; line-height: 18.2px; color: var(--ink); margin-bottom: 8px; }
.toc ol { padding-left: 20px; gap: 4px; }
.toc li { color: var(--ink-2); font-size: 14px; line-height: 18.2px; }
.toc a { color: var(--ink-2); }
.legal section { scroll-margin-top: 24px; }
.inshort {
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--card);
  color: var(--ink) !important;
}
.prose .lead p { color: var(--ink); }
.prose ul.plain { list-style: none; padding: 0; }
.prose ul.plain li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 8px; }
/* /privacy-security: one expand/collapse row per section, like the FAQ rows;
   closed it shows the title and the In short line, open the section's full text */
.short { border-top: 1px solid var(--line); }
.short:last-of-type { border-bottom: 1px solid var(--line); }
.short summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  cursor: pointer;
}
.short summary::-webkit-details-marker { display: none; }
.short__head { display: flex; flex-direction: column; gap: 6px; }
.short__title { font-size: 17px; line-height: 22px; color: var(--blue); }
.short__line { font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.short summary img { flex: none; width: 24px; height: 24px; margin-top: 0; transition: transform 200ms ease; }
.short[open] summary img { transform: rotate(180deg); }
.short__body { display: flex; flex-direction: column; gap: 12px; padding: 0 0 24px; }
.short__body p, .short__body li { color: var(--ink-2); }
.short__body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.short__body strong { color: var(--ink); }
.prose a.more { font-weight: 600; }
@media print {
  .topbar, .colophon, .legal__actions, .toc { display: none !important; }
  body { background: #fff; color: #000; }
  .page { max-width: none; }
  .content { padding: 0; gap: 28px; }
  .prose { gap: 24px; }
  .inshort { background: #f1f2f8; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .legal section { break-inside: avoid-page; }
  a { color: inherit; text-decoration: none; }
  @page { margin: 18mm 18mm 20mm; }
}

/* Empty-state note while a page has no copy yet */
.placeholder {
  padding: 24px 28px;
  border-radius: 16px;
  background: var(--card);
  color: var(--ink-3);
}

/* ---------- footer, same as the landing page's colophon ---------- */
.colophon {
  padding: 44px 32px;
  background: #C0DFFC;
  display: flex;
  flex-direction: column;
  gap: 27px;
  color: var(--ink);
}
.colophon__logo { width: 87px; height: 43.5px; }
.colophon__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.colophon__links a { font-weight: 600; font-size: 14px; line-height: 18.2px; color: var(--ink); text-decoration: none; }
.colophon__links a[aria-current="page"] { color: var(--blue); }
.colophon__lines { display: flex; flex-direction: column; gap: 8px; }
.colophon p { font-weight: 500; font-size: 14px; line-height: 18.2px; }
.colophon__lines a { color: var(--ink); opacity: 0.6; text-decoration: underline; }

/* ---------- desktop (1024 and up) ----------
   Same scheme as phone2.html: the 1920-wide composition scaled by the unit
   --u, type sizes with floors so nothing gets smaller than the phone sizes.
   The landing page's desktop header and footer are mirrored here; the body
   is one reading column, with the founders as a three-up row. */
@media (min-width: 1024px) {
  :root { --u: calc(100vw / 1920); }
  .page { max-width: none; }

  .topbar {
    align-items: center;
    padding: calc(40 * var(--u)) calc(60 * var(--u)) 0;
    color: var(--blue);
  }
  .topbar__logo { width: calc(70 * var(--u)); height: calc(35 * var(--u)); }
  .topbar__back { display: none; }
  .topbar__links {
    display: flex;
    align-items: center;
    gap: calc(40 * var(--u));
    font-weight: 400;
    font-size: max(15px, calc(16 * var(--u)));
    line-height: 1;
  }
  .topbar__links a { color: inherit; text-decoration: none; }
  .topbar__links a[aria-current="page"] { font-weight: 600; }
  .topbar__links .topbar__explore {
    font-weight: 500;
    padding-left: calc(24 * var(--u));
    border-left: 1px solid currentColor;
    opacity: 0.9;
  }

  .content {
    align-items: center;
    gap: calc(64 * var(--u));
    padding: calc(140 * var(--u)) calc(120 * var(--u)) calc(160 * var(--u));
  }
  .content > * { width: min(100%, max(560px, calc(760 * var(--u)))); }  /* ~70 characters a line */
  .head { gap: calc(24 * var(--u)); }
  .h1 { font-size: max(36px, calc(64 * var(--u))); line-height: 1; letter-spacing: -0.02em; }
  .h2 { font-size: max(20px, calc(24 * var(--u))); line-height: 1.3; }
  .prose { gap: calc(56 * var(--u)); }
  .prose section { gap: calc(16 * var(--u)); }
  .prose p, .prose li, .about__intro p { font-size: max(16px, calc(20 * var(--u))); line-height: 1.4; }
  .prose ul, .prose ol { gap: calc(8 * var(--u)); }
  .prose .footnote, .effective, .fine { font-size: max(14px, calc(16 * var(--u))); line-height: 1.4; }

  .part { gap: calc(40 * var(--u)); padding-top: calc(40 * var(--u)); }
  .part__title { font-size: max(28px, calc(40 * var(--u))); line-height: 1.1; letter-spacing: -0.02em; }

  /* founders: a three-up row, wider than the reading column it sits in
     (.prose section is more specific than .founders, hence the prefix) */
  .prose .founders {
    width: min(max(calc(1180 * var(--u)), 900px), calc(100vw - 240 * var(--u)));
    margin-left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(24 * var(--u));
    padding-top: calc(40 * var(--u));
  }
  .founders .h2 { grid-column: 1 / -1; }
  .founder { gap: calc(24 * var(--u)); padding: calc(32 * var(--u)); border-radius: calc(32 * var(--u)); }
  .founder__photo { width: calc(120 * var(--u)); height: calc(120 * var(--u)); }
  .founder__name { font-size: max(20px, calc(24 * var(--u))); line-height: 1.3; }
  .founder__text { gap: calc(12 * var(--u)); }
  .founder__text p { font-size: max(15px, calc(18 * var(--u))); line-height: 1.4; }

  .lead p { font-size: max(16px, calc(20 * var(--u))); line-height: 1.4; }
  .facts { gap: calc(24 * var(--u)) calc(32 * var(--u)); padding: calc(32 * var(--u)); border-radius: calc(24 * var(--u)); }
  .facts dt { font-size: max(12px, calc(13 * var(--u))); }
  .facts dd { font-size: max(16px, calc(18 * var(--u))); line-height: 1.4; }
  .role a { padding: calc(28 * var(--u)) 0; }
  .role__title { font-size: max(18px, calc(24 * var(--u))); line-height: 1.3; }
  .role__meta { font-size: max(14px, calc(16 * var(--u))); line-height: 1.4; }
  .apply { padding: calc(16 * var(--u)) calc(32 * var(--u)); border-radius: calc(12 * var(--u)); font-size: max(15px, calc(16 * var(--u))); }
  .posting__meta { font-size: max(14px, calc(16 * var(--u))); line-height: 1.4; }
  .apply__alt { font-size: max(14px, calc(15 * var(--u))); line-height: 1.4; }
  .prose .posting__cta { padding-top: calc(40 * var(--u)); }
  .unlock .head, .unlock__form { width: min(100%, max(420px, calc(520 * var(--u)))); }
  .legal__actions, .toc li { font-size: max(14px, calc(16 * var(--u))); line-height: 1.4; }
  .toc { padding: calc(24 * var(--u)) calc(28 * var(--u)); }
  .inshort { padding: calc(16 * var(--u)) calc(20 * var(--u)); }
  .short summary { padding: calc(22 * var(--u)) 0; gap: calc(24 * var(--u)); }
  .short__title { font-size: max(17px, calc(22 * var(--u))); line-height: 1.3; }
  .short__line { font-size: max(15px, calc(18 * var(--u))); }
  .short__body { gap: calc(14 * var(--u)); padding-bottom: calc(32 * var(--u)); }
  .short__body p, .short__body li { font-size: max(16px, calc(18 * var(--u))); line-height: 1.45; }
  .unlock__input, .unlock__go { height: calc(60 * var(--u)); min-height: 52px; font-size: max(16px, calc(16 * var(--u))); }

  .colophon {
    height: calc(164 * var(--u));
    padding: calc(60 * var(--u));
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: calc(40 * var(--u));
  }
  .colophon__logo { width: calc(87 * var(--u)); height: calc(43.5 * var(--u)); }
  .colophon__links { gap: calc(32 * var(--u)); }
  .colophon__links a, .colophon p { font-size: max(13px, calc(14 * var(--u))); }
  .colophon__lines { flex-direction: row; gap: calc(32 * var(--u)); }
}
