/* =========================================================================
   Plain Said — landing, support and privacy pages
   Plain hand-written CSS. No build step. Square corners everywhere.
   All fonts self-hosted. All motion gated on prefers-reduced-motion.

   THE HOUSE TYPE SYSTEM, read quietly. Same kit as the four sibling sites —
   Anton sheared -10deg for display, Archivo for body, near-black ground.
   The app turns speech into plain text and then gets out of the way, so the
   page argues by being legible rather than by being loud: no rotation on
   blocks, no colour echoes behind the headline, one wash on the ground.

   THE FIFTH ACCENT IS VIOLET. Stray owns yellow, LOUD cyan, BITS magenta,
   Slowpage green. The app icon is a hot pink tile (#FF0066) with a cream
   mark, which is close enough to BITS' magenta that taking it as the site
   accent would have put two pinks on /apps.html — so the icon keeps its own
   ground, the way Slowpage's cream tile does against green, and the page
   wears the one hue none of the other four is using.
   ========================================================================= */

/* ----------------------------- Fonts (self-hosted) ----------------------- */
@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

/* --------------------------------- Tokens -------------------------------- */
:root {
  --ink:      #0A0A0C;
  --band:     #141418;
  --text:     #FFFFFF;
  /* Two text tiers, and deliberately no third — the same decision
     /hushhour/ records. A --faint at 28-35% white is 2.4-3.2:1 on this
     ground, below AA at body sizes, and nothing on these three pages is
     decoration. --muted is 7.3:1 on --ink and 7.1:1 on --band.
     --violet is 7.5:1 on --ink, and near-black on it is 8.0:1, which is
     what .btn needs in the other direction. */
  --muted:    rgba(255,255,255,0.60);
  --hair:     rgba(255,255,255,0.12);
  --violet:   #AD8CFF;
  --cyan:     #00C2FF;
  --yellow:   #FFC400;
  /* The icon's own two colours, for the places the page draws the mark
     rather than loading the file. Not accents: they never carry text. */
  --tile:     #FF0066;
  --cream:    #FAF2DA;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

/* --------------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; border-radius: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  /* One wash, low and cool, top-left, so the ground stays still behind the
     reading column. */
  background:
    radial-gradient(55% 38% at 12% 8%, rgba(173,140,255,0.14), rgba(173,140,255,0) 62%),
    var(--ink);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing, not tidiness. Every <img> here carries real
   width/height attributes — they are layout hints and stop reflow — and with
   max-width alone the width scales to the column while the height stays at
   the attribute, which stretches the image. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
a:hover { color: var(--text); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--violet); color: var(--ink);
  font-weight: 800; padding: 10px 16px; z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
::selection { background: var(--violet); color: var(--ink); }

/* ------------------------------- MECHANICS -------------------------------
   .dw   display line: Anton, uppercase, sheared -10deg. The shear is the
         brand and it is the ONLY transform on this site. Each line shears on
         its own corner, which keeps the left edge ragged the way the sibling
         sites do. Headings are the only sheared thing; body copy, buttons
         and UI never are.
   -------------------------------------------------------------------------- */
.dw {
  display: block;
  font-family: "Anton", Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: 0.92;
  transform: skewX(-10deg);
  transform-origin: left bottom;
}
.c-violet { color: var(--violet); }

/* --------------------------------- Header -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 9;
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-block: 14px;
}
/* The wordmark is skewed -10deg like every display word here; the app icon
   beside it must NOT be, or it reads as a tipped-over tile rather than an
   icon. So the skew sits on the word alone and the row that holds them is
   upright. */
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: "Anton", Impact, sans-serif;
  font-size: 26px; letter-spacing: .02em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
}
.logo > span { transform: skewX(-10deg); }
.logo:hover { color: var(--violet); }

/* The icon ships as a square 1024 PNG with its own pink ground, so the
   rounded-square mask is ours to apply. 22.37% is Apple's squircle corner
   radius as a share of the side, which is what the icon is drawn for and
   what it wears on a home screen. border-radius is a circular corner rather
   than a true squircle; at 34px the difference is invisible and at 88px it
   is the kind of thing only a side-by-side shows. */
