/* Kwote website. Colours and faces follow the app (src/app/globals.css, src/app/layout.tsx). */
:root {
  --ground: #efece6;
  --panel: #fbfaf7;
  --ink: #1f2224;
  --muted: #5f6264;
  --line: #d9d5cd;
  --soft: #e5e1d9;
  --accent: #b8894a;
  --accent-ink: #85602e;
  --band: #2b2e31;
  --band-ink: #f1ede6;
  --band-muted: #aaa69e;
  --band-line: #464a4d;
  --btn-bg: #1f2224;
  --btn-ink: #fbfaf7;
  --btn-hover: #85602e;
  --focus: #85602e;
  --good: #2c5a31;
  --shadow: 0 1px 0 rgba(0,0,0,.05), 0 22px 44px -24px rgba(31,34,36,.45);
  --paper-ring: rgb(31 34 36 / .08);

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Menlo, Consolas, monospace;
  /* consumed by the generated print stylesheet (assets/document.css) */
  --font-display: "Barlow Condensed";
  --font-body: "Source Sans 3";
  --font-mono: "IBM Plex Mono";
  --font-serif: "Source Serif 4";
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #151718;
    --panel: #1c1f21;
    --ink: #ebe7e0;
    --muted: #a5a19a;
    --line: #34383b;
    --soft: #1e2124;
    --accent: #d2a25f;
    --accent-ink: #e2b676;
    --band: #26292c;
    --band-ink: #f1ede6;
    --band-muted: #a9a59d;
    --band-line: #474b4f;
    --btn-bg: #d2a25f;
    --btn-ink: #141617;
    --btn-hover: #e2b676;
    --focus: #e2b676;
    --good: #9fd3a3;
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 24px 48px -22px rgba(0,0,0,.8);
    --paper-ring: rgb(241 237 230 / .16);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #151718;
  --panel: #1c1f21;
  --ink: #ebe7e0;
  --muted: #a5a19a;
  --line: #34383b;
  --soft: #1e2124;
  --accent: #d2a25f;
  --accent-ink: #e2b676;
  --band: #26292c;
  --band-ink: #f1ede6;
  --band-muted: #a9a59d;
  --band-line: #474b4f;
  --btn-bg: #d2a25f;
  --btn-ink: #141617;
  --btn-hover: #e2b676;
  --focus: #e2b676;
  --good: #9fd3a3;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 24px 48px -22px rgba(0,0,0,.8);
  --paper-ring: rgb(241 237 230 / .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; letter-spacing: .01em; }
p { margin: 0; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

/* header */
.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 24px; color: var(--ink); }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1; }
.beta { font: 600 12px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; padding: 3px 6px 2px; border: 0; border-radius: 2px; background: var(--accent); color: #1f2224; align-self: flex-start; margin-top: 2px; }
.head-nav { display: flex; gap: 22px; margin-right: auto; }
.head-nav a, .link-quiet { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.head-nav a:hover, .link-quiet:hover { color: var(--accent-ink); }
.head-nav a, .link-quiet, .site-head .btn-small { display: inline-flex; align-items: center; min-height: 44px; }
.site-head .brand { padding-block: 10px; }
.head-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
@media (max-width: 760px) { .head-nav { display: none; } .head-row { gap: 12px; } .head-actions { gap: 12px; } }
@media (max-width: 374px) { .beta { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 16px/1 var(--f-body);
  padding: 14px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: transform .15s ease, background-color .15s ease; } }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--soft); }
