/* Stillfold marketing site. One stylesheet for every page; no inline styles (the CSP forbids them).
   Colours and type follow the app (app/lib/design/tokens.dart, typography.dart): "calm editorial
   ledger". Hairline rules carry structure; teal is the one accent; ochre marks only what needs a look. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-Regular.woff?v=1") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-Medium.woff?v=1") format("woff");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/SchibstedGrotesk-SemiBold.woff?v=1") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/SourceSerif4-Italic.woff?v=1") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.woff?v=1") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --folio: #fbfbfa;
  --raised: #ffffff;
  --ink: #15181b;
  --graphite: #4b5157;
  --slate: #80868d;
  --hairline: #d5d8db;
  --hair: #e6e8ea;
  --fill: #f3f4f3;
  --accent: #0f5f5c;
  --accent-wash: #e4eeed;
  --accent-soft: #9dc2be;
  --ochre: #c9821a;
  --ochre-ink: #9b5a05;
  --ochre-wash: #f5ebdb;
  --vermilion: #a3321f;
  --night: #0e1012;
  --night-raised: #1b1e21;
  --night-rule: #2a2e32;
  --night-text: #e9ebec;
  --night-mute: #9aa0a6;
  --on-accent: #ffffff;
  --fold: #0f5f5c;

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --measure: 34rem;
  --r-s: 6px;
  --r-m: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --folio: #131517;
    --raised: #1a1d20;
    --ink: #e8eaec;
    --graphite: #b3b8bd;
    --slate: #878d93;
    --hairline: #33383d;
    --hair: #25292d;
    --fill: #1b1e21;
    --accent: #5fb3ab;
    --accent-wash: #173533;
    --accent-soft: #2f6f6a;
    --ochre: #d99a3a;
    --ochre-ink: #e2a54c;
    --ochre-wash: #2e2416;
    --vermilion: #e8705a;
    --night: #0e1012;
    --night-raised: #1a1d20;
    --on-accent: #131517;
    --fold: #3e817b;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--folio);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "calt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
p + p {
  margin-top: 0.9em;
}
ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
strong {
  font-weight: 600;
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--folio);
  border-radius: var(--r-s);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */
.masthead {
  border-bottom: 1px solid var(--hairline);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
}
.masthead nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}
.masthead nav a {
  color: var(--graphite);
  font-size: 0.9688rem;
  font-weight: 500;
  text-decoration: none;
}
.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--ink);
}
.masthead nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}

