/* Yearful – site.css
   The only stylesheet. No inline styles anywhere (CSP: style-src 'self').
   Logical properties only (inline/block), so an RTL version can be added later.
   Sections: 1 font · 2 tokens · 3 base · 4 layout · 5 components · 6 page sections · 7 motion */

/* 1. Font --------------------------------------------------------------- */
/* Bricolage Grotesque, variable (wght 400–800, opsz 12–96), Latin subset. OFL: fonts/OFL.txt */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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;
}

/* 2. Tokens (design/tokens.json) ---------------------------------------- */
:root {
  /* Brand colours */
  --aubergine: #251a2e;
  --lilac-mist: #f3eef7;
  --tangerine: #e65c36; /* the one accent; only Aubergine text on it */
  --dusk: #5e5168;
  --plum: #5b3a6e;
  --butter: #f2d27a;
  --sage: #9db39a;
  --blush: #f2b8b0;
  --sky: #a9c3e0;
  --border: #d9d0e2;
  --surface: #ffffff;

  /* Supporting values from the mockups */
  --lilac-deep: #ede6f2;        /* tinted section background (How it works) */
  --dark-surface: #3a2c45;
  --dark-border: #5e4e6b;
  --dark-text-2: #cfc4d9;       /* secondary text on Aubergine */
  --plum-on-dark: #c9b8d6;      /* Plum tile of the mark on dark backgrounds */
  --success: #3f5b4a;

  /* Roles */
  --bg: var(--lilac-mist);
  --text: var(--aubergine);
  --text-2: var(--dusk);
  --link-hover: var(--plum);
  --focus: var(--tangerine);

  /* Type */
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;                       /* 17px */
  --fs-lead: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --fs-h1: clamp(2.6rem, 1.4rem + 6vw, 5.5rem);
  --fs-h2: clamp(2.2rem, 1.6rem + 2.4vw, 3.5rem);
  --fs-h2-big: clamp(2.1rem, 1.4rem + 3.6vw, 4rem);
  --fs-h3: 1.6rem;
  --fs-label: 0.8125rem;                      /* 13px */
  --lh-body: 1.5;
  --lh-tight: 1.05;
  --track-display: -0.03em;
  --track-label: 0.18em;

  /* Space and shape */
  --gutter: 1.5rem;
  --max: 75rem;                               /* 1200px */
  --max-narrow: 51.25rem;                     /* 820px */
  --section-pad: clamp(3.5rem, 2.5rem + 4vw, 5rem);
  --radius-card: 28px;
  --radius-small: 20px;
  --radius-big: 36px;
  --btn-h: 56px;
  --shadow-phone: 0 30px 80px rgb(37 26 46 / 0.25);
}

/* 3. Base --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-block-size: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: var(--lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, figure {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--link-hover);
}

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

/* Skip link: hidden until focused */
.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  inset-block-start: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--aubergine);
  color: var(--surface);
  font-weight: 700;
}

.skip-link:focus {
  inset-block-start: 0.75rem;
  color: var(--surface);
}

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

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

.wrap--narrow {
  max-inline-size: calc(var(--max-narrow) + 2 * var(--gutter));
}

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

/* 5. Components --------------------------------------------------------- */
.label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: var(--btn-h);
  padding-block: 0.5rem;
  padding-inline: 26px;
  border-radius: calc(var(--btn-h) / 2);
  text-align: center;
  line-height: 1.2;
  background: var(--aubergine);
  color: var(--surface);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.btn:hover {
  background: var(--plum);
  color: var(--surface);
}

.card {
  border-radius: var(--radius-card);
  background: var(--surface);
}

/* 6. Page sections ------------------------------------------------------ */

