/* Shared by privacy.html, terms.html and support.html. Tokens, type and the
   hill landscape are lifted from landing.html so these pages read as the same
   product; the only new idea is the per-page ground colour on the masthead,
   which borrows the plan tiles' palette. */

:root {
  --shell: #f7f5f1; --card: #fcfaf7; --ink: #1c1b19; --muted: #6b655e; --stone: #e9e4dc;
  --ember: #f45a2a; --ember-solid: #cc3d0e; --ember-solid-hover: #b83408;
  --viridian: #344945; --sage: #dce3d4;
  --serif: "Newsreader", Georgia, serif; --sans: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  /* Masthead ground; each page sets its own. */
  --ground: #e6ecdf; --hill-back: #d5e0c8; --hill-front: #eef3e8; --label: #33463f;
}
.page-privacy { --ground: #e6ecdf; --hill-back: #d5e0c8; --hill-front: #eef3e8; --label: #33463f; }
.page-terms   { --ground: #e3edf3; --hill-back: #cfe0ea; --hill-front: #eff5f8; --label: #2f5a6e; }
.page-support { --ground: #f7e9e0; --hill-back: #f0d6c6; --hill-front: #fbf2ec; --label: #9c3c14; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--shell); color: var(--ink);
  font: 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
::selection { color: #fff; background: var(--ember); }
:focus-visible { outline: 2px solid var(--viridian); outline-offset: 3px; border-radius: 8px; }
.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* Header: the landing page's translucent bar, present from the start since
   there is no hero for it to arrive over. */
.site-header { position: sticky; top: 0; z-index: 20; padding: calc(env(safe-area-inset-top) + 14px) 0 14px; }
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(247, 245, 241, .86);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(233, 228, 220, .9);
}
.nav { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.nav-links { display: flex; gap: 22px; font-size: .8125rem; color: var(--muted); }
.nav-links a, .nav-end a { text-decoration: none; transition: color 160ms ease; }
.nav-links a:hover, .nav-end a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-end { display: flex; justify-content: end; font-size: .8125rem; color: var(--muted); }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: .92; text-decoration: none; transition: opacity 180ms ease, transform 180ms var(--ease); }
.brand:hover { opacity: .76; transform: translateY(-1px); }
.brand small { font: italic 400 .625rem/1.2 var(--serif); }
.brand strong { font: 600 1.125rem/1 var(--serif); letter-spacing: .08em; }
.brand em { font: italic 400 .75rem/1.25 var(--serif); }
@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .brand { justify-self: start; }
}

/* Masthead: a tile of ground with the landing page's hills along its foot. */
.masthead {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 20px; padding: 56px 40px 112px; border-radius: 24px;
  background: var(--ground);
}
.masthead .eyebrow {
  margin: 0 0 18px; color: var(--label);
  font: 700 .6875rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase;
}
.masthead h1 {
  position: relative; z-index: 2; margin: 0; max-width: 14ch; text-wrap: balance;
  font: 400 clamp(2.75rem, 7vw, 5rem)/1.02 var(--serif); letter-spacing: -.05em;
}
.masthead h1 em { color: var(--ember); font-style: italic; }
.masthead .dek {
  position: relative; z-index: 2; max-width: 46ch; margin: 18px 0 0;
  color: var(--muted); font-size: 1.0625rem; line-height: 1.65; text-wrap: pretty;
}
.masthead .updated { position: relative; z-index: 2; margin: 22px 0 0; color: var(--label); font-size: .8125rem; opacity: .9; }
.ground { position: absolute; inset: auto -1px -1px; height: 97px; pointer-events: none; z-index: 1; }
.ground svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hill-back { fill: var(--hill-back); }
.hill-front { fill: var(--hill-front); }
/* Only Support gets the sun: it is the one page that is about a person
   answering, and the landing page keeps the sun for warm moments too. */
.sky { position: absolute; inset: 0 0 18px; z-index: 0; overflow: hidden; pointer-events: none; }
.sun {
  position: absolute; right: 14%; bottom: 40px;
  width: clamp(96px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ember); transform: translateY(50%);
}
@media (max-width: 640px) {
  .masthead { margin-top: 12px; padding: 40px 22px 92px; border-radius: 20px; }
  .ground { height: 76px; }
  .sun { right: 8%; bottom: 26px; }
}

/* Load: one settle for the masthead, nothing else moves. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sunrise { from { transform: translateY(85%); } to { transform: translateY(50%); } }
.masthead .eyebrow, .masthead h1, .masthead .dek, .masthead .updated { animation: rise 700ms var(--ease) both; }
.masthead h1 { animation-delay: 60ms; }
.masthead .dek { animation-delay: 120ms; }
.masthead .updated { animation-delay: 160ms; }
.sun { animation: sunrise 1100ms var(--ease) 120ms both; }

/* Layout: a reading column, with a contents rail beside it when there is room. */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; }
@media (min-width: 980px) {
  .layout.has-rail { grid-template-columns: 200px minmax(0, 680px); justify-content: center; gap: 72px; }
}
.prose { max-width: 680px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { color: #3a3631; font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: rgba(28, 27, 25, .3); text-underline-offset: 3px; transition: text-decoration-color 160ms ease; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
.prose ul li { position: relative; margin: 0 0 10px; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--hill-back); box-shadow: inset 0 0 0 1.5px var(--label); opacity: .9; }

.lead { font-size: 1.1875rem !important; color: var(--ink) !important; line-height: 1.65 !important; }

section.clause { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--stone); }
section.clause:first-of-type { border-top: 0; margin-top: 8px; padding-top: 24px; }
.clause h2 {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 14px;
  font: 400 clamp(1.625rem, 3vw, 2rem)/1.12 var(--serif); letter-spacing: -.035em; text-wrap: balance;
}
.clause h2 .num {
  flex: 0 0 auto; min-width: 1.6em; color: var(--ember-solid);
  font: 600 .75rem/1 var(--sans); letter-spacing: .12em; font-variant-numeric: tabular-nums;
  transform: translateY(-.35em);
}

/* At a glance: three promises a reader is really looking for, before the detail. */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.glance li { margin: 0 !important; padding: 20px 18px 22px !important; border-radius: 18px; background: var(--card); border: 1px solid var(--stone); font-size: .9375rem !important; line-height: 1.5 !important; }
.glance li::before { display: none; }
.glance b { display: block; margin-bottom: 6px; color: var(--ink); font: 400 1.25rem/1.15 var(--serif); letter-spacing: -.02em; }
@media (max-width: 720px) { .glance { grid-template-columns: 1fr; } }

/* What we collect: rows rather than a table, so it holds together at 375px. */
.ledger { margin: 8px 0 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--stone); overflow: hidden; }
.ledger-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding: 18px 20px; }
.ledger-row + .ledger-row { border-top: 1px solid var(--stone); }
.ledger-row dt { margin: 0; color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.5; }
.ledger-row dt span { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: .9375rem; }
.ledger-row dd { margin: 0; color: #3a3631; font-size: .9375rem; line-height: 1.55; }
.ledger-head { padding-top: 14px; padding-bottom: 12px; background: rgba(233, 228, 220, .35); }
.ledger-head dt, .ledger-head dd { color: var(--label); font: 700 .6875rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 600px) {
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
  .ledger-head { display: none; }
}

/* Contents rail. */
.rail { display: none; }
@media (min-width: 980px) {
  .rail { display: block; position: sticky; top: 104px; align-self: start; }
  .rail p { margin: 0 0 14px; color: var(--muted); font: 700 .6875rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
  .rail ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--stone); }
  .rail a {
    position: relative; display: block; padding: 6px 0 6px 16px; margin-left: -1px;
    border-left: 2px solid transparent; color: var(--muted);
    font-size: .8125rem; line-height: 1.35; text-decoration: none;
    transition: color 160ms ease, border-color 200ms var(--ease);
  }
  .rail a:hover { color: var(--ink); }
  .rail a.is-current { color: var(--ink); border-left-color: var(--ember); }
}

