/* RuokaVahti landing — static port of _V2_DESIGN_REFERENCE/RuokaVahti landing page.
   Design tokens mirror apps/mobile/src/constants/theme.ts (Logo 3b brand palette). */

/* ---------- Fonts (self-hosted, variable; latin + latin-ext cover Finnish) ---------- */

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

/* ---------- Tokens ---------- */

:root {
  --bg: #f5f4f0;
  --ink: #141a16;
  --green: #1d6b45;
  --green-dark: #14502f;
  --green-light: #6fcf97;
  --body: #4a524c;
  --muted: #6f7771;
  --gray: #8d948f;
  --border: #e4e1da;
  --input-border: #d9d5cc;
  --bar-bg: #ebe8e1;
  /* Phone mockup palette */
  --ph-frame: #101311;
  --ph-scan-bg: #0c0f0d;
  --avoid-fg: #a42a1f;
  --avoid-dot: #c73a2c;
  --avoid-bg: #fae8e4;
  --warn-fg: #7a5400;
  --warn-dot: #c08a0c;
  --warn-bg: #faefd2;
  --ok-fg: #17613d;
  --ok-bg: #e2efe6;
  --unk-fg: #454c48;
  --unk-dot: #7b837e;
  --unk-bg: #ebe9e3;
  --ph-border: #e4e1da;
  --ph-row-border: #efece6;
  --ph-muted: #6f7771;
  --ph-gray: #8d948f;
  --ph-neutral-bg: #f0eee9;
  --ph-neutral-dot: #a3aaa4;
  --sheet-line: #d3cfc6;
  /* Phone scale, set by main.js from the viewport */
  --ps: 0.82;
}

/* ---------- Base ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Funnel Sans', sans-serif;
  overflow-x: clip;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--green-dark);
}
button {
  cursor: pointer;
  font-family: inherit;
}
input {
  font-family: inherit;
}
input::placeholder {
  color: var(--gray);
}
img {
  display: block;
}

.mono {
  font-family: 'Geist Mono', monospace;
}
.microcopy {
  font: 500 11px 'Geist Mono', monospace;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.display {
  font-family: 'Funnel Display', sans-serif;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 244, 240, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  font-size: 15px;
}
.nav__link {
  color: var(--ink);
}
.nav__cta {
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
}
.nav__cta:hover {
  color: var(--bg);
  background: #000;
}

/* Wordmark (Logo 3b): corner brackets + "ruoka/vahtı" with detached dot */
.wordmark {
  position: relative;
  padding: 0.34em 0.4em;
  display: flex;
}
.wordmark__corner {
  position: absolute;
  width: 0.45em;
  height: 0.45em;
  box-sizing: border-box;
}
.wordmark__corner--tl {
  top: 0;
  left: 0;
  border-top: 0.08em solid var(--green);
  border-left: 0.08em solid var(--green);
  border-top-left-radius: 0.13em;
}
.wordmark__corner--br {
  bottom: 0;
  right: 0;
  border-bottom: 0.08em solid var(--green);
  border-right: 0.08em solid var(--green);
  border-bottom-right-radius: 0.13em;
}
.wordmark--light .wordmark__corner--tl {
  border-color: var(--green-light);
}
.wordmark--light .wordmark__corner--br {
  border-color: var(--green-light);
}
.wordmark__text {
  display: flex;
  flex-direction: column;
  font: 800 1em/0.95 'Funnel Display', sans-serif;
  letter-spacing: -0.044em;
  color: var(--ink);
  text-align: left;
}
.wordmark--light .wordmark__text {
  color: #fff;
}
.wordmark__i {
  position: relative;
  display: inline-block;
}
.wordmark__i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.09em;
  width: 0.18em;
  height: 0.18em;
  margin-left: -0.035em;
  border-radius: 50%;
  background: var(--green);
}
.wordmark--light .wordmark__i::after {
  background: var(--green-light);
}

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

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 56px;
  align-items: center;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.eyebrow {
  font: 500 12px 'Geist Mono', monospace;
  letter-spacing: 1px;
  color: var(--muted);
}
.hero__title {
  margin: 0;
  font: 800 clamp(52px, 7.2vw, 104px) / 0.95 'Funnel Display', sans-serif;
  letter-spacing: -0.044em;
  text-wrap: balance;
}
.hero__lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body);
  max-width: 520px;
  text-wrap: pretty;
}
.hero__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
.hero__fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.input {
  flex: 1 1 240px;
  min-width: 0;
  height: 54px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}