.lead {
  max-inline-size: 34rem;
  font-size: var(--fs-lead);
  color: var(--text-2);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section__title {
  font-size: var(--fs-h2);
}

.section--tint {
  background: var(--lilac-deep);
}

.section--dark {
  background: var(--aubergine);
  color: var(--lilac-mist);
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 1.05rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(1.5rem, 0.5rem + 3vw, 3rem) var(--section-pad);
}

.hero__text {
  flex: 999 1 460px;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding-inline: 16px;
  border-radius: 18px;
  background: var(--butter);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero__small {
  font-size: 1rem;
  color: var(--text-2);
}

/* "Coming to the App Store" pill: shown until the App Store URL exists.
   Outlined, not filled, so it doesn't read as a button. */
.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-block-size: var(--btn-h);
  padding-block: 0.5rem;
  padding-inline: 20px 24px;
  border: 2px solid var(--aubergine);
  border-radius: calc(var(--btn-h) / 2);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.store-soon::before {
  content: "";
  flex: none;
  inline-size: 22px;
  block-size: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23251A2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v14H4zM4 10h16M8 3v5M16 3v5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Hero visual: phone with the example board.
   Everything inside scales with --w, so it stays sharp and never shifts.
   --p = one pixel of the 351 px wide phone frame
   --u = one point of the 390 pt wide iPhone screen */
.hero__visual {
  flex: 1 1 340px;
  display: flex;
  justify-content: center;
  padding-block: 1rem;
}

.phone {
  --w: min(351px, 76vw);
  --p: calc(var(--w) / 351);
  --u: calc(var(--w) * 331 / 351 / 390);
  inline-size: var(--w);
  aspect-ratio: 351 / 760;
  padding: calc(10 * var(--p));
  border-radius: calc(56 * var(--p));
  background: var(--aubergine);
  box-shadow: var(--shadow-phone);
  transform: rotate(3deg);
}

.phone__screen {
  block-size: 100%;
  overflow: hidden;
  border-radius: calc(46 * var(--p));
  background: var(--aubergine);
}

.board {
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--u));
  block-size: calc(844 * var(--u));
  padding-block: calc(56 * var(--u)) calc(32 * var(--u));
  padding-inline: calc(20 * var(--u));
  color: var(--lilac-mist);
  line-height: 1.2;
}

.board__brand {
  font-size: calc(13 * var(--u));
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-align: center;
  text-transform: uppercase;
}

.board__grid {
  flex-grow: 1;
  min-block-size: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: calc(8 * var(--u));
  padding: calc(10 * var(--u));
  border-radius: calc(28 * var(--u));
  background: var(--lilac-mist);
  color: var(--aubergine);
}

.board__head {
  grid-column: span 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: calc(8 * var(--u));
  font-weight: 800;
  line-height: 1;
}

.board__dear {
  font-size: calc(26 * var(--u));
  letter-spacing: -0.02em;
}

.board__word {
  padding-block: calc(2 * var(--u));
  padding-inline: calc(10 * var(--u));
  border-radius: calc(10 * var(--u));
  background: var(--tangerine);
  font-size: calc(20 * var(--u));
}

.tile {
  display: flex;
  min-inline-size: 0;
  padding: calc(12 * var(--u));
  border-radius: calc(16 * var(--u));
  overflow: hidden;
  font-size: calc(14 * var(--u));
}

.tile__chip {
  padding-block: calc(4 * var(--u));
  padding-inline: calc(8 * var(--u));
  border-radius: calc(8 * var(--u));
  background: var(--lilac-mist);
  font-size: calc(13 * var(--u));
  font-weight: 700;
}

.tile--love {
  grid-column: span 3;
  grid-row: span 3;
  align-items: flex-end;
  background: var(--blush);
}

.tile--travel {
  grid-column: span 3;
  grid-row: span 2;
  align-items: flex-end;
  background: var(--plum);
  color: var(--lilac-mist);
  font-size: calc(16 * var(--u));
}

.tile--sundays {
  grid-column: span 3;
  align-items: center;
  padding-block: 0;
  background: var(--butter);
}

.tile--body {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--sage);
}

.tile--career {
  grid-column: span 4;
  grid-row: span 2;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(2 * var(--u));
  background: var(--tangerine);
}

.tile__kicker {
  font-size: calc(12 * var(--u));
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tile__big {
  font-size: calc(18 * var(--u));
  font-weight: 800;
  line-height: 1.1;
}

.tile--home {
  grid-column: span 4;
  grid-row: span 2;
  align-items: flex-end;
  background: var(--sky);
}

.tile--friends {
  grid-column: span 2;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  padding: calc(8 * var(--u));
  background: var(--plum);
  color: var(--lilac-mist);
  font-size: calc(13 * var(--u));
  text-align: center;
}

/* Three steps */
.steps,
.features,
.privacy__list {
  padding: 0;
  list-style: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.25rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 2rem;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  inline-size: 48px;
  block-size: 48px;
  border-radius: 24px;
  background: var(--butter);
  font-size: 1.3rem;
  font-weight: 800;
}

.step h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
}

.step p {
  font-size: 1.1rem;
  color: var(--text-2);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.25rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1.75rem;
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 56px;
  block-size: 56px;
  border-radius: 18px;
  color: var(--aubergine);
}

