/* Pakje pages. Same tokens as the app (spec §8): warm crème, coral as the one accent,
   SF Pro Rounded in heavy weights, light and dark. The coral itself (#D9483B) is too light
   for small text on crème, so links and small labels use accentPressed (#B5352A). */

:root {
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #efe8e0;
  --ink: #2b2320;
  --ink-2: #6f655f;
  --line: #ede5dc;
  --accent: #d9483b;
  --accent-text: #b5352a;
  --accent-soft: #fbe4e0;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(43 35 32 / 6%), 0 4px 14px rgb(43 35 32 / 5%);
  --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1714;
    --surface: #2a231f;
    --surface-2: #352c27;
    --ink: #f5eee8;
    --ink-2: #a99d95;
    --line: #3a312c;
    --accent: #f0675a;
    --accent-text: #f0675a;
    --accent-soft: #3a2420;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip; /* safety net for classic desktop scrollbars, where 100vw is a bit too wide */
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: 680px; margin: 0 auto; padding: 0 var(--gutter); }
.wide { max-width: 1040px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.top nav a { color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
/* Language switch: set apart from the pages with a hairline. */
.top nav .lang {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.06em;
  align-self: center;
}
@media (max-width: 380px) {
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .lang { padding-left: 12px; }
}
@media (max-width: 340px) {
  :root { --gutter: 20px; }
}

/* Type */
main { position: relative; }
/* A soft coral wash behind the headline, never wider than the screen. */
main::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  width: min(900px, 100vw);
  height: 460px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  z-index: -1;
  pointer-events: none;
}
.eyebrow {
  margin: 28px 0 14px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  font-weight: 800;
  font-size: clamp(38px, 7vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 {
  font-size: clamp(24px, 3.6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 52px 0 12px;
}
h3 { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 0 0 6px; }
p { text-wrap: pretty; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; }
.small { font-size: 14px; color: var(--ink-2); }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}
.card p { margin: 0; color: var(--ink-2); }

/* FAQ */
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "\2212"; }
details p, details ol, details ul { color: var(--ink-2); margin: 12px 0 0; }
details li { margin: 4px 0; }

/* Legal text. :where keeps this weak, so the eyebrow and the date keep their own colour. */
:where(.legal) :is(p, li) { color: var(--ink-2); }
.legal h2 { font-size: 23px; margin-top: 40px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal ul { padding-left: 1.2em; }

/* Landing page */
.hero { text-align: center; padding: 40px 0 8px; }
.hero .icon {
  width: 112px;
  height: 112px;
  border-radius: 25px;
  box-shadow: 0 14px 34px rgb(181 53 42 / 24%);
  margin-bottom: 26px;
}
.hero .eyebrow { margin-top: 0; }
.hero h1 { font-size: clamp(40px, 7.6vw, 68px); }
.hero .lead { max-width: 600px; margin-inline: auto; }
.actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
/* The coral button, as in the app. Ready for the App Store link. */
.pill {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgb(217 72 59 / 32%);
}
.pill.quiet {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/* Not a button: there is nothing to tap until the app is live. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 700;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Screens: real screenshots, cut to the iPhone's own corner radius. */
.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 56px 0 8px;
}
.screens img {
  width: 100%;
  height: auto;
  border-radius: 13.6% / 6.3%;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgb(43 35 32 / 12%);
  background: var(--surface);
}
@media (max-width: 760px) {
  .screens {
    grid-template-columns: repeat(4, 62%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 24px;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens img { scroll-snap-align: center; }
}

/* Feature cards */
.cards { display: grid; gap: 12px; margin: 24px 0; }
@media (min-width: 700px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.cards .card p { margin-top: 2px; }
.pro { margin-top: 12px; }
.pro h3 { display: flex; align-items: center; gap: 8px; }
/* The ProBadge from the app: a small black pill. */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.closing { margin: 36px 0 0; }
.closing .small { margin: 14px 0 0; }

/* Footer */
footer {
  margin-top: 72px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--ink); }
footer nav { display: flex; gap: 18px; }
