/* Shared Pedaalid design system and responsive page styles. */
:root {
  --paper: #F7F1E8;
  --sand: #EFE5D8;
  --white: #FFFFFF;
  --ink: #1F2D2A;
  --ink-2: #4B5A55;
  --sun: #F4A259;
  --butter: #FFD98A;
  --sage: #D6E4D3;
  --blush: #F4D9CE;
  --line: rgba(31, 45, 42, 0.14);
  --on-ink: rgba(247, 241, 232, 0.84);
  --line-on-ink: rgba(247, 241, 232, 0.16);

  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9vw, 136px);
  --header-h: 80px;
  --radius: 28px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); text-wrap: balance; }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.pille :focus-visible { outline-color: var(--butter); }

/* ---------- type ---------- */
h1 {
  font-size: clamp(2.875rem, 1.6rem + 4.6vw, 5.5rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(2.125rem, 1.45rem + 2.8vw, 3.75rem);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
}


.lead {
  margin-top: 24px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.03rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-lg { width: 32px; height: 32px; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.actions-center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1.0625rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #33463f; }
.btn-ghost { border-color: rgba(31, 45, 42, 0.3); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.45); }
.btn-small { min-height: 46px; padding: 0 20px; font-size: 1rem; }

.text-link {
  display: inline-flex;
  gap: 8px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 241, 232, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; text-decoration: none; color: var(--ink); }
.brand-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-logo svg { display: block; height: 34px; width: auto; }
.brand-sun { width: 15px; height: 15px; border-radius: 50%; background: var(--sun); }
.brand-word { font: 450 1.875rem/1 var(--serif); letter-spacing: -0.015em; }

.site-nav { display: flex; align-items: center; gap: 30px; font-weight: 500; }
.site-nav a { text-decoration: none; padding-block: 8px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.site-nav .nav-call { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1.5px solid rgba(31, 45, 42, 0.25);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 1. hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(100svh, 940px);
  background: #EEECE8;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(247, 241, 232, 0.95) 0%, rgba(247, 241, 232, 0.86) 32%, rgba(247, 241, 232, 0) 60%);
}
.hero-inner { padding-block: calc(var(--header-h) + 48px) 64px; }
.hero-copy { max-width: 610px; }
.hero-note { margin-top: 16px; color: var(--ink-2); font-size: 1rem; }
.eu-block img {
  box-sizing: content-box;
  width: auto;
  height: 44px;
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--white);
}

/* ---------- 2. why ---------- */
.statement {
  max-width: 24em;
  font-size: clamp(1.875rem, 1.25rem + 2.5vw, 3.25rem);
  font-weight: 350;
  line-height: 1.16;
  letter-spacing: -0.015em;
}
.statement em {
  font-style: italic;
  background: linear-gradient(transparent 64%, rgba(244, 162, 89, 0.45) 64%);
  padding-inline: 2px;
}

.why-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.why-points .icon-lg { color: var(--ink); }
.why-points h3 { margin: 18px 0 6px; font: 600 1.1875rem/1.3 var(--sans); }
.why-points p { color: var(--ink-2); }

/* ---------- 3. steps carousel ---------- */
.steps-section { background: var(--sand); }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84vw, 452px);
  gap: 20px;
  margin: 0;
  padding: 4px max(var(--gutter), calc((100% - var(--container)) / 2)) 12px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -3px; }

.step-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
  scroll-snap-align: start;
}
.step-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sage); }
.step-visual img { width: 100%; height: 100%; object-fit: cover; }
.step-visual-visit { display: grid; place-items: center; background: var(--sage); }
.step-visual-call { display: grid; place-items: center; background: var(--blush); }