/* ---------- the coming-soon pill (main call to action) ---------- */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--folio);
  text-decoration: none;
  line-height: 1.2;
}
.soon:hover {
  text-decoration: none;
  background: var(--accent);
  color: var(--on-accent);
}
.soon__glyph {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--folio);
  display: grid;
  place-items: center;
}
.soon__glyph svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}
.soon__text {
  display: grid;
}
.soon__small {
  font-size: 0.75rem;
  opacity: 0.75;
}
.soon__big {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.cta-note {
  color: var(--graphite);
  font-size: 0.9375rem;
}

/* ---------- phone mockup: screenshot + device frame ---------- */
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 735 / 1500;
  flex: none;
}
.phone__screen,
.phone__screen img {
  position: absolute;
  left: 5.102%;
  top: 2.2%;
  width: 89.796%;
  height: 95.6%;
  object-fit: cover;
  border-radius: 14.09% / 6.485%;
  background: var(--fill);
}
.phone__screen img {
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.phone__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.phone--shadow {
  filter: drop-shadow(0 24px 34px rgba(15, 40, 40, 0.18)) drop-shadow(0 4px 8px rgba(15, 40, 40, 0.08));
}
@media (prefers-color-scheme: dark) {
  .phone--shadow {
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  }
}
.caption {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9688rem;
  color: var(--graphite);
}

/* ---------- section scaffolding ---------- */
.section {
  padding-block: clamp(72px, 10vw, 128px);
}
.section + .section {
  border-top: 1px solid var(--hairline);
}
.h2 {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  line-height: 1.55;
  color: var(--graphite);
  max-width: var(--measure);
}
.body {
  color: var(--graphite);
  max-width: var(--measure);
}
.h2 + .lead,
.h2 + .body {
  margin-top: 20px;
}
.h3 + .body,
.h3 + p {
  margin-top: 10px;
}
.more {
  display: inline-block;
  margin-top: 22px;
  font-weight: 500;
}

/* Grid children may shrink below their content's natural width (phones, tables). */
.hero__grid > *,
.shelves__grid > *,
.add__grid > *,
.autofill > *,
.renew__head > *,
.needs > *,
.family__grid > *,
.share__grid > *,
.closing__inner > * {
  min-width: 0;
}

/* ---------- home: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px) 0;
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: end;
}
.hero__copy {
  padding-bottom: clamp(16px, 6vw, 96px);
}
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 11ch;
}
.hero .lead {
  margin-top: 28px;
  max-width: 30rem;
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.hero__stage {
  position: relative;
  display: grid;
  justify-items: center;
  min-height: 520px;
}
.hero__stage .phone {
  position: relative;
  z-index: 1;
  width: clamp(250px, 64vw, 330px);
  margin-bottom: -96px;
}
/* The folded sheet behind the phone: the app icon's mark at full size. It opens once on load. */
.fold {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 4%;
  width: min(118%, 600px);
  translate: -50% 0;
  aspect-ratio: 600 / 640;
}
.fold svg {
  width: 100%;
  height: 100%;
}
.fold__left {
  fill: var(--accent-wash);
}
.fold__right {
  fill: var(--fold);
}
.fold__lines {
  stroke: var(--accent-soft);
}
@media (prefers-reduced-motion: no-preference) {
  .fold__left,
  .fold__lines {
    transform-origin: 296px 0;
    animation: fold-left 1.1s var(--ease) 0.15s both;
  }
  .fold__right {
    transform-origin: 304px 0;
    animation: fold-right 1.1s var(--ease) 0.15s both;
  }
  .hero__stage .phone {
    animation: rise 0.9s var(--ease) 0.45s both;
  }
}
@keyframes fold-left {
  from {
    transform: scaleX(0.08);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes fold-right {
  from {
    transform: scaleX(0.08);
  }
  to {
    transform: none;
  }
}
@keyframes rise {
  from {
    transform: translateY(28px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 32px;
  }
  .hero__stage {
    min-height: 640px;
  }
}

/* the list of what it keeps: a single ruled line under the hero */
.kinds {
  position: relative;
  z-index: 2;
  border-top: 1.5px solid var(--ink);
  background: var(--folio);
}
.kinds__inner {
  display: grid;
  gap: 6px 28px;
  padding-block: 22px 26px;
}
.kinds__label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--graphite);
}
.kinds__more {
  font-family: var(--serif);
  font-style: italic;
  color: var(--graphite);
}
.kinds ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-weight: 500;
}
@media (min-width: 900px) {
  .kinds__inner {
    grid-template-columns: auto 1fr;
    align-items: baseline;
  }
  .kinds__more {
    grid-column: 2;
  }
}

/* ---------- home: shelves and people ---------- */
.shelves__grid {
  display: grid;
  gap: 56px;
}
.ledger {
  margin-top: 40px;
  border-top: 1.5px solid var(--ink);
  max-width: 34rem;
}
.ledger li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.ledger__name {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.ledger__with {
  font-family: var(--serif);
  font-style: italic;
  color: var(--graphite);
  font-size: 1.0625rem;
  margin-left: 10px;
  letter-spacing: 0;
  font-weight: 400;
}
.ledger__count {
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.ledger__people {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--graphite);
}
.ledger__note {
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--graphite);
  max-width: 30rem;
}
.shelves__media {
  display: flex;
  justify-content: center;
}
@media (min-width: 900px) {
  .shelves__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 80px;
    align-items: start;
  }
  .shelves__media {
    padding-top: 12px;
  }
}

/* ---------- home: scan and Auto-fill (a tinted band) ---------- */
.band {
  background: var(--accent-wash);
}
.section.band + .section,
.section + .section.band {
  border-top: 0;
}
.add__grid {
  display: grid;
  gap: 56px;
}
.ways {
  margin-top: 36px;
  border-top: 1px solid var(--accent-soft);
  max-width: 32rem;
}
.ways li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--accent-soft);
}
.ways svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ways strong {
  display: block;
  font-weight: 500;
}
.ways span {
  display: block;
  grid-column: 2;
  color: var(--graphite);
  font-size: 0.9375rem;
}
.pair {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 560px;
}
.pair .phone {
  width: 52%;
  max-width: 290px;
}
.pair .phone + .phone {
  margin-left: -9%;
  margin-top: 72px;
}