.btn-small { padding: 10px 14px; font-size: 14.5px; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 88px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { font: 600 15px/1.4 var(--f-body); color: var(--muted); }
.hero-stack { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.stack { position: relative; width: min(100%, 540px); margin-inline: auto; padding: 18px 26px 10px; }
.paper { width: 100%; overflow: hidden; box-shadow: 0 0 0 1px var(--paper-ring), var(--shadow); border-radius: 2px; background: #fff; }
.paper .sheet { zoom: .5; }
.stack .paper { position: relative; }
.stack .paper-1, .stack .paper-2 { position: absolute; inset: 18px 26px auto 26px; width: auto; }
.stack .paper-1 { transform: rotate(-5deg) translate(-14px, 10px); }
.stack .paper-2 { transform: rotate(3.5deg) translate(16px, 4px); }
.stack .paper-3 { z-index: 1; }
.caption { font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .stack { padding-inline: 14px; }
  .stack .paper-1, .stack .paper-2 { inset: 18px 14px auto 14px; }
}

/* sections */
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; }
.band-soft { background: var(--soft); border-block: 1px solid var(--line); padding-block: clamp(48px, 6vw, 84px); }

/* features: the steps of a job, then six one-liners */
.steps { list-style: none; margin: 22px 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; font: 600 1.1rem/1.2 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.steps li { display: flex; align-items: center; }
.steps li:not(:last-child)::after { content: ""; width: 22px; height: 1.5px; background: var(--accent); margin-inline: 10px; }
.steps li:last-child { color: var(--good); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.feature-grid li { padding: 18px 0 20px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.feature-grid h3 { font-size: 1.5rem; text-transform: none; letter-spacing: 0; }
.feature-grid p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } .steps li:not(:last-child)::after { width: 12px; margin-inline: 7px; } }

/* themes: the one dark section */
.band-dark { background: var(--band); color: var(--band-ink); padding-block: clamp(48px, 6vw, 84px); --focus: var(--accent); --paper-ring: rgb(241 237 230 / .16); }
.band-dark .section-lede { color: var(--band-muted); }
.theme-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.theme-tab {
  font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase;
  background: transparent; color: var(--band-ink);
  border: 1px solid var(--band-muted); border-radius: 6px;
  padding: 8px 16px; cursor: pointer;
}
.theme-tab:hover { border-color: var(--band-ink); }
.theme-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #1f2224; }
.theme-sheet { max-width: 720px; }
.theme-sheet .paper { box-shadow: 0 0 0 1px var(--paper-ring), 0 30px 60px -30px rgba(0,0,0,.9); }
.pair { display: grid; gap: 24px; }
.band-dark .mail { color: var(--ink); border-color: var(--band-line); }
@media (max-width: 559px) { .theme-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .theme-sheet { max-width: none; }
  .pair { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
}

/* questions */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px 40px; }
.faq-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq-list div { padding: 16px 0 18px; border-top: 1px solid var(--line); }
.faq-list dt { font-weight: 700; }
.faq-list dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 820px) { .faq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .faq-list { grid-template-columns: minmax(0, 1fr); } }

/* closing section: the invitation */
.start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; border-top: 2px solid var(--ink); margin-block: clamp(40px, 5vw, 64px); padding-top: 28px; }
.start-copy { display: flex; flex-direction: column; gap: 12px; max-width: 36em; }
.start-copy p { color: var(--muted); font-size: 1.1rem; }
.start h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px; background: var(--ground); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.foot-small { font: 14px/1.5 var(--f-body); color: var(--muted); }

/* 404 page */
.not-found { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-block: clamp(64px, 12vw, 160px); }

/* legal pages: each section's title on the left and its text on the right (the questions' grid), one column below 900px */
.legal { padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 88px); }
.legal-head, .legal section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 14px 40px; align-items: start; }
.legal-head { padding-bottom: 36px; }
.legal section { padding-block: 28px 32px; border-top: 1px solid var(--line); }
.legal-head + section { border-top: 2px solid var(--ink); }
/* the terms' parts (A, B, the annex): a title across the page under the same 2px rule, their numbered sections below */
.legal-part { padding-block: 36px 24px; border-top: 2px solid var(--ink); }
.legal-version { margin-top: 14px; font-weight: 600; color: var(--muted); }
.legal section h2 { font-size: 1.75rem; }
.legal h3 { font-size: 1.3rem; }
.legal-body { line-height: 1.6; }
.legal-body > * { margin: 0; }
.legal-body > * + * { margin-top: 14px; }
.legal-body > * + h3 { margin-top: 32px; }
.legal-body p, .legal-body ul { max-width: 70ch; }
.legal-body ul { padding-left: 1.2em; }
.legal-body li + li, .legal-body li > ul { margin-top: 6px; }
.legal-body li::marker { color: var(--accent); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.legal-body th, .legal-body td { padding: 10px 16px 10px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.legal-body thead :is(th, td) { padding-top: 0; border-top: 0; border-bottom: 2px solid var(--ink); font-size: 15px; }
.legal-body tbody th { font-weight: 600; }
.legal code { font-family: var(--f-mono); font-size: .86em; font-weight: 500; white-space: nowrap; }
.legal-body tbody th code { display: block; } /* a cookie's name on its own line, "(session storage)" under it */
@media (max-width: 899px) { .legal-head, .legal section { grid-template-columns: minmax(0, 1fr); } }
/* On a phone each table row is a block: its first cell on top, then each other cell under its column name. */
@media (max-width: 559px) {
  .legal-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .legal-body table, .legal-body tbody, .legal-body tr, .legal-body th, .legal-body td { display: block; }
  .legal-body tbody tr { padding-block: 12px; border-top: 1px solid var(--line); }
  .legal-body tbody th, .legal-body td { padding: 0; border: 0; }
  .legal-body td { margin-top: 6px; }
  .legal-body td::before { content: attr(data-label); display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
}

/* the sign-in guide (the legal pages' layout): each step's number in its own column, its text and picture beside it */
.steps-list { list-style: none; padding: 0; counter-reset: step; max-width: 70ch; }
.steps-list li { counter-increment: step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 10px 12px; padding-block: 18px 12px; border-top: 1px solid var(--line); } /* 12px: .legal-body's li + li adds 6px above the next line */
.steps-list li:first-child { padding-top: 0; border-top: 0; }
.steps-list li::before { content: counter(step); font: 700 2.4rem/.9 var(--f-display); color: var(--accent-ink); }
.steps-list li > * { grid-column: 2; margin: 0; }

/* PDF and email automation: the real email beside five short points */
.send { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 84px); }
.hero + .send { padding-top: clamp(16px, 2vw, 24px); }
.send-copy { display: flex; flex-direction: column; gap: 22px; }
.send-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.send-points li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.send-points li:first-child { border-top: 2px solid var(--ink); }
.send-points b { color: var(--ink); display: block; font-size: 1.05rem; }
.mail { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.mail-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; font-size: 14px; }
.mail-head p { display: flex; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.mail-head span { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 72px; flex: none; padding-top: 2px; }
.mail-file { color: var(--accent-ink); font-weight: 600; }
.mail-body { overflow: hidden; }
.mail-body > table > tbody > tr > td { padding: 18px 12px !important; }
@media (max-width: 900px) { .send { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .mail-head span { width: 60px; } }