.logo-icon {
  width: 34px; height: 34px; flex: none;
  border-radius: 22.37%;
  display: block;
}
.get-icon {
  width: 88px; height: 88px;
  border-radius: 22.37%;
  display: block; margin-bottom: 20px;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--hair); color: var(--text);
  font-family: "Archivo"; font-weight: 800; font-size: 13px;
  letter-spacing: .14em; padding: 9px 14px; cursor: pointer;
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
}
.nav a:hover { color: var(--text); }

.btn {
  display: inline-block;
  background: var(--violet); color: var(--ink);
  font-family: "Archivo"; font-weight: 800;
  font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  padding: 13px 22px; text-decoration: none;
  border: 2px solid var(--violet);
}
.btn:hover { background: transparent; color: var(--violet); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--hair);
}
.btn-ghost:hover { background: transparent; color: var(--violet); border-color: var(--violet); }
/* color is restated, not inherited: ".nav a" is (0,1,1) and ".btn" is
   (0,1,0), so the nav's muted white would win the cascade over the button's
   near-black and a header button would render 60% white on violet. The same
   collision was measured on /hushhour/ and is recorded there. */
.nav .btn { font-size: 13px; padding: 10px 16px; color: var(--ink); }
.nav .btn:hover { color: var(--violet); }

/* ---------------------------------- Hero --------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 112px) clamp(40px, 6vw, 72px); }
.eyebrow {
  font-weight: 800; font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(50px, 10vw, 128px);
  font-weight: 400;
}
.hero-lead {
  margin-top: 26px; max-width: 54ch;
  font-size: clamp(17px, 1.7vw, 21px); color: var(--muted);
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 58ch; }

/* The one drawn thing on the site: the icon's own gesture, a spoken line
   settling into written ones. Inline SVG rather than an image file so it
   inherits the page's colours and costs no request; presentation attributes
   are not required here (this directory's CSP allows 'unsafe-inline'
   styles) but the figure carries none anyway, for the same reason the root
   pages cannot. */
.wave {
  margin-top: clamp(40px, 6vw, 72px);
  border: 1px solid var(--hair);
  background: var(--band);
  padding: clamp(24px, 4vw, 44px);
}
.wave svg { width: 100%; height: auto; display: block; }

/* -------------------------------- Sections ------------------------------- */
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-band { background: var(--band); border-block: 1px solid var(--hair); }
.sect-title { font-size: clamp(34px, 5.4vw, 68px); font-weight: 400; }
.sect-lead { margin-top: 20px; max-width: 60ch; color: var(--muted); font-size: 17px; }

/* The quiet grid: hairlines, no cards, no hover lift. The rule is the only
   edge, which is the same choice /hushhour/ makes. */
.feat {
  margin-top: clamp(32px, 4vw, 56px);
  display: grid; gap: 1px;
  background: var(--hair);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feat > div { background: var(--ink); padding: clamp(22px, 2.6vw, 34px); }
.section-band .feat > div { background: var(--band); }
.feat h3 {
  font-family: "Archivo"; font-weight: 800;
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet);
}
.feat p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* A numbered sequence, for the one thing on this site that really is one:
   audio in, text out. The number is information, not decoration — it is the
   order the steps happen in. */
.steps {
  margin-top: clamp(32px, 4vw, 56px);
  list-style: none; padding: 0;
  display: grid; gap: 1px; background: var(--hair);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps > li { background: var(--ink); padding: clamp(22px, 2.6vw, 34px); }
.section-band .steps > li { background: var(--band); }
.steps .step-n {
  display: block;
  font-family: "Anton", Impact, sans-serif; font-size: 34px; line-height: 1;
  color: var(--violet);
  transform: skewX(-10deg); transform-origin: left bottom;
}
.steps h3 {
  margin-top: 14px;
  font-family: "Archivo"; font-weight: 800;
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
}
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* --------------------------------- Get it -------------------------------- */
.get-box {
  margin-top: clamp(28px, 4vw, 44px);
  border: 1px solid var(--hair); background: var(--ink);
  padding: clamp(26px, 4vw, 44px);
}
.get-box h3 {
  font-family: "Anton", Impact, sans-serif; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 40px); text-transform: uppercase;
  transform: skewX(-10deg); transform-origin: left bottom;
}
.get-meta { margin-top: 14px; color: var(--muted); font-size: 16px; }
.get-sub { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 58ch; }
/* Apple's badge is shown unaltered and self-hosted — the guidelines do not
   allow redrawing or recolouring it — so the rule only scales it, with the
   ratio kept. The same pair /hushhour/styles.css carries. */