.btn-green {
  height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  border: none;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
}
.btn-green:hover {
  background: var(--green-dark);
  color: #fff;
}
.form-note--ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.form-note--ok__badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.form-note--ok span:last-child {
  font-size: 15.5px;
  font-weight: 600;
}
.form-note--err {
  font-size: 14px;
  font-weight: 600;
  color: var(--avoid-fg);
}
/* Waitlist disabled (first iteration): green CTA to the story + status microcopy */
.hero__cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Framed phone with scroll-shifting corner brackets */
.phone-frame {
  position: relative;
  padding: 44px 52px;
}
.phone-frame__corner {
  position: absolute;
  width: 96px;
  height: 96px;
  box-sizing: border-box;
  border: 0 solid var(--green);
  border-top-left-radius: 28px;
  border-bottom-right-radius: 28px;
}
.phone-frame__corner--tl {
  top: 0;
  left: 0;
  border-top-width: 9px;
  border-left-width: 9px;
}
.phone-frame__corner--br {
  bottom: 0;
  right: 0;
  border-bottom-width: 9px;
  border-right-width: 9px;
}
.phone-slot {
  width: calc(376px * var(--ps));
  height: calc(800px * var(--ps));
}
.phone-center {
  display: flex;
  justify-content: center;
}
.phone-scale {
  transform: scale(var(--ps));
  transform-origin: 0 0;
  width: 376px;
}

/* ---------- Phone mockup (static port of Phone.dc.html) ---------- */

.phone {
  width: 376px;
  height: 800px;
  border-radius: 50px;
  border: 10px solid var(--ph-frame);
  background: var(--bg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: 'Funnel Sans', sans-serif;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 26, 22, 0.18);
  text-align: left;
}
.phone__statusbar {
  height: 42px;
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  font: 600 13px 'Geist Mono', monospace;
}
.phone__statusbar-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}
.phone__statusbar-signal {
  width: 15px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}
