/* Shiori landing page — white, San Francisco as on apple.com, one accent taken
   from the app icon: the red of the bookmark, warmed towards amber. The covers
   are the colour of the page; everything else stays quiet. */

:root {
  --bg: #fff;
  --bg-elevated: #fafafc;
  --bg-card: #f5f5f7;
  --line: rgba(40, 30, 20, 0.09);
  --text: #1c1a17;
  --text-muted: #6b665d;
  --text-dim: #8d877c;
  --red: #c93b45;
  --red-deep: #a0303a;
  --amber: #e8873a;
  --radius: 28px;
  --nav-h: 52px;
  --max: 1080px;
  /* Apple's own stacks: San Francisco on Apple devices, Helvetica elsewhere,
     since SF Pro may not be served as a web font. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

/* Hidden for the few milliseconds i18n.js takes to put English in. */
html.i18n-pending body { visibility: hidden; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { -webkit-user-drag: none; user-select: none; }

.gradient-text {
  background: linear-gradient(100deg, var(--red-deep) 0%, var(--red) 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100% - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.nav-icon { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); display: block; }

.nav-links { display: flex; align-items: center; gap: 26px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-gh { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.nav-github { display: block; flex: 0 0 auto; width: 16px; height: 16px; }
.nav-cta { color: #fff !important; background: var(--text); padding: 5px 13px; border-radius: 99px; font-weight: 500; }
.nav-cta:hover { background: #000; }

@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }
@media (max-width: 560px) {
  section { padding-top: 88px; padding-bottom: 88px; }
  .section-lead { margin-bottom: 40px; }
}

/* ---------- Layout ---------- */

main { display: block; }

section {
  padding: 120px max(20px, calc((100% - var(--max)) / 2));
  text-align: center;
  scroll-margin-top: var(--nav-h);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.0625;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 20px;
}

.section-lead {
  max-width: 620px;
  margin: 0 auto 56px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Hero ---------- */

/* The hero and the three iPhones fill the first screen, whatever its height:
   the text scales with the height as well as the width, and the phones take
   what is left under it. */
.first-screen {
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

.hero {
  padding-top: clamp(16px, 3vh, 56px);
  padding-bottom: 0;
  position: relative;
  z-index: 3;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(34px, min(6vw, 5.4vh), 66px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0 0 clamp(8px, 1.4vh, 16px);
}

.hero-subtitle {
  font-size: clamp(16px, min(2vw, 2vh), 20px);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto clamp(12px, 2vh, 22px);
  line-height: 1.4;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 99px;
  font-size: 17px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.button:active { transform: scale(0.97); }
.button.ghost { color: var(--text); background: rgba(40, 30, 20, 0.05); border: 1px solid rgba(40, 30, 20, 0.08); }
.button.ghost:hover { background: rgba(40, 30, 20, 0.09); }

/* The App Store badge: black, the apple, two lines. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 18px 0 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.store-badge:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26); }
.store-badge:active { transform: scale(0.97); }
.store-badge .apple-mark { display: block; flex: none; margin-top: -3px; }
.store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; text-align: left; }
.store-text small { font-size: 10px; letter-spacing: 0.02em; margin-bottom: 3px; opacity: 0.9; }
.store-text b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.hero-meta { margin: clamp(8px, 1.2vh, 14px) 0 0; font-size: 14px; color: var(--text-dim); }

/* ---------- The showcase: three iPhones ---------- */

/* What the hero leaves of the first screen, measured as a container so the
   phones can size themselves to its height. Below a floor it stops shrinking
   them and lets them run past the fold. */
.showcase {
  flex: 1 1 0;
  min-height: 460px;
  container-type: size;
  margin-top: clamp(14px, 2.2vh, 32px);
  padding-bottom: clamp(20px, 3vh, 48px);
  overflow-x: clip;
}

/* Home, library, Discover: the library in front, the other two tucked behind
   it, fanning out as the page scrolls (--fan, 0 to 1, set by main.js). A main
   phone is 2.24 times as tall as it is wide, frame included. */
.trio {
  --pw: min(clamp(260px, 34vw, 420px), 100cqh / 2.24);
  --fan: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.device {
  --dw: var(--pw);
  position: relative;
  flex: none;
  width: var(--dw);
  margin: 0;
  padding: calc(var(--dw) * 0.03);
  border-radius: calc(var(--dw) * 0.175);
  background: #0b0b0c;
  /* The black glass, a hairline, then the titanium band, then the shadow
     the phone casts on the page. */
  box-shadow:
    0 0 0 1px #3a3a3d,
    0 0 0 calc(var(--dw) * 0.011) #c4c4c9,
    0 0 0 calc(var(--dw) * 0.016) #8e8e93,
    0 calc(var(--dw) * 0.18) calc(var(--dw) * 0.3) calc(var(--dw) * -0.06) rgba(60, 40, 20, 0.4),
    0 calc(var(--dw) * 0.03) calc(var(--dw) * 0.07) rgba(0, 0, 0, 0.16);
}
.device > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--dw) * 0.148);
  background: #f2f2f7;
}
.device::before {
  /* The Dynamic Island, over the screenshot's empty top centre. */
  content: "";
  position: absolute;
  top: calc(var(--dw) * 0.062);
  left: 50%;
  width: calc(var(--dw) * 0.29);
  height: calc(var(--dw) * 0.085);
  border-radius: 99px;
  background: #000;
  transform: translateX(-50%);
}
.device::after {
  /* The side button on the right; its shadows are the volume buttons on the left. */
  content: "";
  position: absolute;
  top: 27%;
  right: calc(var(--dw) * -0.024);
  width: calc(var(--dw) * 0.014);
  height: calc(var(--dw) * 0.3);
  border-radius: 0 3px 3px 0;
  background: #a6a6ab;
  box-shadow:
    calc(var(--dw) * -1.034) calc(var(--dw) * -0.02) 0 #a6a6ab,
    calc(var(--dw) * -1.034) calc(var(--dw) * 0.34) 0 #a6a6ab;
}
.device-main { z-index: 2; }
.device-side {
  --dw: calc(var(--pw) * 0.86);
  z-index: 1;
  margin-top: calc(var(--pw) * 0.24);
  transform: translateX(calc((1 - var(--fan)) * var(--pw) * 0.55)) scale(calc(0.9 + var(--fan) * 0.1));
  transform-origin: 50% 100%;
}
.device-side:first-child { margin-right: calc(var(--pw) * -0.1); }
.device-side:last-child {
  margin-left: calc(var(--pw) * -0.1);
  transform: translateX(calc((1 - var(--fan)) * var(--pw) * -0.55)) scale(calc(0.9 + var(--fan) * 0.1));
}
@media (max-width: 560px) {
  .trio { --pw: min(56vw, 100cqh / 2.24); }
  .device-side:first-child { margin-right: calc(var(--pw) * -0.3); }
  .device-side:last-child { margin-left: calc(var(--pw) * -0.3); }
}

/* ---------- Tour: one screen of the app per tile ---------- */

/* As Apple presents its own apps: grey tiles on the white page, a short bold
   line, a few quiet words, and the screen itself on an iPhone that the tile
   cuts off at its foot. */
.tour-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  text-align: left;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 44px 0;
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.tile-text { align-self: stretch; }
.tile h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.125;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 12px;
}
.tile p { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.47; color: var(--text-muted); }
/* The phone stands at the foot of the tile and sinks into it: every tile
   shows the same phone, cut at the same height, whatever its text. A phone
   is 2.1 times as tall as it is wide; 1.45 widths of it show. */
.tour { --tile-phone: clamp(220px, 27vw, 300px); }
.tile-device {
  --dw: var(--tile-phone);
  margin-top: auto;
  margin-bottom: calc(var(--dw) * (1.45 - 2.102));
  flex: none;
}
.tile-text { margin-bottom: 44px; }
.tile-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
  padding: 0 64px;
}
.tile-wide .tile-text { align-self: center; max-width: 420px; }
.tile-wide h3 { font-size: clamp(28px, 3.4vw, 40px); }
.tile-wide p { font-size: 19px; }
.tile-wide .tile-text { margin-bottom: 0; }
.tile-wide .tile-device { align-self: end; justify-self: center; margin-top: 64px; }
@media (max-width: 760px) {
  .tour-grid { grid-template-columns: 1fr; gap: 16px; }
  .tile, .tile-wide { display: flex; padding: 36px 28px 0; }
  .tile-wide .tile-text { align-self: stretch; }
  .tile-wide .tile-device { align-self: center; margin-top: auto; }
  .tour { --tile-phone: min(270px, 68vw); }
  .tile-text, .tile-wide .tile-text { margin-bottom: 36px; }
}

/* ---------- Features ---------- */

.features { padding-top: 64px; }

/* Two columns, so each card is wide enough for its piece of the app to read
   as it does on the phone. */
.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 16px;
  text-align: left;
}
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; gap: 14px; } }

.card {
  background: var(--bg-card);
  border-radius: 28px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 340px;
  overflow: hidden;
}
.card h3 { order: 1; margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 600; }
.card p { order: 2; margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.45; letter-spacing: -0.005em; }
.card-visual { order: 3; flex: 1 1 auto; min-height: 160px; padding-top: 16px; display: flex; align-items: center; justify-content: center; }

.card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-rows: 1fr auto auto 1fr;
  column-gap: 32px;
  row-gap: 8px;
}
.card.wide h3 { grid-column: 1; grid-row: 2; }
.card.wide p { grid-column: 1; grid-row: 3; }
.card.wide .card-visual { grid-column: 2; grid-row: 1 / -1; padding-top: 0; }
@media (max-width: 900px) {
  .card.wide { display: flex; }
  .card.wide .card-visual { padding-top: 16px; }
}
/* Across the page, its two parts side by side and whole. */
.card.duo { grid-column: span 2; }
@media (max-width: 560px) {
  .card { padding: 24px 22px 22px; min-height: 0; }
  .card.wide, .card.duo { grid-column: span 1; }
}

.card.dark { background: #1c1a17; }
.card.dark h3 { color: #f5f1e8; }
.card.dark p { color: #9a948a; }

/* The shelf: a row of spines on a board, a yellow box snapping around each
   one in turn, and a running count. */
.shelf-demo { position: relative; width: 100%; max-width: 420px; padding: 10px 0 0; }
.spines { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 150px; padding: 0 14px; }
.spines i {
  position: relative;
  display: block;
  width: var(--w);
  height: calc(118px + (var(--w) - 15px) * 1.4);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, #000) 0%, var(--c) 18%, color-mix(in srgb, var(--c) 88%, #fff) 50%, var(--c) 82%, color-mix(in srgb, var(--c) 70%, #000) 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-style: normal;
}
.spines i span {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--t, #fff);
  white-space: nowrap;
  opacity: 0.9;
}
.spines i::after {
  content: "";
  position: absolute;
  inset: -4px -3px;
  border: 2px solid #ffd60a;
  border-radius: 4px;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spines i.found::after { opacity: 1; transform: scale(1); }
.spines i.found span { opacity: 1; }
.shelf-board { height: 10px; margin: 0 4px; border-radius: 2px; background: linear-gradient(#b48a5e, #8e6a44); box-shadow: 0 6px 12px rgba(80, 50, 20, 0.25); }
.shelf-count {
  position: absolute;
  top: 0;
  right: 8px;
  padding: 5px 11px;
  border-radius: 99px;
  background: #1c1a17;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
.shelf-count b { font-variant-numeric: tabular-nums; }

/* Parts of the app's own screens: its type, its colours, its cards, cut
   from the captures by scripts/site-screens.sh. */
/* Whole, across the card. Each is the app's white card alone; the page
   rounds its corners at the app's radius (76 of 1200 pixels) and casts its
   shadow on the card behind. */
.card-visual:has(.card-parts) { justify-content: flex-start; align-items: flex-end; padding-top: 32px; padding-bottom: 6px; }
.card-parts {
  flex: none;
  width: 100%;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-part {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6.4cqi;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Cut under their section's title, the discoveries and the favorites sit
   closer to their card's edge than the saga does: the page gives them back
   the saga's margins, in the capture's pixels over its 1200. */
.card-part[data-part="discoveries"], .card-part[data-part="hearts"] { box-sizing: border-box; background: #fff; }
.card-part[data-part="discoveries"] { padding: 4.25cqi 3.5cqi 0; }
.card-part[data-part="hearts"] { padding: 1.75cqi 1cqi 0; }
/* The cover picker on the top of an iPhone standing at the foot of the card
   and sinking into it, as the tour's tiles show theirs: a phone is 2.1 times
   as tall as it is wide, and 1.05 widths of it show. */
.card-visual:has(.card-device) { align-items: flex-end; padding-bottom: 0; }
.card-device { --dw: 290px; margin-bottom: calc(var(--dw) * (1.05 - 2.102) - 26px); }
.card-part[data-part="challenge"] { box-sizing: border-box; padding: 1.9cqi 1.9cqi 0; background: #fff; }
@media (max-width: 560px) {
  .card.duo .card-part[data-part="hearts"] { padding: 2.8cqi 1.1cqi 0; }
  .card.duo .card-part[data-part="challenge"] { padding: 1.92cqi 1.92cqi 0; }
}
/* The author's row is shorter than the saga's beside it: drawn in a box of
   the saga's proportions, white below, the two cards line up. */
.card-part[data-part="authors"] { aspect-ratio: 1200 / 507; object-fit: contain; object-position: top; background: #fff; }
.card.duo .card-parts { flex-direction: row; align-items: stretch; gap: 16px; }
/* Side by side, the two stand as tall as the taller: the shorter keeps its
   proportions at the top, white below. */
.card.duo .card-part { object-fit: contain; object-position: top; background: #fff; }
.card.duo .card-part { flex: 1 1 0; min-width: 0; border-radius: 3.3cqi; }
@media (max-width: 560px) {
  .card.duo .card-parts { flex-direction: column; gap: 12px; }
  .card.duo .card-part { flex: none; border-radius: 6.4cqi; }
}

/* An iPhone's lock screen, standing at the foot of the card and sinking into
   it: the clock, and the notification sliding down from the top. */
.card-visual:has(.lock-device) { align-items: flex-end; padding-top: 28px; }
/* Wide, the phone takes the larger share, for a notification as wide as iOS draws it. */
.card.wide:has(.lock-device) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.lock-device {
  --dw: min(400px, 76vw);
  margin-bottom: calc(var(--dw) * (0.84 - 2.172) - 26px);
}
.lock-device::before { z-index: 2; }
.lock-screen {
  position: relative;
  aspect-ratio: 660 / 1434;
  border-radius: calc(var(--dw) * 0.148);
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 20% 0%, rgba(255, 196, 120, 0.55), transparent 60%),
    linear-gradient(165deg, #5a1f2c 0%, #a0303a 40%, #d9733f 75%, #f0b267 100%);
}
.lock-clock { position: absolute; top: calc(var(--dw) * 0.41); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; color: rgba(255, 255, 255, 0.92); }
.lock-clock span { font-size: calc(var(--dw) * 0.052); font-weight: 600; }
.lock-clock b { font-size: calc(var(--dw) * 0.23); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
/* The awards the app follows, each by its own logo, drawn in one ink: the
   logo is a mask, light where the mark is, and the page fills it in gold. */
.awards { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.award { width: calc((100% - 24px) / 3); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 12px; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(40, 30, 20, 0.08); }
.award-logo { display: block; width: 100%; height: 64px; background: #8a6d1d; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; mask-mode: luminance; }

/* iOS's share sheet, captured on an iPhone with a cover shared from Photos,
   and the extension's own answer sliding in over it. */
/* The whole iPhone, standing at the foot of the card and sinking into it:
   the sheet shows down to its row of apps. */
.card-visual:has(.share-demo) { align-items: flex-end; padding-top: 28px; }
.share-demo { position: relative; display: flex; justify-content: center; width: 100%; margin-bottom: calc(var(--share-dw) * (1.28 - 2.172) - 26px); --share-dw: min(300px, 72vw); }
.share-device { --dw: var(--share-dw); }
.share-toast { bottom: calc(var(--share-dw) * (2.172 - 1.18) + 40px); }
.share-toast { position: absolute; left: 50%; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: #1c1a17; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); transform: translate(-50%, 12px); opacity: 0; animation: share-toast 5s ease-in-out infinite; }
.share-toast .sf { color: #f0b267; }
@keyframes share-toast { 0%, 32% { opacity: 0; transform: translate(-50%, 12px); } 40%, 88% { opacity: 1; transform: translate(-50%, 0); } 96%, 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* Editions in several languages, as the app's rows tag them: the language
   after the title, the headphones badge on a recording's cover. */
.lang-demo .watch-book:last-child { border-bottom: 0; }
.lang-cover { position: relative; flex: none; }
.lang-cover img { display: block; }
.audio-badge { position: absolute; top: -1.6cqi; right: -1.6cqi; display: grid; place-items: center; width: 5.6cqi; height: 5.6cqi; border-radius: 50%; background: #ff9500; color: #fff; box-shadow: 0 0 0 0.6cqi #fff; }
.audio-badge .sf { width: 3.3cqi; height: 3.3cqi; }

/* The library search: a few letters typed, the sagas then the books found,
   the match marked as the app marks it. */
.search-demo { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; container-type: inline-size; }
.search-field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; background: #fff; box-shadow: 0 6px 18px rgba(40, 30, 20, 0.08); color: rgba(60, 60, 67, 0.6); font-size: 16px; }
.search-typed { color: #000; }
.search-typed::after { content: ""; animation: search-type 6s steps(1) infinite; }
.search-caret { width: 2px; height: 20px; margin-left: -6px; background: #007aff; animation: search-caret 1s steps(1) infinite; }
@keyframes search-type { 0% { content: ""; } 8% { content: "H"; } 14% { content: "Hy"; } 20% { content: "Hyp"; } 26%, 100% { content: "Hypér"; } }
.i18n-en .search-typed::after { animation-name: search-type-en; }
@keyframes search-type-en { 0% { content: ""; } 8% { content: "H"; } 14% { content: "Hy"; } 20% { content: "Hyp"; } 26%, 100% { content: "Hyper"; } }
@keyframes search-caret { 50% { opacity: 0; } }
.search-results { padding: 4px 0 8px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(40, 30, 20, 0.1); opacity: 0; animation: search-results 6s ease infinite; }
@keyframes search-results { 0%, 18% { opacity: 0; transform: translateY(6px); } 28%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.search-head { display: block; padding: 10px 16px 4px; font-size: 13px; font-weight: 600; color: rgba(60, 60, 67, 0.6); }
.search-row { display: flex; gap: 12px; align-items: flex-start; padding: 6px 16px; }
.search-row img { flex: none; width: 34px; height: 51px; object-fit: cover; border-radius: 3px; outline: 0.5px solid rgba(60, 60, 67, 0.29); outline-offset: -0.5px; }
.search-row div { display: flex; flex-direction: column; gap: 1px; margin-top: -2px; }
.search-row .watch-title { display: block; font-size: 15px; }
.search-row .watch-author { font-size: 13px; }
.search-row mark { background: rgba(255, 204, 0, 0.35); color: inherit; border-radius: 3px; }

/* Rating a book or a whole saga: the stars fill one by one, the heart beats. */
.rate-demo { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.rate-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 16px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(40, 30, 20, 0.08); }
.rate-row img { flex: none; width: 48px; height: 72px; object-fit: cover; border-radius: 4px; outline: 0.5px solid rgba(60, 60, 67, 0.29); outline-offset: -0.5px; }
.rate-row > div { flex: 1; display: flex; flex-direction: column; gap: 2px; margin-top: -2px; }
.rate-row .watch-title { font-size: 17px; }
.rate-row .watch-author { font-size: 14px; }
.rate-stars { display: flex; gap: 3px; margin-top: 6px; }
.rate-star .sf { width: 20px; height: 19px; background-color: rgba(120, 120, 128, 0.2); animation: rate-fill 5s ease infinite; animation-delay: calc(var(--i) * 0.18s); }
.saga .rate-star .sf { animation-delay: calc(2.5s + var(--i) * 0.18s); }
.saga .rate-star:nth-child(5) .sf { animation-name: rate-fill-four; }
@keyframes rate-fill { 0%, 6% { background-color: rgba(120, 120, 128, 0.2); transform: scale(0.8); } 12% { background-color: #ffcc00; transform: scale(1.15); } 16%, 90% { background-color: #ffcc00; transform: none; } 100% { background-color: rgba(120, 120, 128, 0.2); } }
@keyframes rate-fill-four { 0%, 100% { background-color: rgba(120, 120, 128, 0.2); } }
/* A saga as the Series tab draws it: its name, then the strip of its volumes. */
.rate-strip { display: flex; gap: 6px; margin-top: 8px; }
.rate-strip img { width: 34px; height: 51px; object-fit: cover; border-radius: 3px; outline: 0.5px solid rgba(60, 60, 67, 0.29); outline-offset: -0.5px; }
.rate-row.saga { align-items: flex-start; }
.rate-row .rate-heart { margin-top: 2px; }
.drop-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: rgba(142, 142, 147, 0.16); color: #636366; font-size: 12px; font-weight: 600; }
/* The thumb tips down once the book is dropped, after the stars and hearts
   above it have filled, on the same five-second loop. */
.drop-thumb { width: 14px; height: 14px; transform-origin: 60% 30%; animation: drop-thumb 5s ease infinite; animation-delay: 4.2s; }
@keyframes drop-thumb { 0%, 4% { transform: none; } 9% { transform: rotate(-22deg) translateY(2px) scale(1.25); } 14% { transform: rotate(6deg); } 18%, 100% { transform: none; } }

/* An SF Symbol, rendered from macOS into site/symbols and painted in the
   text's colour, so an icon is the one the app draws. */
.sf { flex: none; display: block; background: currentColor; -webkit-mask: var(--sf) center / contain no-repeat; mask: var(--sf) center / contain no-repeat; }

/* A book's comment, as its page shows it: the book, then the speech bubble and the text. */
.note-demo { width: 100%; max-width: 380px; display: flex; flex-direction: column; padding: 4px 16px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(40, 30, 20, 0.08); }
.note-book { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 0.5px solid rgba(60, 60, 67, 0.29); }
.note-book img { flex: none; width: 48px; height: 72px; object-fit: cover; border-radius: 4px; outline: 0.5px solid rgba(60, 60, 67, 0.29); outline-offset: -0.5px; }
.note-book > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-top: -2px; }
.note-book .watch-title { font-size: 17px; white-space: normal; }
.note-book .watch-author { font-size: 14px; }
.note-text { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; font-size: 15px; line-height: 1.35; color: #000; }
.note-text .sf { width: 22px; height: 20px; margin-top: 0; color: rgba(60, 60, 67, 0.6); }

.note-text + .note-text { border-top: 0.5px solid rgba(60, 60, 67, 0.29); }
.rec-by { align-items: center; }
.rec-by span { flex: 1; }
.rec-by b { font-weight: 400; color: #007aff; }

/* A friend's recent activity, as the friends list draws it: the friend, then
   one cover per move with what happened under it, in the app's grey. */
.activity-demo { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.activity-row { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 12px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(40, 30, 20, 0.08); }
.activity-friend { display: flex; align-items: center; gap: 10px; }
.activity-row .watch-title { font-size: 17px; }
.activity-avatar { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 14px; font-style: normal; font-weight: 600; }
.activity-strip { display: flex; gap: 12px; }
.activity-tile { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: rgba(60, 60, 67, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; outline: 0.5px solid rgba(60, 60, 67, 0.29); outline-offset: -0.5px; }
/* The book's own switch, as its page draws it: on, the book stays off every friend's screen. */
.activity-row.activity-hide { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
.activity-hide-label { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 17px; color: #000; }
.activity-hide-label .sf { width: 22px; height: 20px; color: rgba(60, 60, 67, 0.6); }
.activity-switch { flex: none; position: relative; width: 51px; height: 31px; border-radius: 99px; background: #34c759; animation: hide-track 5s ease infinite; }
.activity-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); animation: hide-knob 5s ease infinite; }
/* Off, then on, as a reader flips it. */
@keyframes hide-track { 0%, 30% { background: rgba(120, 120, 128, 0.16); } 38%, 88% { background: #34c759; } 96%, 100% { background: rgba(120, 120, 128, 0.16); } }
@keyframes hide-knob { 0%, 30% { transform: translateX(-20px); } 38%, 88% { transform: none; } 96%, 100% { transform: translateX(-20px); } }
.rate-heart .sf { width: 26px; height: 23px; background-color: rgba(120, 120, 128, 0.2); animation: rate-heart 5s ease infinite; animation-delay: 1.2s; }
.saga .rate-heart .sf { animation-delay: 3.7s; }
@keyframes rate-heart { 0%, 4% { background-color: rgba(120, 120, 128, 0.2); transform: none; } 10% { background-color: #ff3b30; transform: scale(1.3); } 16%, 85% { background-color: #ff3b30; transform: none; } 100% { background-color: rgba(120, 120, 128, 0.2); } }

/* Watching a book for its translation or its recording: the two switches the
   book's menu offers, the audio one turning itself on. */
.watch-demo { width: 100%; max-width: 380px; padding: 6px 0; border-radius: 22px; container-type: inline-size; background: #fff; box-shadow: 0 10px 30px rgba(40, 30, 20, 0.1); }
/* Drawn at 360 points and scaled with the card, as the captures are: every
   length below is its iPhone size over 3.6. The book as the app's rows draw
   it: the cover at 56 points, the title top-aligned beside it with its
   edition's language tagged, the author below. */
.watch-book { display: flex; gap: 2.6cqi; align-items: flex-start; padding: 1.4cqi 4.4cqi 3.3cqi; border-bottom: 1px solid var(--line); }
.watch-book img { flex: none; width: 15.6cqi; height: 23.3cqi; object-fit: cover; border-radius: 1.1cqi; outline: 0.5px solid rgba(60, 60, 67, 0.29); outline-offset: -0.5px; }
.watch-book > div { display: flex; flex-direction: column; gap: 0.3cqi; margin-top: -0.9cqi; }
.watch-title { display: flex; align-items: baseline; gap: 1.7cqi; line-height: 1.2; font-size: 4.7cqi; font-weight: 500; letter-spacing: -0.02em; color: #000; white-space: nowrap; }
.watch-author { line-height: 1.2; font-size: 4.2cqi; letter-spacing: -0.01em; color: rgba(60, 60, 67, 0.6); }
.lang-tag { align-self: baseline; line-height: 1.25; font-style: normal; font-size: 3.6cqi; font-weight: 600; padding: 0.2cqi 1.3cqi; border-radius: 1.2cqi; background: rgba(120, 120, 128, 0.2); color: rgba(60, 60, 67, 0.6); }
.watch-row { display: flex; align-items: center; gap: 3.3cqi; padding: 3cqi 4.4cqi; font-size: 4.7cqi; letter-spacing: -0.02em; white-space: nowrap; }
.watch-row + .watch-row { border-top: 1px solid var(--line); }
.watch-row em { flex: 1; font-style: normal; color: #000; }
.watch-icon { display: grid; place-items: center; width: 6.7cqi; color: #007aff; }
.watch-icon .sf { width: 5cqi; height: 5cqi; }
.watch-switch { position: relative; flex: none; width: 12.2cqi; height: 7.2cqi; border-radius: 99px; background: #e5e5ea; }
.watch-switch::after { content: ""; position: absolute; top: 0.55cqi; left: 0.55cqi; width: 6.1cqi; height: 6.1cqi; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.watch-row.on .watch-switch { background: #34c759; }
.watch-row.on .watch-switch::after { transform: translateX(5cqi); }
.watch-row.cycle .watch-switch { animation: watch-bg 4s ease-in-out infinite; }
.watch-row.cycle .watch-switch::after { animation: watch-knob 4s ease-in-out infinite; }
@keyframes watch-bg { 0%, 35% { background: #e5e5ea; } 45%, 90% { background: #34c759; } 100% { background: #e5e5ea; } }
@keyframes watch-knob { 0%, 35% { transform: none; } 45%, 90% { transform: translateX(5cqi); } 100% { transform: none; } }

/* The notification, as iOS shows it, sliding down from the top. */
.notif-demo { position: absolute; top: calc(var(--dw) * 0.14); left: calc(var(--dw) * 0.03); right: calc(var(--dw) * 0.03); z-index: 1; }
.notif-demo .notif img { width: 36px; height: 36px; }
.notif {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  color: #1d1d1f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-140%);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.1), opacity 0.3s ease;
}
.notif.in { transform: none; opacity: 1; }
.notif img { border-radius: 9px; flex: none; }
.notif-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.notif-top b { font-weight: 600; }
.notif-top span { color: #6e6e73; white-space: nowrap; }
.notif-body { color: #3a3a3c; }
/* Title and body run on as one paragraph, the title in bold. */
.notif-text [data-notif-title], .notif-text .notif-body { display: inline; }
.notif-text [data-notif-title] { font-weight: 600; }
.notif-text [data-notif-title]::after { content: " "; }

/* Kindle and Audible: covers travel from each app's icon to Shiori's, which
   glows as they arrive. Drawn on a 320x170 grid that scales with the card. */
.sync-demo { position: relative; width: 100%; max-width: 340px; aspect-ratio: 320 / 170; }
.sync-beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sync-beams path { fill: none; stroke-linecap: round; }
.sync-track { stroke: rgba(0, 0, 0, 0.1); stroke-width: 2; }
.sync-cover { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.sync-app, .sync-hub img { position: absolute; display: block; border-radius: 22.5%; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12), 0 0 0 0.5px rgba(0, 0, 0, 0.1); }
.sync-app { left: 4.375%; width: 16.25%; }
.sync-app.kindle { top: 8.235%; }
.sync-app.audible { top: 61.176%; }
.sync-hub { position: absolute; left: 66.25%; top: 27.647%; width: 23.75%; aspect-ratio: 1; }
.sync-hub img { inset: 0; width: 100%; height: 100%; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), 0 0 0 0.5px rgba(0, 0, 0, 0.1); }
/* The halo: one ring per beam, leaving the icon as the beam reaches it. */
.sync-halo { position: absolute; inset: 0; border-radius: 22.5%; background: rgba(201, 59, 69, 0.22); opacity: 0; animation: sync-halo 2.4s ease-out infinite; animation-delay: 1.8s; }
.sync-halo + .sync-halo { animation-delay: 3s; }
@keyframes sync-halo { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.sync-badge {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.sync-badge .sf { animation: sync-turn 2.4s linear infinite; }
@keyframes sync-turn { to { transform: rotate(360deg); } }

/* One book: three sources funnel into one record card. */
.one-demo { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Every form a book takes in Shiori, each a photograph of it in hand. */
.one-src { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 20px; background: #ddd; box-shadow: 0 10px 30px rgba(40, 30, 20, 0.1); animation: one-pulse 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
.one-src img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.one-src em { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); color: #fff; font-style: normal; font-size: 13px; font-weight: 600; text-align: center; white-space: nowrap; }
@keyframes one-pulse { 0%, 100% { transform: none; } 8% { transform: translateY(-5px); } 16% { transform: none; } }

/* ---------- Comparison ---------- */

.compare-scroll { max-width: 980px; margin: 0 auto 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(40, 30, 20, 0.05);
  overflow: hidden;
  font-size: 15px;
  text-align: center;
}
.compare-table th, .compare-table td { padding: 18px 10px; vertical-align: middle; }
.compare-table thead th { font-size: 14px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.01em; padding-top: 20px; padding-bottom: 16px; }
.compare-table thead th:first-child, .compare-table tbody th { width: 160px; }
.compare-table thead th:last-child { width: 190px; }
.compare-table td:last-child > span { white-space: nowrap; }
.compare-table thead .us { color: var(--text); font-size: 16px; }
.compare-table thead .us span { display: inline-flex; align-items: center; gap: 8px; }
.compare-table thead .us img { border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06); }
.compare-table tbody th { text-align: left; font-weight: 600; color: var(--text); padding-left: 24px; }
.compare-table tbody th, .compare-table tbody td { border-top: 1px solid var(--line); }
.compare-table td { color: var(--text-muted); line-height: 1.25; }
.compare-table td span { display: inline-flex; align-items: center; gap: 7px; }
.compare-table td small { display: block; margin-top: 5px; font-size: 12px; color: var(--text-dim); font-weight: 400; }
.compare-table td span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box; }
.compare-table td.yes span::before {
  background: #22a35a;
  -webkit-mask: url(symbols/checkmark.circle.fill.png) center / contain no-repeat;
  mask: url(symbols/checkmark.circle.fill.png) center / contain no-repeat;
}
.compare-table td.no span::before { border: 1.5px solid rgba(40, 30, 20, 0.18); }
.compare-table td.some span::before { background: linear-gradient(90deg, #e8a200 50%, transparent 50%); border: 1.5px solid #e8a200; }
.compare-table td.plain span::before { display: none; }
.compare-table td.no { color: var(--text-dim); }
.compare-table td:last-child, .compare-table thead th:last-child {
  background: linear-gradient(180deg, rgba(201, 59, 69, 0.07), rgba(232, 135, 58, 0.06));
}
.compare-table td:last-child { color: var(--text); font-weight: 600; }
.compare-table td:last-child small { color: var(--text-muted); }

.compare .prices-note { max-width: 620px; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 720px; margin: 0 auto; text-align: left; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 36px 20px 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-list p { margin: 0 0 22px; color: var(--text-muted); font-size: 16px; line-height: 1.55; max-width: 640px; }
.faq-list p a { color: var(--red); }

/* ---------- Download ---------- */

.download { padding-top: 140px; padding-bottom: 140px; }
/* The icon over a slow drift of covers, like the app's opening. */
.download-icon {
  position: relative;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 22.5%;
  overflow: hidden;
  margin: 0 auto 28px;
  background: var(--bg-card);
  box-shadow: 0 20px 50px rgba(40, 30, 20, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.download-icon img { position: relative; display: block; width: 100%; height: 100%; z-index: 1; }
.icon-wall { position: absolute; inset: -20% -40%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; display: none; }
.icon-wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }

/* Free and Premium as an App Store paywall compares them: a short table of
   what each holds, limits in numbers, the Premium column lifted out. */
.plan-table { width: 100%; max-width: 680px; margin: 0 auto 14px; border-collapse: separate; border-spacing: 0; font-size: 15px; text-align: center; }
.plan-table thead th { padding: 26px 12px 18px; vertical-align: bottom; font-weight: 600; }
.plan-table thead th span { display: block; font-size: 15px; color: var(--text-muted); font-weight: 600; }
.plan-table thead th b { display: block; margin-top: 4px; font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-table thead th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--text-dim); }
.plan-table th[scope="row"] { text-align: left; font-weight: 400; color: var(--text); padding: 13px 16px 13px 0; }
.plan-table td { padding: 13px 12px; color: var(--text-muted); width: 26%; }
.plan-table tbody tr + tr > * { border-top: 1px solid var(--line); }
.plan-table .premium { position: relative; background: #fff; }
.plan-table thead .premium { border-radius: 20px 20px 0 0; box-shadow: inset 0 1.5px 0 var(--red), inset 1.5px 0 0 var(--red), inset -1.5px 0 0 var(--red); }
.plan-table tbody .premium { box-shadow: inset 1.5px 0 0 var(--red), inset -1.5px 0 0 var(--red); color: var(--text); }
.plan-table tbody tr:last-child .premium { border-radius: 0 0 20px 20px; box-shadow: inset 1.5px 0 0 var(--red), inset -1.5px 0 0 var(--red), inset 0 -1.5px 0 var(--red); }
.plan-table thead .premium span:not(.plan-tag) { color: var(--red); }
.plan-table .sf { width: 17px; height: 17px; margin: 0 auto; }
.plan-table .sf.yes { color: #34c759; }
.plan-table .premium .sf.yes { color: var(--red); }
.plan-table .sf.no { color: rgba(60, 60, 67, 0.3); }
.plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 12px; border-radius: 99px; background: linear-gradient(120deg, var(--red-deep), var(--red), var(--amber)); color: #fff !important; font-size: 12px !important; font-weight: 600; }
@media (max-width: 560px) { .plan-table { font-size: 14px; } .plan-table td { width: 30%; } .plan-table thead th b { font-size: 20px; } }
.prices-note { max-width: 460px; margin: 0 auto 44px; font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ---------- Footer ---------- */

.footer { padding: 40px 20px 60px; text-align: center; font-size: 13px; color: var(--text-dim); border-top: 1px solid var(--line); }
.footer p { margin: 6px 0; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .sync-badge .sf, .sync-halo, .one-src, .watch-switch, .watch-switch::after, .search-caret { animation: none; }
  .rate-star .sf, .rate-heart .sf { animation: none; background-color: #ffcc00; }
  .rate-heart .sf { background-color: #ff3b30; }
  .activity-switch, .activity-switch::after, .drop-thumb { animation: none; }
  .search-typed::after { animation: none; content: "Hypér"; }
  .i18n-en .search-typed::after { content: "Hyper"; }
  .search-results { animation: none; opacity: 1; }
  .share-toast { animation: none; opacity: 1; transform: translate(-50%, 0); }
  .sync-cover { display: none; }
}

/* The filter menu: the phone hangs from just under the text and runs off the
   card's bottom edge, so a taller card shows more of it. */
.card-visual:has(.filter-phone) { position: relative; align-items: flex-start; min-height: 280px; margin-bottom: -26px; padding: 0; overflow: hidden; }
.filter-phone { position: absolute; top: 20px; left: 0; right: 0; margin: 0; }