.feature__icon--sky { background: var(--sky); }
.feature__icon--blush { background: var(--blush); }
.feature__icon--sage { background: var(--sage); }
.feature__icon--butter { background: var(--butter); }

.feature h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 1.05rem;
  color: var(--text-2);
}

/* Price */
.price-section {
  padding-block-end: var(--section-pad);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 0.5rem + 4.5vw, 4rem);
  border-radius: var(--radius-big);
  background: var(--tangerine);
  color: var(--aubergine);
}

.price__text {
  flex: 999 1 420px;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price__title {
  font-size: var(--fs-h2-big);
  line-height: 1;
}

.price__text p {
  max-inline-size: 32rem;
  font-size: 1.25rem;
}

.price__amount {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.price__number {
  font-size: clamp(3.5rem, 2.6rem + 4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price__note {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Privacy promise */
.privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 3rem;
}

.privacy__text {
  flex: 999 1 420px;
  min-inline-size: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.privacy__text p {
  max-inline-size: 36rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--dark-text-2);
}

.privacy__list {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-size: 1.15rem;
}

.privacy__list li {
  padding-block: 1rem;
  padding-inline: 1.25rem;
  border-radius: 18px;
  background: var(--dark-surface);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq .section__title {
  margin-block-end: 1rem;
}

.faq__item {
  padding-block: 1.25rem;
  padding-inline: 1.5rem;
  border-radius: var(--radius-small);
  background: var(--surface);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

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

.faq__item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 32px;
  block-size: 32px;
  border-radius: 16px;
  background: var(--lilac-mist);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item p {
  margin-block-start: 0.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-2);
}

.faq__more {
  margin-block-start: 0.5rem;
  color: var(--text-2);
}

/* Closing call to action */
.closing {
  padding-block-end: var(--section-pad);
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.closing__title {
  font-size: var(--fs-h2-big);
  line-height: 1;
}

/* Footer */
.site-footer {
  padding-block: 2rem;
  border-block-start: 1px solid var(--border);
  color: var(--text-2);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Text pages (support, privacy, Impressum, 404) */
.page {
  padding-block: clamp(1.5rem, 0.5rem + 4vw, 4rem) var(--section-pad);
}

.prose {
  max-inline-size: 46rem;
  overflow-wrap: break-word;
}

.prose p:lang(de),
.prose li:lang(de) {
  hyphens: auto;
}

/* Never hyphenate domain names, links or the lead */
.prose .lead,
.prose a,
.domain {
  hyphens: manual;
}

.prose h1 {
  margin-block-end: 1.25rem;
  font-size: var(--fs-h2-big);
  line-height: 1;
}

.prose h2 {
  margin-block: 3rem 0.75rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  letter-spacing: -0.02em;
  scroll-margin-block-start: 1.5rem;
}

.prose h3 {
  margin-block: 2rem 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  scroll-margin-block-start: 1.5rem;
}

.prose p,
.prose ul,
.prose ol,
.prose address {
  margin-block-end: 1rem;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.25rem;
}

.prose li + li {
  margin-block-start: 0.4rem;
}

.prose address {
  font-style: normal;
}

.prose .lead {
  margin-block-end: 1.5rem;
}

.meta {
  font-size: 0.95rem;
  color: var(--text-2);
}

.callout {
  margin-block: 1.5rem 2rem;
  padding-block: 1.25rem;
  padding-inline: 1.5rem;
  border-radius: var(--radius-small);
  background: var(--surface);
}

.callout > :last-child {
  margin-block-end: 0;
}

.callout h2 {
  margin-block-start: 0;
}

.toc {
  margin-block: 1.5rem 0;
  padding-block: 1.25rem;
  padding-inline: 2.75rem 1.5rem;
  border-radius: var(--radius-small);
  background: var(--lilac-deep);
}

/* Values the owner must fill in or check before launch */
.check {
  padding-inline: 0.25em;
  border-radius: 4px;
  background: var(--butter);
  color: var(--aubergine);
  font-weight: 700;
}

.lang-switch {
  display: flex;
  gap: 1rem;
  font-size: 1.05rem;
}

/* 404 */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-block-size: 50vh;
  justify-content: center;
}

.notfound h1 {
  max-inline-size: 14ch;
  font-size: var(--fs-h2-big);
  line-height: 1;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

/* 7. Motion ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