.phone__statusbar-battery {
  width: 22px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  box-sizing: border-box;
}
.phone__screen {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__tabbar {
  flex: none;
  height: 82px;
  background: #fff;
  border-top: 1px solid var(--ph-border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 0 6px 12px;
}
.phone-tab {
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ph-gray);
  font-weight: 700;
  font-size: 11.5px;
}
.phone-tab.is-active {
  color: var(--ink);
}
.phone-tab__icon {
  color: var(--ph-gray);
}
.phone-tab.is-active .phone-tab__icon {
  color: var(--green);
}
.phone-tab__icon--home {
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
  box-sizing: border-box;
}
.phone-tab__icon--selaa {
  width: 16px;
  height: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.phone-tab__icon--selaa i {
  border-radius: 2px;
  background: currentColor;
}
.phone-tab__icon--history {
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 9px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.phone-tab__icon--history i {
  width: 2px;
  height: 6px;
  background: currentColor;
  margin-top: 2px;
}
.phone-tab__icon--profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.phone-tab__icon--profile i:first-child {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: currentColor;
}
.phone-tab__icon--profile i:last-child {
  width: 16px;
  height: 7px;
  border-radius: 5px 5px 2px 2px;
  background: currentColor;
}
.phone-tab__scan {
  display: flex;
  justify-content: center;
}
.phone-fab {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--green);
  border: 4px solid var(--bg);
  margin-top: -26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  box-shadow: 0 8px 18px rgba(29, 107, 69, 0.28);
  box-sizing: border-box;
}
.barcode {
  display: flex;
  align-items: center;
  gap: 2px;
}
.barcode i {
  background: #fff;
  height: 20px;
}
.barcode i:nth-child(1) {
  width: 3px;
}
.barcode i:nth-child(2) {
  width: 2px;
}
.barcode i:nth-child(3) {
  width: 5px;
}
.barcode i:nth-child(4) {
  width: 2px;
}
.barcode i:nth-child(5) {
  width: 3px;
}

/* Phone screens — shared bits */
.scr {
  padding: 4px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ph-mono {
  font: 500 11px 'Geist Mono', monospace;
  letter-spacing: 0.8px;
  color: var(--ph-muted);
}
.ph-mono--sm {
  font-size: 10.5px;
}
.scr-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.08;
  margin-top: 4px;
}
.link-green {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

/* Home */
.home-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.home-greeting {
  font-family: 'Funnel Display', sans-serif;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.08;
  margin-top: 4px;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  font: 700 16px 'Funnel Display', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-card {
  background: var(--green);
  color: #fff;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.scan-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scan-card__glyph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.scan-card__glyph .barcode i {
  height: 22px;
}
.scan-card__arrow {
  font-size: 22px;
}
.scan-card__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.scan-card__sub {
  font-size: 14px;
  opacity: 0.86;
  margin-top: 3px;
}
.rules-card {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rules-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Funnel Display', sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ph-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}
.ph-chip i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.ph-chip--avoid {
  background: var(--avoid-bg);
  color: var(--avoid-fg);
}
.ph-chip--avoid i {
  background: var(--avoid-dot);
}
.ph-chip--warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.ph-chip--warn i {
  background: var(--warn-dot);
}
.ph-chip--ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.ph-chip--ok i {
  background: var(--green);
}
.ph-chip--neutral {
  background: var(--ph-neutral-bg);
  color: var(--body);
}
.ph-chip--neutral i {
  background: var(--ph-neutral-dot);
}
.recent__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Funnel Display', sans-serif;
  font-size: 17px;
  font-weight: 700;
}
.recent__row {
  display: flex;
  gap: 10px;
  margin: 0 -20px;
  padding: 0 20px;
}
.mini-card {
  width: 136px;
  flex: none;
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mini-card__img {
  height: 78px;
  background: repeating-linear-gradient(135deg, #eeebe4 0 8px, #f5f3ee 8px 16px);
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
  box-sizing: border-box;
}
.mini-card__img span {
  font: 500 10px 'Geist Mono', monospace;
  color: var(--ph-gray);
}
.mini-card__body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mini-card__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.mini-card__time {
  font: 500 10.5px 'Geist Mono', monospace;
  color: var(--ph-muted);
}
.mini-card__verdict {
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-card__verdict i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}
.mini-card__verdict--avoid {
  background: var(--avoid-bg);
  color: var(--avoid-fg);
}
.mini-card__verdict--avoid i {
  background: var(--avoid-dot);
}
.mini-card__verdict--ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.mini-card__verdict--ok i {
  background: var(--green);
}
.mini-card__verdict--unknown {
  background: var(--unk-bg);
  color: var(--unk-fg);
}
.mini-card__verdict--unknown i {
  background: var(--unk-dot);
}

/* Product */
.prod-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px 0 8px;
}
.prod-back {
  height: 44px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
}
.prod-off {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 10.5px 'Geist Mono', monospace;
  letter-spacing: 0.4px;
  color: var(--body);
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 8px;
  padding: 5px 8px;
}
.prod-off i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--green);
}
.prod-body {
  padding: 4px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.prod-head {
  display: flex;
  gap: 14px;
  align-items: center;
}
.prod-img {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  background: repeating-linear-gradient(135deg, #eeebe4 0 8px, #f7f5f1 8px 16px);
  border: 1px solid var(--ph-border);
  flex: none;
  display: flex;
  align-items: flex-end;
  padding: 6px;
  box-sizing: border-box;
}
.prod-img span {
  font: 500 9.5px 'Geist Mono', monospace;
  color: var(--ph-gray);
}
.prod-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.prod-name {
  font-family: 'Funnel Display', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.05;
}
.prod-brand {
  font-size: 14px;
  color: var(--body);
}
.prod-ean {
  font: 500 11px 'Geist Mono', monospace;
  color: var(--ph-muted);
}
.verdict-panel {
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verdict-panel--avoid {
  background: var(--avoid-bg);
  color: var(--avoid-fg);
}
.verdict-panel__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.verdict-panel__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--avoid-dot);
  color: #fff;
  font: 700 22px 'Funnel Display', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.verdict-panel__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.6px;
  line-height: 1.05;
}
.verdict-panel__sub {
  font-size: 14px;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.35;
}
.verdict-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.verdict-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 12.5px;
  font-weight: 700;
}
.verdict-chip i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.verdict-chip .i--avoid {
  background: var(--avoid-dot);
}
.verdict-chip .i--warn {
  background: var(--warn-dot);
}
.verdict-chip .i--unknown {
  background: var(--unk-dot);
}
.verdict-toggle {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--avoid-fg);
  color: var(--avoid-fg);
  font-weight: 700;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.rule-list {
  background: #fff;
  border-radius: 14px;
  padding: 2px 14px;
  color: var(--ink);
}
.rule-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--ph-row-border);
}
.rule-row:last-child {
  border-bottom: none;
}
.rule-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.rule-ico--avoid {
  background: var(--avoid-bg);
  color: var(--avoid-fg);
}
.rule-ico--warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.rule-ico--unknown {
  background: var(--unk-bg);
  color: var(--unk-fg);
}
.rule-text {
  flex: 1;
}
.rule-title {
  font-size: 14px;
  font-weight: 700;
}
.rule-sub {
  font-size: 13px;
  color: var(--body);
  margin-top: 1px;
}
.rule-tag {
  font: 600 10px 'Geist Mono', monospace;
  padding-top: 4px;
}
.rule-tag--avoid {
  color: var(--avoid-fg);
}
.rule-tag--warn {
  color: var(--warn-fg);
}
.rule-tag--unknown {
  color: var(--unk-fg);
}

/* Selaa (browse) */
.browse-list,
.prof-card,
.hist-card {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: 16px;
}
.browse-search {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  color: var(--ph-gray);
  display: flex;
  align-items: center;
}
.browse-filters {
  display: flex;
  gap: 6px;
}
.filter-chip {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--ph-border);
  background: #fff;
  font-weight: 700;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}
