/*
 * Fimbo landing page.
 *
 * Layout borrowed from lightlyapp.ai (sky hero with a ruled headline, lavender panel,
 * grey band, sunny close with tilted cards) and from Bevel (floating pill nav, three cards
 * with phones, a wall of insight cards). Everything inside a phone or a card is
 * the real app, screenshotted from the simulator (assets/app). Figtree is the app's face;
 * the green is the app's accent.
 */

/* Figtree, served from this site so no visit reaches a font host (SIL Open Font License 1.1).
   One variable file per subset covers every weight; Czech letters live in latin-ext. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-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;
}

/* Caveat, for what is written by hand: the note beside the bear and David's signature
   (SIL Open Font License 1.1). Cut down to the letters of "Tohle je Fimbo" and "David"
   (SemiBold, 8 KB instead of 70 KB): if those words change, re-subset
   assets/fonts/caveat-hello.woff2 from Caveat SemiBold (Google Fonts' &text= does it),
   or any new letter falls back to Figtree. */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/caveat-hello.woff2?v=2") format("woff2");
}

:root {
  color-scheme: light;

  --ink: #16201b;
  --ink-soft: #44544b;
  --ink-faint: rgba(22, 32, 27, 0.5);
  --white: #ffffff;
  --canvas: #ffffff;
  --accent: #1f9d55;
  --accent-deep: #177344;

  --sky: #bfe6cb;
  --sky-mid: #e2f4e7;
  --lavender-a: #ddd7f3;
  --lavender-b: #d1cbe5;
  --grey-band: #f2f1f4;
  --sun-a: #fff7ab;
  --sun-b: #fae3a9;
  --sun-flat: #fcecb0;

  /* Feature panels: pastels that sit next to the app's peach and green */
  --panel-sky: #c9dafc;
  --panel-peach: #f9cdb8;
  --panel-lilac: #dccbf6;
  --panel-mint: #cfeedb;
  --tile-mint: #dcefe3;
  --tile-sand: #ecdcca;
  --tile-butter: #f8efc4;
  --tile-rose: #f8dbe2;

  --shadow-card: 0 24px 60px -28px rgba(40, 30, 70, 0.35);
  --shadow-phone: 0 40px 80px -36px rgba(30, 30, 60, 0.45);

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

strong,
b {
  font-weight: 600;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

/* In-page links land below the floating nav, not under it */
main [id] {
  scroll-margin-top: 88px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Nav: one floating pill ---------- */

.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
}

.nav__bar {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow:
    0 0 0 1px rgba(22, 32, 27, 0.06),
    0 12px 32px -16px rgba(30, 40, 80, 0.35);
  pointer-events: auto;
}

.logo {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}

.logo--small {
  font-size: 22px;
}

.nav__links {
  display: flex;
  gap: 2px;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav__cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease;
}

@media (hover: hover) {
  .nav__links a:hover {
    background: rgba(22, 32, 27, 0.06);
    color: var(--ink);
  }
  .nav__cta:hover {
    background: var(--accent-deep);
  }
}

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

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Always at least the whole screen: the words in the middle of the sky, the meadow at the foot */
  min-height: 100vh;
  min-height: 100svh;
  /* Every height in the hero gives way to a short window, so the meadow stays in view */
  padding: clamp(72px, 12vh, 112px) 0 0;
  padding: clamp(72px, 12svh, 112px) 0 0;
  text-align: center;
  isolation: isolate;
}

.hero__sky {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: -1;
  background: linear-gradient(var(--sky), var(--sky-mid) 55%, #f6fbf7);
  overflow: hidden;
}

.cloud {
  position: absolute;
  fill: #fff;
  opacity: 0.75;
  filter: blur(2px);
}

.cloud--top {
  width: 180px;
  top: -18px;
  left: 56%;
}

.cloud--left {
  width: 170px;
  top: 46%;
  left: 2%;
}

.cloud--right {
  width: 150px;
  top: 30%;
  right: -60px;
}

@media (prefers-reduced-motion: no-preference) {
  .cloud {
    animation: drift 18s ease-in-out infinite alternate;
  }
  .cloud--left {
    animation-duration: 22s;
    animation-delay: -6s;
  }
  .cloud--right {
    animation-duration: 26s;
    animation-delay: -12s;
  }
}

@keyframes drift {
  from {
    transform: translateX(-14px);
  }
  to {
    transform: translateX(14px);
  }
}

.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* The headline, one line per thought */
.ruled {
  position: relative;
  width: 100%;
  max-width: 1080px;
  font-size: min(clamp(46px, 8.6vw, 120px), 12vh);
  font-size: min(clamp(46px, 8.6vw, 120px), 12svh);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.ruled__line {
  display: block;
  position: relative;
}


.hero__text {
  max-width: 640px;
  margin-top: clamp(14px, 3vh, 28px);
  margin-top: clamp(14px, 3svh, 28px);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: balance;
}

/* Official store badges (Apple's SVG and Google's PNG in Czech), shown at the same height */
.stores {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: clamp(16px, 3.5vh, 32px);
  margin-top: clamp(16px, 3.5svh, 32px);
}

.stores__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.stores__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.stores__badges img {
  width: auto;
  height: clamp(40px, 7vh, 52px);
  height: clamp(40px, 7svh, 52px);
}

/* The garden: the app's own flowers, swaying, and the bear sitting among them */
.meadow {
  --bear: min(clamp(210px, 21vw, 300px), 32vh);
  --bear: min(clamp(210px, 21vw, 300px), 32svh);
  position: relative;
  flex: none;
  /* A finger dragged sideways brushes through the flowers; up and down still scrolls */
  touch-action: pan-y;
  height: clamp(170px, 32vh, 480px);
  height: clamp(170px, 32svh, 480px);
  margin-top: 8px;
  /* The hills fall back as the page scrolls (main.js); their foot stays cut at the meadow's edge */
  clip-path: inset(-100vh -100vw 0);
}

.meadow__back,
.meadow__front {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* In a wide, short meadow the slice crops the viewBox's top: let the hills and the
     tallest flowers rise past it into the sky (the meadow's clip-path keeps only the foot) */
  overflow: visible;
}

.meadow__front {
  z-index: 2;
}


#soukromi {
  margin-top: clamp(48px, 6vw, 96px);
}

.m-hill-far {
  fill: #a6dcc0;
}

.m-hill-near {
  fill: #72bf8a;
}

.m-ground {
  fill: #5bae63;
}

.m-tuft {
  fill: url(#tuft);
}

.meadow__bear {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 1;
  width: var(--bear);
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 22px rgba(14, 79, 46, 0.35));
}

/* A note by hand beside the bear's head: who this is */
.hello {
  position: absolute;
  z-index: 3;
  /* Beside the bear's middle; the arrow climbs from the words to the bear */
  left: calc(50% + var(--bear) * 0.34);
  bottom: calc(9% + var(--bear) * 0.62 - 70px);
  margin: 0;
  pointer-events: none;
}

.hello__text {
  display: block;
  margin: 2px 0 0 40px;
  font-family: "Caveat", "Figtree", cursive;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: rotate(-5deg);
  transform-origin: left top;
}

.hello__arrow {
  display: block;
  width: clamp(50px, 4.4vw, 64px);
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The arrow draws itself up to the bear, then the words follow */
@media (prefers-reduced-motion: no-preference) {
  .hello__arrow path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    /* Hidden until it starts drawing: a round cap shows as a dot even on an undrawn line */
    opacity: 0;
    animation: hello-draw 360ms cubic-bezier(0.33, 0, 0.67, 1) 300ms both;
  }
  .hello__arrow path + path {
    animation-duration: 140ms;
    animation-delay: 660ms;
  }
  .hello__text {
    opacity: 0;
    animation: hello-in 320ms cubic-bezier(0.16, 1, 0.3, 1) 820ms forwards;
  }
}

@keyframes hello-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes hello-in {
  from {
    opacity: 0;
    transform: rotate(-5deg) translateY(6px);
  }
  to {
    opacity: 1;
    transform: rotate(-5deg);
  }
}

/* The bear floats a little above the grass, as at the start */
@media (prefers-reduced-motion: no-preference) {
  .meadow__bear {
    animation: hover 6s ease-in-out infinite;
  }
}

@keyframes hover {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Endless motion (the clouds, the bear, the glints) rests while its section is off screen:
   main.js marks the hero and the splash .is-away, so nothing draws frames nobody sees. */
.hero.is-away .cloud,
.hero.is-away .meadow__bear,
.js .splash.is-in.is-away .glint > span {
  animation-play-state: paused;
}


/* A phone with a graphite rim and the island drawn over the real screenshot */
.device {
  position: relative;
  padding: 2.6%;
  border-radius: 15.5% / 7.2%;
  background: linear-gradient(145deg, #3b3b40, #18181b 40%, #2a2a2e);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 50px 90px -40px rgba(30, 30, 70, 0.55);
}

.device img {
  width: 100%;
  border-radius: 13% / 6%;
}

.device__island {
  position: absolute;
  top: 3.9%;
  left: 50%;
  width: 29%;
  height: 3.4%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050505;
}

/* ---------- Shared bits ---------- */




.section-head {
  text-align: center;
}


.big-title {
  max-width: 1150px;
  margin: 0 auto;
  font-size: clamp(40px, 6.2vw, 90px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: center;
}

.big-title--left {
  margin: 0;
  text-align: left;
}

/* ---------- Privacy (lavender panel, one promise) ---------- */

.lavender {
  max-width: 1185px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: 48px;
  background: linear-gradient(225deg, var(--lavender-a), var(--lavender-b));
  text-align: center;
}


.lavender__title {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}


.lavender__lede {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
}









.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(36px, 4vw, 52px);
  text-align: left;
}

/* The picture beside the words, so a card is a row, not a column */
.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 20px 24px 20px 18px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.fact:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.fact:nth-child(even) {
  transform: rotate(1.2deg);
}

/* The picture stands in a disc and rises out of the top of it. */
.fact__icon {
  grid-row: span 2;
  align-self: center;
  position: relative;
  display: block;
  width: 96px;
  height: 100px;
}

.fact__icon::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f3ebe1;
}

.fact__icon img {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 92px;
  height: 92px;
  object-fit: contain;
  object-position: 50% 100%;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 10px rgba(60, 40, 30, 0.18));
}

/* A pal rises out of the disc too, but below its middle it is cut to the disc */
.fact__icon--pal {
  clip-path: path("M0 0H96V60H88A40 40 0 0 1 8 60H0Z");
}

.fact__icon--pal img {
  bottom: 0;
  filter: none;
}

.fact h3 {
  align-self: end;
  margin-top: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fact p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}


/* ---------- A day: three cards with phones (Bevel) ---------- */

.day {
  padding: clamp(96px, 12vw, 160px) 0 clamp(72px, 9vw, 120px);
}

.day__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(48px, 6vw, 80px);
}

.day-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 44px) 0;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
}

