/* faelles.app — the marketing site. Built from the approved design in
   docs/approved-design/, with three deliberate departures that keep it
   consistent with the app (CLAUDE.md has the why):

   - Type is Manrope (display) + Inter (everything else), the app's two
     families. The mock-up's DM Sans body and Georgia-italic accent words
     are gone; accent words are Manrope bold in an accent colour, the same
     move the "fælles" wordmark makes. Weights are the eight files in
     assets/fonts (latin subset, served from faelles.app itself so the
     page talks to no third party): Inter 400–700, Manrope 500–800.
   - Small labels are sentence case with normal tracking, not all-caps.
   - Danish copy writes et/en, never the stress-accented ét/én.

   The palette (blue hero, #275341 forest, cream) is the design's own. */

/* Self-hosted type (Fontsource builds of the open-licence families). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('/assets/fonts/manrope-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/assets/fonts/manrope-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/assets/fonts/manrope-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/assets/fonts/manrope-latin-800-normal.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}

body {
  margin: 0;
  --blue: #294fe9;
  --ink: #275341;
  --cream: #fff9ef;
  --line: #d8ddd8;
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--ink);
  background: #f9faf5;
  line-height: normal;
}

/* Browser-default rhythm for text, stated once so every specific rule
   below can override it. */
h1,
h2,
h3,
p {
  margin-top: 0;
  margin-bottom: 1em;
}
/* Headings are Manrope, as in the app; the demo's month title mirrors the
   app's semibold Manrope header. */
h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: normal;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button,
a { -webkit-tap-highlight-color: transparent; }
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
input:focus-visible {
  outline: 3px solid #f4864c;
  outline-offset: 6px;
}
em { font-family: 'Manrope', system-ui, sans-serif; font-weight: 700; font-style: normal; }

.skip { position: fixed; top: -100px; left: 20px; background: white; padding: 15px; z-index: 20; }
.skip:focus { top: 10px; }