.filter-chip--active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.filter-chip b {
  font: 500 11px 'Geist Mono', monospace;
  opacity: 0.7;
}
.browse-list {
  padding: 0 14px;
}
.browse-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border-bottom: 1px solid var(--ph-row-border);
}
.browse-row:last-child {
  border-bottom: none;
}
.browse-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: repeating-linear-gradient(135deg, #eeebe4 0 6px, #f5f3ee 6px 12px);
  flex: none;
}
.browse-name {
  flex: 1;
}
.browse-name > div:first-child {
  font-size: 15px;
  font-weight: 700;
}
.browse-note {
  font: 500 11px 'Geist Mono', monospace;
  color: var(--ph-muted);
  margin-top: 2px;
}
.score {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  padding: 6px 9px;
  font: 600 13px 'Geist Mono', monospace;
}
.score--ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.score--warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.score--avoid {
  background: var(--avoid-bg);
  color: var(--avoid-fg);
}
.score--unknown {
  background: var(--unk-bg);
  color: var(--unk-fg);
}

/* History */
.hist-filters {
  display: flex;
  gap: 6px;
  margin: 0 -20px;
  padding: 0 20px;
  overflow: hidden;
}
.hist-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hist-group > .ph-mono {
  font-weight: 600;
}
.hist-card {
  padding: 0 14px;
}
.hist-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  border-bottom: 1px solid var(--ph-row-border);
}
.hist-row:last-child {
  border-bottom: none;
}
.hist-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.hist-ico--avoid {
  background: var(--avoid-bg);
  color: var(--avoid-fg);
}
.hist-ico--ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.hist-ico--unknown {
  background: var(--unk-bg);
  color: var(--unk-fg);
}
.hist-name {
  flex: 1;
}
.hist-name > div:first-child {
  font-size: 15px;
  font-weight: 700;
}
.hist-verdict {
  font-size: 13px;
  font-weight: 700;
}
.hist-verdict--avoid {
  color: var(--avoid-fg);
}
.hist-verdict--ok {
  color: var(--ok-fg);
}
.hist-verdict--unknown {
  color: var(--unk-fg);
}

/* Profile */
.privacy-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.privacy-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Funnel Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.privacy-card__head i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--green-light);
}
.privacy-card__body {
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.82;
}
.privacy-card__foot {
  font: 500 10.5px 'Geist Mono', monospace;
  letter-spacing: 0.6px;
  opacity: 0.7;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 8px;
}
.prof-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prof-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
}
.prof-card {
  padding: 2px 14px;
}
.prof-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--ph-row-border);
  gap: 10px;
}
.prof-row:last-of-type {
  border-bottom: none;
}
.prof-row > span:first-child {
  font-size: 15.5px;
  font-weight: 700;
}
.seg {
  display: flex;
  background: var(--ph-neutral-bg);
  border-radius: 10px;
  padding: 3px;
}
.seg-btn {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--ph-gray);
  font-weight: 700;
  font-size: 12.5px;
  display: flex;
  align-items: center;
}
.seg-btn--active {
  background: #fff;
}
.seg-btn--active.seg-btn--avoid {
  color: var(--avoid-fg);
}
.seg-btn--active.seg-btn--warn {
  color: var(--warn-fg);
}
.prof-add {
  min-height: 50px;
  display: flex;
  align-items: center;
  color: var(--green);
  font-weight: 700;
  font-size: 14.5px;
}
.diet-chip {
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--ph-border);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.diet-chip--active {
  border-color: var(--ok-bg);
  background: var(--ok-bg);
  color: var(--ok-fg);
}