.autofill {
  margin-top: clamp(72px, 9vw, 112px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1.5px solid var(--ink);
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .add__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
  .autofill {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: start;
  }
}
/* A replica of the review form: one field is unsure, so it is set in ochre and says why. */
.review {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  padding: 8px 22px 14px;
  max-width: 34rem;
}
.review__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
}
.review__head span {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ochre-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.review dl div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 4px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.review dl div:last-child {
  border-bottom: 0;
}
.review dt {
  color: var(--graphite);
  font-size: 0.875rem;
  padding-top: 2px;
}
.review dd {
  font-weight: 500;
}
.review dd.mono {
  font-weight: 400;
}
.review .unsure {
  margin-inline: -22px;
  padding-inline: 22px;
  background: var(--ochre-wash);
  box-shadow: inset 3px 0 0 var(--ochre);
}
.review .unsure dd {
  color: var(--ochre-ink);
}
.review .unsure small {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
  flex: none;
}
.honest {
  margin-top: 28px;
  padding: 18px 0 0;
  border-top: 1px solid var(--accent-soft);
  max-width: var(--measure);
  font-size: 0.9688rem;
  color: var(--graphite);
}
.honest strong {
  color: var(--ink);
}

/* ---------- home: renewals ---------- */
.renew__head {
  display: grid;
  gap: 20px;
}
@media (min-width: 900px) {
  .renew__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: end;
  }
}
.lifetime {
  margin-top: clamp(48px, 7vw, 80px);
}
.lifetime__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
}
.lifetime__title strong {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  letter-spacing: -0.02em;
}
.lifetime__title .left {
  color: var(--ochre-ink);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bar {
  position: relative;
  margin-top: 22px;
  height: 14px;
  border-radius: 3px;
  background: var(--hair);
  overflow: hidden;
}
.bar__used {
  position: absolute;
  inset: 0 18% 0 0;
  background: var(--accent);
  transform-origin: left center;
}
.bar__window {
  position: absolute;
  inset: 0 0 0 82%;
  background: repeating-linear-gradient(135deg, var(--ochre) 0 3px, var(--ochre-wash) 3px 7px);
}
.ticks {
  position: relative;
  height: 64px;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--graphite);
}
.ticks li {
  position: absolute;
  top: 0;
  padding-top: 14px;
  white-space: nowrap;
}
.ticks li::before {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 10px;
  background: var(--slate);
}
.ticks .t-start {
  left: 0;
}
.ticks .t-start::before {
  left: 0;
}
.ticks .t-remind {
  left: 82%;
  translate: -50% 0;
  color: var(--ochre-ink);
  font-weight: 500;
}
.ticks .t-remind::before {
  left: 50%;
  background: var(--ochre);
}
.ticks .t-end {
  right: 0;
  text-align: right;
}
.ticks .t-end::before {
  right: 0;
}
.ticks .mono {
  display: block;
  color: var(--ink);
}
@media (max-width: 600px) {
  .ticks .t-remind {
    top: 50px;
    translate: -60% 0;
  }
  .ticks {
    height: 104px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .js .lifetime.is-waiting .bar__used {
    transform: scaleX(0);
  }
  .js .lifetime.is-waiting .bar__window {
    opacity: 0;
  }
  .js .lifetime .bar__used {
    transition: transform 1.4s var(--ease);
  }
  .js .lifetime .bar__window {
    transition: opacity 0.5s ease 1.2s;
  }
}
.needs {
  margin-top: clamp(48px, 7vw, 72px);
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .needs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
}
.needs__list {
  border-top: 1.5px solid var(--ink);
}
.needs__list h3 {
  padding: 16px 0 10px;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}
.needs__list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.needs__list li span {
  display: block;
  font-size: 0.875rem;
}
.needs__list .late {
  color: var(--vermilion);
}
.needs__list .soonish {
  color: var(--ochre-ink);
}
.needs__list .quiet {
  color: var(--graphite);
}
.chip {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-s);
  background: var(--raised);
}

