/* Nunito, self-hosted so the site makes no third-party requests. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Surfaces */
  --canvas: #FAF5F2;
  --card: #FFFDFB;
  --line: #EEDFE2;

  /* Ink. --ink-faint measures 3.82:1 on cream, so it is only for 18.66px and up. */
  --ink: #3D3638;
  --ink-soft: #6B6164;
  --ink-faint: #857A7D;

  /* Rose */
  --rose-soft: #F5CFD9;   /* light flow, prediction ring, pills */
  --rose: #E69EA8;        /* logo and bloom pink */
  --rose-mid: #DE8091;    /* normal flow */
  --accent: #D98094;      /* today ring, prediction line. Not a text colour. */
  --rose-deep: #BD4D73;   /* heavy flow, headings, eyebrows */

  /* Mood dots, iOS system colours by way of Color+Symptom.swift */
  --mood-buikpijn: #FFCC00;
  --mood-rugpijn: #A2845E;
  --mood-moe: #5856D6;
  --mood-chagrijnig: #AF52DE;
  --mood-trek: #34C759;
  --mood-knuffelig: #00C7BE;

  --radius: 16px;
  --radius-panel: 20px;
  --shadow: 0 18px 40px rgba(189, 77, 115, 0.10);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Nunito", "SF Pro Rounded", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rose-deep); }
a:hover { color: var(--rose-mid); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 60ch; }

.wrap { max-width: 620px; margin: 0 auto; padding: 0 22px; }

/* Top bar. The wordmark lives in the hero, so only the language chip sits here. */
.top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 0 0;
}
.top.with-mark { justify-content: space-between; }
.top .mark { height: 28px; width: auto; }
.lang {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--card);
}
.lang:hover { color: var(--rose-deep); border-color: var(--rose-soft); }