/* the example home visit, also used in Figma */
.visit-card {
  width: min(84%, 320px);
  padding: 20px 22px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(31, 45, 42, 0.12);
}
.visit-top { display: flex; align-items: center; gap: 12px; }
.visit-top .icon {
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--sun);
  stroke-width: 2;
}
.visit-top span { display: flex; flex-direction: column; color: var(--ink-2); font-size: 0.875rem; line-height: 1.3; }
.visit-top b { color: var(--ink); font-size: 1rem; font-weight: 600; }
.visit-list { margin: 14px 0 0; padding: 0; list-style: none; font-size: 1rem; }
.visit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.visit-list li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.4L13 6.4' fill='none' stroke='%231F2D2A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.step-body { padding: 28px 28px 34px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font: 600 1rem/1 var(--sans);
}
.step-body h3 { margin: 18px 0 10px; font: 400 1.75rem/1.15 var(--serif); letter-spacing: -0.01em; }
.step-body p { color: var(--ink-2); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
}
.carousel-count { color: var(--ink-2); font-weight: 500; }
.carousel-count span { color: var(--ink); }
.carousel-buttons { display: flex; gap: 10px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border: 1.5px solid rgba(31, 45, 42, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.round-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* the example call, also used in Figma */
.call-card {
  width: min(84%, 340px);
  padding: 18px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 40px rgba(31, 45, 42, 0.12);
}
.call-top { display: flex; align-items: center; gap: 12px; }
.call-avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sun);
  font: 500 1.3rem/1 var(--serif);
}
.call-who { display: flex; flex-direction: column; line-height: 1.25; }
.call-who b { font-weight: 600; }
.call-who span, .call-time { color: var(--ink-2); font-size: 0.875rem; }
.call-time { margin-left: auto; }
.call-bubble {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.45;
}

/* ---------- 4. device ---------- */
.device-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.device-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.device-sun {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #FFE9B8 0%, var(--butter) 48%, #F8C88E 100%);
}
.device-visual img { position: relative; width: 86%; }
.device-copy > p { margin-top: 20px; color: var(--ink-2); max-width: 34em; }

.feature-list { margin: 36px 0 0; padding: 0; list-style: none; }
.feature-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.feature-list .icon { width: 28px; height: 28px; margin-top: 2px; }
.feature-list h3 { margin: 0 0 4px; font: 600 1.125rem/1.3 var(--sans); }
.feature-list p { color: var(--ink-2); }

/* ---------- 5. Pille ---------- */
.pille { background: var(--ink); color: var(--paper); }
.pille-copy > p { margin-top: 22px; color: var(--on-ink); max-width: 34em; font-size: 1.125rem; }
.pille-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.honest-note {
  margin-top: 32px;
  padding: 22px 24px;
  border: 1px solid var(--line-on-ink);
  border-radius: 20px;
  background: rgba(247, 241, 232, 0.06);
  color: var(--on-ink);
}
.honest-note strong { color: var(--butter); font-weight: 600; }

.pille-day {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-on-ink);
  border-radius: var(--radius);
  background: rgba(247, 241, 232, 0.05);
}
.day-label { margin-bottom: 8px; color: var(--butter); font-weight: 600; font-size: 0.9375rem; }
.day-list { margin: 0; padding: 0; list-style: none; }
.day-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line-on-ink);
}
.day-list li:first-child { border-top: 0; }
.day-list time { font: 400 1.5rem/1.2 var(--serif); color: var(--paper); }
.day-list span { color: var(--on-ink); }

/* ---------- 6. programme ---------- */

