/*
 * Copied from asafarim-os packages/theme/theme.css (tokens, the charcoal top bar and the theme toggle) so
 * igs.asafarim.site looks like every other *.asafarim.site host. Keep it in sync with that file.
 */
/*
 * @asafarim/theme: the ASafariM OS look, shared by asafarim.site, id.asafarim.site and every app.
 * Load it before the page's own stylesheet; the page keeps only what is its own.
 *
 * Two themes. Light: a cool light-blue page, white cards, navy actions. Dark: charcoal, with light-blue
 * actions. The top bar (.os-topbar) is charcoal in both. The theme follows the system until someone
 * picks one with the toggle (theme.js), which sets data-theme="light|dark" on <html> and remembers it in
 * the asafarim-theme cookie, shared by every *.asafarim.site host.
 *
 * Tokens: --bg (page), --card and --card-2 (surfaces), --ink, --muted, --line, --accent (actions, links),
 * --accent-hover, --accent-ink (text on the accent), --accent-soft (tints), --bad/--bad-ink, --good,
 * --warn/--warn-bg, --shadow, the top bar's --top-*, and the ASafariM brand's --brand-a/--brand-b
 * (marks and logos keep them in both themes).
 */
:root {
  color-scheme: light;
  --bg: #d8e6f1;
  --card: #ffffff;
  --card-2: #eef4f9;
  --ink: #15212b;
  --muted: #4b5b69;
  --line: #b9cfdf;
  --accent: #0f4c6e;
  --accent-hover: #0b3a55;
  --accent-ink: #ffffff;
  --accent-soft: rgba(15, 76, 110, 0.1);
  --bad: #b91c1c;
  --bad-ink: #ffffff;
  --good: #166534;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --shadow: 0 1px 2px rgba(21, 33, 43, 0.06), 0 6px 20px rgba(21, 33, 43, 0.07);
  --top-bg: #222222;
  --top-ink: #f4f4f4;
  --top-muted: #c2c2c2;
  --top-card: #2e2e2e;
  --top-line: #404040;
  --top-accent: #8bb9e2;
  --top-accent-ink: #0d1b26;
  --brand-a: #fbbf24;
  --brand-b: #ea580c;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #262626;
    --card: #1c1c1c;
    --card-2: #303030;
    --ink: #f2f2f2;
    --muted: #b5b5b5;
    --line: #3d3d3d;
    --accent: #7fb0dc;
    --accent-hover: #a2c7ea;
    --accent-ink: #0d1b26;
    --accent-soft: rgba(127, 176, 220, 0.14);
    --bad: #f87171;
    --bad-ink: #1c1c1c;
    --good: #86efac;
    --warn: #fcd34d;
    --warn-bg: #3a2e0c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --top-bg: #161616;
  }
}
/* The same dark values, picked with the toggle (keep the two blocks equal; the package's test checks). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #262626;
  --card: #1c1c1c;
  --card-2: #303030;
  --ink: #f2f2f2;
  --muted: #b5b5b5;
  --line: #3d3d3d;
  --accent: #7fb0dc;
  --accent-hover: #a2c7ea;
  --accent-ink: #0d1b26;
  --accent-soft: rgba(127, 176, 220, 0.14);
  --bad: #f87171;
  --bad-ink: #1c1c1c;
  --good: #86efac;
  --warn: #fcd34d;
  --warn-bg: #3a2e0c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --top-bg: #161616;
}

/*
 * The charcoal top bar. Inside it the page tokens become the bar's, so whatever sits in it (links, the
 * app switcher and user menu of @asafarim/app-sdk, which read --ink, --card, --line and --accent, menus
 * included) matches the bar without knowing about it.
 */
