/* Fennio website. Brand: Pflaume, Kaki, Butter, Flieder, Papier. Fonts are hosted here, not loaded from Google. */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('../fonts/BricolageGrotesque_700Bold.ttf') format('truetype'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('../fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('../fonts/DMSans_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('../fonts/DMSans_500Medium.ttf') format('truetype'); }
@font-face { font-family: 'DM Sans'; font-weight: 700; font-display: swap; src: url('../fonts/DMSans_700Bold.ttf') format('truetype'); }

:root {
  --plum: #241638;
  --kaki: #ff6b3d;
  --butter: #fff1d6;
  --lilac: #d9ccff;
  --paper: #fffbf3;
  --plum60: #6b5a80;
  --line: #ebdfc4;
  --radius-card: 28px;
  --radius-item: 20px;
  --max: 1120px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  color-scheme: light;
}

*, *::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(--paper);
  color: var(--plum);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--kaki); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum60); }
.muted { color: var(--plum60); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--plum); color: var(--butter); padding: 8px 14px; border-radius: 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 251, 243, 0.92); backdrop-filter: blur(8px); border-bottom: 1.5px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 999px; }
.nav a:hover { background: var(--butter); }
.nav .hide-small { display: none; }
@media (min-width: 720px) { .nav .hide-small { display: inline-block; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1rem/1 var(--body);
  padding: 16px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-kaki { background: var(--kaki); color: var(--plum); }
.btn-outline { background: var(--paper); border-color: var(--line); color: var(--plum); }
.btn[aria-disabled='true'] { cursor: default; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 22px; background: var(--plum); color: var(--butter); }
.store-btn small { font-weight: 500; font-size: 0.75rem; color: var(--lilac); letter-spacing: 0.04em; }
.store-btn span { font-size: 1.05rem; }

/* Hero */
.hero { padding: 40px 0 64px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; padding-top: 24px; } }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lead { font-size: 1.2rem; color: var(--plum60); max-width: 34em; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: var(--butter); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 0.95rem; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before {
  content: ''; position: absolute; inset: 8% 4% 0; background: var(--butter); border-radius: 48px; z-index: -1;
}

/* Phone frame around screenshots */
.phone {
  width: min(300px, 78vw); border-radius: 40px; padding: 10px; background: var(--plum);
  box-shadow: 0 30px 60px -30px rgba(36, 22, 56, 0.45);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }

/* Sections */
section { padding: 72px 0; }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: 40px; }
.section-head p { font-size: 1.1rem; color: var(--plum60); }

/* Promises */
.promises { background: var(--plum); color: var(--butter); border-radius: 0; }
.promises .label { color: var(--lilac); }
.promise-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.promise { border: 1.5px solid rgba(217, 204, 255, 0.35); border-radius: var(--radius-item); padding: 24px; display: grid; gap: 8px; }
.promise h3 { color: var(--butter); }
.promise p { color: var(--lilac); }
.promise .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--kaki); }

/* Features */
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--butter); border-radius: var(--radius-card); padding: 28px; display: grid; gap: 10px; align-content: start; }
.feature.lilac { background: var(--lilac); }
.feature.outline { background: var(--paper); border: 2px solid var(--line); }
.feature .tag { justify-self: start; background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; font-weight: 700; }
.feature p { color: var(--plum); opacity: 0.85; }

/* Screens */
.screens { background: var(--butter); }
.screen-row { display: grid; gap: 32px; justify-items: center; }
@media (min-width: 900px) { .screen-row { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.screen-row figure { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.screen-row figcaption { max-width: 22em; }
.screen-row figcaption strong { display: block; font-family: var(--display); font-size: 1.2rem; }

/* FAQ */
.faq-layout { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 280px 1fr; align-items: start; } }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 960px) { .faq-toc { position: sticky; top: 96px; flex-direction: column; flex-wrap: nowrap; } }
.faq-toc a { text-decoration: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 0.95rem; }
.faq-toc a:hover { background: var(--butter); }
.faq-group { display: grid; gap: 10px; scroll-margin-top: 96px; }
.faq-group + .faq-group { margin-top: 36px; }
.faq-group h3 { font-size: 1.5rem; margin-bottom: 4px; }
details { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-item); }
details[open] { background: var(--butter); border-color: var(--butter); }
summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 700; line-height: 1.4;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--plum60); border-bottom: 2.5px solid var(--plum60); transform: rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
details p { padding: 0 22px 20px; }

/* Call to action */
.cta { text-align: center; }
.cta .box { background: var(--kaki); border-radius: var(--radius-card); padding: 56px 24px; display: grid; gap: 18px; justify-items: center; }
.cta .store-btn { background: var(--plum); }

/* Footer */
.site-footer { background: var(--plum); color: var(--butter); padding: 48px 0 40px; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer img { height: 40px; width: auto; }
.site-footer a { color: var(--butter); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer small { color: var(--lilac); display: block; margin-top: 10px; }

/* Legal pages */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 760px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin-top: 18px; }
.legal h3 { font-size: 1.15rem; margin-top: 6px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.placeholder { background: var(--lilac); border-radius: 6px; padding: 0 6px; font-weight: 700; }
.note { background: var(--butter); border-radius: var(--radius-item); padding: 18px 22px; }
