/* Plainword site. Type and colours follow the Mac app canvas, so the site and the app look like one thing. */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
}
/* Source Serif 4 is split in two so each file is served directly by the host (under 40 KB).
   The site uses it at 22-64 px in weights 400 and 600, which these files cover in full. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-core.woff2") format("woff2");
  unicode-range: U+0020-007E, U+00A0, U+00B7, U+2013-2014, U+2018-2019, U+201C-201D, U+2026;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/source-serif-4-ext.woff2") format("woff2");
  unicode-range: U+00A1-00B6, U+00B8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2002, U+2009, U+200B, U+201A, U+201E, U+2022, U+2032-2033, U+2039-203A, U+2044, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  /* The Prep app canvas palette: the nine brand colours plus the canvas's warm grey, faint grey and warning tones. */
  --navy: #15232D;
  --offwhite: #F7F5F0;
  --ink: #3D4A54;
  --muted: #5C6872;
  --card: #FDFCF9;
  --line: #D9DDD8;
  --blue: #1D5A85;
  --lightblue: #8EC3E6;
  --orange: #A84A12;
  --faint: #9AA6AE;
  --warm: #E9E6DF;
  --tint: #E3EDF5;
  --warn: #8A4012;
  --warn-bg: #FBEFE6;
  --warn-line: #E2B48F;

  /* Roles. Dark mode swaps these, not the tokens above. */
  --page: var(--offwhite);
  --text: var(--ink);
  --heading: var(--navy);
  --label: var(--blue);
  --link: var(--blue);
  --link-hover: var(--navy);
  --surface: var(--card);
  --surface-2: var(--warm);
  --rule: var(--line);
  --chip: var(--tint);
  --chip-text: var(--blue);
  --input: #FFFFFF;
  --input-line: var(--line);
  --btn-bg: var(--navy);
  --btn-text: var(--offwhite);
  --mark-ink: var(--navy);
  /* The dark promise banner, as on the app's sign-up screen. */
  --banner: var(--navy);
  --banner-text: var(--offwhite);
  --banner-link: var(--lightblue);

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #15232D;
    --text: #D5DDE3;
    --heading: #F7F5F0;
    --label: #8EC3E6;
    --link: #8EC3E6;
    --link-hover: #F7F5F0;
    --muted: #A9B6C0;
    --surface: #1B2C38;
    --surface-2: #22384A;
    --rule: #2F4150;
    --chip: #22384A;
    --chip-text: #8EC3E6;
    --input: #0F1A22;
    --input-line: #3A4D5B;
    --btn-bg: #F7F5F0;
    --btn-text: #15232D;
    --mark-ink: #F7F5F0;
    --banner: #0E1820;
    --banner-text: #F7F5F0;
    --banner-link: #8EC3E6;
    --warn: #E8A06C;
    --warn-bg: #3A2618;
    --warn-line: #6B4026;
    --faint: #7D8A94;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
input, select, textarea, button { font-family: inherit; }
h1, h2, h3, p, blockquote, dl, dd, ol, ul, figure { margin: 0; }
img { max-width: 100%; }
strong { color: var(--heading); font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.u { text-decoration: underline; }
.fine { font-size: 15px; color: var(--muted); }
/* Text for screen readers only. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header {
  max-width: 1120px; margin: 0 auto; padding: 24px 16px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand-word { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
/* The boxed product name, as in the app's sidebar. */
.brand-product {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--label); border: 1.5px solid currentColor; border-radius: 6px; padding: 2px 7px; line-height: 1.3;
}
.mark { color: var(--mark-ink); flex: 0 0 auto; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 10px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--btn-bg); color: var(--btn-text); border: 0; border-radius: 14px;
  text-decoration: none; font-weight: 600; font-size: 17px; cursor: pointer;
}
.btn:hover { color: var(--btn-text); opacity: 0.92; }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.08; letter-spacing: -0.015em; color: var(--heading); max-width: 900px; }
.lede { font-size: 20px; line-height: 1.5; max-width: 700px; }
.hero-actions { padding-top: 8px; }

/* The promise, verbatim, in the dark banner the app uses. */
.promise-box {
  margin-top: 28px; display: flex; gap: 14px; align-items: flex-start; max-width: 900px;
  background: var(--banner); color: var(--banner-text); border-radius: 14px; padding: 20px 24px;
}
.promise-box p { font-family: var(--serif); font-size: 21px; line-height: 1.45; font-weight: 600; }
.promise-box a { color: var(--banner-link); }
.promise-box a:hover { color: var(--banner-text); }
.lock { color: var(--banner-link); flex: 0 0 auto; margin-top: 4px; }