/* ---------- home: family sharing ---------- */
.family__grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 900px) {
  .family__grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 88px;
    align-items: center;
  }
  .family__media {
    order: -1;
  }
}
.family__media {
  display: flex;
  justify-content: center;
}
.roles {
  width: 100%;
  margin-top: 36px;
  border-collapse: collapse;
  font-size: 0.9688rem;
}
.roles caption {
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  color: var(--graphite);
  padding-bottom: 10px;
}
.roles th,
.roles td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.roles thead th {
  border-bottom: 1.5px solid var(--ink);
  font-weight: 600;
  padding-block: 0 10px;
}
.roles tbody th {
  font-weight: 600;
  white-space: nowrap;
}
.roles td {
  color: var(--graphite);
}
.facts {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  color: var(--graphite);
  max-width: var(--measure);
}
.facts li {
  padding-left: 22px;
  position: relative;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- home: share links and packets ---------- */
.share__intro {
  max-width: 44rem;
}
.share__grid {
  margin-top: clamp(48px, 7vw, 72px);
  display: grid;
  gap: 56px;
}
.share__col h3 {
  padding-top: 18px;
  border-top: 1.5px solid var(--ink);
}
.terms-list {
  margin-top: 22px;
}
.terms-list div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.terms-list dt {
  font-weight: 500;
}
.terms-list dd {
  color: var(--graphite);
}
.share__phones {
  display: flex;
  justify-content: center;
  gap: 4%;
}
.share__phones .phone {
  width: 48%;
  max-width: 250px;
}
.share__phones .phone:nth-child(2) {
  margin-top: 64px;
}
@media (min-width: 1000px) {
  .share__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}
@media (max-width: 420px) {
  .terms-list div {
    grid-template-columns: 1fr;
  }
}

/* ---------- home + security: how privacy works (night band) ---------- */
.night {
  background: var(--night);
  color: var(--night-text);
}
.night .lead,
.night .body {
  color: var(--night-mute);
}
.night a {
  color: #6bc0b8;
}
.night :focus-visible {
  outline-color: #6bc0b8;
}
.section.night + .section {
  border-top: 0;
}
@media (prefers-color-scheme: dark) {
  .night {
    background: var(--night-raised);
    border-block: 1px solid var(--night-rule);
  }
}
.flow {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid;
  gap: 0;
  counter-reset: step;
}
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--night-rule);
}
.flow svg {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  color: #6bc0b8;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow .solid {
  fill: currentColor;
  stroke: none;
}
.flow .dim {
  color: var(--night-mute);
  stroke: var(--night-mute);
}
.flow h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.flow p {
  color: var(--night-mute);
  font-size: 0.9688rem;
}
@media (max-width: 899px) {
  .flow li > :not(svg) {
    grid-column: 2;
  }
}
.scramble {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--night-mute);
  letter-spacing: 0.02em;
  word-break: break-all;
}
@media (min-width: 900px) {
  .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--night-rule);
  }
  .flow li {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 14px;
    padding: 28px 28px 0 0;
    border-top: 0;
  }
  .flow li + li {
    padding-left: 28px;
    border-left: 1px solid var(--night-rule);
  }
  .flow svg {
    grid-row: auto;
  }
  /* the arrow between steps */
  .flow li + li::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 56px;
    width: 12px;
    height: 12px;
    border-top: 1.5px solid #6bc0b8;
    border-right: 1.5px solid #6bc0b8;
    transform: rotate(45deg);
    background: var(--night);
  }
}
@media (min-width: 900px) and (prefers-color-scheme: dark) {
  .flow li + li::before {
    background: var(--night-raised);
  }
}
.cannot {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  gap: 32px;
}
.cannot h3 {
  font-size: 1.0625rem;
  margin-bottom: 10px;
}
.cannot li {
  padding: 8px 0;
  border-bottom: 1px solid var(--night-rule);
  color: var(--night-mute);
  font-size: 0.9688rem;
}
@media (min-width: 900px) {
  .cannot {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

/* ---------- home: closing call to action ---------- */
.closing {
  text-align: left;
}
.closing__inner {
  display: grid;
  gap: 32px;
  align-items: end;
}
.closing h2 {
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 12ch;
}
.closing__side {
  display: grid;
  gap: 18px;
  justify-items: start;
}
@media (min-width: 900px) {
  .closing__inner {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- footer ---------- */
.foot {
  border-top: 1.5px solid var(--ink);
  padding-block: 40px 48px;
  font-size: 0.9375rem;
  color: var(--graphite);
}
.foot__inner {
  display: grid;
  gap: 28px;
}
.foot__brand p {
  margin-top: 10px;
  max-width: 26rem;
}
.foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.foot nav a {
  color: var(--ink);
  text-decoration: none;
}
.foot nav a:hover {
  text-decoration: underline;
}
.foot__legal {
  font-size: 0.875rem;
}
@media (min-width: 900px) {
  .foot__inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .foot__legal {
    grid-column: 1 / -1;
  }
}

/* ---------- inner pages: security, FAQ, support, legal ---------- */
.page-head {
  padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 56px);
  border-bottom: 1.5px solid var(--ink);
}
.page-head h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.page-head .lead {
  margin-top: 22px;
  max-width: 38rem;
}
.page-head .meta {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--graphite);
}
.doc {
  display: grid;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px);
}
@media (min-width: 960px) {
  .doc {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 72px;
  }
}
.toc {
  font-size: 0.9375rem;
}
.toc h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.toc ol {
  border-top: 1px solid var(--hairline);
}
.toc li {
  border-bottom: 1px solid var(--hairline);
}
.toc a {
  display: block;
  padding: 8px 0;
  color: var(--graphite);
  text-decoration: none;
}
.toc a:hover {
  color: var(--accent);
}
@media (min-width: 960px) {
  .toc > div {
    position: sticky;
    top: 24px;
  }
}
@media (max-width: 959px) {
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0 18px;
    border-top: 0;
  }
  .toc li {
    border-bottom: 0;
  }
  .toc a {
    padding: 4px 0;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--hairline);
  }
}
.prose {
  max-width: 42rem;
}
.prose > section + section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.prose h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.prose h3 {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
.prose p,
.prose li {
  color: var(--graphite);
}
.prose strong {
  color: var(--ink);
}
.prose ul,
.prose ol {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 9px;
  height: 1.5px;
  background: var(--accent);
}
.prose ol {
  counter-reset: n;
}
.prose ol li {
  counter-increment: n;
  position: relative;
  padding-left: 30px;
}
.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  line-height: 1;
}
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p {
  margin-top: 14px;
}
.callout {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--ochre);
  background: var(--ochre-wash);
  border-radius: 0 var(--r-s) var(--r-s) 0;
}
.callout p {
  color: var(--ink);
}
.callout--teal {
  border-left-color: var(--accent);
  background: var(--accent-wash);
}
.prose table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--graphite);
}
.prose thead th {
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.prose tbody th {
  color: var(--ink);
  font-weight: 600;
}
.table-scroll {
  overflow-x: auto;
}

/* FAQ: native disclosure, grouped */
.faq-group + .faq-group {
  margin-top: 56px;
}
.faq-group h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  letter-spacing: -0.025em;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--ink);
}
.faq-group details {
  border-bottom: 1px solid var(--hairline);
}
.faq-group summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.0625rem;
  list-style: none;
}
.faq-group summary::-webkit-details-marker {
  display: none;
}
.faq-group summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.45em;
  border-right: 1.5px solid var(--graphite);
  border-bottom: 1.5px solid var(--graphite);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-group details[open] summary::after {
  transform: rotate(225deg);
}
.faq-group details > div {
  padding: 0 0 22px;
  max-width: 40rem;
  color: var(--graphite);
}
.faq-group details > div p + p {
  margin-top: 0.7em;
}

/* support: contact block */
.contact {
  display: grid;
  gap: 4px;
  padding: 22px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-m);
  background: var(--raised);
  margin-top: 18px;
}
.contact a {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact span {
  color: var(--graphite);
  font-size: 0.9375rem;
}
.path {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* 404 */
.lost {
  padding-block: clamp(80px, 14vw, 160px);
}
.lost h1 {
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.lost p {
  margin-top: 18px;
  color: var(--graphite);
  max-width: 30rem;
}
.lost ul {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media print {
  .masthead nav,
  .foot nav,
  .skip {
    display: none;
  }
  .night {
    background: none;
    color: #000;
  }
}

/* FAQ groups carry their own rule under the heading; drop the prose section divider */
.prose > .faq-group + .faq-group {
  padding-top: 0;
  border-top: 0;
}
.table-scroll + p {
  margin-top: 16px;
}