/* Hero */
.hero {
  position: relative;
  padding: 44px 0 36px;
  text-align: center;
  overflow: hidden;
}
@media (min-width: 600px) { .hero { padding-top: 56px; } }
.hero .logo { width: 210px; margin: 0 auto 30px; }
.hero h1 {
  font-size: clamp(32px, 8vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.hero h1 em { font-style: normal; color: var(--rose-deep); }
.hero .lead {
  margin: 18px auto 0;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 34ch;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.pills li {
  background: var(--rose-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 800;
}
.cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cta .soon { font-weight: 800; font-size: 19px; color: var(--rose-deep); }
.cta .soon-note { font-size: 15px; color: var(--ink-soft); max-width: 36ch; }
/* At launch: set href and drop hidden on #store-link, in four places
   (nl + en, index page and this button's twin in each). */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  border-radius: 14px;
}
.btn[hidden] { display: none; }

/* Floating blooms in the hero, decoration only */
.bloom-float { position: absolute; opacity: 0.35; pointer-events: none; }
.bloom-float.b1 { left: -8px; top: 26px; width: 62px; transform: rotate(-14deg); }
.bloom-float.b2 { right: 4%; top: 36px; width: 40px; opacity: 0.28; transform: rotate(18deg); }
.bloom-float.b3 { left: 10%; bottom: 30px; width: 30px; opacity: 0.22; transform: rotate(32deg); }
.bloom-float.b4 { right: -6px; bottom: 90px; width: 70px; opacity: 0.18; transform: rotate(-24deg); }

/* Sections */
section { padding: 52px 0 0; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 8px;
}
h2 {
  font-size: clamp(26px, 5.5vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-lead { margin-top: 10px; color: var(--ink-soft); max-width: 52ch; }

.points { display: flex; flex-direction: column; gap: 28px; margin-top: 26px; }
.points.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px 32px;
}
.point { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.point img { width: 36px; margin-top: 2px; }
.points.grid .point img { width: 30px; }
.point h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.point p { color: var(--ink-soft); }

/* Story. On --card, not the rose tint: rose-deep drops to 3.92:1 on that tint. */
.story {
  margin-top: 52px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 28px 24px;
}
.story p { margin-top: 12px; color: var(--ink); }
.story p:first-of-type { margin-top: 16px; }
.story .maintainer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.story .maintainer b { color: var(--ink); }

/* Try-it demo */
.demo-intro { text-align: center; margin-bottom: 20px; }
.demo-intro p:last-child { margin: 12px auto 0; color: var(--ink-soft); max-width: 44ch; }
.phone {
  width: 100%;
  max-width: 390px;
  height: 720px;
  margin: 0 auto;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 20px 20px 14px;
}
.phone-head img { width: 20px; height: 20px; }
.phone-head .greet { font-weight: 600; font-size: 20px; color: var(--ink); }
.phone-head .spacer { flex: 1; }
.phone-head .pred-line { font-size: 15px; color: var(--accent); }
.scroller { flex: 1; min-height: 0; overflow-y: auto; position: relative; padding: 0 16px; }
.month { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 24px; }
.month-title { font-weight: 600; font-size: 20px; color: var(--ink); padding: 0 4px; }
.weekdays { display: flex; }
.weekdays div { flex: 1; text-align: center; font-size: 11px; color: var(--ink-soft); }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 6px; }
.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.day.blank { height: 52px; cursor: default; }
.day-face { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.day-num { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--ink); }
.day.is-today .day-num { font-weight: 700; }
.day.is-pred .day-num { color: var(--accent); opacity: 0.8; }
.pred-ring { position: absolute; width: 32px; height: 32px; border-radius: 50%; border: 1.5px dashed var(--rose-soft); }
.today-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0.7; }
.dots { height: 6px; display: flex; gap: 4px; align-items: center; justify-content: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; display: block; opacity: 0.9; }

/* The bloom is tinted like a template image, not faded. */
.bloom {
  width: 30px;
  height: 30px;
  display: block;
  background: var(--rose-mid);
  -webkit-mask: url(assets/bloom.png) center / contain no-repeat;
  mask: url(assets/bloom.png) center / contain no-repeat;
}
.bloom.flow-licht { background: var(--rose-soft); }
.bloom.flow-normaal { background: var(--rose-mid); }
.bloom.flow-hevig { background: var(--rose-deep); }
/* Logged, level not chosen yet: two masks subtracted, so the heart is hollow. */
.bloom.outline {
  background: var(--rose-mid);
  -webkit-mask-image: url(assets/bloom.png), url(assets/bloom.png);
  mask-image: url(assets/bloom.png), url(assets/bloom.png);
  -webkit-mask-size: contain, calc(100% - 5px) calc(100% - 5px);
  mask-size: contain, calc(100% - 5px) calc(100% - 5px);
  -webkit-mask-position: center, center;
  mask-position: center, center;
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.flow-row {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin: 4px 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.flow-row[hidden] { display: none; }
.flow-row span { font-size: 15px; color: var(--ink-soft); }
.flow-row div { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.flow-row button {
  padding: 7px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(61, 54, 56, 0.55);
  border: 1px solid rgba(107, 97, 100, 0.25);
  background: transparent;
}
.phone .caption { flex: none; padding: 12px 20px 18px; font-size: 13px; color: var(--ink-soft); text-align: center; max-width: none; }
.demo-note { margin: 16px auto 0; font-size: 14px; color: var(--ink-soft); text-align: center; max-width: 46ch; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 18px;
}
summary {
  cursor: pointer;
  font-weight: 800;
  padding: 16px 0;
  min-height: 56px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary .chip {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-deep);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
details summary .chip::after { content: "+"; }
details[open] summary .chip::after { content: "\2013"; }
details p { padding: 0 0 18px; color: var(--ink-soft); }

footer {
  margin-top: 56px;
  padding: 14px 0 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
footer img { height: 22px; width: auto; margin-right: 12px; }
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* Privacy page */
.doc { padding-top: 40px; }
.doc h1 { font-size: 32px; font-weight: 800; color: var(--rose-deep); }
.doc .updated { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.doc section { padding-top: 28px; }
.doc h2 { font-size: 21px; line-height: 1.2; letter-spacing: 0; }
.doc p { margin-top: 10px; color: var(--ink-soft); }
.doc ul { margin: 10px 0 0; padding-left: 20px; }
.doc li { margin-bottom: 6px; color: var(--ink-soft); }
.doc b { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .bloom-float { animation: drift 9s ease-in-out infinite alternate; }
  .bloom-float.b2 { animation-duration: 11s; }
  .bloom-float.b3 { animation-duration: 8s; }
  .bloom-float.b4 { animation-duration: 13s; }
  @keyframes drift { from { translate: 0 0; } to { translate: 0 -8px; } }
  .bloom.pop { animation: pop 220ms ease-out; }
  @keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}