.day-card--peach {
  background: linear-gradient(#eef1f8 30%, #fbd6c4);
}

.day-card--lilac {
  background: linear-gradient(#eef1f8 30%, #d3cbfa);
}

.day-card--mint {
  background: linear-gradient(#eef1f8 30%, #c2ebcf);
}

.day-card h3 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.day-card > p {
  margin-top: 12px;
  margin-bottom: 40px;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.45;
  color: var(--ink-soft);
}

/* At the foot of the card, so the three phones stand in one row however long the words */
.day-card__stage {
  position: relative;
  height: clamp(380px, 34vw, 480px);
  margin-top: auto;
}

/* Centred by margins, not a -50% shift: a fractional offset resampled the screenshot soft */
.day-card__stage .device {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 72%;
  margin-inline: auto;
}

.day-card__float {
  position: absolute;
  left: -4%;
  bottom: 30px;
  width: 82%;
  filter: drop-shadow(0 22px 26px rgba(30, 30, 60, 0.28));
  z-index: 1;
}

/* Slices rounded by CSS take a box-shadow: Safari draws drop-shadow from the uncut rectangle */
.day-card__float--frag,
.day-card__float--card {
  filter: none;
  box-shadow: 0 22px 26px rgba(30, 30, 60, 0.28);
}

/* The app card's radius, 7.4 % of the card's width; both slices are about 2.13 : 1 */
.day-card__float--frag {
  border-radius: 7.4% / 15.8%;
}

/* A card cropped edge to edge from the app: the corners are the card's own radius */
.day-card__float--card {
  border-radius: 7.4% / 15.8%;
}

.day-card:nth-child(2) .day-card__float {
  left: auto;
  right: -4%;
}

/* ---------- Insights collage (Bevel) ---------- */

.insights {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: 100%;
  column-gap: clamp(40px, 5vw, 72px);
  align-items: center;
  max-width: 1185px;
  height: clamp(620px, 56vw, 780px);
  margin: 0 auto;
  padding-left: clamp(28px, 5vw, 88px);
  border-radius: 44px;
  background: linear-gradient(170deg, #f4f2fb, #d8d1f6);
  overflow: hidden;
}

.insights__copy h2 {
  font-size: clamp(38px, 4vw, 58px);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.insights__copy > p {
  max-width: 460px;
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
}





.collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 8%, #000 90%, transparent);
}

.collage__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: -24px;
}

.collage__col--b {
  margin-top: -160px;
}

.collage__col--c {
  margin-top: -60px;
  margin-right: -120px;
}

.collage__row {
  padding: 4px 0;
  border-radius: 18px;
  background: #fffdfb;
  box-shadow: 0 10px 30px -20px rgba(40, 30, 80, 0.35);
}

.collage__card {
  width: 100%;
  filter: drop-shadow(0 10px 14px rgba(40, 30, 80, 0.14));
}

/* A slice of a screen has no corners of its own */
.collage__card--frag {
  border-radius: 22px;
  filter: none;
  box-shadow: 0 10px 14px rgba(40, 30, 80, 0.14);
}



/* ---------- Why it works ---------- */

.why {
  padding: clamp(96px, 12vw, 160px) 0;
}

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.why__copy h2 {
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.why__copy p {
  max-width: 480px;
  margin-top: 20px;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.why__copy .why__note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-faint);
}

.why__art {
  display: grid;
  place-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 40px;
  background: linear-gradient(160deg, #e4f6ea, #c9ebd5);
}

.methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  width: 100%;
}

.method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 22px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 24px 50px -30px rgba(14, 79, 46, 0.45);
  text-align: center;
}

.method:nth-child(1),
.method:nth-child(4) {
  transform: rotate(-1.5deg);
}

.method:nth-child(2),
.method:nth-child(3) {
  transform: rotate(1.5deg);
}

.method img {
  width: clamp(72px, 7vw, 104px);
  height: clamp(72px, 7vw, 104px);
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(60, 40, 30, 0.16));
}

.method span {
  font-size: clamp(15px, 1.3vw, 17px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.why__sources {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Friends ---------- */

.friends {
  padding: clamp(96px, 12vw, 160px) 0 clamp(80px, 10vw, 140px);
}

.friends__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.friends__copy h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.friends__lede {
  max-width: 520px;
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
}





/* Three friends the way the app lists them: the pal, the name, how they are today */
.friends__art {
  display: grid;
  gap: 16px;
  /* The cards lay out by the panel's width, not the window's */
  container-type: inline-size;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 40px;
  background: linear-gradient(#cfe9f7, #e6f5ec);
}

.buddy {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 18px;
  padding: 18px 24px 18px 20px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 20px 44px -30px rgba(30, 60, 90, 0.5);
}

.buddy:nth-child(1) {
  transform: rotate(-1deg);
}

.buddy:nth-child(2) {
  transform: rotate(0.8deg);
  margin-left: clamp(12px, 3vw, 36px);
}

.buddy:nth-child(3) {
  transform: rotate(-0.6deg);
}

.buddy p {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.buddy b {
  font-size: clamp(19px, 1.7vw, 22px);
  color: var(--ink);
}

/* Days on the journey, the app's own count ("{{count}} dní na cestě"): it only grows */
/* On a narrow panel the count goes under the name rather than squeezing it */
@container (max-width: 400px) {
  .buddy {
    grid-template-columns: auto 1fr;
  }
  .buddy .note__pal {
    grid-row: span 2;
  }
  .buddy__days {
    grid-column: 2;
    justify-self: start;
  }
}

/* The days something grew, as the app's pill: the garden's flower and the number */
.buddy__days {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 157, 85, 0.1);
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.buddy__flower {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The app's Plus mark: an outlined pill whose frame runs from the clay plus's gold to green */
.plus-pill {
  display: inline-block;
  padding: 2px;
  margin-left: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4d57a 0%, #dcaa45 45%, #1f9d55 100%);
  vertical-align: 0.12em;
}

.plus-pill > span {
  display: block;
  padding: 2px 14px 3px;
  border-radius: 999px;
  background: #fff;
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ---------- Fimbo Plus ---------- */

.plus {
  padding: clamp(96px, 12vw, 160px) 0;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.4vw, 32px);
  max-width: 1000px;
  margin: clamp(48px, 6vw, 72px) auto 0;
}

.plan {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: 36px;
  background: #f2f1f4;
}

.plan--plus {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(160deg, #e4f6ea, #bfe6cc);
  box-shadow: 0 40px 80px -48px rgba(20, 90, 50, 0.6);
}



.plan__name {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.plan__bear {
  position: absolute;
  right: 22px;
  bottom: -28px;
  width: clamp(130px, 13vw, 170px);
  pointer-events: none;
}

.plan__price {
  margin-top: 4px;
  font-size: 17px;
  color: var(--ink-soft);
}

.plan__list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.plan__list li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  line-height: 1.4;
}

.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.plan--plus .plan__list li::before {
  background-color: var(--accent-deep);
}

.plan__note {
  margin-top: auto;
  padding-top: 32px;
  max-width: 58%;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}








/* ---------- More (grey band, 2 × 2) ---------- */

.more {
  padding: clamp(80px, 10vw, 140px) 0;
  background: linear-gradient(var(--grey-band), rgba(242, 241, 244, 0));
}

.more__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(20px, 2.4vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
}

.tile h3 {
  margin-top: 28px;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tile p {
  max-width: 560px;
  margin-top: 12px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.tile__art {
  position: relative;
  aspect-ratio: 1 / 0.86;
  border-radius: 36px;
  overflow: hidden;
  isolation: isolate;
  /* The slices' corners are sized off the tile, so every card here has the app's radius */
  container-type: inline-size;
}

.tile__art--mint {
  background: var(--tile-mint);
}

.tile__art--sand {
  background: var(--tile-sand);
}

.tile__art--butter {
  background: var(--tile-butter);
}

.tile__art--rose {
  background: var(--tile-rose);
}

.tile__art img {
  position: absolute;
  /* The slices here are rounded by CSS, so a box-shadow: Safari draws drop-shadow from the uncut rectangle */
  box-shadow: 0 22px 26px rgba(40, 30, 70, 0.2);
}

.tile__frag {
  width: 82%;
  left: 9%;
  top: 0;
  bottom: 0;
  margin: auto 0;
  border-radius: 5.5cqw;
}

.tile__frag--week {
  transform: rotate(-2deg);
}

/* Centred by margins, not a -50% shift: a half-pixel offset resampled the text soft */
.tile__card {
  width: 76%;
  left: 12%;
  top: 0;
  bottom: 0;
  margin: auto 0;
  /* The app card's radius at this width (7.2 % of the card, the card 76 % of the tile) */
  border-radius: 5.5cqw;
}

/* ---------- Sunny CTA + notes ---------- */

.sunny {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  background: var(--sun-flat);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}


.sunny__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The app's splash (src/features/startup/SplashHandoff.tsx), on the web:
   the bear at the splash's proportions, four glyphs around its head coming in one after
   another (240 ms, then every 160 ms, 600 ms each, ease-out, no overshoot) and then
   swelling and dimming in turn, one swell every three seconds (glints.ts). */
.splash {
  position: relative;
  width: clamp(150px, 15vw, 210px);
  aspect-ratio: 1;
  margin-bottom: 20px;
}

.splash__bear {
  width: 100%;
}

.glint {
  position: absolute;
  aspect-ratio: 1;
  transform: rotate(var(--tilt)) scale(0.89);
  opacity: 0.78;
}

.glint > span,
.glint svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The tones of gradient.glints in the light theme: green, clay, butter, rose as tints */
.glint--0 svg { fill: rgba(31, 157, 85, 0.6); }
.glint--1 svg { fill: rgba(194, 112, 60, 0.55); }
.glint--2 svg { fill: rgba(184, 116, 10, 0.55); }
.glint--3 svg { fill: rgba(194, 74, 114, 0.5); }

@media (prefers-reduced-motion: no-preference) {
  .js .glint {
    transform: rotate(var(--tilt)) scale(0);
    opacity: 0;
  }

  .js .splash.is-in .glint {
    animation: glint-grow 600ms cubic-bezier(0.33, 1, 0.68, 1) calc(240ms + var(--i) * 160ms) both;
  }

  .js .splash.is-in .glint > span {
    animation: glint-swell 3s ease-in-out calc(var(--phase) * -3s) infinite;
  }

  /* The words come out of a blur, as an exercise's words do (STEP_MOTION: 650 ms, soft, 4 pt).
     Safari filters only the element's box, and at line-height 1 the descenders (j, p) hang
     below it and were cut while blurred: room inside the box, taken back outside it. */
  .js .blur-in.reveal {
    padding-block: 0.12em;
    margin-block: -0.12em;
    transform: none;
    filter: blur(4px);
    will-change: filter, opacity;
    transition:
      opacity 650ms cubic-bezier(0.33, 0, 0.67, 1),
      filter 650ms cubic-bezier(0.33, 0, 0.67, 1);
  }

  .js .blur-in.reveal.is-in {
    filter: none;
  }
}

@keyframes glint-grow {
  from {
    transform: rotate(var(--tilt)) scale(0);
    opacity: 0;
  }
  to {
    transform: rotate(var(--tilt)) scale(1);
    opacity: 1;
  }
}

/* 0.78–1 in size and 0.55–1 in strength, as the sine in glintAt */
@keyframes glint-swell {
  0%,
  100% {
    transform: scale(0.89);
    opacity: 0.78;
  }
  25% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(0.78);
    opacity: 0.55;
  }
}



.sunny__text {
  margin-top: 20px;
  font-size: clamp(18px, 1.6vw, 23px);
  color: var(--ink-soft);
}

.absent__title {
  margin-top: clamp(80px, 9vw, 120px);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.absent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  width: 100%;
  max-width: 1280px;
  margin-top: 36px;
}

.note {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px 24px 24px;
  border-radius: 32px;
  background: var(--white);
  box-shadow: 0 20px 50px -30px rgba(120, 80, 20, 0.45);
  text-align: left;
}

.note:nth-child(4n + 1) {
  transform: rotate(-1.5deg);
}

.note:nth-child(4n + 2) {
  transform: rotate(1.2deg);
}

.note:nth-child(4n + 3) {
  transform: rotate(0.8deg);
}

.note:nth-child(4n + 4) {
  transform: rotate(-1deg);
}

/* The pal sits in a disc: its ears rise out of the top, the rest stays inside the disc. */
.note__pal {
  position: relative;
  flex: none;
  width: 80px;
  height: 92px;
  margin: -16px 0 -4px;
  clip-path: path("M0 0H80V56H76A36 36 0 0 1 4 56H0Z");
}

.note__pal::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fbf3e4;
}

.note__pal img {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 86px;
  height: 86px;
  transform: translateX(-50%);
}

.note p {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

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

.footer {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  background: var(--sun-flat);
  overflow: hidden;
}

/* A soft line where the sunny section ends and the footer starts */
.footer::before {
  content: "";
  position: absolute;
  inset: 0 var(--gutter) auto;
  max-width: var(--max);
  margin-inline: auto;
  height: 1px;
  background: rgba(120, 80, 20, 0.16);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px clamp(32px, 6vw, 96px);
}

.footer__tagline {
  max-width: 320px;
  margin-top: 10px;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.footer__promise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.footer__promise svg {
  flex: none;
  fill: var(--accent-deep);
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__col h2 {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-faint);
}

.footer__col a {
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}

@media (hover: hover) {
  .footer__col a:hover {
    text-decoration: underline;
  }
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--ink-faint);
}

.why__note a,
.why__sources a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Who makes it: a signed note ---------- */

.author {
  padding: 0 0 clamp(96px, 12vw, 160px);
}

.letter {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 32px;
  background: #fffaf0;
  box-shadow: 0 0 0 1px rgba(120, 80, 20, 0.08), var(--shadow-card);
  transform: rotate(-0.6deg);
}

.js .letter.reveal.is-in {
  transform: rotate(-0.6deg);
}

.letter__title {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.letter p {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}

.letter p + p {
  margin-top: 14px;
}

.letter a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.letter .letter__sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 15px;
}

.letter__sign img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--white), 0 8px 18px -8px rgba(60, 40, 30, 0.4);
}

.letter__sign span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.3;
}

/* The name signed by hand, in the same face as the note beside the bear */
.letter__sign b {
  font-family: "Caveat", "Figtree", cursive;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

/* ---------- FAQ: native disclosure, no script ---------- */

.faq {
  padding: 0 0 clamp(96px, 12vw, 160px);
}

.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq__head h2 {
  font-size: clamp(36px, 4.4vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.faq__list {
  border-top: 1px solid rgba(22, 32, 27, 0.12);
}

.qa {
  border-bottom: 1px solid rgba(22, 32, 27, 0.12);
}

.qa summary {
  position: relative;
  padding: 22px 48px 22px 0;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

/* A plus in a soft disc that turns into a minus */
.qa summary::before,
.qa summary::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.qa summary::after {
  transform: rotate(90deg);
}

.qa[open] summary::after {
  transform: rotate(0deg);
}

.qa summary:focus-visible {
  outline-offset: 2px;
}

@media (hover: hover) {
  .qa summary:hover {
    color: var(--accent-deep);
  }
}

.qa__body {
  padding: 0 48px 24px 0;
}

.qa__body p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.qa__body p + p {
  margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .qa summary::before,
  .qa summary::after {
    transition: none;
  }
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* The tilted notes keep their tilt once they arrive */
.js .note.reveal.is-in:nth-child(4n + 1) {
  transform: rotate(-1.5deg);
}
.js .note.reveal.is-in:nth-child(4n + 2) {
  transform: rotate(1.2deg);
}
.js .note.reveal.is-in:nth-child(4n + 3) {
  transform: rotate(0.8deg);
}
.js .note.reveal.is-in:nth-child(4n + 4) {
  transform: rotate(-1deg);
}

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

/* ---------- Tablet and phone ---------- */

@media (max-width: 1080px) {


  .day__cards {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .day-card__stage {
    height: 440px;
  }

  .day-card__stage .device {
    width: 56%;
  }

  .day-card__float {
    left: 2%;
    width: 64%;
  }

  .day-card:nth-child(2) .day-card__float {
    right: 2%;
  }
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .insights {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    padding: 48px 0 0;
  }

  .insights__copy {
    padding: 0 28px;
  }

  .collage {
    height: 520px;
    margin-top: 40px;
    padding: 0 0 0 20px;
  }

  .friends__grid,
  .why__grid,
  .plans,
  .more__grid,
  .absent {
    grid-template-columns: 1fr;
  }

  .plans {
    gap: 40px;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .faq__grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  /* Cheaper frosting on phones, where it is redrawn on every scrolled frame: half the blur,
     a touch more white so the pill reads the same */
  .nav__bar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(1.6) blur(8px);
    -webkit-backdrop-filter: saturate(1.6) blur(8px);
  }

  .hero {
    padding-top: 104px;
  }

  .meadow {
    height: clamp(240px, 34vh, 320px);
  }

  .meadow {
    --bear: 190px;
  }

  .meadow__bear {
    bottom: 8%;
  }

  .hello {
    left: calc(50% + var(--bear) * 0.28);
    bottom: calc(8% + var(--bear) * 0.8 - 64px);
  }

  .hello__arrow {
    width: 44px;
  }

  .hello__text {
    margin-left: 12px;
    font-size: 21px;
  }

  .lavender {
    border-radius: 32px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact:nth-child(n) {
    transform: none;
  }

  .fact {
    column-gap: 10px;
    padding: 16px 18px 16px 10px;
  }

  /* A smaller picture on a phone, so the words keep their width */
  .fact__icon {
    transform: scale(0.7);
    margin: -15px -14px;
  }

  .fact h3 {
    font-size: 20px;
  }



  .day-card {
    border-radius: 28px;
  }

  .day-card__stage {
    height: 400px;
  }

  .day-card__stage .device {
    width: 66%;
  }

  .day-card__float {
    width: 78%;
  }

  .insights {
    border-radius: 32px;
  }

  .collage {
    grid-template-columns: repeat(3, 220px);
  }

  .friends__art {
    border-radius: 28px;
  }

  .buddy {
    padding: 14px 18px 14px 14px;
    border-radius: 22px;
  }

  .buddy:nth-child(2) {
    margin-left: 0;
  }

  .buddy__days {
    padding: 5px 10px;
    font-size: 13px;
  }

  .letter {
    border-radius: 24px;
  }

  /* Six pals fit a phone; the other two wait on wider screens */

  .qa summary {
    padding-right: 40px;
  }

  .qa__body {
    padding-right: 0;
  }



  .tile__art {
    border-radius: 28px;
  }

  .tile__frag {
    border-radius: 14px;
  }

  .note {
    padding: 18px 22px 18px 18px;
    border-radius: 24px;
  }

  .note__pal {
    transform: scale(0.82);
    transform-origin: left center;
    margin-right: -14px;
  }
}