/* Sections */
.band { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section h2, .section-head h2 { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.15; letter-spacing: -0.01em; color: var(--heading); }
.section h3 { font-size: 18px; font-weight: 600; color: var(--heading); line-height: 1.35; }
.prose { display: flex; flex-direction: column; gap: 14px; max-width: 760px; font-size: 18px; }
.callout { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.35; color: var(--heading); }
.more { font-weight: 500; }

/* How a case goes: the app's case rail, laid flat. */
.rail { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.rail-step { position: relative; background: var(--page); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.rail-step p { font-size: 16px; }
.rail-time { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--chip-text); background: var(--chip); border-radius: 6px; padding: 2px 8px; }
.rail-time::before { content: counter(step) " · "; }

/* What the tutor is allowed to say */
.three { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.three li { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.three p { font-size: 16px; }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; border-radius: 6px; padding: 3px 9px; }
.tag-planted { background: var(--chip); color: var(--chip-text); }
.tag-line { background: var(--surface-2); color: var(--heading); }
.tag-entry { border: 1px solid var(--rule); color: var(--heading); }

/* What stays on your Mac */
.stays { list-style: none; padding: 0; display: flex; flex-direction: column; max-width: 820px; }
.stays li { padding: 14px 0 14px 30px; border-top: 1px solid var(--rule); position: relative; font-size: 18px; }
.stays li:last-child { border-bottom: 1px solid var(--rule); }
.stays li::before { content: ""; position: absolute; left: 4px; top: 24px; width: 10px; height: 10px; border-radius: 3px; background: var(--lightblue); }

/* Cards: compared, and price */
.cards-3, .cards-2 { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.band .card { background: var(--page); }
.card ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.card-ours { border: 1.5px solid var(--label); }
.price .amount { font-family: var(--serif); font-weight: 600; font-size: 40px; line-height: 1; color: var(--heading); }
.terms-line { font-size: 15px; font-weight: 500; color: var(--heading); }
.quote { font-size: 15px; line-height: 1.55; border-left: 3px solid var(--lightblue); padding: 4px 0 4px 14px; color: var(--text); }

/* From the design: a few session lines and the debrief card that cites them */
.peek { padding-bottom: 72px; display: flex; flex-direction: column; gap: 12px; }
.peek-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.screen { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(21, 35, 45, 0.08); }
.screen-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.screen-head h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--heading); }
.speaking { font-size: 14px; font-weight: 600; color: var(--label); }
.turns { list-style: none; padding: 0; }
.turn { display: grid; grid-template-columns: 26px 62px minmax(0, 1fr); gap: 8px; padding: 10px 8px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.5; color: var(--heading); }
.turn-n { font-size: 13px; color: var(--faint); padding-top: 2px; }
.turn-who { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--label); padding-top: 3px; }
.turn-you .turn-who { color: var(--heading); }
.turn-hit { background: var(--warn-bg); border-radius: 10px; border-top-color: transparent; }
.turn-hit + .turn { border-top-color: transparent; }
.miss { border: 1.5px solid var(--heading); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.miss-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.miss-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--heading); }
.badge-warn { font-size: 13px; font-weight: 600; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 1px 9px; }
.miss p { font-size: 17px; line-height: 1.55; color: var(--heading); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Beta form */
.beta { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.page-form .beta { border-bottom: 0; }
.beta-grid { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.beta-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.beta-text h2 { font-family: var(--serif); font-weight: 600; font-size: 38px; line-height: 1.15; color: var(--heading); }
.beta-text > p:not(.eyebrow) { font-size: 17px; max-width: 460px; }

/* Talking to the client: the session screen's header, clock and mic, from the app */
.talk { margin-top: 12px; max-width: 460px; }
.beta-text .promise-box { margin-top: 0; max-width: 460px; }
.beta-text .promise-box p { font-size: 18px; }
.talk-head { display: flex; align-items: center; gap: 12px; }
.talk-title { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.talk-title h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--heading); }
.avatar-d { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--chip); color: var(--chip-text); font-family: var(--serif); font-weight: 600; font-size: 18px; display: grid; place-items: center; }
.speaking { display: flex; align-items: center; gap: 6px; }
.bars { fill: currentColor; flex: 0 0 auto; }
.clock { margin-left: auto; position: relative; width: 52px; height: 52px; flex: 0 0 auto; }
.clock svg { display: block; }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--heading); }
.ring-track { stroke: var(--rule); }
.ring-arc { stroke: var(--heading); }
.still { color: var(--faint); }
.talk-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: 14px; padding: 6px; background: var(--page); }
.mic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--btn-bg); display: grid; place-items: center; }
.mic-dot { width: 14px; height: 14px; border-radius: 50%; background: #EE7A3A; }
.talk-placeholder { flex: 1 1 auto; min-width: 0; font-size: 15px; color: var(--faint); }
.talk-send { flex: 0 0 auto; font-size: 14px; font-weight: 600; color: var(--heading); background: var(--surface-2); border-radius: 10px; padding: 7px 12px; }
.talk-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-card { flex: 1 1 480px; min-width: 0; background: var(--page); border: 1px solid var(--rule); border-radius: 14px; padding: 28px; }
.form-card form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 15px; font-weight: 600; color: var(--heading); padding: 0; }
.field legend { margin-bottom: 6px; }
.field .sub-label { display: block; font-weight: 500; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 46px; padding: 0 14px; border: 1px solid var(--input-line); border-radius: 12px;
  background: var(--input); font-size: 16px; color: var(--heading); width: 100%;
}
.field select { padding: 0 10px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; color: var(--heading); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--blue); }
.form-card .btn { align-self: flex-start; }
.form-card .btn:disabled { opacity: 0.6; cursor: default; }
.form-note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-status { font-size: 15px; color: var(--heading); }
.form-status:empty { display: none; }
.form-done { font-family: var(--serif); font-size: 22px; line-height: 1.4; color: var(--heading); font-weight: 600; }
/* Formspree honeypot: off screen, out of the tab order. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Who is building it */
.who { flex-direction: row; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.who-head { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.avatar { display: block; width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 1px solid var(--rule); background: var(--surface); }
.who-body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; }
.evidence { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--label); border-radius: 12px; background: var(--surface); }
.ev-title { font-weight: 600; font-size: 17px; color: var(--heading); }
a.ev-title { color: var(--link); text-decoration: underline; }
.ev-line { color: var(--muted); font-size: 16px; }