.store-link { display: inline-block; margin-top: 24px; }
.store-badge { height: 48px; width: auto; }

/* ---------------------- Sub-pages (support, privacy) --------------------- */
.page { padding-block: clamp(48px, 7vw, 96px); }
.page-title { font-size: clamp(40px, 7vw, 86px); font-weight: 400; }
.prose { margin-top: clamp(26px, 3vw, 40px); max-width: 68ch; }
.prose h2 {
  margin-top: 40px;
  font-family: "Archivo"; font-weight: 800;
  font-size: 16px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet);
}
.prose p, .prose li { margin-top: 14px; color: var(--muted); font-size: 17px; }
.prose ul { margin-top: 10px; padding-left: 20px; }
.prose strong { color: var(--text); font-weight: 600; }
/* A long URL or identifier has no break opportunity in it, and at the 320px
   reflow width one of them is wider than the column — which pushes the whole
   page sideways rather than wrapping. Measured on /hushhour/, where
   "github.com/50hoursaweek/hushhour/issues" did exactly that. */
.prose a, .prose code { overflow-wrap: anywhere; }
.prose code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .92em; color: var(--text);
  background: rgba(255,255,255,0.07);
  padding: 2px 6px;
}
.back { margin-top: 48px; font-size: 15px; }

/* --------------------------------- Footer -------------------------------- */
.site-footer { border-top: 1px solid var(--hair); padding-block: 36px; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px 30px;
  align-items: center; justify-content: space-between;
}
.footer-brand {
  font-weight: 800; font-size: 13px; letter-spacing: .14em;
  /* --muted, not a fainter tier: this is the company name and seat, which is
     information. style.css says the same thing on the same line. */
  text-transform: uppercase; color: var(--muted);
}
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; padding: 0; }
.footer-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 600; letter-spacing: .06em;
}
.footer-nav a:hover { color: var(--violet); }

/* ------------------------------- Legal nav -------------------------------
   privacy.html and support.html only. They carry no JS, so the landing
   page's .nav + .nav-toggle pair is unavailable to them: .nav is
   display:none below 760px and only an aria-expanded button brings it back,
   which on /hushhour/ left those two pages with no navigation at all on a
   phone until it was caught. This nav is always visible and wraps instead of
   hiding, which is what all four sibling sites do on their legal pages.
   -------------------------------------------------------------------------- */
.legal-nav ul { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; padding: 0; }
.legal-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 12px;
  color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
}
.legal-nav a:hover { color: var(--violet); }

/* -------------------------------- Responsive ------------------------------ */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--hair);
    padding: 8px var(--pad) 20px;
  }
  /* Driven off the button's own aria-expanded, so the accessible state and
     the visible state cannot disagree. The nav is the toggle's next sibling,
     which is what makes the + selector work. */
  .nav-toggle[aria-expanded="true"] + .nav { display: flex; }
  .nav a { padding-block: 13px; font-size: 15px; }
  .site-header { position: relative; }
  /* flex-wrap is for the legal pages: they have no toggle, so their row has
     to fit by wrapping. .nav is position:absolute on the landing page, so
     wrapping takes nothing with it there. */
  .header-inner { position: relative; flex-wrap: wrap; row-gap: 2px; }
  .legal-nav { width: 100%; }
  .legal-nav a { padding: 8px 10px; letter-spacing: .1em; }
}