/* Scan overlay + verdict sheet (always shown with the sheet on this page) */
.scan-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: var(--ph-scan-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
}
.scan-overlay .phone__statusbar {
  color: #fff;
}
.scan-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 16px;
}
.scan-nav__btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-nav__title {
  font-weight: 700;
  font-size: 15.5px;
}
.scan-nav__flash {
  width: 10px;
  height: 16px;
  border-radius: 3px 3px 5px 5px;
  background: #fff;
}
.scan-viewport {
  flex: 1;
  margin: 10px 14px 22px;
  border-radius: 24px;
  background: repeating-linear-gradient(135deg, #191c1a 0 10px, #131614 10px 20px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 70px;
  gap: 18px;
  box-sizing: border-box;
}
.scan-hint {
  position: absolute;
  top: 14px;
  left: 16px;
  font: 500 11px 'Geist Mono', monospace;
  color: rgba(255, 255, 255, 0.45);
}
.scan-frame {
  width: 250px;
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-frame i {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0 solid #fff;
}
.scan-frame i:nth-child(1) {
  top: 0;
  left: 0;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 14px;
}
.scan-frame i:nth-child(2) {
  top: 0;
  right: 0;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 14px;
}
.scan-frame i:nth-child(3) {
  bottom: 0;
  left: 0;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 14px;
}
.scan-frame i:nth-child(4) {
  bottom: 0;
  right: 0;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 14px;
}
.scan-line {
  height: 2px;
  width: calc(100% - 32px);
  background: var(--green-light);
  box-shadow: 0 0 12px rgba(111, 207, 151, 0.8);
}
.scan-caption {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.scan-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  color: var(--ink);
  border-radius: 26px 26px 0 0;
  padding: 10px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}
.scan-sheet__handle {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--sheet-line);
  align-self: center;
}
.scan-sheet__head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.scan-sheet__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--avoid-dot);
  color: #fff;
  font: 700 24px 'Funnel Display', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.scan-sheet__verdict {
  font-family: 'Funnel Display', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.05;
  color: var(--avoid-fg);
}
.scan-sheet__product {
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 3px;
}
.scan-sheet__reason {
  background: var(--avoid-bg);
  color: var(--avoid-fg);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.4;
}
.scan-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.scan-sheet__btn {
  height: 50px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-sheet__btn--dark {
  background: var(--ink);
  color: #fff;
}
.scan-sheet__btn--light {
  border: 1px solid var(--sheet-line);
  background: #fff;
  box-sizing: border-box;
}
.scan-sheet__next {
  height: 36px;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Story ("Näin se toimii") ---------- */

.story {
  height: 420vh;
  position: relative;
  border-top: 1px solid var(--border);
}
.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  box-sizing: border-box;
  padding: 72px 24px 24px;
  display: flex;
  align-items: center;
}
.story__grid {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 5vw, 72px);
  align-items: center;
}
.story__copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.story__progress {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 13px 'Geist Mono', monospace;
  letter-spacing: 0.8px;
}
.story__bar {
  flex: 1;
  max-width: 220px;
  height: 4px;
  border-radius: 2px;
  background: var(--bar-bg);
}
.story__bar-fill {
  width: 0%;
  height: 4px;
  border-radius: 2px;
  background: var(--green);
}
.story__steps {
  position: relative;
  min-height: 320px;
}
.story-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.story-step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.story-step.is-past {
  transform: translateY(-24px);
}
.story-step__eyebrow {
  font: 500 12px 'Geist Mono', monospace;
  letter-spacing: 1px;
  color: var(--green);
}
.story-step__title {
  margin: 0;
  font: 800 clamp(38px, 4.6vw, 64px) / 1 'Funnel Display', sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.story-step__body {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
  max-width: 480px;
  text-wrap: pretty;
}
.story-step__meta {
  font: 500 11px 'Geist Mono', monospace;
  letter-spacing: 0.7px;
  color: var(--muted);
}
.story__phones {
  position: relative;
  justify-self: center;
}
.story-phone {
  position: absolute;
  inset: 0;
  /* flex-start, not center: the unscaled child is 376px wide inside a slot
     sized 376px*var(--ps); centering would push it past the left edge. */
  justify-content: flex-start;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.story-phone.is-active {
  opacity: 1;
  transform: none;
}
.story-phone.is-past {
  transform: translateY(-40px) scale(0.96);
}

/* ---------- Privacy ---------- */

.privacy {
  background: var(--ink);
  color: var(--bg);
}
.privacy__grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 64px;
  align-items: center;
}
.privacy__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.privacy__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px 'Geist Mono', monospace;
  letter-spacing: 1px;
  color: var(--green-light);
}
.privacy__eyebrow i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--green-light);
}
.privacy__title {
  margin: 0;
  font: 800 clamp(40px, 5vw, 72px) / 0.98 'Funnel Display', sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.privacy__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(245, 244, 240, 0.8);
  max-width: 500px;
  text-wrap: pretty;
}
.privacy__stats {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  align-items: baseline;
}
.stat-row__value {
  font: 800 32px 'Funnel Display', sans-serif;
  letter-spacing: -0.03em;
}
.stat-row__label {
  font: 500 12px 'Geist Mono', monospace;
  letter-spacing: 0.7px;
  opacity: 0.75;
  text-align: right;
}
.privacy .phone-slot {
  margin: 0 auto;
}