.os-topbar {
  --ink: var(--top-ink);
  --muted: var(--top-muted);
  --card: var(--top-card);
  --card-2: var(--top-card);
  --line: var(--top-line);
  --accent: var(--top-accent);
  --accent-hover: var(--top-ink);
  --accent-ink: var(--top-accent-ink);
  --accent-soft: rgba(139, 185, 226, 0.16);
  color-scheme: dark;
  background: var(--top-bg);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* The light/dark toggle (toggle.html, or <ThemeToggle /> from @asafarim/theme/react): a sun that sets into a moon. */
.os-theme-toggle {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.os-theme-toggle:hover {
  background: var(--card);
  border-color: var(--muted);
}
.os-theme-toggle:active {
  transform: scale(0.92);
}
.os-theme-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.os-theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  overflow: visible;
}
.os-theme-rays,
.os-theme-core {
  transform-origin: 12px 12px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s;
}
.os-theme-bite {
  transform: translate(9px, -9px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Dark, by choice or by the system: the moon. */
:root[data-theme="dark"] .os-theme-rays {
  transform: rotate(-90deg) scale(0.3);
  opacity: 0;
}
:root[data-theme="dark"] .os-theme-core {
  transform: scale(1.5);
}
:root[data-theme="dark"] .os-theme-bite {
  transform: translate(0, 0);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .os-theme-rays {
    transform: rotate(-90deg) scale(0.3);
    opacity: 0;
  }
  :root:not([data-theme="light"]) .os-theme-core {
    transform: scale(1.5);
  }
  :root:not([data-theme="light"]) .os-theme-bite {
    transform: translate(0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .os-theme-toggle,
  .os-theme-toggle * {
    transition: none !important;
  }
}

/*
 * Data tables, the same in every app: <div class="os-table-wrap"><table class="os-table">…</table></div>.
 * The wrap scrolls sideways when a wide table can't fit, so the page never does. With os-table--stack,
 * each row becomes a card on a narrow screen: give every <td> a data-label (its column's name), which is
 * shown in front of the value; a row header (<th scope="row">) becomes the card's title.
 */
.os-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.os-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.os-table caption {
  caption-side: top;
  padding: 12px 14px 4px;
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
}
.os-table th,
.os-table td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.os-table thead th {
  background: var(--card-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.os-table tbody th {
  color: var(--ink);
  font-weight: 600;
}
.os-table tbody tr:last-child > * {
  border-bottom: 0;
}
.os-table tbody tr:hover > * {
  background: var(--accent-soft);
}
/* Cells that read best on one line (dates, short codes) and ids that are long and alike. */
.os-nowrap {
  white-space: nowrap;
}
.os-id {
  display: inline-block;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 0.85em;
}
/* A cell that takes the room the others leave (a detail column), its content clipped to it, not widening the table. */
.os-table .os-fill {
  width: 100%;
  max-width: 0;
}
/* A JSON value: one clipped line, the whole of it (wrapped, never wider than the cell) when opened. */
.os-json {
  min-width: 10rem;
}
.os-json summary {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;
  font-size: 0.82rem;
  list-style: none;
}
.os-json summary::-webkit-details-marker {
  display: none;
}
.os-json summary::before {
  content: "▸ ";
  color: var(--accent);
}
.os-json[open] summary::before {
  content: "▾ ";
}
.os-json pre {
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-2);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .os-table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .os-table--stack,
  .os-table--stack caption,
  .os-table--stack tbody,
  .os-table--stack tr,
  .os-table--stack tbody th,
  .os-table--stack td {
    display: block;
    width: 100%;
  }
  .os-table--stack tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .os-table--stack tbody tr:last-child {
    border-bottom: 0;
  }
  .os-table--stack tbody th,
  .os-table--stack td {
    padding: 4px 14px;
    border: 0;
  }
  /* The label sits in a left column; the cell's own content flows as it is beside it. */
  .os-table--stack td[data-label] {
    position: relative;
    padding-left: calc(14px + max(6rem, 30%));
  }
  .os-table--stack td[data-label]::before {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    top: 6px;
    width: calc(max(6rem, 30%) - 10px);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .os-table--stack tbody tr:hover > * {
    background: transparent;
  }
  .os-table .os-fill {
    max-width: none;
  }
  .os-json {
    min-width: 0;
  }
}

/*
 * The legal footer every app ends with (<LegalFooter /> from @asafarim/theme/react): a quiet line of links to the
 * privacy, cookie and terms pages on asafarim.site. It wraps on a phone.
 */
.os-legal {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.os-legal nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 14px 16px;
}
.os-legal a {
  color: var(--muted);
  white-space: nowrap;
}
.os-legal a:hover,
.os-legal a:focus-visible {
  color: var(--accent);
}

/* IGS-Pharma's own styles, after the shared OS theme (theme.css). Tokens come from there. */

:root {
  --radius: 16px;
  --wrap: 1120px;
  --mint: #8dc3b3;
  --phone-frame: #222222;
  --phone-screen: var(--bg);
  --phone-card: var(--card);
  --feedback: #dcebfa;
  --few: #b45309;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --phone-frame: #0f0f0f;
    --feedback: #1e3550;
    --few: #fbbf24;
  }
}
:root[data-theme="dark"] {
  --phone-frame: #0f0f0f;
  --feedback: #1e3550;
  --few: #fbbf24;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem / 1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
}
a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.9rem;
}
.lead {
  font-size: 1.15rem;
  max-width: 62ch;
}
.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}
.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand:hover {
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
}
.nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav + .topbar-tools {
  margin-left: 8px;
}
@media (max-width: 980px) {
  .nav {
    display: none;
  }
}

/* Language switch: NL FR DE EN, the current one marked. */
.langs {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.lang {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  border-radius: 999px;
  padding: 4px 8px;
  min-width: 2.2em;
  text-align: center;
}
a.lang:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.lang.is-current {
  background: var(--top-accent);
  color: var(--top-accent-ink);
}
@media (max-width: 420px) {
  .topbar-inner {
    gap: 8px;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .lang {
    padding: 4px 5px;
    min-width: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
.btn--static {
  cursor: default;
}
.btn--static:hover {
  background: transparent;
}

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
}
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}
.hero-logo {
  position: absolute;
  inset: 13%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--mint);
  box-shadow: var(--shadow), 0 20px 40px rgba(0, 0, 0, 0.12);
  animation: bob 7s ease-in-out infinite;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.chip {
  position: absolute;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 650;
  font-size: 0.95rem;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip--1 {
  top: 3%;
  left: 2%;
}
.chip--2 {
  top: 18%;
  right: -2%;
  animation-delay: -1.5s;
}
.chip--3 {
  bottom: 22%;
  left: -2%;
  animation-delay: -3s;
  background: var(--feedback);
}
.chip--4 {
  bottom: 3%;
  right: 4%;
  animation-delay: -4.5s;
}
.chip--5 {
  top: 52%;
  right: -5%;
  animation-delay: -2s;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1.5deg) translateY(-4px);
  }
}
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-art {
    max-width: 340px;
  }
}
@media (max-width: 420px) {
  .chip {
    font-size: 0.8rem;
    padding: 4px 10px;
  }
}

/* Sections */
.section {
  padding: 64px 0;
}
.section--alt {
  background: var(--card-2);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* What's coming: three offers */
.offers {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.offer {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.offer p {
  color: var(--muted);
  margin: 0;
}
.offer .icon {
  display: block;
  padding: 8px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 12px;
}
.offer .tag {
  position: absolute;
  top: 24px;
  right: 24px;
}
.offer--3 {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}
@media (max-width: 860px) {
  .offers {
    grid-template-columns: 1fr;
  }
}

/* The app: the phone and its steps */
.flow {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}
.flow-phone {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.phone {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.flow-step {
  display: flex;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.flow-step:hover {
  background: var(--accent-soft);
}
.flow-step.is-active {
  background: var(--card);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.flow-num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.flow-step.is-active .flow-num {
  background: var(--accent);
  color: var(--accent-ink);
}
.flow-title {
  display: block;
  font-weight: 700;
}
.flow-text {
  display: block;
  color: var(--muted);
}
.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.flow-note {
  margin: 10px 0 0;
}
/* On narrow screens the step list sits far below the phone, so the phone gets a caption. */
.flow-caption {
  display: none;
  margin: 12px 0 0;
  min-height: 3.2em;
}
@media (max-width: 760px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-phone {
    max-width: 260px;
  }
  .flow-caption {
    display: block;
  }
}

/* Phone drawing (src/phone.mjs) */
.ph-frame {
  fill: var(--phone-frame);
}
.ph-screen {
  fill: var(--phone-screen);
}
.ph-bar {
  fill: #222222;
}
.ph-bar-title {
  fill: #f4f4f4;
  font-weight: 700;
  font-size: 16px;
}
.ph-home {
  fill: var(--muted);
  opacity: 0.5;
}
.phone text {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.ph-text {
  fill: var(--ink);
  font-size: 14px;
}
.ph-small {
  font-size: 12px;
}
.ph-bold {
  font-weight: 700;
}
.ph-muted {
  fill: var(--muted);
}
.ph-title {
  fill: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.ph-big {
  fill: var(--ink);
  font-size: 24px;
  font-weight: 800;
}
.ph-card {
  fill: var(--phone-card);
  stroke: var(--line);
}
.ph-search {
  stroke: var(--accent);
  stroke-width: 1.5;
}
.ph-feedback {
  fill: var(--feedback);
}
.ph-btn rect {
  fill: var(--accent);
}
.ph-btn-label {
  fill: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
}
.ph-btn--ghost rect {
  fill: var(--card);
  stroke: var(--line);
}
.ph-btn--ghost .ph-btn-label {
  fill: var(--ink);
}
.ph-icon {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ph-icon.is-on {
  stroke: var(--accent);
}
.ph-tabs {
  fill: var(--phone-card);
}
.ph-stock {
  fill: var(--ink);
}
.ph-dot {
  fill: var(--good);
}
.ph-dot--few {
  fill: var(--few);
}
.ph-line {
  fill: var(--line);
}
.ph-url {
  fill: var(--card-2);
}
.ph-product-bg {
  fill: var(--card-2);
}
.ph-product {
  fill: var(--mint);
}
.ph-product-cap {
  fill: var(--accent);
}
.ph-check-bg {
  fill: var(--accent);
}
.ph-check {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ph-tap {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.ph-caret {
  fill: var(--accent);
  opacity: 0;
}

.scene {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

/* Scene 1: the search box is tapped. */
.scene.is-active .ph-tap {
  animation: tap 1.4s ease 0.8s both;
}
@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(0.25);
  }
  40% {
    opacity: 0.35;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

/* Scene 2: the words are typed, then the results rise in one by one. */
.ph-typed {
  clip-path: inset(0 100% 0 0);
}
.scene.is-active .ph-typed {
  animation: type 0.9s steps(10, end) 0.2s both;
}
.scene.is-active .ph-caret {
  animation: blink 0.8s step-end 3;
}
@keyframes type {
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes blink {
  50% {
    opacity: 1;
  }
}

/* Cards rise in. */
.ph-rise {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.6s ease 0.15s, opacity 0.6s ease 0.15s;
}
.scene.is-active .ph-rise {
  transform: none;
  opacity: 1;
}
.ph-rise--1 {
  transition-delay: 1.1s;
}
.ph-rise--2 {
  transition-delay: 1.4s;
}
.ph-rise--3 {
  transition-delay: 1.7s;
}
.scene:first-child .ph-rise--1,
[data-scene="3"] .ph-rise--1 {
  transition-delay: 0.15s;
}
[data-scene="3"] .ph-rise--2 {
  transition-delay: 0.45s;
}
[data-scene="4"] .ph-rise--2 {
  transition-delay: 0.45s;
}
[data-scene="4"] .ph-rise--3 {
  transition-delay: 0.75s;
}

/* Scene 3: "Add to my list" is pressed. */
.scene.is-active .ph-add rect {
  animation: press 0.6s ease 2.4s both;
}
@keyframes press {
  to {
    fill: var(--accent-soft);
    stroke: var(--accent);
  }
}

/* Care: six features */
.features {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature p {
  color: var(--muted);
  margin: 0;
}
.icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 8px;
}
.feature .icon {
  padding: 6px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
}
.privacy-card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  align-items: center;
}
.privacy-card p {
  margin: 0;
}
.privacy-card h3 {
  margin-bottom: 4px;
}
@media (max-width: 760px) {
  .privacy-card {
    grid-template-columns: 1fr;
  }
}

/* Timeline: four steps on a line, the first one done. */
.plan {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.plan-step {
  position: relative;
}
.plan-step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.plan-step h3 {
  margin-top: 8px;
}
.plan-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
}
.plan-step.is-now .plan-dot {
  background: var(--accent);
  animation: pulse 3s ease-in-out infinite;
}
.plan-step.is-now .plan-dot .icon {
  stroke: var(--accent-ink);
  margin: 0;
  width: 26px;
  height: 26px;
}
.plan-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 56px;
  right: -8px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px);
  background-size: 36px 3px;
  animation: flow 1.6s linear infinite;
  opacity: 0.6;
}
@keyframes flow {
  to {
    background-position: 36px 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 12px var(--accent-soft);
  }
}
@media (max-width: 860px) {
  .plan {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .plan-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    padding-bottom: 24px;
  }
  .plan-dot {
    margin: 0;
  }
  .plan-step:not(:last-child)::after {
    top: 52px;
    bottom: 0;
    left: 23px;
    right: auto;
    width: 3px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 18px);
    background-size: 3px 36px;
    animation-name: flow-down;
  }
  @keyframes flow-down {
    to {
      background-position: 0 36px;
    }
  }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}
.faq-next,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Legal pages */
.prose h1 {
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  overflow-wrap: break-word;
  hyphens: auto;
}
.prose h2 {
  font-size: 1.3rem;
  margin-top: 1.6em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li {
  margin-bottom: 0.4em;
}
.prose .notice {
  font-weight: 400;
}

/* Footer */
.footer {
  background: #222222;
  color: #f4f4f4;
  padding: 40px 0;
  --ink: #f4f4f4;
  --muted: #c2c2c2;
  --accent: #8bb9e2;
  --line: #404040;
  --accent-soft: rgba(139, 185, 226, 0.16);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: start;
}
.footer .brand {
  color: #f4f4f4;
}
.footer-side {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-links a {
  color: #8bb9e2;
}
@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Motion off: everything is shown in its final state, nothing moves on its own. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .ph-typed {
    clip-path: none;
  }
}
