/* soundchat.brazh.me. Plain ink on a cool ground, the app's own screens set in it, and one moving thing: the
   header's bottom edge is a string fixed at both edges of the page, as the line under the app's top bar is, and it
   is plucked once when the page opens (string.js). Its colours are the icon's: dim to lit, white to cyan in the dark.
   Teal is the app's accent (AccentColor), for what you act on. Follows the system's appearance, light or dark;
   there is no switch. Fixel (MacPaw), for Latin and Cyrillic alike. */
@font-face { font-family: "Fixel Display"; src: url(/fonts/FixelDisplay-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url(/fonts/FixelDisplay-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url(/fonts/FixelText-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url(/fonts/FixelText-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url(/fonts/FixelText-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light dark;
  /* Light: a cool pale ground, so the app's white screens stand on it; ink is the icon's darkest graphite. */
  --ground: #f3f6f6;
  --screen-edge: #d3dcde;
  --ink: #0e171a;
  --ink-2: #3b4a50;
  --ink-3: #59686e;
  --rule: #d6dfe1;
  /* The app's accent (AccentColor, light), for links' lines, buttons and focus. */
  --accent: #0f7480;
  --button: #0f7480;
  --button-ink: #ffffff;
  /* The string: dim where it starts, lit where it ends. */
  --string-dim: #a3b6bb;
  --string-lit: #0f7480;

  --display-face: "Fixel Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-face: "Fixel Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The type scale, around 17 px. */
  --t-small: .875rem;   /* 14 */
  --t-note: .9375rem;   /* 15 */
  --t-body: 1.0625rem;  /* 17 */
  --t-lead: 1.25rem;    /* 20 */
  --t-h3: 1.3125rem;    /* 21 */
  --t-h2: clamp(1.75rem, 1.3rem + 1.7vw, 2.5rem);     /* 28 to 40 */
  --t-h1: clamp(2.375rem, 1.1rem + 4.2vw, 4.25rem);   /* 38 to 68 */
  --wide: 1200px;
  --gutter: 24px;
  --radius: 30px;       /* a screen's corners, on a phone's scale */
  --bar: 60px;          /* the header's first row on a phone: the part that scrolls away */
}
@media (prefers-color-scheme: dark) {
  :root {
    /* Dark: the icon's graphite, with the app's black screens set into it. */
    --ground: #111a1d;
    --screen-edge: #2a3940;
    --ink: #eef5f6;
    --ink-2: #b2c1c5;
    --ink-3: #8d9fa4;
    --rule: #26343b;
    --accent: #5fd3dc;
    --button: #14818d;
    --button-ink: #ffffff;
    --string-dim: #ffffff;
    --string-lit: #2fc8d4;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4rem; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.55 var(--text-face);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  text-decoration-color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
/* A short word with a hyphen that shouldn't break there: Wi-Fi. */
.whole { white-space: nowrap; }

h1 { font: 700 var(--t-h1)/1.02 var(--display-face); letter-spacing: -.035em; text-wrap: balance; }
h2 { font: 700 var(--t-h2)/1.1 var(--display-face); letter-spacing: -.024em; text-wrap: balance; }
h3 { font: 600 var(--t-h3)/1.25 var(--display-face); letter-spacing: -.01em; }

/* For the keyboard: straight to the page, past the header. */
.skip { position: absolute; left: 12px; top: 0; transform: translateY(-110%); z-index: 10; padding: 10px 16px; border-radius: 12px;
  background: var(--button); color: var(--button-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; transform: none; }

/* Header: the brand, the page's sections, the two languages. On a phone the brand and languages scroll away and
   the row of sections stays at the top (one pixel further up, so its top rule goes too); from 960 px it is one row
   that stays. The sections come first in the source, as they're drawn from 960 px, so Tab runs left to right there. */
.top { position: sticky; top: calc(-1px - var(--bar)); z-index: 5; background: var(--ground); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; height: calc(var(--bar) - 16px); margin-block: 8px; margin-right: auto;
  font: 700 1.3125rem/1 var(--display-face); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.sections, .langs { display: flex; font: 500 var(--t-note)/1 var(--text-face); }
.sections a, .langs a { padding: 14px 0; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.sections a:hover, .langs a:hover { color: var(--ink); }
.sections a[aria-current], .langs a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: .45em; text-decoration-color: var(--accent); }
.sections { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: space-between; gap: 0 12px; border-top: 1px solid var(--rule); }
.langs { gap: 0 18px; }
/* Each language by its name; by its code where both names don't fit beside the brand. */
.langs .code { display: none; }
@media (max-width: 419px) {
  .langs .name { display: none; }
  .langs .code { display: inline; }
  .langs { gap: 0 4px; margin-inline: -8px; }
  .langs a { padding-inline: 8px; }
}
/* Three of the four sections fit a phone in both languages; privacy is also in the footer. */
@media (max-width: 479px) { .sections .wide { display: none; } }
@media (min-width: 600px) { .sections { justify-content: flex-start; gap: 0 28px; } }
@media (min-width: 960px) {
  html { scroll-padding-top: 5.25rem; }
  .top { top: 0; }
  .brand { margin-right: 12px; }
  .sections { order: 0; flex-basis: auto; margin-right: auto; border: 0; gap: 0 26px; }
  .langs { order: 1; }
}

/* The string: drawn over the header's bottom rule, half above it and half below, and only while it moves. */
.string { position: absolute; left: 0; bottom: -21.5px; width: 100%; height: 42px; overflow: visible; pointer-events: none; }
.string path { fill: none; stroke: url(#string-colour); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.string .dim { stop-color: var(--string-dim); }
.string .lit { stop-color: var(--string-lit); }

/* The store buttons, once the listings are live, and until then the line that says they're coming. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; width: fit-content; max-width: 100%; }
.store { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 54px; padding: 12px 26px; border-radius: 999px;
  background: var(--button); color: var(--button-ink); font: 600 var(--t-body)/1.2 var(--text-face); text-align: center;
  text-decoration: none; transition: transform .15s ease-out; }
.store:hover { transform: translateY(-2px); }
.store:active { transform: none; }
.store:focus-visible { outline-offset: 4px; border-radius: 999px; }
.soon { font: 600 var(--t-lead)/1.35 var(--display-face); letter-spacing: -.01em; color: var(--ink); }
/* While one store is live: its button, then that the other is coming. */
.say .stores + .soon, .stores + .soon { margin-top: 16px; font: 500 var(--t-body)/1.4 var(--text-face); color: var(--ink-2); }

/* Hero: what Sound Chat is, beside the conversation as the app shows it. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 44px 64px; }
.say h1 { max-width: 10.5em; }
.lede { margin-top: 20px; max-width: 31em; font-size: var(--t-lead); line-height: 1.45; color: var(--ink-2); }
.lede + .lede { margin-top: 12px; }
.say .stores, .say .soon { margin-top: 28px; }
/* The short answers: what it costs, what it needs. */
.facts { max-width: 36em; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 0 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-3); }
.facts dd { color: var(--ink-2); }
.facts strong { color: var(--ink); }
/* A piece of the app's screen, on its own background, with a screen's corners. */
.pane { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--screen-edge); max-width: 420px; }
.pane img { width: 100%; }
.pane.screen { width: 100%; max-width: 360px; justify-self: center; }
@media (min-width: 700px) and (max-width: 959px) {
  .hero { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; align-items: center; }
  .say { grid-column: 1 / -1; }
  .facts div { grid-template-columns: 1fr; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, min(400px, 38%)); grid-template-rows: auto 1fr; gap: 44px 80px; padding-block: 80px 104px; }
  .say { grid-column: 1; grid-row: 1; }
  .facts { grid-column: 1; grid-row: 2; align-self: start; }
  .pane.screen { grid-column: 2; grid-row: 1 / span 2; align-self: start; max-width: none; }
}

/* Sections: the heading and its one-sentence answer in a rail on the left, the detail beside it. */
.part { padding-block: 56px; border-top: 1px solid var(--rule); }
.part > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.rail p { margin-top: 14px; max-width: 34em; color: var(--ink-2); }
@media (min-width: 960px) { .part { padding-block: 88px; } }
@media (min-width: 1100px) {
  .part > .wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: start; }
  .rail { position: sticky; top: 6.5rem; }
}

/* Lists of plain facts. */
.list { list-style: none; }
.list li { position: relative; padding-left: 1.3em; color: var(--ink-2); }
.list li + li { margin-top: .6em; }
.list li::before { content: ""; position: absolute; left: .15em; top: .68em; width: .36em; height: .36em; border-radius: 50%; background: var(--accent); }
.list strong { color: var(--ink); }
.wide-list { max-width: 40em; }

/* How it works: four short answers, two by two where there's room. */
.points { display: grid; gap: 32px 48px; }
.point { padding-top: 18px; border-top: 2px solid var(--ink); }
.point p { margin-top: 10px; max-width: 34em; color: var(--ink-2); }
@media (min-width: 700px) { .points { grid-template-columns: 1fr 1fr; } }

/* The secret word: what it does, beside the end of a private conversation. */
.split { display: grid; gap: 32px; }
.split .list { max-width: 34em; }
@media (min-width: 700px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, min(380px, 45%)); gap: 48px; align-items: start; }
}

/* Statements, each a ruled row. */
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; gap: 8px; padding-block: 22px; border-bottom: 1px solid var(--rule); }
.row p { max-width: 36em; color: var(--ink-2); }
.row p + p { margin-top: 10px; }
@media (min-width: 700px) { .row { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 32px; } }

/* Help & support: questions that open. */
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none;
  font: 600 var(--t-lead)/1.3 var(--display-face); letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
/* A plus that closes to a minus. */
.qa summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: background-size .2s ease-out; }
.qa details[open] summary::after { background-size: 100% 2px, 2px 0; }
.qa summary:hover { color: var(--ink-2); }
.answer { padding: 0 0 22px; max-width: 38em; color: var(--ink-2); }
.answer > * + * { margin-top: .7em; }
.answer ol { padding-left: 1.4em; }
.answer li + li { margin-top: .5em; }
.answer li::marker { font-weight: 600; color: var(--ink); }

/* Get Sound Chat, once more at the end. */
.get .rail { display: flex; align-items: center; gap: 16px; }
.get .rail img { width: 56px; height: 56px; border-radius: 14px; }
@media (max-width: 1099px) { .get .rail h2 { min-width: 0; } }
.get .needs { margin-top: 14px; max-width: 36em; font-size: var(--t-note); color: var(--ink-2); }

/* Footer */
.foot { padding-block: 40px 56px; border-top: 1px solid var(--rule); font-size: var(--t-note); color: var(--ink-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 28px; margin-bottom: 12px; font-weight: 500; color: var(--ink); }
.foot nav a { padding: 11px 0; }
.foot p { max-width: 56em; }
.foot p + p { margin-top: 8px; }

/* A page of plain text, such as the privacy policy: one column. */
.doc { padding-block: 48px 88px; }
.doc > .wrap > * { max-width: 42rem; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); }
.doc h2 { margin-top: 48px; font-size: 1.625rem; }
.doc p, .doc ul, .doc ol { margin-top: 14px; color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: .5em; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--ink); }
.doc .updated { margin-top: 12px; font-size: var(--t-note); color: var(--ink-3); }
/* The page in one paragraph, set larger and in full ink. */
.doc .short { margin-top: 24px; font-size: var(--t-lead); line-height: 1.45; color: var(--ink); }
/* The 404 page's ways on. */
.doc .ways { padding-left: 0; list-style: none; }
.doc .ways li + li { margin-top: 0; }
.ways a { display: inline-block; padding-block: 10px; }

@media (max-width: 420px) {
  :root { --gutter: 16px; --radius: 26px; }
  .lede { font-size: 1.125rem; }
  .facts div { grid-template-columns: 6.2em minmax(0, 1fr); gap: 0 12px; }
  .qa summary { font-size: 1.125rem; }
}

/* Windows contrast themes drop backgrounds: the buttons keep an outline, the questions a plus and minus in type. */
@media (forced-colors: active) {
  .store { border: 1.5px solid ButtonText; }
  .list li::before { background: CanvasText; }
  .qa summary::after { content: "+"; content: "+" / ""; width: auto; height: auto; background: none; font: 400 1.5rem/1 var(--text-face); }
  .qa details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
  .string { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