.offer {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: end;
  padding: clamp(28px, 4.5vw, 60px);
  border-radius: 32px;
  background: var(--butter);
}
.offer h3 { font: 350 clamp(1.875rem, 1.35rem + 1.8vw, 2.75rem)/1.08 var(--serif); letter-spacing: -0.015em; }
.offer-copy p:last-child { margin-top: 14px; max-width: 32em; color: #3F4A45; }
.offer .actions { margin-top: 20px; }
.offer .btn-ghost { border-color: rgba(31, 45, 42, 0.4); }

/* ---------- 7. story ---------- */
.story { background: var(--sand); }
.story-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.story-photo { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story blockquote { margin: 0; }
.story blockquote p {
  font: 350 clamp(1.75rem, 1.2rem + 2vw, 2.75rem)/1.2 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.story blockquote footer { margin-top: 20px; color: var(--ink-2); }
.story .text-link { margin-top: 32px; }

/* ---------- 8. FAQ ---------- */

/* ---------- 9. contact ---------- */
.contact { padding-top: 0; }
.contact-card {
  padding: clamp(44px, 7vw, 96px) 24px;
  border-radius: 40px;
  background: var(--sage);
  text-align: center;
}
.contact-card > p { margin: 18px auto 0; max-width: 32em; color: var(--ink-2); font-size: 1.125rem; }
.contact-phone {
  display: block;
  margin-top: 32px;
  font: 300 clamp(2.5rem, 1.6rem + 4vw, 4.75rem)/1.1 var(--serif);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.contact-mail { display: inline-block; margin-top: 10px; font-size: 1.125rem; text-underline-offset: 5px; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 44px; background: var(--sand); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 12px; color: var(--ink-2); }
.footer-brand .brand-logo svg { height: 40px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-weight: 500; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer-company p { margin-bottom: 6px; color: var(--ink-2); }
.footer-company strong { color: var(--ink); }
.footer-company a { text-underline-offset: 4px; }

.eu-block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.eu-block img { flex: none; height: 56px; }

/* ---------- reveal on scroll (calm, once, off for reduced motion) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 22px; }
  .header-call span { display: none; }
  .header-call { padding: 0 14px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }

  .site-header { background: rgba(247, 241, 232, 0.96); box-shadow: 0 1px 0 var(--line); }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 12px; right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 24px 60px rgba(31, 45, 42, 0.18);
    font-size: 1.25rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 16px; border-radius: 14px; }
  .site-nav a:hover { background: var(--sand); text-decoration: none; }
  .site-nav .nav-call { display: block; margin-top: 6px; background: var(--ink); color: var(--paper); text-align: center; font-weight: 600; }
  .site-nav .nav-call:hover { background: #33463f; }
  .brand-word { font-size: 1.625rem; }

  .device-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .story-photo { max-width: 460px; aspect-ratio: 4 / 3.6; }
  .offer { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 759px) {
  .hero { display: block; min-height: 0; padding-top: var(--header-h); background: var(--paper); }
  .hero-media { position: relative; inset: auto; z-index: 0; display: block; aspect-ratio: 4 / 3.3; }
  .hero-media img { object-position: 58% 40%; }
  .hero::after { display: none; }
  .hero-inner { padding-block: 32px 56px; }
  .actions .btn { flex: 1 1 auto; }

  .why-points { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .eu-block { flex-direction: column; align-items: flex-start; }
  .carousel-track { grid-auto-columns: 86%; gap: 14px; }
}

@media (max-width: 420px) {
  .header-call { display: none; }
  .brand-word { font-size: 1.5rem; }
}

/* ---------- "Proovi ise" dialog ---------- */
[hidden] { display: none !important; }

.icon-arrow { transition: transform 0.2s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

.proovi-dialog {
  width: min(100% - 24px, 540px);
  max-height: calc(100dvh - 24px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px) clamp(24px, 3vw, 32px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(31, 45, 42, 0.25);
}
.proovi-dialog::backdrop {
  background: rgba(31, 45, 42, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.proovi-dialog[open] { animation: dialog-in 0.25s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }
body:has(.proovi-dialog[open]) { overflow: hidden; }

.dialog-close {
  position: absolute;
  top: 14px; right: 14px;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  border: 1.5px solid rgba(31, 45, 42, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.dialog-close:hover { background: var(--sand); }

.proovi-form { display: grid; gap: 18px; }
.proovi-dialog h2 { padding-right: 52px; font-size: clamp(2.125rem, 1.6rem + 2vw, 2.75rem); }
.dialog-intro, .proovi-done p { color: var(--ink-2); }

.field { display: grid; gap: 8px; }
.field span { font-weight: 600; }
.field em { color: var(--ink-2); font-style: normal; font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(31, 45, 42, 0.22);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #B23A1E; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--blush);
  color: #7A2914;
  font-weight: 600;
}
.form-status a { text-underline-offset: 3px; }
.form-note { color: var(--ink-2); font-size: 0.9375rem; text-align: center; }

.proovi-done { display: grid; justify-items: start; gap: 14px; }
.proovi-done .btn { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .proovi-dialog[open] { animation: none; }
  .icon-arrow { transition: none; }
}

/* ==========================================================================
   Inspiration pass (Agewise cues): centred logo, pill labels, pastel cards,
   inline stickers, torn-paper edges. Kept as overrides so the base stays readable.
   ========================================================================== */

/* a small icon set inside a headline, like a sticker */
.h-sticker {
  display: inline-grid;
  place-items: center;
  width: 1.08em; height: 1.08em;
  margin: 0 0.14em 0 0.04em;
  border-radius: 50%;
  background: var(--sun);
  vertical-align: -0.17em;
  transform: rotate(-8deg);
}
.h-sticker svg {
  width: 0.6em; height: 0.6em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* why: three pastel cards with round icon badges */
.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.why-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px 30px 34px;
  border-radius: var(--radius);
}
.why-card-blush { background: var(--blush); }
.why-card-butter { background: #FFE6AE; }
.why-card-sage { background: var(--sage); }
.why-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--white);
}
.why-icon .icon { width: 30px; height: 30px; }
.why-card h3 { margin: 40px 0 8px; font: 400 1.875rem/1.1 var(--serif); letter-spacing: -0.01em; }
.why-card p { color: #3F4A45; }

.offer { position: relative; }
.offer .actions { margin-top: 0; }

/* story: the quote sits on a pastel card */
.story-copy {
  position: relative;
  padding: clamp(32px, 4.5vw, 60px);
  border-radius: var(--radius);
  background: var(--blush);
}
.story-copy::before {
  content: "“";
  position: absolute;
  top: 18px; right: 36px;
  color: var(--sun);
  font: 400 8rem/1 var(--serif);
  pointer-events: none;
}
.story blockquote { margin-top: 8px; }

/* torn-paper edges: hero into "why", and around the dark Pille section */
.why, .pille { position: relative; }
.why::before,
.pille::before,
.pille::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  height: 34px;
  background: url("assets/torn-edge.svg") repeat-x left bottom / 1200px 34px;
  pointer-events: none;
}
.why::before { top: -33px; }
.pille::before { top: -1px; transform: scaleY(-1); }
.pille::after { bottom: -1px; }

@media (max-width: 759px) {
  .why::before { display: none; }
  .why-cards { grid-template-columns: 1fr; }
  .why-card { min-height: 0; }
  .why-card h3 { margin-top: 28px; }
  .story-copy::before { font-size: 6rem; right: 24px; }
}

/* Logo: "Pööre" (redesign/logo/c-monogram/c-monogram-3), chosen 2026-10-14 */
.brand-img { display: block; width: auto; height: 38px; }
.brand-img-footer { height: 46px; }
.h-sticker-logo { background: none; border-radius: 0; transform: rotate(-6deg); }
@media (max-width: 960px) { .brand-img { height: 32px; } }
.site-nav { font-size: 1rem; white-space: nowrap; }
@media (min-width: 961px) { .site-nav { gap: 26px; } }
@media (max-width: 960px) { .site-nav { font-size: 1.25rem; } }

/* ---------- Mis on tulekul? (the Kiili pilot) ---------- */
.upcoming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.upcoming-sub { margin-top: 18px; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--serif); letter-spacing: -0.01em; }
.upcoming-copy > p { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.upcoming-copy > .upcoming-stat {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1.5px solid var(--ink);
}
.upcoming-stat strong { color: var(--ink); font: 300 clamp(3.5rem, 2.4rem + 4vw, 5.5rem)/1 var(--serif); letter-spacing: -0.03em; }
.upcoming-stat span { max-width: 17em; }

.join {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(31, 45, 42, 0.08);
}
.join h3 { font: 400 1.75rem/1.15 var(--serif); letter-spacing: -0.01em; }
.join > p { margin-top: 8px; color: var(--ink-2); }
.join-list { margin: 18px 0 0; padding: 0; list-style: none; }
.join-list li + li { border-top: 1px solid var(--line); }
.join-list a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 0;
  text-decoration: none;
}
.join-avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font: 500 1.375rem/1 var(--serif);
}
.join-avatar-sun { background: var(--sun); }
.join-avatar-sage { background: var(--sage); }
.join-avatar-blush { background: var(--blush); }
.join-who { display: flex; flex-direction: column; line-height: 1.3; }
.join-who b { font-weight: 600; }
.join-who span { color: var(--ink-2); font-size: 0.9375rem; }
.join-nr { font: 400 1.375rem/1 var(--serif); white-space: nowrap; }
.join-list a:hover .join-nr { text-decoration: underline; text-underline-offset: 5px; }
.join-note { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.join-note a { text-underline-offset: 4px; }

@media (max-width: 960px) { .upcoming-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .join-list a { grid-template-columns: 48px 1fr; row-gap: 6px; }
  .join-nr { grid-column: 2; font-size: 1.25rem; }
}

/* ==========================================================================
   Subpages (programm.html, blog.html): same system, no photo behind the header
   ========================================================================== */
.subpage .site-header {
  background: rgba(247, 241, 232, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

.page-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 104px)) 0 clamp(48px, 6vw, 88px); }
.page-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1.02; }
.page-hero .lead { max-width: 36em; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.page-hero-narrow > * { max-width: 900px; }
.page-meta { margin-bottom: 16px; color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; }

.facts-card { padding: clamp(28px, 4vw, 44px); border-radius: 32px; background: var(--butter); }
.facts-card dl { margin: 0; }
.facts-card dl > div { padding: 18px 0; border-top: 1px solid rgba(31, 45, 42, 0.18); }
.facts-card dl > div:first-child { padding-top: 0; border-top: 0; }
.facts-card dt { color: #3F4A45; font-weight: 600; font-size: 0.9375rem; }
.facts-card dd { margin: 4px 0 0; font: 400 1.5rem/1.25 var(--serif); }
.facts-card dl > div:first-child dd { font-size: clamp(3.5rem, 2.4rem + 3vw, 5rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.prose { color: var(--ink-2); font-size: 1.125rem; }
.prose h2 { margin-bottom: 22px; color: var(--ink); }
.prose p + p { margin-top: 16px; }

.num-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.num-card { padding: 30px 30px 34px; border-radius: var(--radius); background: var(--paper); }
.num-card h3 { margin: 18px 0 8px; font: 400 1.875rem/1.1 var(--serif); letter-spacing: -0.01em; }
.num-card p { color: var(--ink-2); }

.why-card h3 { text-wrap: balance; }
.apply-facts { margin-top: 18px; color: var(--ink); font-weight: 600; }

.article { padding-top: 0; }
.article-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.article-photo {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}
.article-photo figcaption { padding: 16px 20px; color: var(--ink-2); font-size: 0.9375rem; }
.article-body { max-width: 40em; }
.article-body blockquote {
  margin: 30px 0;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--blush);
  color: var(--ink);
  font: 350 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.3 var(--serif);
}
.article-note { margin-top: 30px; padding: 24px 26px; border-radius: 20px; background: var(--sage); }
.article-note strong { display: block; margin-bottom: 4px; color: var(--ink); }
.article-note p { color: #3F4A45; }

@media (max-width: 960px) {
  .page-hero-grid, .split, .article-grid { grid-template-columns: 1fr; }
  .num-cards { grid-template-columns: 1fr; }
  .article-photo { position: static; max-width: 460px; }
}

/* Shared refinements */
.site-header { background: rgba(247,241,232,.96); border-bottom: 1px solid var(--line); }
.header-bar { gap: 28px; }
.brand-logo { gap: 10px; }
.brand-logo img { width: 38px; height: 38px; }
.brand-word { font-size: 2rem; font-weight: 600; letter-spacing: -.07em; }
.site-nav { gap: clamp(14px,1.8vw,26px); font-size: .9rem; margin-left: auto; }
.header-call { font-size: .9rem; }
.eyebrow { font: 650 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.hero { min-height: min(820px,100svh); }
.hero-copy { max-width: 550px; }
.hero h1 { font-size: clamp(2.9rem,5.7vw,5.25rem); line-height: 1.04; letter-spacing: -.045em; }
.hero .lead { max-width: 27em; font-size: clamp(1.06rem,1.4vw,1.2rem); }
.hero-explore { display: inline-flex; align-items: center; gap: 14px; margin-top: 24px; font-size: .95rem; text-underline-offset: 5px; }
.hero-note { max-width: 29em; font-size: .88rem; }
.statement { max-width: 1050px; margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.why-card { min-height: 270px; }
.offer h2 { font-size: clamp(2rem,3vw,2.8rem); }
.pille .eyebrow { color: var(--butter); }
.faq { background: #fffaf3; }
.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px,7vw,100px); }
.faq-intro { margin: 24px 0; color: var(--ink-2); max-width: 24em; }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items details:first-child { border-top: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 25px 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; }
.faq-items [open] summary::after { content: '−'; }
.faq-items details p { padding: 0 32px 24px 0; color: var(--ink-2); }
.contact-mail,.footer-company a,.join-note a { overflow-wrap: anywhere; }
@media(min-width:961px) and (max-width:1150px) { .header-call span { display:none; } .site-nav { gap:16px; } }
@media(max-width:960px) { .site-nav { margin-left:0; font-size:1.15rem; } .faq-grid { grid-template-columns:1fr; } }
@media(max-width:759px) { .hero-copy { max-width:none; } .hero-media { aspect-ratio: 4 / 3; } .hero-inner { padding-block: 32px 52px; } .hero h1 { font-size: clamp(2.7rem,9.6vw,4rem); } .hero .eyebrow { margin-bottom:16px; } .hero .actions { margin-top:24px; } .statement { text-align:left; } .why-card { min-height:0; } }

/* Project navigation: both ongoing programmes share one menu. */
.nav-projects { position: relative; }
.nav-projects summary { display: flex; align-items: center; gap: 7px; padding-block: 8px; list-style: none; cursor: pointer; }
.nav-projects summary::-webkit-details-marker { display: none; }
.nav-projects summary span { transition: transform .2s ease; }
.nav-projects[open] summary span { transform: rotate(180deg); }
.nav-projects-menu { position: absolute; top: calc(100% + 12px); left: -18px; min-width: 260px; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 14px 36px rgba(31,45,42,.12); }
.site-nav .nav-projects-menu a { display: block; padding: 12px; border-radius: 10px; }
.site-nav .nav-projects-menu a:hover { background: var(--sand); text-decoration: none; }
.eu-block strong { display: inline-block; margin-top: 6px; color: var(--ink); font-weight: 600; }
@media(max-width:960px) {
 .nav-projects summary { padding: 14px 16px; justify-content: space-between; }
 .nav-projects-menu { position: static; min-width: 0; margin: 0 8px 8px; padding: 4px; box-shadow: none; background: var(--sand); border: 0; }
 .site-nav .nav-projects-menu a { white-space: normal; }
}

/* A visible desktop alternative when no telephone handler is configured. */
.call-intro { margin-top: 20px; color: var(--ink-2); }
.call-number { display: inline-block; margin-top: 24px; font: 400 clamp(1.8rem,5vw,2.5rem)/1.2 var(--serif); text-decoration: none; }
.call-number:hover { text-decoration: underline; text-underline-offset: 5px; }
.call-dialog .actions { margin-top: 26px; }
.call-help { margin-top: 22px; text-align: left; }
.call-status { margin-top: 14px; font-size: 1rem; }
.call-dialog .dialog-close { font-size: 1.8rem; }
body:has(.call-dialog[open]) { overflow: hidden; }
@media(max-width:420px) { .header-call { display:inline-flex; } }
