/* Gladjanus website. Shared by index.html and privacy/index.html. */

/* Fonts are served from this folder: no requests to Google or any CDN. */
@font-face {
  font-family: 'Lobster';
  src: url('fonts/Lobster-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Patrick Hand';
  src: url('fonts/PatrickHand-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* The palette of the app (src/theme/palette.json). The app is light only. */
:root {
  --cream: #F5EBD8;
  --cream-deep: #EAD7AE;
  --ray: #EFE1C4;
  --paper: #FFF9EA;
  --ink: #14231F;
  --ink-soft: #3F4C48;
  --yellow: #F6B92B;
  --red: #B8322A;
  --teal: #4DB6A6;
  --pink: #F29CA3;
  --orange: #F08A2C;
  --font-title: 'Lobster', 'Georgia', serif;
  --font-body: 'Patrick Hand', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --radius-md: 16px;
  --radius-lg: 24px;
  --pill: 999px;
  --border: 3px;
  --border-thick: 4px;
  --lift-sm: 3px;
  --lift-md: 6px;
  --gutter: 20px;
  --measure: 62ch;
  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(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Language switching: only the blocks of the active language render. */
html:not([data-lang="en"]) [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="nl"] { display: none !important; }

img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.005em;
}
p { margin: 0 0 0.9em; }
ul, ol { margin: 0 0 0.9em; padding-left: 1.3em; }
li { margin-bottom: 0.3em; }

.wrap {
  width: min(100% - 2 * var(--gutter), 1040px);
  margin-inline: auto;
}
.measure { max-width: var(--measure); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

/* Header ------------------------------------------------------------- */
.site-header { padding: 16px 0; }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.wordmark {
  font-family: var(--font-title);
  font-size: 32px;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--red);
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 20px; }
.site-nav a:hover { text-decoration: underline; }

.lang {
  display: inline-flex;
  border: var(--border) solid var(--ink);
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: 0 var(--lift-sm) 0 var(--ink);
  overflow: hidden;
}
.lang button {
  font: inherit;
  font-size: 17px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 4px 14px;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--yellow); }
.lang button:focus-visible { outline-offset: -3px; border-radius: var(--pill); }

/* Hero --------------------------------------------------------------- */
.hero {
  border-bottom: var(--border-thick) solid var(--ink);
  background: repeating-conic-gradient(from 0deg at 50% 92%, var(--cream) 0deg 9deg, var(--ray) 9deg 18deg);
  overflow: hidden;
}
.hero .wrap { display: grid; gap: 20px; padding-top: 28px; }
.hero-copy { padding-bottom: 8px; }
.kicker { color: var(--red); font-size: 25px; margin: 0 0 2px 6px; }
.hero h1 {
  font-size: clamp(68px, 13vw, 116px);
  line-height: 1;
  text-shadow: 4px 4px 0 var(--red);
  display: inline-block;
  transform: rotate(-2deg);
  /* The tilt drops the left end of the title; the margin keeps it clear of the tagline. */
  margin: 0 0 clamp(22px, 4vw, 34px) 4px;
}
.tagline {
  font-family: var(--font-title);
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
  margin: 0 0 10px;
}
.lead { font-size: 21px; max-width: 32em; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 22px; list-style: none; }
.pill {
  display: inline-flex;
  align-items: center;
  border: var(--border) solid var(--ink);
  border-radius: var(--pill);
  background: var(--paper);
  box-shadow: 0 var(--lift-sm) 0 var(--ink);
  padding: 2px 14px;
  font-size: 17px;
  white-space: nowrap;
}

.store { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 54px; width: auto; }
/* Until the Apple ID is filled in, the badge is hidden and the note shows. */
.store-badge[href*="APP_STORE_ID"] { display: none; }
.coming-soon { display: none; }
.store-badge[href*="APP_STORE_ID"] + .coming-soon {
  display: inline-flex;
  align-items: center;
  border: var(--border) solid var(--ink);
  border-radius: var(--pill);
  background: var(--yellow);
  box-shadow: 0 var(--lift-sm) 0 var(--ink);
  padding: 6px 18px;
  font-family: var(--font-title);
  font-size: 22px;
}

.hero-art { align-self: end; justify-self: center; display: flex; }
.hero-art img { display: block; width: min(100%, 340px); height: auto; }

@media (min-width: 820px) {
  .hero { background-image: repeating-conic-gradient(from 0deg at 76% 72%, var(--cream) 0deg 7.5deg, var(--ray) 7.5deg 15deg); }
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; padding-top: 40px; }
  .hero-copy { padding-bottom: 44px; }
  .hero-art img { width: min(100%, 440px); }
}

/* Sections ----------------------------------------------------------- */
.section { padding: 44px 0 48px; scroll-margin-top: 12px; }
.section-ink { background: var(--ink); color: var(--cream); }
.section-ink a { color: var(--yellow); }
.section-ink a:hover { color: var(--cream); }
.section-paper { background: var(--paper); border-top: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink); }

.banner {
  display: inline-block;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  padding: 5px 24px 9px;
  font-size: clamp(32px, 5.5vw, 42px);
  box-shadow: 0 var(--lift-md) 0 var(--ink);
  transform: rotate(-2deg);
  margin: 0 6px 22px 0;
}
.banner-yellow { background: var(--yellow); color: var(--ink); }
.banner-teal { background: var(--teal); color: var(--ink); }
.banner-red { background: var(--red); color: var(--paper); }
.section-ink .banner { box-shadow: 0 var(--lift-md) 0 var(--cream-deep); }

h3 { font-size: 27px; margin: 28px 0 8px; }
.intro { font-size: 21px; }

/* Steps -------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start; margin: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: var(--border) solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 var(--lift-sm) 0 var(--ink);
  font-family: var(--font-title);
  font-size: 26px;
  line-height: 1;
}
.steps p { margin: 5px 0 0; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; gap: 18px 32px; } }

/* Screens ------------------------------------------------------------ */
.screens {
  display: flex;
  gap: 16px;
  margin: 32px calc(-1 * var(--gutter)) 0;
  padding: 8px var(--gutter) 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screen { flex: 0 0 min(70%, 280px); scroll-snap-align: center; margin: 0; }
.phone {
  border: var(--border-thick) solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 var(--lift-md) 0 var(--ink);
  line-height: 0;
}
.phone img { width: 100%; height: auto; display: block; }
.screen figcaption { margin-top: 12px; text-align: center; font-size: 19px; line-height: 1.3; }
@media (min-width: 720px) {
  .screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-inline: 0; padding: 8px 0 0; overflow: visible; }
  .screen { flex: none; }
}

/* Facts -------------------------------------------------------------- */
.facts { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fact {
  border: var(--border) solid var(--ink);
  border-top-width: 10px;
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 var(--lift-md) 0 var(--cream-deep);
  padding: 14px 18px 16px;
  margin: 0;
}
.fact-1 { border-top-color: var(--yellow); }
.fact-2 { border-top-color: var(--teal); }
.fact-3 { border-top-color: var(--pink); }
.fact-4 { border-top-color: var(--orange); }
.fact h3 { font-size: 25px; margin: 0 0 6px; }
.fact p { margin: 0; font-size: 18px; }
.fact b { font-family: var(--font-title); font-weight: 400; font-size: 20px; }

/* Support ------------------------------------------------------------ */
/* The mail card and the questions sit side by side from tablet width up. */
.support-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 820px) { .support-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } }
.contact {
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 var(--lift-md) 0 var(--ink);
  padding: 20px 24px;
  display: grid;
  gap: 10px;
}
.contact p { margin: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 var(--lift-md) 0 var(--ink);
  padding: 8px 22px;
  font-family: var(--font-title);
  font-size: 25px;
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.button:hover { color: var(--paper); transform: translateY(2px); box-shadow: 0 calc(var(--lift-md) - 2px) 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .button:hover { transform: none; } }

.faq { margin: 0; }
.faq details { border-top: 2px solid var(--cream-deep); padding: 2px 0; }
.faq details:last-child { border-bottom: 2px solid var(--cream-deep); }
.faq summary {
  cursor: pointer;
  font-size: 21px;
  padding: 9px 36px 9px 0;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: var(--border) solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1;
}
.faq details[open] summary::after { content: '–'; }
.faq details > :not(summary) { padding: 0 0 10px; }
.faq p { margin: 0 0 0.5em; }

/* Privacy ------------------------------------------------------------ */
.legal { max-width: var(--measure); }
.legal h3 { font-size: 25px; margin-top: 24px; }
.legal .meta { color: var(--ink-soft); font-size: 18px; margin-bottom: 0; }
.summary-box {
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-md);
  background: var(--yellow);
  box-shadow: 0 var(--lift-md) 0 var(--ink);
  padding: 14px 18px;
  margin: 16px 0 6px;
  font-size: 20px;
}
.summary-box p { margin: 0; }
.legal ul { padding-left: 1.2em; }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 32px 0 28px; }
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: var(--cream); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; margin-bottom: 14px; }
.footer-top .wordmark { color: var(--cream); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }
.legal-line { font-size: 15px; color: rgba(245, 235, 216, 0.72); max-width: 80ch; }