/* ---------- Waitlist section ---------- */

.waitlist {
  background: var(--green);
  color: #fff;
}
.waitlist__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 128px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.waitlist__wordmark {
  position: relative;
  padding: 0.34em 0.4em;
  font-size: clamp(64px, 10vw, 120px);
  display: flex;
}
.waitlist__title {
  margin: 0;
  font: 800 clamp(34px, 4.4vw, 56px) / 1 'Funnel Display', sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.waitlist__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.86;
  max-width: 520px;
}
.waitlist__form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waitlist__fields {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.waitlist .input {
  border: none;
}
.btn-ink {
  height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.btn-ink:hover {
  background: #000;
}
.waitlist .form-note--ok {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  justify-content: center;
}
.waitlist .form-note--err {
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.waitlist .microcopy {
  color: rgba(255, 255, 255, 0.75);
}
/* Disabled state (first iteration — no capture backend yet) */
.waitlist-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font: 500 11px 'Geist Mono', monospace;
  letter-spacing: 0.7px;
}
.waitlist-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-light);
}

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

.footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font: 500 11px 'Geist Mono', monospace;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.footer__links {
  display: flex;
  gap: 20px;
}
.footer a {
  color: var(--body);
}
.footer a:hover {
  color: var(--green-dark);
}

/* ---------- Reveal-on-scroll (elements start hidden only when JS runs) ---------- */

[data-reveal] {
  opacity: 1;
}
.js [data-reveal][data-reveal-pending] {
  opacity: 0;
  transform: translateY(32px);
}

/* ---------- Motion: honour prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .story-step,
  .story-phone,
  [data-reveal] {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .story__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story__sticky {
    padding: 96px 20px 16px;
    align-items: flex-start;
  }
  .story__copy {
    gap: 18px;
  }
  .story__steps {
    min-height: 290px;
  }
  .story-step__title {
    font-size: clamp(30px, 8vw, 44px);
  }
  .story-step__body {
    font-size: 16.5px;
  }
  .privacy__grid {
    padding: 80px 20px;
    gap: 48px;
  }
  .waitlist__inner {
    padding: 96px 20px;
  }
  .hero {
    padding: 48px 20px 64px;
    gap: 40px;
  }
  .hero__lead {
    font-size: 17px;
  }
  .phone-frame {
    padding: 28px 32px;
  }
  .phone-frame__corner {
    width: 64px;
    height: 64px;
  }
}

/* Short screens in the stacked story layout: tighten the type so text and
   phone still fit the 100vh sticky box. */
@media (max-width: 900px) and (max-height: 700px) {
  .story__steps {
    min-height: 235px;
  }
  .story-step__title {
    font-size: clamp(26px, 7vw, 34px);
  }
  .story-step__body {
    font-size: 15.5px;
  }
}

@media (max-width: 720px) {
  .nav__link {
    display: none;
  }
}