/* Header */
header {
  height: 106px; padding: 0 5.5%;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--blue); color: white;
}
.logo {
  font-family: 'Manrope', system-ui, sans-serif; font-size: 43px; font-weight: 800;
  letter-spacing: -2px; display: inline-flex; align-items: center; gap: 12px;
}
.brand-mark { width: 43px; height: 43px; object-fit: contain; }
header .brand-mark { background: #fff9ef; border-radius: 14px; padding: 5px; width: 49px; height: 49px; }
header nav { display: flex; align-items: center; gap: 38px; font-size: 14px; white-space: nowrap; }
.nav-cta { border: 1px solid #ffffff70; border-radius: 50px; padding: 14px 23px; }
.nav-cta span { margin-left: 25px; }
.nav-login { font-weight: 600; }

/* Hero */
.hero {
  background: var(--blue); color: var(--cream);
  position: relative; overflow: hidden;
  min-height: 810px; padding: 70px 5.5% 30px;
}
.hero-copy { position: relative; z-index: 2; pointer-events: none; max-width: 850px; }
.hero-copy a { pointer-events: auto; }
/* Small labels are sentence case with normal tracking, like every label in
   the app — the mock-up's all-caps, widely spaced labels are a pattern the
   product doesn't use anywhere else (brand report §7.3). */
.eyebrow { font-size: 14px; font-weight: 600; line-height: 1.6; }
h1,
h2 { font-family: 'Manrope', system-ui, sans-serif; font-weight: 500; letter-spacing: -4px; line-height: 1.07; }
h1 { font-size: clamp(58px, 6.2vw, 98px); margin-bottom: 29px; }
h1 em { color: #eac9a2; }
.intro { font-size: 17px; line-height: 1.65; margin-bottom: 30px; max-width: 510px; }
.button {
  display: inline-flex; padding: 20px 27px; align-items: center; gap: 45px;
  border-radius: 50px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 25px #0002; }
.cream { background: var(--cream); color: var(--ink); }
.micro { font-size: 13px; margin: 16px 0; }

.world { position: absolute; width: 58%; right: -3%; top: 76px; z-index: 1; }
.world img {
  width: 100%; max-width: none; height: auto; display: block;
  -webkit-mask-image: radial-gradient(ellipse at center, black 48%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, black 48%, transparent 72%);
}
.world-note {
  position: absolute; background: #fffdf3; color: var(--ink);
  padding: 15px 20px; display: flex; gap: 13px; align-items: center;
  border-radius: 15px; box-shadow: 0 15px 45px #0b1d6926;
  font-size: 12px; line-height: 1.6;
  animation: bob 7s ease-in-out infinite;
}
.world-note strong { font-size: 14px; font-weight: 500; }
.note-one { top: 12%; left: 55%; transform: rotate(-6deg); }
.note-two { bottom: 12%; left: 22%; animation-delay: -3s; transform: rotate(4deg); }
.small-icon {
  width: 35px; height: 35px; flex: none; display: grid; place-items: center;
  background: #e3ecdf; color: #275341; font-size: 24px; border-radius: 50%;
}
.yellow { background: #f4dec4; font-size: 18px; }
.hero-bottom {
  position: absolute; bottom: 28px; left: 5.5%; right: 5.5%;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.hero-bottom a { font-size: 13px; }
.hero-bottom a span { margin-left: 16px; font-size: 20px; }

/* Manifesto */
.manifesto { padding: 110px 10% 90px; }
.manifesto h2 { font-size: clamp(40px, 5.3vw, 78px); margin: 34px 0; }
.manifesto h2 span { color: #819d89; }
.manifesto-bottom { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 50px; }
.manifesto-mark { height: 106px; width: 106px; flex: none; object-fit: contain; }
.manifesto-bottom p { font-size: 17px; line-height: 1.8; max-width: 550px; }

/* Interactive demo */
.demo-section {
  background: #edf0e9; display: grid; grid-template-columns: 1fr 1fr;
  padding: 100px 10%; gap: 80px; align-items: center;
}
.demo-copy h2 { font-size: clamp(40px, 4.5vw, 66px); margin: 32px 0 25px; }
.demo-copy > p:not(.eyebrow):not(.demo-label) { font-size: 17px; line-height: 1.8; max-width: 350px; }
.demo-copy h2 em { color: #41644d; }
.feature-tabs { margin-top: 40px; max-width: 390px; }
.feature-tabs button {
  border: 0; border-top: 1px solid #b6c2b6; background: none; width: 100%;
  text-align: left; display: flex; align-items: center; gap: 18px;
  padding: 20px 0; color: #647267; font-size: 15px;
}
.feature-tabs button:last-child { border-bottom: 1px solid #b6c2b6; }
.feature-tabs span { font-size: 12px; }
.feature-tabs b { margin-left: auto; font-size: 20px; font-weight: 400; }
.feature-tabs [aria-selected='true'] { color: #162e1e; font-weight: 600; }
.demo-label { font-size: 12px; color: #687669; margin-top: 22px; }

.app-stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 35px 0; }
.orbit { position: absolute; border: 1px solid #c6cec0; border-radius: 50%; height: 490px; width: 490px; top: 50px; }
.app-card {
  position: relative; background: #fffefa; border: 7px solid #fff; border-radius: 35px;
  box-shadow: 0 25px 65px #3049341c; width: 340px; min-height: 520px;
  transform: rotate(4deg); overflow: hidden;
}
.app-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 5px; }
.app-logo {
  font-family: 'Manrope', system-ui, sans-serif;
  font-weight: 800; letter-spacing: -1px; font-size: 24px;
  display: flex; align-items: center; gap: 6px; color: #275341;
}
.app-logo img { width: 28px; height: 28px; object-fit: contain; }
.avatar { border-radius: 50%; background: #ecd9ca; width: 30px; height: 30px; display: grid; place-items: center; font-size: 13px; }
.preview-panel { padding: 22px 20px 10px; min-height: 394px; }
.app-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-heading h3 { font-size: 22px; letter-spacing: -.6px; margin: 0; }
.app-heading small { font-size: 12px; font-weight: 500; }
.panel-note { font-size: 13px; color: #71806e; }
.month-controls { display: flex; gap: 5px; }
.month-controls button { border: 1px solid #dee2d8; border-radius: 50%; width: 28px; height: 28px; background: transparent; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.calendar .weekday { color: #7c857b; padding-bottom: 8px; }
.day { border: 0; background: #edf0e8; height: 31px; border-radius: 8px; font-size: 12px; color: #344634; }
.day.other { background: #fae4c9; color: #765934; }
.day.empty { background: transparent; }
.day.selected { background: #275341; color: white; outline: 2px solid #a7c0ad; outline-offset: 1px; }
.legend { display: flex; gap: 15px; font-size: 12px; margin: 15px 0 20px; }
.legend span::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #c8d4be; margin-right: 5px;
}
.legend span + span::before { background: #eac9a2; }
.event { display: flex; gap: 12px; background: #f0f2e8; border-radius: 12px; padding: 12px; font-size: 12px; line-height: 1.5; }
.event.spaced { margin-top: 22px; }
.event .event-icon { font-size: 20px; }
.event strong { font-weight: 600; font-size: 13px; }
.app-bottom {
  display: flex; justify-content: space-around; border-top: 1px solid #eee;
  padding: 12px; color: #899183; font-size: 12px; text-align: center; line-height: 1.6;
}
.app-bottom .active { color: #275341; }
.app-bottom.is-hidden { visibility: hidden; }
.stage-caption { margin-top: 35px; font-size: 13px; z-index: 1; }
.task-row {
  display: flex; gap: 12px; padding: 17px 0; border-bottom: 1px solid #e7e9df;
  font-size: 14px; line-height: 1.6; align-items: center; cursor: pointer;
}
.task-row input { accent-color: #275341; width: 19px; height: 19px; flex: none; }
.task-row small { display: block; color: #737e70; font-size: 12px; }
.expense { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #e4e7dc; font-size: 14px; }
.balance { background: #edf0e2; padding: 20px; border-radius: 14px; margin: 20px 0; font-size: 13px; }
.balance strong { font-size: 32px; display: block; margin-top: 8px; }

/* Families */
.families { text-align: center; padding: 105px 6% 90px; background: #fff9ef; }
.families h2 { font-size: clamp(40px, 5vw, 72px); margin: 35px 0 22px; }
.families > p:not(.eyebrow) { font-size: 18px; }
.family-choice { margin: 30px auto; display: inline-flex; gap: 5px; background: #e5eadd; padding: 6px; border-radius: 50px; }
.family-choice button { border: 0; background: none; padding: 13px 23px; border-radius: 40px; font-size: 14px; color: var(--ink); }
.family-choice [aria-pressed='true'] { background: #275341; color: #fffde9; }
.family-result { max-width: 520px; margin: auto; min-height: 250px; }
.family-symbol { display: inline-block; font-size: 54px; color: #688468; margin: 0 0 10px; }
.family-result h3 { font-family: 'Manrope', system-ui, sans-serif; font-size: 27px; font-weight: 500; letter-spacing: -1px; }
.family-result p { font-size: 16px; line-height: 1.8; color: #667266; }

/* Closing CTA */
.closing { background: #d8e5d7; padding: 90px 10%; position: relative; overflow: hidden; }
.closing h2 { font-size: clamp(40px, 5.1vw, 75px); margin: 30px 0; position: relative; z-index: 1; }
.ink { background: var(--ink); color: #fffde9; }
.closing .button { position: relative; z-index: 1; }
.closing-login { position: relative; z-index: 1; font-size: 14px; margin: 22px 0 0; }
.closing-login a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.closing-mark {
  position: absolute; width: 220px; height: 220px; object-fit: contain;
  right: 9%; bottom: 55px; transform: rotate(9deg); opacity: .75;
}

/* Footer */
footer { padding: 48px 5.5%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
footer p { font-size: 14px; line-height: 1.6; margin: 0; }
footer > span,
footer > a:last-child,
.footer-legal { font-size: 12px; }
.footer-legal nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal nav a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal .footer-meta { font-size: 12px; color: #5f7466; margin-top: 10px; }
.footer-legal .footer-meta a { text-decoration: underline; text-underline-offset: 3px; }

/* Legal pages (privacy, terms, cookies): the site's header and footer
   around a plain reading column. The text itself is kept verbatim. */
.legal { padding: 72px 6% 96px; }
.legal .wrap { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(40px, 5vw, 64px); letter-spacing: -2px; margin-bottom: 12px; }
.legal .legal-updated { font-size: 14px; color: #5f7466; margin-bottom: 40px; }
.legal section { margin-top: 36px; }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -.3px; line-height: 1.3; margin: 0 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: #33503f; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (min-width: 1550px) {
  .hero { min-height: 870px; }
  .world { width: 55%; right: 0; top: 20px; }
}

@media (max-width: 1000px) {
  .hero { min-height: 820px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: 60px; }
  .world { width: 70%; right: -14%; top: 230px; }
  .demo-section { padding: 80px 6%; gap: 35px; }
  .orbit { width: 380px; height: 380px; top: 100px; }
  .manifesto { padding: 80px 7%; }
  .closing-mark { right: 3%; width: 170px; height: 170px; }
  footer { flex-wrap: wrap; }
  footer > span { display: none; }
}

/* The full header needs ~820px. Below that the two section anchors go
   (the approved design only dropped them at phone width, which left the
   links wrapping into the logo on small tablets); "Log ind" stays, since a
   returning parent is the likeliest visitor. */
@media (max-width: 860px) {
  header nav { gap: 24px; }
  header nav > a:not(.nav-cta):not(.nav-login) { display: none; }
}

/* Tablet hero. The approved design jumps from side-by-side to stacked only
   at 650px, which left two gaps: at 861–1000px the lower note hung out of
   the blue and got clipped, and at 651–860px the artwork ran under the
   intro text. Side-by-side gets room for the note; narrower than that
   stacks the artwork below the copy, as phones do. */
@media (min-width: 861px) and (max-width: 1000px) {
  .hero { min-height: 920px; }
  .note-one { left: 45%; }
}
@media (min-width: 651px) and (max-width: 860px) {
  .hero { min-height: calc(530px + 68vw); }
  .world { top: 430px; width: 80%; right: -8%; }
}

@media (max-width: 650px) {
  header { height: 85px; padding: 0 6%; }
  .logo { font-size: 34px; gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  header .brand-mark { width: 39px; height: 39px; border-radius: 11px; }
  header nav { gap: 16px; }
  .nav-cta { padding: 11px 16px; font-size: 12px; }
  .nav-cta span { margin-left: 12px; }
  .nav-login { font-size: 13px; }
  .hero { padding: 38px 6% 30px; min-height: 910px; }
  .hero-copy h1 { font-size: clamp(40px, 9vw, 58px); letter-spacing: -2px; line-height: 1.13; }
  .eyebrow { font-size: 13px; }
  .hero-copy .intro { font-size: 16px; max-width: 340px; }
  .hero-copy .intro br { display: none; }
  .button { padding: 17px 23px; font-size: 14px; }
  .micro { font-size: 11px; }
  .world { top: 400px; width: 112%; right: -6%; }
  .note-one { left: 51%; top: 12%; }
  .note-two { left: 12%; bottom: 12%; }
  .world-note { padding: 10px 12px; font-size: 10px; }
  .world-note strong { font-size: 12px; }
  .hero-bottom > span { max-width: 200px; font-size: 12px; line-height: 1.5; }
  .manifesto { padding: 70px 7%; }
  .manifesto h2 { font-size: 38px; letter-spacing: -2px; }
  .manifesto-bottom { gap: 25px; margin-top: 25px; }
  .manifesto-mark { width: 66px; height: 66px; }
  .manifesto-bottom p { font-size: 15px; }
  .demo-section { display: block; padding: 65px 7%; }
  .demo-copy h2 { font-size: 48px; letter-spacing: -2px; }
  .demo-copy > p:not(.eyebrow):not(.demo-label) { max-width: 100%; }
  .feature-tabs { max-width: 100%; }
  .app-stage { padding-top: 40px; overflow: hidden; }
  .app-card { width: min(320px, 95%); transform: rotate(2deg); }
  .app-logo img { width: 26px; height: 26px; }
  .orbit { max-width: 100%; }
  .stage-caption { font-size: 12px; }
  .families { padding: 70px 6% 55px; }
  .families h2 { font-size: 40px; letter-spacing: -2px; }
  .family-choice button { padding: 12px 16px; font-size: 12px; }
  .closing { padding: 65px 7%; }
  .closing h2 { font-size: 43px; letter-spacing: -2px; }
  .closing-mark { width: 135px; height: 135px; right: 3%; bottom: 65px; opacity: .4; }
  footer { padding: 35px 7%; }
  footer p { font-size: 12px; }
  footer > a:last-child { width: 100%; text-align: right; }
  .legal { padding: 48px 7% 72px; }
  .legal h1 { font-size: 40px; }
}

/* Very narrow phones: the header can't fit the wordmark, "Log ind" and the
   demo pill side by side. The pill goes — "Træd ind i Fælles" right below
   in the hero leads to the same place. */
@media (max-width: 400px) {
  header .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
}
