/* Foldaway's homepage and privacy policy: quiet and Chrome-native (the owner's
   pick), in the extension's own type (Geist, served from here: the pages ask
   nothing of anyone else), Chrome's blue the one colour, its blue-greys for
   surfaces; light or dark with the system. */

@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --tone: #F0F4F9;       /* Chrome's blue-grey surface: plates, the top's wash */
  --tone-2: #E6ECF4;
  --text: #1F1F1F;
  --text-2: #444746;
  --muted: #5E6064;
  --line: #E1E3E6;
  --accent: #0B57D0;     /* Chrome's blue */
  --accent-hover: #0842A0;
  --on-accent: #FFFFFF;
  --shadow: rgba(32, 44, 70, 0.16);
  /* The drawing at the top */
  --s-strip: #E3E8F0;
  --s-bar: #FFFFFF;
  --s-omni: #EEF1F5;
  --s-page: #FFFFFF;
  --s-tile: #F1F3F4;
  --s-frame: #D7DCE3;
  --s-dot: #C5CAD2;
  --font: 'Geist', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --wide: 1140px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131314;
    --tone: #1E1F21;
    --tone-2: #26282B;
    --text: #E3E3E3;
    --text-2: #C4C7C5;
    --muted: #A2A6AB;
    --line: #2E3033;
    --accent: #A8C7FA;
    --accent-hover: #D3E3FD;
    --on-accent: #062E6F;
    --shadow: rgba(0, 0, 0, 0.55);
    --s-strip: #1A1B1D;
    --s-bar: #2A2B2E;
    --s-omni: #1F2022;
    --s-page: #232426;
    --s-tile: #303134;
    --s-frame: #3A3C40;
    --s-dot: #4A4D52;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, summary { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.nowrap { white-space: nowrap; }
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ─── The bar: Foldaway, then its links ─────────────────────────────── */
.bar {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand img { border-radius: 8px; }
.bar-links { display: flex; gap: 4px; }
.bar-links a {
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.bar-links a:hover { color: var(--text); background: var(--tone-2); }
.bar-links a[aria-current="page"] { color: var(--text); background: var(--tone-2); font-weight: 500; }

/* ─── The top: a quiet wash, the promise, and the drawing ───────────── */
.hero { background: linear-gradient(180deg, var(--tone) 0%, var(--tone) 30%, var(--bg) 100%); }
.hero-text { max-width: 820px; margin: 0 auto; padding: 72px 28px 0; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(48px, 7.2vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.lede { max-width: 33em; margin: 26px auto 34px; color: var(--text-2); font-size: 20px; line-height: 1.55; }
.cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
.btn-store {
  height: 52px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn-store:hover { background: var(--accent-hover); }
.cta-note { color: var(--muted); font-size: 15px; }

.scene { max-width: 900px; margin: 64px auto 0; padding: 0 28px; cursor: pointer; }
.scene svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 50px var(--shadow)); }
.scene text { font-family: var(--font); fill: var(--text); stroke: none; font-size: 12.5px; }
.s-win { fill: var(--s-page); stroke: var(--s-frame); stroke-width: 1; }
.s-strip { fill: var(--s-strip); stroke: none; }
.s-dot { fill: var(--s-dot); stroke: none; }
.s-bar { fill: var(--s-bar); stroke: none; }
.s-omni { fill: var(--s-omni); stroke: none; }
.s-pill, .s-tile { fill: var(--s-tile); stroke: none; }
.s-me { fill: var(--accent); stroke: none; opacity: 0.85; }
.s-rule { stroke: var(--s-frame); stroke-width: 1; }
.s-line { stroke: var(--muted); stroke-width: 1.5; }
.scene .s-muted { fill: var(--muted); font-size: 12px; }
.scene .s-big { font-size: 13.5px; }
.scene .s-tab-text { font-weight: 500; }
.scene .s-name { font-size: 13.5px; text-anchor: middle; }
.s-tabs text { fill: var(--text-2); }
.s-tabs line { stroke: var(--s-frame); stroke-width: 1.2; }
.mono text { fill: #FFFFFF; font-size: 11px; font-weight: 600; text-anchor: middle; }
.scene .wiki { fill: #202124; font-family: Georgia, 'Times New Roman', serif; font-size: 12.5px; text-anchor: middle; }
.glyph { stroke: #FFFFFF; stroke-width: 1.5; }
.pointer path { fill: #FFFFFF; stroke: #202124; stroke-width: 1.3; }

/* The drawing's end state is its resting state: the tabs gone from the strip,
   their icons in Reading. The animations play from the start state to it. */
.tabgo { opacity: 0; animation: tabgo 0.3s var(--d) both; }
@keyframes tabgo { from { opacity: 1; } to { opacity: 0; } }
.fx { animation: fx 0.85s var(--d) both cubic-bezier(0.3, 0.1, 0.3, 1); }
@keyframes fx { from { transform: translateX(var(--dx)); } to { transform: none; } }
.fy { animation: fy 0.85s var(--d) both; }
@keyframes fy {
  0% { transform: translateY(var(--dy)); animation-timing-function: cubic-bezier(0.2, 0.6, 0.4, 1); }
  22% { transform: translateY(calc(var(--dy) - 22px)); animation-timing-function: cubic-bezier(0.55, 0, 0.8, 0.4); }
  100% { transform: none; }
}
.fs { transform-box: fill-box; transform-origin: center; animation: fs 0.85s var(--d) both; }
@keyframes fs {
  0% { transform: scale(0.727); }
  82% { transform: scale(1.12); }
  100% { transform: none; }
}
.chip { transform-box: fill-box; transform-origin: center; animation: press 0.3s 0.78s both; }
@keyframes press { 50% { transform: scale(0.93); } }
.reading { transform-box: fill-box; transform-origin: 50% 40%; animation: thud 0.45s 2.55s both; }
@keyframes thud { 40% { transform: scale(1.045); } }
.pointer { opacity: 0; animation: pointer 1.7s 0.15s both; }
@keyframes pointer {
  0% { opacity: 0; transform: translate(760px, 440px); }
  10% { opacity: 1; }
  38% { transform: translate(474px, 192px); animation-timing-function: ease-out; }
  44% { transform: translate(474px, 192px) scale(0.86); }
  50% { transform: translate(474px, 192px); }
  80% { opacity: 1; transform: translate(474px, 192px); }
  100% { opacity: 0; transform: translate(474px, 192px); }
}
.scene.reset * { animation: none !important; }

/* ─── The real page, under the drawing ──────────────────────────────── */
.real { max-width: var(--wide); margin: 0 auto; padding: 96px 28px 0; }
.real img { display: block; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px var(--shadow); }
.real figcaption { margin-top: 16px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* ─── What it does: text beside a plate, sides taking turns ─────────── */
#features { scroll-margin-top: 0; }
.feature {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 120px 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 72px;
  align-items: center;
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
.kicker { margin: 0 0 12px; color: var(--accent); font-size: 15px; font-weight: 600; }
.feature h2, .things h2, .faq h2, .promise h2 { margin: 0 0 18px; font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; }
.feature-text p:not(.kicker) { margin: 0 0 14px; color: var(--text-2); font-size: 18px; }
.plate { margin: 0; padding: 44px 40px; border-radius: 32px; background: var(--tone); display: grid; place-items: center; }
.plate picture { display: block; }
.plate img { display: block; filter: drop-shadow(0 22px 34px var(--shadow)); }
.plate img.narrow { max-width: 78%; margin: 0 auto; }
.plate-page { padding: 32px; }
.plate-page img { border-radius: 12px; filter: none; box-shadow: 0 22px 44px -22px var(--shadow); }

/* ─── The little things: a plain list between hairlines ─────────────── */
.things { max-width: var(--wide); margin: 0 auto; padding: 140px 28px 0; }
.things dl { margin: 34px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.things dl > div { padding: 26px 0 28px; border-top: 1px solid var(--line); }
.things dt { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.things dt svg { color: var(--accent); }
.things dd { margin: 8px 0 0 32px; color: var(--text-2); font-size: 16.5px; line-height: 1.55; }

/* ─── The privacy promise ───────────────────────────────────────────── */
.promise { max-width: var(--wide); margin: 0 auto; padding: 120px 28px 0; }
.promise-plate {
  padding: 56px;
  border-radius: 32px;
  background: var(--tone);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.promise-text p { margin: 0 0 22px; color: var(--text-2); font-size: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px; border-radius: 18px; background: var(--bg); font-size: 16.5px; font-weight: 500; line-height: 1.45; }
.checks svg { margin-top: 1px; color: var(--accent); stroke-width: 2.2; }

/* ─── Questions ─────────────────────────────────────────────────────── */
.faq {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 140px 28px 130px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 56px;
}
.faq-head { position: sticky; top: 32px; align-self: start; }
.faq-head p { margin: 0; color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 22px 44px 22px 0;
  position: relative;
  list-style: none;
  cursor: pointer;
  font-size: 18.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list details p { margin: -6px 0 24px; max-width: 42em; color: var(--text-2); }
.help .faq-list { margin-top: 8px; }

/* ─── Help, and the page after removing Foldaway: a card with what to do ── */
.report-card { margin: 56px 0 0; padding: 28px 30px; border-radius: 24px; background: var(--tone); }
.doc .report-card h2 { margin: 0 0 12px; }
.doc .report-card p { margin: 0 0 12px; }
.doc .report-card .report-actions { margin: 22px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ─── The foot of every page ────────────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding: 44px 28px 52px; color: var(--muted); font-size: 15px; }
.foot-inner { max-width: var(--wide); margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px 48px; }
.foot-brand p { margin: 8px 0 0; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 4px; }
.foot-links a, .foot-note a { color: inherit; text-decoration: none; }
.foot-links a:hover, .foot-note a:hover { color: var(--text); text-decoration: underline; }
.foot-note { max-width: var(--wide); margin: 34px auto 0; font-size: 13.5px; }

/* ─── The privacy policy: a document ────────────────────────────────── */
.doc-head { border-bottom: 1px solid var(--line); }
.doc { max-width: 760px; margin: 0 auto; padding: 64px 28px 96px; }
.doc h1 { margin: 0 0 10px; font-size: clamp(36px, 5.2vw, 54px); font-weight: 600; line-height: 1.06; letter-spacing: -0.04em; }
.doc .updated { margin: 0 0 30px; color: var(--muted); font-size: 15.5px; }
.doc .updated em { font-style: normal; }
.doc .summary { margin: 0; padding: 26px 30px; border-radius: 24px; background: var(--tone); color: var(--text); font-size: 18px; line-height: 1.6; }
.doc .summary strong:first-child { display: block; margin-bottom: 6px; color: var(--accent); font-size: 15px; font-weight: 600; }
.toc { margin: 26px 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.toc a:hover { color: var(--text); background: var(--tone); }
.doc h2 { margin: 60px 0 16px; font-size: 27px; font-weight: 600; line-height: 1.2; letter-spacing: -0.025em; scroll-margin-top: 24px; }
.doc p { margin: 0 0 16px; color: var(--text-2); }
.doc ul { margin: 0 0 18px; padding-left: 1.15em; color: var(--text-2); }
.doc li { margin: 0 0 12px; padding-left: 4px; }
.doc li::marker { color: var(--accent); }
.doc strong { color: var(--text); font-weight: 600; }
.doc code {
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--tone);
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 0.86em;
}
.table-wrap { margin: 8px 0 20px; overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.doc th, .doc td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: var(--tone); color: var(--text); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc td { color: var(--text-2); }
.doc td:first-child { min-width: 11em; color: var(--text); }

/* ─── Smaller screens ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature, .feature.flip, .promise-plate, .faq { grid-template-columns: minmax(0, 1fr); }
  .feature { padding-top: 88px; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .things, .faq { padding-top: 100px; }
  .things dl { grid-template-columns: minmax(0, 1fr); }
  .promise { padding-top: 96px; }
  .promise-plate { padding: 40px; gap: 32px; }
  .faq { gap: 24px; }
  .faq-head { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .bar { padding: 16px 18px; }
  .bar-links a { padding: 7px 10px; font-size: 14.5px; }
  .hero-text, .scene, .real, .feature, .things, .promise, .faq, .doc { padding-left: 18px; padding-right: 18px; }
  .hero-text { padding-top: 48px; }
  .lede, .feature-text p:not(.kicker) { font-size: 17px; }
  .scene { margin-top: 44px; }
  .real { padding-top: 64px; }
  .plate { padding: 24px 18px; border-radius: 24px; }
  .plate img.narrow { max-width: 100%; }
  .promise-plate { padding: 28px 22px; border-radius: 24px; }
  .doc { padding-top: 44px; }
  .doc .summary { padding: 22px; font-size: 17px; }
}
@media (max-width: 420px) {
  .bar-links a[href$="#features"] { display: none; } /* the name stays; the page is the features */
}

/* Motion off: the drawing rests in its end state, nothing slides. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
