/* Fonts are hosted with the site (SIL Open Font License, see assets/fonts). */
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

  :root {
    --bg: #faf6ef;
    --surface: #fffcf7;
    --ink: #2b2724;
    --mute: #5d554d;
    --line: #ece4d8;
    --fill: #f1eade;
    --leaf: #2e9e6b;
    --leaf-strong: #268257;
    --leaf-soft: #e6f2ea;
    --leaf-line: #bfe0cc;
    --on-leaf: #ffffff;
    --honey: #b9740f;
    --honey-soft: #fcefd9;
    --red: #c0473a;
    --red-soft: #f7e3df;
    --face1: #f6dedb;
    --face2: #fbe6d2;
    --face3: #fbf1d0;
    --face4: #e8f1e0;
    --face5: #ddefe4;
    --phone: #2b2724;
    --shadow: 0 1px 2px rgba(43, 39, 36, .06), 0 18px 40px -18px rgba(43, 39, 36, .28);
    --radius: 12px;
    --display: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    background: var(--bg);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--body);
    padding-inline: clamp(16px, 4vw, 32px);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
  h1 { font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.1rem); line-height: 1.04; }
  h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.55rem); line-height: 1.12; }
  h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 800; }
  p { margin: 0; max-width: 62ch; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin-inline: auto; }
  .eyebrow { font: 700 .78rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
  .lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--mute); }
  .muted { color: var(--mute); }
  .small { font-size: .875rem; }
  :focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

  /* buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
    padding: .95em 1.35em; border-radius: 10px; border: 1.5px solid transparent;
    transition: background-color .15s, border-color .15s, transform .15s;
  }
  .btn-primary { background: var(--leaf); color: var(--on-leaf); }
  .btn-primary:hover { background: var(--leaf-strong); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
  .btn-ghost:hover { border-color: var(--mute); }
  .btn:active { transform: translateY(1px); }

  /* header */
  .site-header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    margin-inline: calc(-1 * clamp(16px, 4vw, 32px));
    padding: 14px clamp(16px, 4vw, 32px);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.2) blur(10px);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .site-header .wrap { display: flex; align-items: center; gap: 20px; }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--display); }
  .brand svg { width: 34px; height: 34px; flex: none; }
  .nav { display: flex; gap: 22px; margin-left: auto; }
  .nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--mute); }
  .nav a:hover { color: var(--ink); }
  .header-actions { display: flex; align-items: center; gap: 12px; }
  .lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
  .lang a {
    font: 700 .78rem/1 var(--body); letter-spacing: .06em; border: 0; background: transparent; color: var(--mute);
    padding: .5em .75em; border-radius: 999px; text-decoration: none; display: inline-block;
  }
  .lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
  .site-header .btn { padding: .7em 1.05em; font-size: .92rem; }
  @media (max-width: 860px) { .nav { display: none; } .header-actions { margin-left: auto; } }
  @media (max-width: 420px) { .site-header .btn { display: none; } }

  section { padding-block: clamp(56px, 8vw, 104px); }
  section + section { border-top: 1px solid var(--line); }

  /* hero */
  .hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 96px); }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
  .hero h1 .line2 { color: var(--leaf); display: block; }
  .hero .lead { margin-top: 24px; }
  .hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
  @media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero .phone { margin-inline: auto; } }

  /* phone */
  .phone {
    width: min(100%, 290px); aspect-ratio: 9 / 18.5; max-width: 100%;
    border: 10px solid var(--phone); border-radius: 40px; background: var(--surface);
    box-shadow: var(--shadow); position: relative; overflow: hidden;
  }
  .phone::before { content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0; width: 32%; height: 18px; border-radius: 999px; background: var(--phone); z-index: 3; }
  .screen { position: absolute; inset: 0; padding: 48px 18px 20px; display: flex; flex-direction: column; }
  .app-top { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--mute); }
  .dots { display: flex; gap: 5px; }
  .dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line); }
  .dots i.on { width: 18px; background: var(--leaf); }
  .q { font: 800 1.15rem/1.3 var(--display); text-align: center; margin-top: auto; text-wrap: balance; }
  .faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 18px; margin-bottom: auto; }
  .face {
    aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 1.15rem;
    border: 1.5px solid transparent; position: relative;
  }
  .face:nth-child(1) { background: var(--face1); }
  .face:nth-child(2) { background: var(--face2); }
  .face:nth-child(3) { background: var(--face3); }
  .face:nth-child(4) { background: var(--face4); }
  .face:nth-child(5) { background: var(--face5); }
  .face.sel { border-color: var(--honey); box-shadow: 0 0 0 3px var(--honey-soft); }
  .trust { font-size: .7rem; color: var(--mute); text-align: center; line-height: 1.4; }

  /* section heads */
  .head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

  /* problem */
  .stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
  .stats li { display: grid; gap: 10px; align-content: start; padding-left: 20px; border-left: 3px solid var(--leaf-line); }
  .stats .num { font: 800 clamp(2.6rem, 2rem + 2.2vw, 3.5rem)/1 var(--display); color: var(--leaf); font-variant-numeric: tabular-nums; }
  .stats .cap { color: var(--mute); max-width: 30ch; }
  .src { margin-top: 20px; font-size: .8rem; color: var(--mute); }
  .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: clamp(32px, 5vw, 48px); }
  .two h3 { margin-bottom: 8px; }
  @media (max-width: 720px) { .two, .stats { grid-template-columns: 1fr; } }

  /* field and office */
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
  .split .body { display: grid; gap: 20px; }
  .ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
  .ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 600; }
  .ticks li::before {
    content: ""; width: 22px; height: 22px; border-radius: 999px; margin-top: 2px;
    background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232e9e6b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
  @media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .phone { margin-inline: auto; } }

  /* section 3: invitation mail and "almost there", styled after the app
     (server/internal/mail templates, web/src/screens/VerifyScreen.tsx) */
  .mscreen { background: var(--bg); gap: 14px; }
  .demo .screen.mscreen { padding-inline: 14px; }
  .mlogo { display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 1rem/1 var(--display); }
  .demo .mlogo svg { width: 28px; height: 28px; }
  .mcard {
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
    display: grid; gap: 10px; text-align: left; font-size: .8rem; line-height: 1.45;
  }
  .mhi { font-weight: 700; }
  .mbtn { justify-self: start; background: var(--leaf); color: #fff; border-radius: 10px; padding: .7em 1em; font-weight: 700; font-size: .82rem; }
  .mnote { font-size: .7rem; color: var(--mute); }
  .vcard { text-align: center; }
  .vtitle { font: 800 1rem/1.2 var(--display); }
  .vtext { font-size: .72rem; color: var(--mute); }
  .demo .vbtn svg { font-size: 13px; }

  /* the mail app around the invitation */
  .demo .screen.mailapp { justify-content: flex-start; background: var(--bg); padding: 36px 12px 16px; gap: 0; text-align: left; }
  .mbar { font-size: .72rem; font-weight: 600; color: var(--leaf); padding-bottom: 10px; }
  .mhead { display: flex; align-items: center; gap: 8px; padding-block: 10px; border-top: 1px solid var(--line); }
  .mavatar { width: 28px; height: 28px; flex: none; border-radius: 999px; background: var(--fill); color: var(--mute); display: grid; place-items: center; font: 800 .8rem/1 var(--display); }
  .mfrom { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
  .mfrom b { font-size: .74rem; }
  .mfrom span, .mtime { font-size: .62rem; color: var(--mute); }
  /* Mail body and log-in screen are centred over the same area, and both cards have the
     same minimum height, so logo and card sit in the same place on both screens. */
  .mbody { position: absolute; inset: 40px 14px 20px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
  .demo .mscreen .mcard { min-height: 150px; align-content: center; }

  /* how it works: bento */
  .bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  /* Each card spans four rows (number, heading, text, example screen) that it shares with the
     cards next to it (subgrid). So example screens in one row always start at the same point
     and have the same height, whatever the text above them. */
  .tile {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; min-width: 0;
  }
  .tile .num { font: 800 .8rem/1 var(--display); color: var(--leaf); letter-spacing: .08em; }
  .tile p { color: var(--mute); font-size: .98rem; }
  .t1 { grid-column: span 2; } .t2 { grid-column: span 2; } .t3 { grid-column: span 2; }
  .t4 { grid-column: span 4; } .t5 { grid-column: span 2; }
  @media (max-width: 960px) { .t1, .t2, .t3, .t5 { grid-column: span 3; } .t4 { grid-column: span 6; } }
  @media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .t1, .t2, .t3, .t4, .t5 { grid-column: auto; } }
  .mock {
    align-self: stretch; align-content: center; margin-top: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
    padding: 14px; font-size: .8rem; display: grid; gap: 10px; position: relative;
  }
  .field { display: grid; gap: 4px; }
  .field .lbl { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
  .field .val { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
  .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mini-q { font: 800 .95rem/1.3 var(--display); text-align: center; }
  .mock .faces { margin: 0; gap: 5px; }
  .mock .face { font-size: .95rem; border-radius: 8px; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; }
  .chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 10px; font-size: .74rem; }
  .chip.on { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); font-weight: 700; }
  .done-t { font: 800 1.05rem/1 var(--display); text-align: center; }
  .tip { background: var(--leaf-soft); border: 1px solid var(--leaf-line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
  .tip .lbl { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
  .tip b { font-family: var(--display); font-weight: 800; font-size: .9rem; line-height: 1.3; }
  .tip .also { border-top: 1px solid var(--leaf-line); padding-top: 8px; font-size: .76rem; }
  .filters { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
  .filters span { background: var(--fill); border-radius: 6px; padding: 5px 9px; font-size: .7rem; line-height: 1.2; color: var(--mute); }
  .look { border: 1px solid var(--honey); background: var(--honey-soft); border-radius: 10px; padding: 12px; display: grid; gap: 6px; }
  .look .lbl { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--honey); }
  .look b { font-weight: 700; font-size: .84rem; line-height: 1.35; }

  /* privacy */
  .facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
  .facts li::before {
    content: ""; width: 22px; height: 22px; border-radius: 999px; margin-top: 2px;
    background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232e9e6b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  }
  .more { margin-top: 24px; display: inline-block; font-weight: 700; color: var(--leaf); text-decoration: none; }
  .more:hover { text-decoration: underline; }
  @media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

  /* founders */
  .team { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
  .avatars { display: flex; }
  .avatar {
    width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: 999px; border: 4px solid var(--bg);
    display: grid; place-items: center; font: 800 1.5rem/1 var(--display); color: var(--mute);
    background: var(--fill);
  }
  img.avatar { display: block; object-fit: cover; height: auto; }
  .avatar + .avatar { margin-left: -18px; }
  .team p.big { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; margin-top: 14px; }
  @media (max-width: 700px) { .team { grid-template-columns: 1fr; } }

  /* faq */
  .faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
  details { border-bottom: 1px solid var(--line); }
  details:first-child { border-top: 1px solid var(--line); }
  summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font: 800 1.08rem/1.35 var(--display); position: relative; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font: 700 1.4rem/1 var(--body); color: var(--leaf); transition: rotate .2s; }
  details[open] summary::after { rotate: 45deg; }
  details p { padding-bottom: 18px; color: var(--mute); }
  @media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }

  /* contact */
  .contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
  .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
  form { display: grid; gap: 16px; }
  .fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
  label .opt { font-weight: 400; color: var(--mute); }
  input, textarea {
    font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--bg);
    border: 1.5px solid var(--line); border-radius: 8px; padding: .75em .85em; width: 100%;
  }
  input:focus, textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px var(--leaf-soft); }
  textarea { min-height: 110px; resize: vertical; }
  .hp { position: absolute; left: -9999px; }
  .status { font-size: .9rem; color: var(--leaf-strong); font-weight: 600; }
  .mailline { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .mailline code { font: 700 1rem/1 var(--body); user-select: all; }
  .copy { font: 700 .8rem/1 var(--body); border: 1.5px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: .5em .9em; cursor: pointer; }
  @media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
  @media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } }

  footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: .88rem; color: var(--mute); }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
  footer .proto { margin-left: auto; font-size: .78rem; }
  .linkbtn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

  /* base reset (the prototype got this from its host page) */
  html { color-scheme: light; }
  body { margin: 0; }
  img { max-width: 100%; }
  [hidden] { display: none !important; }

  /* privacy pages */
  .prose { max-width: 720px; margin-inline: auto; padding-block: clamp(40px, 7vw, 80px); }
  .prose h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: 20px; }
  .prose h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 12px; }
  .prose h3 { margin-top: 28px; margin-bottom: 8px; }
  .prose p, .prose li { color: var(--mute); }
  .prose p + p { margin-top: 12px; }
  .prose ul + p { margin-top: 20px; }
  .prose ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 12px 0 0; }
  .prose .updated { font-size: .85rem; margin-bottom: 20px; }
  .prose a { color: var(--leaf-strong); font-weight: 700; }

  /* hero: animated flow, styled after the app's pulse screens
     (web/src/components/app/FaceScale.tsx, screens/app/PulseScreen.tsx, PulseDoneScreen.tsx) */
  .demo .frame { opacity: 0; transition: opacity .18s ease; }
  .demo .frame.is-active { opacity: 1; transition-delay: .18s; }
  .demo .screen { padding: 40px 16px 20px; justify-content: center; text-align: center; }
  .demo p { max-width: none; }
  .demo svg { width: 1em; height: 1em; display: block; }
  .tap { position: absolute; width: 38px; height: 38px; border-radius: 999px; border: 3px solid var(--leaf); opacity: 0; pointer-events: none; }
  .demo .tap { z-index: 4; }
  .demo .tap.go { animation: ring .7s ease-out; }
  @keyframes ring {
    0% { opacity: 0; transform: scale(.4); }
    30% { opacity: .9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
  }

  .pdots { display: flex; justify-content: center; gap: 5px; margin-bottom: 18px; }
  .pdots i { height: 5px; width: 5px; border-radius: 999px; background: var(--line); }
  .pdots i.on { width: 20px; background: var(--leaf); }
  .pq { font: 700 1.05rem/1.35 var(--display); margin-bottom: 22px; text-wrap: balance; }
  .pq-small { font-size: .92rem; margin-bottom: 14px; }

  /* the mood scale: app colours, background ~15% and border ~40% */
  .pfaces { display: flex; gap: 6px; }
  .pface {
    flex: 1; aspect-ratio: 1; border-radius: 14px; border: 2px solid; display: grid; place-items: center;
    font-size: 1.15rem; transition: border-color .2s;
  }
  .pface:nth-child(1) { background: #c75d4a26; border-color: #c75d4a66; }
  .pface:nth-child(2) { background: #e08a4e26; border-color: #e08a4e66; }
  .pface:nth-child(3) { background: #e6c15a26; border-color: #e6c15a66; }
  .pface:nth-child(4) { background: #8fbe6326; border-color: #8fbe6366; }
  .pface:nth-child(5) { background: #3fa66a26; border-color: #3fa66a66; }
  .pface:nth-child(1).sel { border-color: #c75d4a; }
  .pface:nth-child(2).sel { border-color: #e08a4e; }
  .pface:nth-child(3).sel { border-color: #e6c15a; }
  .pface:nth-child(4).sel { border-color: #8fbe63; }
  .pface:nth-child(5).sel { border-color: #3fa66a; }

  /* follow-up */
  .pchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 14px; }
  .demo .pchips .chip { background: #fff; font-size: .7rem; font-weight: 600; padding: 6px 10px; transition: background-color .2s, color .2s, border-color .2s; }
  .demo .pchips .chip.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
  .pnote { font-size: .64rem; color: var(--mute); margin-bottom: 6px; }
  .pinput {
    position: relative; height: 56px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; text-align: left; font-size: .7rem; color: #a39a8f;
  }
  .pmic {
    position: absolute; right: 7px; bottom: 7px; width: 26px; height: 26px; border-radius: 999px;
    background: var(--leaf); color: #fff; display: grid; place-items: center; font-size: 13px;
  }
  .pbtns { display: flex; gap: 8px; margin-top: 16px; }
  .pbtn { flex: 1; display: block; border-radius: 999px; padding: .75em; background: var(--leaf); color: #fff; font-weight: 700; font-size: .8rem; }
  .demo .vbtn { display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; }
  .pbtn-muted { background: var(--line); color: var(--mute); }

  /* thanks */
  .pthanks { font: 800 1.3rem/1.2 var(--display); margin-bottom: 16px; }
  .ptip { border: 1px solid rgba(46, 158, 107, .3); background: rgba(46, 158, 107, .05); border-radius: 14px; padding: 12px; text-align: left; }
  .ptip-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
  .ptip-lbl { display: block; font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf); margin-bottom: 4px; }
  .ptip b { display: block; font-size: .76rem; font-weight: 700; line-height: 1.35; }
  .pthumbs { display: flex; gap: 4px; flex: none; }
  .pthumbs i { width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--mute); display: grid; place-items: center; font-size: 12px; }
  .ptip-also { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed rgba(46, 158, 107, .3); font-size: .68rem; color: var(--mute); }
  .ptip-also strong { color: var(--ink); }
  .ptip-also svg { color: var(--leaf); font-size: 11px; }
  .ptalk { display: block; margin-top: 16px; font-size: .7rem; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }

  /* phone-style elements inside the "Zo werkt het" cards */
  .mock { text-align: center; }
  .mock .field, .mock .field-row, .mock .filters, .mock .look { text-align: left; }
  .mock .pdots { margin-bottom: 10px; }
  /* .tile p makes card text grey; the phone texts keep the ink colour, as in the hero */
  .mock .pq { color: var(--ink); }
  .mock .pq { font-size: .95rem; margin-bottom: 12px; }
  .ptip svg, .pthumbs svg { width: 1em; height: 1em; display: block; }

  /* card 4: trend on the left, reasons and one comment on the right */
  .ins2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; text-align: left; }
  .ins-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ins-head strong { font-size: 1rem; }
  .ins-head .score { font: 800 1.9rem/1 var(--display); color: var(--honey); font-variant-numeric: tabular-nums; }
  .ins-head .score.score-low { color: var(--red); }
  .ins-head .score small { font-size: .8rem; color: var(--mute); font-weight: 700; }
  .ins-main .meta { font-size: .72rem; color: var(--mute); margin-top: 2px; }
  .trend { width: 100%; height: auto; display: block; margin-top: 10px; overflow: visible; }
  .trend .grid { stroke: var(--line); stroke-width: 1; }
  .trend text { font: 600 7px var(--body); fill: var(--mute); }
  .ins-side { display: grid; gap: 8px; align-content: start; }
  .side-lbl { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
  .bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .bars li { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; font-size: .76rem; }
  .bars b { font-variant-numeric: tabular-nums; }
  .bars i { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: var(--red); opacity: .55; }
  .comment { margin-top: 6px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .76rem; line-height: 1.45; }
  @media (max-width: 620px) { .ins2 { grid-template-columns: 1fr; } }


  /* section 4: mirrored layout, the panel on the left */
  .split-rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  @media (max-width: 820px) { .split-rev { grid-template-columns: minmax(0, 1fr); } .split-rev .body { order: -1; } }

  /* the management panel, styled after the app's admin (web/src/screens/admin/InsightsPage.tsx) */
  .panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; font-size: .72rem; min-width: 0; }
  .pbar { display: flex; gap: 6px; padding: 9px 12px; background: var(--fill); border-bottom: 1px solid var(--line); }
  .pbar i { width: 9px; height: 9px; border-radius: 999px; background: var(--line); }
  .pwrap { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
  .pside { display: grid; align-content: start; gap: 2px; padding: 12px 8px; background: var(--bg); border-right: 1px solid var(--line); }
  .plogo { display: flex; align-items: center; gap: 6px; margin: 0 6px 10px; font: 800 .74rem/1 var(--display); white-space: nowrap; }
  .plogo svg { width: 18px; height: 18px; flex: none; }
  .pside > span { padding: 5px 8px; border-radius: 6px; color: var(--mute); }
  .pside > span.on { background: var(--leaf-soft); color: var(--leaf-strong); font-weight: 700; }
  .pmain { display: grid; gap: 12px; padding: 14px; min-width: 0; }
  .ptitle { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
  .ptitle h4 { margin: 0; font: 800 1rem/1 var(--display); }
  .pkpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pkpi { display: grid; gap: 2px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
  .pkpi small { font-size: .6rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pkpi b { font: 800 1rem/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pkpi em { font-style: normal; font-size: .6rem; color: var(--mute); }
  .pkpi.ai { border-color: var(--honey); background: var(--honey-soft); }
  .pkpi.ai small { color: var(--honey); font-weight: 700; }
  .pkpi.ai small::before { content: "✦ "; }
  .pchart { padding: 10px 12px 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
  .pchart svg { width: 100%; height: auto; display: block; overflow: visible; }
  .pchart .grid { stroke: var(--line); stroke-width: 1; }
  .pchart text { font: 600 7px var(--body); fill: var(--mute); }
  .plegend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; color: var(--mute); font-size: .64rem; }
  .plegend span { display: inline-flex; align-items: center; gap: 5px; }
  .plegend i { width: 10px; height: 3px; border-radius: 999px; }
  .pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pcard { display: grid; gap: 4px; align-content: start; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
  .pcard.ai { border-color: var(--honey); background: var(--honey-soft); }
  .plbl { font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--honey); }
  .pcard p { font-size: .72rem; line-height: 1.45; color: var(--ink); }
  @media (max-width: 620px) {
    .pwrap { grid-template-columns: 1fr; }
    .pside { display: none; }
    .pcards { grid-template-columns: 1fr; }
    .pkpis { grid-template-columns: 1fr 1fr; }
    .pkpi:last-child { grid-column: 1 / -1; }
  }

  /* features: every feature as a card, grouped like sections 3 and 4 */
  .fgroup + .fgroup { margin-top: clamp(32px, 5vw, 48px); }
  .fgroup-title { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-family: var(--body); margin-bottom: 16px; }
  .feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .fcard { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .ftop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
  .ficon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--leaf-soft); color: var(--leaf-strong); }
  .ficon svg { width: 20px; height: 20px; }
  .ftag { font-size: .66rem; font-weight: 700; color: var(--honey); background: var(--honey-soft); border: 1px solid var(--honey); border-radius: 999px; padding: 3px 8px; line-height: 1.2; }
  .fcard h3 { font-size: 1rem; }
  .fcard p { font-size: .9rem; color: var(--mute); }
  @media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } }
