/* FreezerSmart landing page. Colours and shapes follow the app (src/styles.css, tailwind.config.js). */
:root {
  --pine-900: #123c34;
  --pine-700: #185746;
  --pine-500: #2c7a67;
  --pine-100: #d5eee6;
  --pine-50: #edf7f4;
  --frost: #f6f8f7;
  --ink: #173b34;
  --muted: #4a635d;
  --line: rgba(18, 60, 52, 0.14);
  --card-shadow: 0 8px 30px rgba(18, 60, 52, 0.08);
  --focus: #1f8f74;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  font-family:
    Inter,
    ui-rounded,
    'SF Pro Rounded',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--frost);
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6.2vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.25rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: var(--pine-700);
  text-underline-offset: 3px;
}

a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--pine-900);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 247, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-header .header-cta {
  display: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.button-primary {
  background: var(--pine-700);
  color: #fff;
}

.button-primary:hover {
  background: var(--pine-900);
}

.button-quiet {
  background: transparent;
  border-color: rgba(24, 87, 70, 0.35);
  color: var(--pine-700);
}

.button-quiet:hover {
  background: var(--pine-50);
}

.button-light {
  background: #fff;
  color: var(--pine-900);
}

.button-light:hover {
  background: var(--pine-100);
}

.button-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.95rem;
}

.button:active {
  transform: translateY(1px);
}

/* Hero */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(900px 480px at 85% 0%, var(--pine-100), transparent 70%), var(--frost);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: 40px;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pine-500);
}

.lede {
  margin-top: 18px;
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.fineprint {
  margin-top: 16px;
  max-width: 36em;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Phone frame around real app screenshots (624 × 1280 px source images). */
.phone {
  width: min(280px, 74vw);
  margin: 0 auto;
  padding: 9px;
  border-radius: 42px;
  background: var(--pine-900);
  box-shadow:
    0 30px 60px rgba(18, 60, 52, 0.22),
    0 4px 12px rgba(18, 60, 52, 0.12);
}

.phone img {
  width: 100%;
  aspect-ratio: 624 / 1280;
  border-radius: 34px;
  background: var(--frost);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-tint {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 40em;
  margin-bottom: 32px;
}

.section-head p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
}

/* Benefits */
.benefits {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.benefit p {
  margin-top: 8px;
  color: var(--muted);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 15px;
  background: var(--pine-50);
  color: var(--pine-700);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Screenshot gallery: swipe on phones, three columns on wide screens. */
.gallery {
  display: flex;
  gap: 20px;
  margin: 0 -20px;
  padding: 8px 20px 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  -webkit-overflow-scrolling: touch;
}

.shot {
  flex: 0 0 auto;
  width: min(280px, 74vw);
  margin: 0;
  scroll-snap-align: center;
}

.shot .phone {
  width: 100%;
  box-shadow: 0 14px 30px rgba(18, 60, 52, 0.16);
}

.shot figcaption {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.shot figcaption strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 22px 22px 22px 78px;
  border-radius: 24px;
  background: var(--pine-50);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pine-700);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

/* Privacy */
.privacy {
  display: grid;
  gap: 28px;
  padding: 28px 22px;
  border-radius: 28px;
  background: var(--pine-900);
  color: #fff;
}

.privacy .eyebrow {
  color: #9fd8c6;
}

.privacy p {
  margin-top: 12px;
  color: #dcebe6;
}

.privacy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy li {
  position: relative;
  padding-left: 34px;
  color: #fff;
}

.privacy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #9fd8c6
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123c34' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border-radius: 18px;
}

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

.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2.5px solid var(--pine-700);
  border-bottom: 2.5px solid var(--pine-700);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  padding: 0 18px 18px;
  color: var(--muted);
}

/* Closing call to action */
.closing {
  padding: 64px 0;
  text-align: center;
}

.closing p {
  max-width: 34em;
  margin: 14px auto 0;
  color: var(--muted);
}

.closing .actions {
  align-items: center;
}

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

@media (min-width: 560px) {
  .wrap {
    padding: 0 32px;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .closing .actions {
    justify-content: center;
  }

  .site-header .header-cta {
    display: inline-flex;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    margin: 0 -32px;
    padding-left: 32px;
    padding-right: 32px;
    scroll-padding: 0 32px;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 88px;
  }

  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }

  .hero .phone {
    width: 300px;
  }

  .section {
    padding: 88px 0;
  }

  .benefits {
    grid-template-columns: repeat(6, 1fr);
  }

  .benefit {
    grid-column: span 2;
  }

  .benefit:nth-child(n + 4) {
    grid-column: span 3;
  }

  .gallery {
    justify-content: center;
    gap: 48px;
    margin: 0;
    padding: 8px 0 0;
    overflow: visible;
  }

  .shot {
    width: 260px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .step {
    padding: 78px 24px 26px;
  }

  .privacy {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Privacy policy (privatliv.html, en/privacy.html), generated from src/legal/privacy.ts. */
.legal {
  padding: 40px 0 64px;
}

.legal-wrap {
  max-width: 720px;
}

.legal h1 {
  margin: 4px 0 6px;
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--ink);
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 8px;
}

.legal-updated {
  color: var(--muted);
  margin: 0 0 18px;
}

.legal-intro {
  font-size: 1.1rem;
}

.privacy-more {
  margin-top: 14px;
}

.privacy-more a {
  color: inherit;
  font-weight: 650;
}