/* Plain answers */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.qa { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--rule); }
.qa dt { font-weight: 600; font-size: 18px; color: var(--heading); }
.qa dd { font-size: 17px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); }
.page-form .site-footer, .band + .site-footer { border-top: 0; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.footer-name { color: var(--heading); font-weight: 500; }
.site-footer a { text-decoration: underline; }

/* Document pages: what leaves your Mac, privacy, terms */
.page-doc { line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
.page-doc .site-header { width: 100%; }
.doc-main { max-width: 880px; width: 100%; margin: 0 auto; padding: 64px 16px 88px; display: flex; flex-direction: column; gap: 24px; flex: 1 0 auto; }
.doc-main h1 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.1; letter-spacing: -0.01em; color: var(--heading); }
.doc-main section { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 17px; }
.doc-main h2 { font-size: 20px; font-weight: 600; color: var(--heading); line-height: 1.3; }
.doc-main ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc-main .promise { background: var(--banner); color: var(--banner-text); border-radius: 14px; padding: 18px 22px; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.45; }
.doc-main .promise a { color: var(--banner-link); }
.defs { display: flex; flex-direction: column; gap: 8px; }
.defs div { display: block; }
.defs dt { display: inline; font-weight: 600; color: var(--heading); margin-right: 0.3em; }
.defs dd { display: inline; }
.doc-source { font-size: 15px; color: var(--muted); }

/* The tables on "what leaves your Mac" */
.table-wrap { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); overflow: hidden; }
.leaves { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.leaves thead tr { background: var(--surface-2); }
.leaves th, .leaves td { text-align: left; padding: 12px 16px; vertical-align: top; }
.leaves thead th { font-weight: 600; color: var(--heading); }
.leaves tbody tr { border-top: 1px solid var(--rule); }
.leaves tbody th { font-weight: 600; color: var(--heading); width: 30%; }
.leaves-4 tbody th { width: 18%; }

/* Phones */
@media (max-width: 719px) {
  .site-header { padding-top: 16px; }
  .main-nav { gap: 0 18px; font-size: 14px; }
  .main-nav a { padding: 6px 0; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: 36px; }
  .lede { font-size: 18px; }
  .promise-box { padding: 16px 18px; }
  .promise-box p { font-size: 18px; }
  .section, .beta-grid { padding-top: 56px; padding-bottom: 56px; }
  .section h2, .section-head h2, .beta-text h2 { font-size: 30px; }
  .callout { font-size: 21px; }
  .rail, .three, .cards-3, .cards-2, .faq, .peek-grid { grid-template-columns: 1fr; }
  .peek { padding-bottom: 48px; }
  .screen { padding: 16px; }
  .turn { grid-template-columns: 22px 54px minmax(0, 1fr); gap: 6px; font-size: 15px; }
  .form-card { padding: 20px; }
  .doc-main { padding-top: 40px; }
  .doc-main h1 { font-size: 34px; }
  .doc-main .promise { font-size: 18px; }
  /* Each table row becomes a card; the column name shows above each cell. */
  .table-wrap { border: 0; border-radius: 0; background: transparent; }
  .leaves, .leaves tbody, .leaves tr, .leaves th, .leaves td { display: block; width: auto; }
  .leaves thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .leaves tbody tr { border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
  .leaves tbody th, .leaves-4 tbody th { width: auto; padding: 0 0 6px; font-size: 16px; }
  .leaves td { padding: 6px 0 0; }
  .leaves td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

/* Middle widths: the five-step rail wraps before it gets cramped. */
@media (min-width: 720px) and (max-width: 1023px) {
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: 1fr; }
}