/* Support: the contact block. */
.contact-card {
  display: grid; gap: 18px; margin: 0 0 8px; padding: 28px; border-radius: 22px;
  background: var(--viridian); color: #fff;
}
.contact-card h2 { margin: 0; font: 400 clamp(1.75rem, 3.4vw, 2.25rem)/1.08 var(--serif); letter-spacing: -.04em; }
.contact-card p { margin: 0; color: rgba(255, 255, 255, .84) !important; font-size: 1rem !important; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .9375rem 1.4rem; border: 0; border-radius: 999px;
  font: 600 .9375rem/1 var(--sans); text-decoration: none !important; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms ease, box-shadow 160ms ease;
}
.button.primary { color: #fff; background: var(--ember-solid); }
.button.primary:hover { background: var(--ember-solid-hover); transform: translateY(-2px); }
.button.ghost { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.button.ghost:hover { background: rgba(255, 255, 255, .16); }
/* Feedback lands on the press, not the release. */
.button:active { transform: scale(.97); transition-duration: 90ms; }
.button svg { width: 18px; height: 18px; flex: 0 0 auto; }
.button .done { display: none; }
.button.is-copied .idle { display: none; }
.button.is-copied .done { display: inline; }
.contact-card .hint { font-size: .875rem !important; color: rgba(255, 255, 255, .7) !important; }
@media (max-width: 460px) {
  .contact-card { padding: 24px 20px; }
  .contact-actions .button { flex: 1 1 100%; }
}

/* Support: questions. Native details/summary so it works with no script. */
.faq { margin: 0; border-top: 1px solid var(--stone); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font: 400 1.3125rem/1.25 var(--serif); letter-spacing: -.02em;
  transition: color 160ms ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--viridian); }
.faq summary:active .chev { transform: scale(.9); }
.chev {
  flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--stone);
  transition: transform 260ms var(--ease), background 160ms ease;
}
.chev svg { width: 14px; height: 14px; transition: transform 320ms var(--ease); }
.faq details[open] .chev svg { transform: rotate(45deg); }
.faq details[open] .chev { background: var(--ground); }
.faq .answer { padding: 0 2px 22px; }
.faq .answer p { margin: 0; }
/* Where the browser can animate to auto height, open and close move instead of cut. */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0; overflow: clip; opacity: 0;
    transition: height 360ms var(--ease), opacity 240ms ease, content-visibility 360ms allow-discrete;
  }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

.section-label { margin: 48px 0 6px; color: var(--muted); font: 700 .6875rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; }

/* Footer: the landing page's, minus the social row. */
.site-footer { padding: 28px 0 calc(env(safe-area-inset-bottom) + 28px); border-top: 1px solid var(--stone); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .75rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { padding: 6px 2px; text-decoration: none; transition: color 160ms ease; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: var(--shell); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #4f4a44; }
  .prose p, .prose li { color: var(--ink); }
  .ledger, .glance li, .faq details, .faq, section.clause { border-color: #8b837a; }
}
