/* Dyredata website. Same type and greens as the app: Fredoka for headings, Nunito for text. */
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("/fonts/fredoka-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --bjork: #f7f7f5;
  --surface: #ffffff;
  --natt: #1a1f1c;
  --ink-2: #565e58;
  --ink-3: #7c837e;
  --line: #e3e4de;
  --skog: #4f7f1f;
  --skog-press: #436c1a;
  --mose: #6b9b2c;
  --lav: #e7eedd;
  --granskog: #1e3210;
  --granskog-2: #2a4417;
  --on-dark: #eef3e6;
  --on-dark-2: #b9c8a6;
  --radius: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bjork: #0f100f;
    --surface: #181a18;
    --natt: #ecede8;
    --ink-2: #b4b9b3;
    --ink-3: #8b918b;
    --line: #2a2d2a;
    --skog: #93be6a;
    --skog-press: #a8cd85;
    --lav: #1d2618;
    --granskog: #142209;
    --granskog-2: #1d2f10;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bjork);
  color: var(--natt);
  font: 400 18px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--skog); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--skog-press); }
:focus-visible { outline: 3px solid var(--mose); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 500; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.lead { font-size: clamp(19px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.5; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bjork) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--natt); text-decoration: none; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 23px; }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--natt); text-decoration: none; font-weight: 700; font-size: 16px; padding: 10px 12px; border-radius: 999px; }
.nav a:hover { background: color-mix(in srgb, var(--natt) 6%, transparent); color: var(--natt); }
.nav a[aria-current="page"] { color: var(--skog); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 800; padding: 10px 16px; border-radius: 999px; background: color-mix(in srgb, var(--natt) 6%, transparent); }
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-list { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; min-width: 220px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.35); display: grid; }
.menu .menu-list a { padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--natt); font-weight: 700; }
.menu .menu-list a:hover { background: var(--lav); }
@media (max-width: 860px) { .nav { display: none; } .menu { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--skog); color: #fff; }
.btn-primary:hover { background: var(--skog-press); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary, .btn-primary:hover { color: #10170a; } }
.btn-dark { background: var(--natt); color: var(--bjork); }
.btn-dark:hover { color: var(--bjork); background: color-mix(in srgb, var(--natt) 86%, var(--skog)); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { min-width: 220px; justify-content: flex-start; padding: 0 22px 0 18px; }
.store-btn .store-label { display: grid; line-height: 1.15; }
.store-btn .store-label small { font-weight: 700; font-size: 12px; opacity: 0.75; }
.store-btn .store-label span { font-size: 18px; }

/* Hero */
.hero { position: relative; padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero .lead { margin-top: 22px; max-width: 34ch; }
.hero .stores { margin-top: 32px; }
.hero .facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-weight: 700; font-size: 15px; }
.hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts svg { width: 18px; height: 18px; color: var(--skog); }
/* The photo: a tall window onto the beach, running off the right edge on wide screens, with the app in front */
.hero-visual { position: relative; }
.hero-photo { display: block; object-fit: cover; }
.hero-phone { position: relative; z-index: 1; }
@media (min-width: 1000px) {
  .hero { padding: clamp(28px, 3.4vw, 48px) 0 clamp(40px, 4.4vw, 64px); }
  .hero-visual {
    --phone-w: clamp(250px, 21vw, 300px);
    align-self: stretch;
    display: flex;
    align-items: center;
    min-height: clamp(540px, 48.6vw, 820px);
    /* out to the right edge of the window */
    margin-right: calc((min(100vw, var(--wrap)) - 100vw) / 2 - var(--gutter));
  }
  /* The left of the photo is kept, so the dog stays clear of the phone */
  .hero-photo { position: absolute; top: 0; right: 0; bottom: 0; left: calc(var(--phone-w) * 0.5); width: calc(100% - var(--phone-w) * 0.5); height: 100%; object-position: 0% 40%; border-radius: 44px 0 0 44px; }
  .hero-visual .phone.small { width: var(--phone-w); }
  .hero-phone { transform: translateY(8%); }
}
@media (max-width: 999px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: grid; justify-items: center; width: min(520px, 100%); margin: 12px auto 0; }
  .hero-visual > * { grid-area: 1 / 1; }
  .hero-photo { width: 100%; aspect-ratio: 10 / 11; object-position: 50% 74%; border-radius: 40px; box-shadow: 0 30px 60px -36px rgb(20 40 10 / 0.5); }
  .hero-phone { margin-top: 62%; }
}
/* Phones: the photo goes edge to edge */
@media (max-width: 600px) {
  .hero-visual { width: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .hero-photo { border-radius: 0; box-shadow: none; }
}

/* Paw trail: the one moving moment, paws stamp across the hero once */
.trail { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.trail svg { position: absolute; width: 30px; height: 30px; color: var(--mose); opacity: 0; animation: stamp 0.5s ease-out forwards; }
@keyframes stamp { 0% { opacity: 0; transform: scale(0.4) rotate(var(--r, 0deg)); } 60% { opacity: 0.32; transform: scale(1.08) rotate(var(--r, 0deg)); } 100% { opacity: 0.22; transform: scale(1) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .trail svg { animation: none; opacity: 0.18; transform: rotate(var(--r, 0deg)); } }
@media (prefers-color-scheme: dark) { .trail svg { color: var(--skog); } }
.hero .wrap { position: relative; z-index: 1; }

/* Phone frame around real app screenshots */
.phone { position: relative; width: min(330px, 78vw); aspect-ratio: 1170 / 2532; border-radius: 52px; background: #111; padding: 11px; box-shadow: 0 1px 0 1px #2a2a2a inset, 0 40px 80px -36px rgb(20 40 10 / 0.55), 0 18px 40px -24px rgb(0 0 0 / 0.35); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 42px; }
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 31%; height: 30px; transform: translateX(-50%); background: #111; border-radius: 999px; }
.phone.small { width: min(270px, 70vw); border-radius: 44px; padding: 9px; }
.phone.small img { border-radius: 36px; }
.phone.small::after { top: 18px; height: 24px; }
/* Below the app's floating tab bar the screenshots show what was scrolled under it: a clean strip with the home
   indicator instead (the screenshots' own background colour, in both colour schemes) */
.phone { --pad: 11px; --r: 42px; }
.phone.small { --pad: 9px; --r: 36px; }
.phone-foot { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: var(--pad); height: calc((100% - 2 * var(--pad)) * 0.04); border-radius: 0 0 var(--r) var(--r); background: linear-gradient(to bottom, rgb(247 247 245 / 0.7), #f7f7f5 22%); pointer-events: none; }
.phone-foot::after { content: ""; position: absolute; left: 50%; top: 58%; width: 41%; height: 16%; min-height: 3px; transform: translateX(-50%); border-radius: 999px; background: #111; }

/* Photo with the phone in front, overlapping its lower half */
.duo { display: grid; justify-items: center; width: min(400px, 88vw); }
.duo > * { grid-area: 1 / 1; }
.duo-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 40px; box-shadow: 0 30px 60px -36px rgb(20 40 10 / 0.5); }
.duo .phone { margin-top: 52%; }
@media (max-width: 860px) { .duo { width: min(360px, 86vw); } }

/* Promise band */
.band { background: var(--granskog); color: var(--on-dark); padding: clamp(56px, 8vw, 104px) 0; }
.band h2 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.06; color: #fff; }
.band h2 .line { display: block; }
.band p { margin-top: 22px; color: var(--on-dark-2); font-size: 19px; max-width: 54ch; }
.band .points { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid rgb(255 255 255 / 0.14); padding-top: 28px; }
.band .points h3 { color: #fff; font-size: 21px; }
.band .points p { margin-top: 8px; font-size: 16px; }
@media (max-width: 760px) { .band .points { grid-template-columns: 1fr; gap: 20px; } }

/* Feature rows */
.features { padding-top: clamp(40px, 6vw, 80px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding: clamp(36px, 6vw, 72px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .shot { justify-self: center; }
.feature.flip .shot { order: -1; }
.feature p.lead { margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 999px; background: var(--lav) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f7f1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.feature .more { display: inline-block; margin-top: 22px; font-weight: 800; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature .shot, .feature.flip .shot { order: 2; }
}

/* Tools grid: four plain columns, no card chrome */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.tools h3 { font-size: 20px; }
.tools p { margin-top: 6px; color: var(--ink-2); font-size: 16px; }
.tools .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--lav); color: var(--skog); display: grid; place-items: center; margin-bottom: 14px; }
.tools .ico svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tools { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--lav); }
.section-head { max-width: 40ch; }
.section-head p { margin-top: 16px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); margin-top: 40px; align-items: start; }
.free-box { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.free-box h3 { font-size: 26px; }
.free-box .price { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 44px; line-height: 1; margin-top: 10px; }
.packs { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--natt); }
.packs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.packs .name { font-weight: 800; font-size: 19px; }
.packs .cost { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 22px; white-space: nowrap; }
.packs .what { grid-column: 1 / -1; color: var(--ink-2); font-size: 16px; }
.price-note { margin-top: 16px; color: var(--ink-3); font-size: 15px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* Old users */
.import { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.import .badge { width: 64px; height: 64px; border-radius: 20px; background: var(--lav); color: var(--skog); display: grid; place-items: center; }
.import .badge svg { width: 32px; height: 32px; }
.import p { margin-top: 12px; }
@media (max-width: 600px) { .import { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-weight: 800; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--skog); border-bottom: 2.5px solid var(--skog); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.faq .answer p + p { margin-top: 10px; }

/* Article pages (privacy, terms, guides) */
.page-hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(20px, 3vw, 32px); }
.page-hero p { margin-top: 16px; }
.prose { padding-bottom: clamp(56px, 8vw, 96px); }
/* Article column: left-aligned under the page title, lines kept short */
.prose.measure { max-width: var(--wrap); }
.prose.measure > * { max-width: 68ch; }
.prose .ticks { padding-left: 0; }
.prose h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 44px; }
.prose h3 { margin-top: 28px; font-size: 21px; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 800; }
.callout { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: var(--lav); }
.callout p { margin-top: 0; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.updated { color: var(--ink-3); font-size: 15px; margin-top: 10px; }

/* Download page */
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.qr { background: #fff; padding: 16px; border-radius: 20px; border: 1px solid var(--line); width: 212px; }
.qr p { color: #565e58; font-size: 14px; text-align: center; margin-top: 8px; }
@media (max-width: 760px) { .dl { grid-template-columns: 1fr; } .qr { display: none; } }

/* Footer */
.site-foot { background: var(--granskog); color: var(--on-dark-2); padding: 56px 0 40px; font-size: 16px; }
.site-foot a { color: var(--on-dark); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font-family: "Nunito", sans-serif; font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 0; }
.foot-grid ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.site-foot .brand { color: #fff; }
.site-foot .tag { margin-top: 12px; max-width: 32ch; }
.foot-base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* Reminders arriving on the hero phone (site.js). The newest lands on top, older ones tuck in behind it. */
.notes { position: absolute; left: 7%; right: 7%; top: 9.5%; margin: 0; padding: 0; list-style: none; display: grid; z-index: 2; }
.note { grid-area: 1 / 1; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 9px; align-items: start; min-height: 58px; padding: 9px 11px; border-radius: 17px; background: rgb(250 251 248 / 0.82); -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7); box-shadow: 0 14px 28px -14px rgb(10 20 5 / 0.45), 0 0 0 0.5px rgb(0 0 0 / 0.07); color: #1a1f1c; font-size: 11px; line-height: 1.32; transform-origin: 50% 0; transition: transform 0.62s cubic-bezier(0.2, 0.9, 0.3, 1.12), opacity 0.42s ease; }
.note-icon { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; }
.note-icon svg { width: 100%; height: 100%; display: block; }
.note-text { min-width: 0; display: grid; gap: 1px; }
.note-text b { font-weight: 800; font-size: 11.5px; }
.note-text span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #3d443f; }
.note time { font-size: 10px; color: #7c837e; font-weight: 700; padding-top: 1px; }
.note[data-pos="0"] { z-index: 3; }
.note[data-pos="0"] .note-text span { -webkit-line-clamp: 3; }
/* Older reminders tuck in behind as edges, the same height as the newest one (site.js sets --top) */
.note[data-pos="1"], .note[data-pos="2"] { height: var(--top, auto); min-height: 0; overflow: hidden; }
.note[data-pos="1"] { z-index: 2; transform: translateY(9px) scale(0.93); background: rgb(232 235 228 / 0.92); }
.note[data-pos="2"] { z-index: 1; transform: translateY(17px) scale(0.86); background: rgb(220 224 216 / 0.88); }
.note[data-pos="out"] { z-index: 4; transform: translateY(-135%) scale(0.96); opacity: 0; }
.note[data-pos="1"] .note-text, .note[data-pos="2"] .note-text, .note[data-pos="1"] time, .note[data-pos="2"] time, .note[data-pos="1"] .note-icon, .note[data-pos="2"] .note-icon { opacity: 0; transition: opacity 0.3s ease; }
/* Before site.js has taken over, nothing shows: the stack builds up when the hero is in view */
.js .notes:not(.live) .note { opacity: 0; transition: none; }
@media (prefers-reduced-motion: reduce) { .note { transition: none; } }
/* The banners stay light in dark mode: they sit on a light-mode screenshot */

/* Front page tools: the ones you can try here are links */
.tools .tool-link { color: inherit; text-decoration: none; display: block; border-radius: 18px; margin: -14px; padding: 14px; transition: background-color 0.18s ease; }
.tools .tool-link:hover { background: color-mix(in srgb, var(--lav) 70%, transparent); color: inherit; }
.tools .try { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 15px; color: var(--skog); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.tools .tool-link:hover .try { color: var(--skog-press); }

/* FAQ answers open smoothly where the browser can animate to auto height */
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.28s ease, content-visibility 0.28s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
  @media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
}

/* Mobile menu opens with a short drop */
.menu[open] .menu-list { animation: drop 0.18s ease-out; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu[open] .menu-list { animation: none; } }

/* Phones: the screenshots take less of the scroll */
@media (max-width: 520px) {
  .duo { width: min(318px, 84vw); }
  .phone.small { width: min(236px, 62vw); border-radius: 40px; padding: 8px; --pad: 8px; --r: 33px; }
  .phone.small img { border-radius: 33px; }
  .feature { padding: 32px 0 40px; gap: 22px; }
  .note { min-height: 52px; padding: 8px 10px; font-size: 10.5px; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; }
  .note-icon { width: 24px; height: 24px; border-radius: 6px; }
  .note-text b { font-size: 11px; }
}

/* Tool pages */
.tools-page .page-hero h1 { max-width: 18ch; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: grid; gap: 18px; }
.calc label, .calc legend { font-weight: 800; font-size: 16px; display: grid; gap: 8px; }
.calc .opt { font-weight: 600; color: var(--ink-3); }
.calc input[type="date"], .calc input[type="text"], .calc input[type="password"], .calc input[type="email"] { font: 600 18px/1.2 "Nunito", system-ui, sans-serif; color: var(--natt); background: var(--bjork); border: 1.5px solid var(--line); border-radius: 14px; min-height: 52px; padding: 0 14px; width: 100%; -webkit-appearance: none; appearance: none; }
.calc input:focus-visible { outline: 3px solid var(--mose); outline-offset: 1px; border-color: transparent; }
.calc .unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.calc .unit span { font-weight: 700; color: var(--ink-2); min-width: 3ch; }
.calc .hint { font-weight: 600; font-size: 14px; color: var(--ink-3); }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.calc legend { padding: 0; margin-bottom: 8px; }
/* Segmented choice built from radio buttons */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; display: inline-flex; font-weight: 800; font-size: 16px; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bjork); transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.seg input:checked + span { background: var(--natt); border-color: var(--natt); color: var(--bjork); }
.seg input:focus-visible + span { outline: 3px solid var(--mose); outline-offset: 2px; }
.seg.wrap-col { display: grid; }
.seg.wrap-col span { width: 100%; justify-content: space-between; border-radius: 14px; }
.seg.wrap-col small { font-weight: 700; opacity: 0.7; font-size: 13px; }
/* Result */
.result { min-height: 100%; }
.result[hidden] { display: none; }
.result .label { font-weight: 800; font-size: 15px; color: var(--ink-2); }
.result .big { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; margin-top: 6px; }
.result .sub { margin-top: 10px; color: var(--ink-2); }
.result .note-line { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--lav); font-weight: 700; font-size: 16px; }
.result .warn { background: #fbe6e1; color: #6e1d10; }
@media (prefers-color-scheme: dark) { .result .warn { background: #3a1d17; color: #f3c9bf; } }
.result-empty { color: var(--ink-3); font-weight: 700; padding: 8px 0; }
.result.in > * { animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.result.in > *:nth-child(2) { animation-delay: 0.04s; }
.result.in > *:nth-child(3) { animation-delay: 0.08s; }
.result.in > *:nth-child(4) { animation-delay: 0.12s; }
.result.in > *:nth-child(n+5) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result.in > * { animation: none; } }
/* Pregnancy: progress and the plan, week by week */
.preg-bar { margin-top: 22px; }
.preg-bar .track { position: relative; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--natt) 8%, transparent); }
.preg-bar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--skog); width: 0; transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.preg-bar .window { position: absolute; top: -4px; bottom: -4px; border-radius: 999px; border: 2px dashed var(--mose); }
.preg-bar .ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .preg-bar .fill { transition: none; } }
.plan { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.plan .when { font-weight: 800; font-size: 15px; white-space: nowrap; }
@media (max-width: 420px) { .plan li { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; } .plan .when { font-size: 14px; } }
.plan .when small { display: block; font-weight: 700; color: var(--ink-3); font-size: 13px; }
.plan b { display: block; font-size: 17px; }
.plan p { color: var(--ink-2); font-size: 15.5px; margin-top: 2px; }
.plan li.done { opacity: 0.55; }
.plan li.next .when { color: var(--skog); }
/* Chocolate: where the dose sits against the limit */
.gauge { margin-top: 22px; }
.gauge .scale { position: relative; height: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--lav) 0 33.3%, #f6c9bd 33.3% 100%); }
@media (prefers-color-scheme: dark) { .gauge .scale { background: linear-gradient(90deg, #26331b 0 33.3%, #4a221a 33.3% 100%); } }
.gauge .limit { position: absolute; left: 33.3%; top: -6px; bottom: -6px; width: 2px; background: var(--natt); }
.gauge .dot { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 999px; background: var(--surface); border: 4px solid var(--natt); transition: left 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
@media (prefers-reduced-motion: reduce) { .gauge .dot { transition: none; } }
.gauge .marks { position: relative; display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.gauge .marks .mid { position: absolute; left: 33.3%; transform: translateX(-50%); color: var(--natt); white-space: nowrap; }
.limits { margin-top: 14px; }
.limits td:not(:first-child), .limits th:not(:first-child) { text-align: right; white-space: nowrap; }
/* Leash: the year as a ring, with the leash period marked */
.leash { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 760px) { .leash { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.ring { position: relative; width: min(300px, 78vw); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ring .base { stroke: color-mix(in srgb, var(--natt) 8%, transparent); }
.ring .period { stroke: var(--skog); }
.ring .months text { fill: var(--ink-3); font: 800 11px "Nunito", system-ui, sans-serif; }
.ring .today { fill: var(--surface); stroke: var(--natt); }
.ring .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 22%; }
.ring .num { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(44px, 9vw, 60px); line-height: 1; font-variant-numeric: tabular-nums; }
.ring .unit-l { font-weight: 800; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.js .ring .period { stroke-dashoffset: var(--len); }
.js .ring.drawn .period { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s; }
@media (prefers-reduced-motion: reduce) { .js .ring .period { stroke-dashoffset: 0; transition: none; } }
.leash h2 { font-size: clamp(28px, 3.4vw, 38px); }
.leash .sub { margin-top: 10px; color: var(--ink-2); font-size: 19px; }
.leash .cta-row { margin-top: 24px; }
@media (max-width: 760px) { .leash .cta-row { justify-content: center; } }
.btn-quiet { background: var(--surface); color: var(--natt); border: 1.5px solid var(--line); }
.btn-quiet:hover { color: var(--natt); border-color: color-mix(in srgb, var(--natt) 30%, var(--line)); }
/* Tools index: one row per tool with its key number */
.tool-rows { list-style: none; padding: 0; margin: 0 0 clamp(40px, 6vw, 72px); border-top: 2px solid var(--natt); }
.tool-rows a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.tool-rows a:hover h2 { color: var(--skog); }
.tool-rows .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--lav); color: var(--skog); display: grid; place-items: center; }
.tool-rows .ico svg { width: 26px; height: 26px; }
.tool-rows h2 { font-size: clamp(22px, 2.6vw, 28px); transition: color 0.15s ease; }
.tool-rows p { color: var(--ink-2); font-size: 16px; margin-top: 4px; }
.tool-rows .key { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); white-space: nowrap; text-align: right; line-height: 1; }
.tool-rows .key small { display: block; font-family: "Nunito", sans-serif; font-weight: 700; font-size: 13px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 560px) { .tool-rows a { grid-template-columns: 44px minmax(0, 1fr); align-items: start; } .tool-rows .ico { width: 44px; height: 44px; } .tool-rows .key { grid-column: 2; text-align: left; } }
.sources { color: var(--ink-3); font-size: 15px; }

/* Scrolling past a feature: the phone rises a little faster than the photo behind it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature .duo-photo { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .feature .duo .phone { animation: lift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes drift { from { transform: translateY(22px); } to { transform: translateY(-22px); } }
@keyframes lift { from { transform: translateY(44px); } to { transform: translateY(-28px); } }

/* Elements switched off with the hidden attribute stay off, also where a class sets display */
[hidden] { display: none !important; }

/* Pages that finish the old service's login and e-mail flows */
.legacy-page .calc { max-width: 480px; margin-top: 28px; }
.legacy-page .cta-row { margin-top: 24px; }
.legacy-page .btn[disabled], .legacy-page button[disabled] { opacity: 0.6; pointer-events: none; }
.form-intro { font-weight: 700; color: var(--ink-2); }
.form-error { color: #b42318; font-weight: 700; }
@media (prefers-color-scheme: dark) { .form-error { color: #ffb4a8; } }
.old-share-note { display: none; }
.old-share .old-share-note { display: block; }

/* The walk, live on the lock screen: a card over the walk photo where the route draws itself (site.js) */
.walk-shot { position: relative; }
.walk-live { position: absolute; left: -3%; bottom: 7%; width: min(250px, 66%); padding: 12px 14px 10px; border-radius: 22px; background: rgb(20 28 18 / 0.78); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: #fff; box-shadow: 0 24px 40px -22px rgb(0 0 0 / 0.6); z-index: 3; }
.wl-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.wl-head b { font-weight: 800; }
.wl-head span:last-child { margin-left: auto; color: rgb(255 255 255 / 0.7); font-weight: 700; }
.wl-icon { width: 20px; height: 20px; border-radius: 6px; overflow: hidden; flex: none; }
.wl-icon svg { width: 100%; height: 100%; display: block; }
.wl-stats { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: 13px; font-weight: 700; color: rgb(255 255 255 / 0.75); }
.wl-stats b { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 26px; color: #fff; font-variant-numeric: tabular-nums; }
.wl-route { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.wl-route path { fill: none; stroke: #8fd14f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.wl-route .wl-start { fill: rgb(20 28 18); stroke: #fff; stroke-width: 2.5; }
.wl-route .wl-dot { fill: #8fd14f; stroke: #fff; stroke-width: 2; }
.js .walk-live:not(.done) .wl-route path { stroke-dashoffset: 1; }
.js .walk-live:not(.done) .wl-dot { opacity: 0; }
.js .walk-live:not(.done):not(.go) { opacity: 0; transform: translateY(10px); }
.walk-live { transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .walk-live.go:not(.done) .wl-route path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s cubic-bezier(0.33, 0, 0.2, 1) 0.2s; }
.walk-live .wl-dot { transition: opacity 0.3s ease; }
@media (max-width: 520px) { .walk-live { left: 0; width: 72%; padding: 10px 12px 8px; border-radius: 18px; } .wl-stats b { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .walk-live, .walk-live .wl-route path { transition: none !important; } }

/* The promise, one line after the other when the band comes into view (site.js) */
.band h2 .line { overflow: hidden; padding-bottom: 0.06em; }
.band h2 .line > span { display: inline-block; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease; }
.js .band h2[data-reveal]:not(.in) .line > span { transform: translateY(105%); opacity: 0; }
.band h2.in .line:nth-child(2) > span { transition-delay: 0.14s; }
.band h2.in .line:nth-child(3) > span { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) { .band h2 .line > span { transition: none; } }
