/* Harvest Village / Çiftlik Köyü — shared stylesheet (landing + legal pages).
   Mobile-first, light only, self-hosted assets only (no external CDNs: the site must work in Turkey).
   Visual language: "Cozy Pastoral" (docs/design/DESIGN.md) — parchment panels, chocolate outlines,
   solid 3D button shelves, Rubik headings, Quicksand body. */

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Rubik_700Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/Rubik_800ExtraBold.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/Quicksand_500Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Quicksand_700Bold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --parchment: #fffbeb;
  --parchment-2: #fef3c7;
  --paper: #fff8f6;
  --sheet: #fff1eb;
  --white: #fff;
  --ink: #351000;
  --ink-soft: #6b5444;
  --choc: #3e1f0b;
  --line: #d8c3ad;
  --amber: #f59e0b;
  --amber-hi: #fbbf24;
  --amber-shelf: #b45309;
  --amber-soft: #ffddb8;
  --green: #10b981;
  --green-hi: #34d399;
  --green-shelf: #047857;
  --green-ink: #006c49;
  --green-deep: #064e3b;
  --mint: #d7f7e8;
  --red: #dc2626;
  --red-shelf: #991b1b;
  --sky: #38bdf8;
  --sky-soft: #e0f4fe;
  --wood: #855300;
  --font-head: "Rubik", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Quicksand", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --r-sm: 0.5rem;
  --r: 1rem;
  --r-md: 1.5rem;
  --r-lg: 2rem;
  --shelf: 0 4px 0 var(--choc);
  --panel-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.85), 0 5px 0 var(--choc);
  --header-h: 4rem;
  /* How far the highlights strip overlaps the hero; the hero's scroll cue + video toggle sit 1.2rem above it. */
  --strip-overlap: 2.2rem;
  --hero-controls: calc(var(--strip-overlap) + 1.2rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 500 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-ink);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--green-deep);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

strong {
  font-weight: 700;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border: 2px solid var(--choc);
  border-radius: var(--r);
  background: var(--amber);
  color: var(--ink);
}

.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.1rem;
}

/* ---------- Header (shared by landing + legal pages) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.86);
  border-bottom: 2px solid var(--choc);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  min-height: var(--header-h);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font: 800 1.15rem/1.1 var(--font-head);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
}

/* Legal pages: emoji brand mark becomes a little amber tile. */
.brand > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--choc);
  border-radius: 0.7rem;
  background: var(--amber-hi);
  box-shadow: 0 3px 0 var(--choc);
  font-size: 1.15rem;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--choc);
  border-radius: 0.75rem;
  box-shadow: 0 3px 0 var(--choc);
}

.site-header .wrap > nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font: 700 0.95rem/1 var(--font-head);
}

.site-header .wrap > nav a {
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s;
}

.site-header .wrap > nav a:hover,
.site-header .wrap > nav a:focus-visible,
.site-header .wrap > nav a[aria-current="page"] {
  background: var(--parchment-2);
  color: var(--ink);
}

.site-header .wrap > nav a.lang {
  border: 2px solid var(--choc);
  background: var(--white);
  box-shadow: 0 3px 0 var(--choc);
}

/* ---------- Legal / simple pages ---------- */

main {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  margin: 0.6rem 0 0.4rem;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.25;
}

h3 {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.06rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 0.95rem;
}

ul,
ol {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 0.3rem;
}

li::marker {
  color: var(--green);
}

code {
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: var(--sheet);
  font-size: 0.9em;
}

.meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.card {
  margin: 1.2rem 0;
  padding: 1.1rem 1.2rem;
  border: 2.5px solid var(--choc);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--panel-shadow);
}

.card > :last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.3rem;
  border: 2.5px solid var(--choc);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--green-hi) 0%, var(--green) 55%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--green-shelf), 0 5px 0 2.5px var(--choc);
  color: var(--white);
  font: 800 1rem/1 var(--font-head);
  text-decoration: none;
  text-shadow: 0 1.5px 0 var(--green-deep);
  transition: transform 0.12s, box-shadow 0.12s;
}

.button:hover,
.button:focus-visible {
  color: var(--white);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(4px) scale(0.98);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 1px 0 var(--green-shelf), 0 1px 0 2.5px var(--choc);
}

.button.amber {
  background: linear-gradient(180deg, var(--amber-hi) 0%, var(--amber) 55%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 5px 0 var(--amber-shelf), 0 5px 0 2.5px var(--choc);
  color: var(--ink);
  text-shadow: none;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2rem;
  border: 2.5px solid var(--choc);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--shelf);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.93rem;
}

.table-scroll table {
  min-width: 34rem;
}

th,
td {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-scroll th,
.table-scroll td {
  border-width: 0 1px 1px 0;
}

th {
  background: var(--parchment-2);
  font-family: var(--font-head);
  font-weight: 700;
}

details {
  margin: 0 0 0.8rem;
  border: 2.5px solid var(--choc);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: 0 4px 0 var(--choc);
}

summary {
  position: relative;
  display: block;
  padding-block: 0.9rem;
  padding-inline: 1.1rem 3rem;
  cursor: pointer;
  font: 700 1.02rem/1.35 var(--font-head);
  list-style: none;
}

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

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  inset-inline-end: 0.8rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.875rem;
  border: 2px solid var(--choc);
  border-radius: 50%;
  background: var(--amber-hi);
  font: 800 1.1rem/1 var(--font-head);
  transition: transform 0.25s var(--ease-out);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details > :not(summary) {
  margin-left: 1.1rem;
  margin-right: 1.1rem;
}

details > :last-child:not(summary) {
  margin-bottom: 1rem;
}

details[open] summary {
  margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  border-top: 2px solid var(--choc);
  background: var(--green-ink);
  color: #d7f7e8;
  font-size: 0.93rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--amber-hi);
}

.site-footer .wrap {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

/* ---------- 404 ---------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 10rem);
  text-align: center;
}

.notfound .emoji {
  font-size: 4rem;
  line-height: 1;
  animation: bob 3s ease-in-out infinite;
}

.pitch {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* =====================================================================
   Landing page
   ===================================================================== */

.home {
  overflow-x: clip;
}

.home main {
  padding: 0;
}

.container {
  width: 100%;
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header on the landing: floats over the hero, turns solid once scrolled. */
.home .site-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.home .site-header.is-solid,
html:not(.js) .home .site-header {
  background: rgba(255, 251, 235, 0.88);
  border-bottom-color: var(--choc);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
}

.home .brand {
  margin-inline-end: auto;
  color: var(--white);
  text-shadow: 0 2px 0 var(--choc);
  transition: color 0.3s;
}

.home .is-solid .brand,
html:not(.js) .home .brand {
  color: var(--ink);
  text-shadow: none;
}

.brand-name {
  display: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid var(--choc);
  border-radius: 0.85rem;
  background: var(--white);
  box-shadow: 0 3px 0 var(--choc);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

.menu-toggle .icon-close,
.menu-open .menu-toggle .icon-open {
  display: none;
}

.menu-open .menu-toggle .icon-close {
  display: block;
}

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1rem;
  left: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.6rem;
  border: 2.5px solid var(--choc);
  border-radius: var(--r-md);
  background: var(--parchment);
  box-shadow: var(--panel-shadow);
}

.menu-open .site-nav,
html:not(.js) .site-nav {
  display: flex;
}

html:not(.js) .menu-toggle {
  display: none;
}

html:not(.js) .site-nav {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.site-nav a {
  padding: 0.75rem 0.9rem;
  border-radius: var(--r);
  color: var(--ink);
  font: 700 1.05rem/1 var(--font-head);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--parchment-2);
  color: var(--ink);
}

/* Language picker: <details> disclosure with plain links, so it works without JS. */
.lang-menu {
  margin: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.lang-menu > summary::after {
  content: none;
}

.lang-menu > .lang-list {
  margin: 0;
}

.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0 0.65rem;
  border: 2px solid var(--choc);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 3px 0 var(--choc);
  color: var(--ink);
  font: 800 0.8rem/1 var(--font-head);
  letter-spacing: 0.02em;
  white-space: nowrap;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-menu > summary::-webkit-details-marker {
  display: none;
}

.lang-menu > summary svg {
  width: 1.15rem;
  height: 1.15rem;
}

.lang-menu > summary .chev {
  width: 0.8rem;
  height: 0.8rem;
  transition: transform 0.2s;
}

.lang-menu[open] > summary {
  background: var(--amber);
}

.lang-menu[open] > summary .chev {
  transform: rotate(180deg);
}

.lang-menu > summary:hover,
.lang-menu > summary:focus-visible {
  background: var(--parchment-2);
}

.lang-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 1rem;
  left: 1rem;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.15rem;
  max-height: min(70vh, 30rem);
  margin: 0;
  padding: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 2.5px solid var(--choc);
  border-radius: var(--r-md);
  background: var(--parchment);
  box-shadow: var(--panel-shadow);
  list-style: none;
}

.lang-list li {
  margin: 0;
}

.lang-list a {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r);
  color: var(--ink);
  font: 700 0.95rem/1.25 var(--font-head);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.lang-list a:hover,
.lang-list a:focus-visible {
  background: var(--parchment-2);
  color: var(--ink);
}

.lang-list a[aria-current="page"] {
  background: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber-shelf);
}

.store-badge.header-cta {
  display: none;
}

/* ---------- Store badges ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 0.7rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  padding: 0.55rem 1.25rem 0.55rem 1rem;
  border: 2.5px solid var(--choc);
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #4a2810 0%, var(--choc) 60%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 5px 0 #1d0d03;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s;
}

.store-badge:hover,
.store-badge:focus-visible {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 7px 0 #1d0d03;
}

.store-badge:active {
  transform: translateY(4px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), 0 1px 0 #1d0d03;
}

.store-badge svg {
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  font: 700 0.72rem/1.15 var(--font-body);
  letter-spacing: 0.02em;
}

.store-badge b {
  font: 800 1.2rem/1.1 var(--font-head);
  letter-spacing: -0.01em;
}

.store-badge.small {
  min-height: 2.75rem;
  padding: 0.35rem 0.9rem 0.35rem 0.7rem;
  border-radius: 0.9rem;
  box-shadow: 0 3px 0 #1d0d03;
}

.store-badge.small svg {
  width: 1.35rem;
  height: 1.35rem;
}

.store-badge.small b {
  font-size: 0.95rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  /* Room for the controls row (scroll cue + video toggle, 2.8rem + 6px bob) above the strip overlap. */
  padding: calc(var(--header-h) + 2rem) 0 calc(var(--hero-controls) + 4.4rem);
  overflow: hidden;
  background: #8fcf5f;
  color: var(--white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: -4% 0 0;
  z-index: -2;
  will-change: transform;
}

.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media video {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-media video.is-playing {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(62, 31, 11, 0.45) 0%, rgba(62, 31, 11, 0) 22%),
    linear-gradient(0deg, rgba(53, 16, 0, 0.82) 0%, rgba(53, 16, 0, 0.45) 38%, rgba(53, 16, 0, 0) 70%);
}

.hero-content {
  position: relative;
  max-width: 40rem;
}

.hero-logo {
  width: 6.5rem;
  height: 6.5rem;
  margin-bottom: 1.1rem;
  border: 3px solid var(--choc);
  border-radius: 1.6rem;
  box-shadow: 0 6px 0 var(--choc), 0 18px 40px rgba(53, 16, 0, 0.35);
  transform: rotate(-4deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.85rem;
  border: 2px solid var(--choc);
  border-radius: 999px;
  background: var(--amber-hi);
  box-shadow: 0 3px 0 var(--choc);
  color: var(--ink);
  font: 800 0.8rem/1.2 var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.8rem;
  color: var(--white);
  font-size: clamp(2.5rem, 9vw, 5.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-shadow: 0 3px 0 var(--choc), 0 8px 30px rgba(53, 16, 0, 0.45);
  text-wrap: balance;
}

.hero h1 em {
  color: var(--amber-hi);
  font-style: normal;
}

.hero .lead {
  max-width: 34rem;
  margin: 0 0 1.6rem;
  color: #fff7e8;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(53, 16, 0, 0.6);
}

.scroll-cue {
  position: absolute;
  bottom: var(--hero-controls);
  left: 50%;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  margin-left: -1.4rem;
  border: 2.5px solid var(--choc);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 0 var(--choc);
  color: var(--ink);
  animation: bob 2.2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 1.3rem;
  height: 1.3rem;
}

.video-toggle {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: var(--hero-controls);
  display: none;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 2px solid var(--choc);
  border-radius: 50%;
  background: rgba(255, 251, 235, 0.92);
  box-shadow: 0 3px 0 var(--choc);
  color: var(--ink);
  cursor: pointer;
}

.video-toggle.is-ready {
  display: grid;
}

.video-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.video-toggle .icon-play,
.video-toggle[aria-pressed="true"] .icon-pause {
  display: none;
}

.video-toggle[aria-pressed="true"] .icon-play {
  display: block;
}

/* ---------- Highlights strip ---------- */

.highlights {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--strip-overlap));
}

.highlights ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0.75rem;
  border: 2.5px solid var(--choc);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--panel-shadow), 0 20px 40px rgba(53, 16, 0, 0.12);
  list-style: none;
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.6rem;
  border-radius: var(--r);
  background: var(--parchment);
  font: 700 0.92rem/1.25 var(--font-head);
}

.highlights .ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--choc);
  border-radius: 0.8rem;
  background: var(--mint);
  font-size: 1.2rem;
}

.highlights li:nth-child(2) .ico {
  background: var(--sky-soft);
}

.highlights li:nth-child(3) .ico {
  background: var(--amber-soft);
}

.highlights li:nth-child(4) .ico {
  background: #ffdad6;
}

/* ---------- Section scaffolding ---------- */

.section {
  position: relative;
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2,
.feature h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--green-ink);
  font: 800 0.85rem/1 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Features ---------- */

.features {
  padding-top: 4.5rem;
  background-image: radial-gradient(rgba(133, 83, 0, 0.09) 1.5px, transparent 1.7px);
  background-size: 26px 26px;
}

.feature {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.feature + .feature {
  margin-top: 1.5rem;
}

.feature-copy {
  max-width: 32rem;
}

.feature-copy > p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border: 2px solid var(--choc);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 3px 0 var(--choc);
  font: 800 0.85rem/1 var(--font-head);
}

.badge i {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--tone, var(--mint));
  font-size: 1rem;
  font-style: normal;
}

.ticks {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin: 0;
  padding-inline-start: 2rem;
  font-weight: 700;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.18rem;
  inset-inline-start: 0;
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--choc);
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}

.feature-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(82vw, 26rem);
  aspect-ratio: 1;
  border: 2.5px solid var(--choc);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: var(--tone, var(--mint));
  box-shadow: 0 6px 0 var(--choc);
}

.feature-art .sticker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 2.5px solid var(--choc);
  border-radius: 1.2rem;
  background: var(--white);
  box-shadow: 0 4px 0 var(--choc);
  font-size: 2rem;
  line-height: 1;
}

.feature-art .sticker.s1 {
  top: 8%;
  left: max(0.25rem, calc(50% - 11rem));
  transform: rotate(-10deg);
}

.feature-art .sticker.s2 {
  right: max(0.25rem, calc(50% - 11rem));
  bottom: 12%;
  transform: rotate(8deg);
}

.tone-green { --tone: #c4f5de; }
.tone-amber { --tone: #ffddb8; }
.tone-sky { --tone: #cdeefe; }
.tone-rose { --tone: #ffdad6; }
.tone-lilac { --tone: #e6dcff; }
.tone-wheat { --tone: #fde68a; }

/* CSS phone frame (no third-party device art). */
.phone {
  position: relative;
  width: min(66vw, 17.5rem);
  aspect-ratio: 1320 / 2868;
  padding: 0.55rem;
  border: 3px solid var(--choc);
  border-radius: 2.7rem;
  background: linear-gradient(145deg, #5b3418, #2a1406 60%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.12),
    0 8px 0 var(--choc),
    0 30px 50px -10px rgba(53, 16, 0, 0.45);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 2.15rem;
  background: var(--sheet);
  object-fit: cover;
}

.phone::after {
  content: "";
  position: absolute;
  top: 22%;
  right: -6px;
  width: 4px;
  height: 12%;
  border-radius: 0 4px 4px 0;
  background: var(--choc);
}

.feature-art .phone {
  transform: rotate(var(--tilt, -3deg));
}

.feature:nth-child(even) .feature-art .phone {
  --tilt: 3deg;
}

/* Languages card */
.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0;
  padding: 1.4rem;
  border: 2.5px solid var(--choc);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--panel-shadow);
  list-style: none;
}

.lang-cloud li {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 2px solid var(--choc);
  border-radius: 999px;
  background: var(--parchment);
  font: 700 0.92rem/1.2 var(--font-body);
}

.lang-cloud li:nth-child(3n + 1) { background: var(--mint); }
.lang-cloud li:nth-child(4n + 2) { background: var(--sky-soft); }
.lang-cloud li:nth-child(5n + 3) { background: var(--amber-soft); }

/* ---------- Gallery ---------- */

.gallery {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.35) 0 4rem, transparent 4.05rem),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.3) 0 6rem, transparent 6.05rem),
    linear-gradient(180deg, #7dd3fc 0%, #bae6fd 100%);
  border-block: 2.5px solid var(--choc);
}

.gallery .section-head p {
  color: var(--ink);
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 1rem max(1.25rem, calc((100vw - 76rem) / 2 + 1.25rem)) 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(1.25rem, calc((100vw - 76rem) / 2 + 1.25rem));
  scrollbar-width: none;
  list-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track li {
  flex: none;
  margin: 0;
  scroll-snap-align: start;
}

.gallery-track .phone {
  width: min(62vw, 15rem);
}

.tablet {
  width: min(84vw, 26rem);
  aspect-ratio: 2064 / 2752;
  padding: 0.7rem;
  border: 3px solid var(--choc);
  border-radius: 2rem;
  background: linear-gradient(145deg, #5b3418, #2a1406 60%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 8px 0 var(--choc), 0 30px 50px -10px rgba(53, 16, 0, 0.4);
}

.tablet img {
  width: 100%;
  height: 100%;
  border-radius: 1.4rem;
  background: var(--sheet);
  object-fit: cover;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.round-btn {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: 2.5px solid var(--choc);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber) 60%);
  box-shadow: 0 4px 0 var(--choc);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s;
}

.round-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--choc);
}

.round-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.round-btn svg {
  width: 1.3rem;
  height: 1.3rem;
}

[dir="rtl"] .round-btn svg {
  transform: scaleX(-1);
}

html:not(.js) .gallery-controls {
  display: none;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 46rem;
  margin: 0 auto;
}

.faq-list details {
  margin-bottom: 1rem;
}

.faq-list summary {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  font-size: 1.08rem;
}

.faq-list details p {
  color: var(--ink-soft);
}

.faq-more {
  margin: 2rem 0 0;
  text-align: center;
}

/* ---------- CTA ---------- */

.cta {
  padding: 0 0 5rem;
}

.cta-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  overflow: hidden;
  border: 3px solid var(--choc);
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 10% 110%, rgba(255, 255, 255, 0.25) 0 7rem, transparent 7.05rem),
    linear-gradient(180deg, var(--green-hi), var(--green) 70%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 8px 0 var(--choc);
  color: var(--white);
  text-align: center;
}

.cta-card img {
  width: 6rem;
  height: 6rem;
  border: 3px solid var(--choc);
  border-radius: 1.5rem;
  box-shadow: 0 5px 0 var(--choc);
}

.cta-card h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.05;
  text-shadow: 0 3px 0 var(--green-deep);
  text-wrap: balance;
}

.cta-card p {
  max-width: 30rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.cta-card .stores {
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- Landing footer ---------- */

.home .site-footer {
  padding: 3.5rem 0 1.5rem;
  font-size: 0.98rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

/* Long single words (Datenschutzerklärung, the e-mail address) wrap instead of widening a column. */
.footer-grid > * {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 22.49rem) {
  .highlights ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 24.99rem) {
  .stores .store-badge:not(.small) {
    padding-right: 0.85rem;
    padding-left: 0.7rem;
    gap: 0.5rem;
  }

  .stores .store-badge:not(.small) b {
    font-size: 1.05rem;
  }
}

.footer-brand p {
  max-width: 22rem;
  margin: 0.9rem 0 0;
}

.home .site-footer .brand {
  color: var(--white);
  text-shadow: none;
}

.home .site-footer .brand-name {
  display: inline;
}

.footer-col h3 {
  margin: 0 0 0.8rem;
  color: var(--amber-hi);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-col a {
  font-weight: 700;
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(215, 247, 232, 0.25);
  font-size: 0.88rem;
}

/* ---------- Language suggestion toast ---------- */

.lang-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 24rem;
  margin-inline-start: auto;
  padding-block: 0.75rem;
  padding-inline: 1rem 0.75rem;
  border: 2.5px solid var(--choc);
  border-radius: var(--r);
  background: var(--white);
  box-shadow: var(--panel-shadow);
  font: 700 0.95rem/1.3 var(--font-head);
  animation: toast-in 0.5s var(--ease-out) both;
}

.lang-toast[hidden] {
  display: none;
}

.lang-toast a {
  flex: none;
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
}

.lang-toast button {
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 2px solid var(--choc);
  border-radius: 50%;
  background: var(--parchment-2);
  color: var(--ink);
  font: 800 1rem/1 var(--font-head);
  cursor: pointer;
}

/* ---------- Decorative clouds ---------- */

.cloud {
  position: absolute;
  z-index: 0;
  width: 9rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--white);
  opacity: 0.9;
  pointer-events: none;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 40%;
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  left: 18%;
  width: 3.6rem;
  height: 3.6rem;
}

.cloud::after {
  right: 18%;
  width: 4.6rem;
  height: 4.6rem;
}

.gallery .cloud.c1 {
  top: 2.5rem;
  left: 4%;
}

.gallery .cloud.c2 {
  top: 6rem;
  right: 6%;
  transform: scale(0.7);
}

.gallery > .container,
.gallery-track,
.gallery-controls {
  position: relative;
  z-index: 1;
}

/* ---------- Reveal + parallax (enhancement only, JS adds .js) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-art .phone {
  opacity: 0;
  transform: translateY(60px) rotate(calc(var(--tilt, -3deg) * -2)) scale(0.94);
  transition: opacity 0.9s var(--ease-out) 0.1s, transform 1.1s var(--ease-out) 0.1s;
}

.js .reveal-art.is-visible .phone {
  opacity: 1;
  transform: rotate(var(--tilt, -3deg));
}

[data-parallax] {
  will-change: transform;
}

.parallax-y {
  transform: translate3d(0, var(--py, 0), 0);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal,
  .js .reveal-art .phone {
    opacity: 1;
    transform: none;
  }

  .js .reveal-art .phone {
    transform: rotate(var(--tilt, -3deg));
  }
}

/* ---------- Breakpoints ---------- */

main p,
main li,
main td {
  overflow-wrap: anywhere;
}

/* Scripts with tall marks (Devanagari, Thai, Arabic, …) need more line height than the Latin display type. */
.script-tall h1,
.script-tall h2,
.script-tall h3 {
  line-height: 1.3;
}

.script-tall .eyebrow,
.script-tall .kicker,
.script-tall .badge {
  line-height: 1.5;
}

/* Arabic-script pages: tracking breaks the joined letters. */
.script-cursive body * {
  letter-spacing: normal !important;
}

@media (max-width: 39.99rem) {
  .site-header {
    position: relative;
  }

  .site-header .wrap > nav {
    margin-left: -0.7rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 40rem) {
  h1 {
    font-size: 2.5rem;
  }

  .brand-name {
    display: inline;
  }

  .highlights ul {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .cta-card {
    padding: 4rem 2rem;
  }

  .lang-menu {
    position: relative;
  }

  .lang-list {
    inset-inline: auto 0;
    width: 34rem;
    max-width: calc(100vw - 2rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 60rem) {
  :root {
    --header-h: 4.6rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav,
  .menu-open .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 0.15rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .site-nav a {
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    font-size: 0.98rem;
  }

  .home .site-header:not(.is-solid) .site-nav a {
    color: var(--white);
    text-shadow: 0 2px 0 var(--choc);
  }

  .home .site-header:not(.is-solid) .site-nav a:hover,
  .home .site-header:not(.is-solid) .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.18);
  }

  .store-badge.header-cta {
    display: inline-flex;
  }

  .hero {
    align-items: center;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(62, 31, 11, 0.4) 0%, rgba(62, 31, 11, 0) 20%),
      linear-gradient(90deg, rgba(53, 16, 0, 0.78) 0%, rgba(53, 16, 0, 0.45) 40%, rgba(53, 16, 0, 0) 68%),
      linear-gradient(0deg, rgba(53, 16, 0, 0.35) 0%, rgba(53, 16, 0, 0) 30%);
  }

  /* RTL: the copy sits on the right, so the darkening follows it. */
  [dir="rtl"] .hero::after {
    background:
      linear-gradient(180deg, rgba(62, 31, 11, 0.4) 0%, rgba(62, 31, 11, 0) 20%),
      linear-gradient(270deg, rgba(53, 16, 0, 0.78) 0%, rgba(53, 16, 0, 0.45) 40%, rgba(53, 16, 0, 0) 68%),
      linear-gradient(0deg, rgba(53, 16, 0, 0.35) 0%, rgba(53, 16, 0, 0) 30%);
  }

  .hero-logo {
    width: 7.5rem;
    height: 7.5rem;
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 3rem 0;
  }

  .feature:nth-child(even) .feature-copy {
    order: 2;
  }

  .feature-copy {
    justify-self: end;
  }

  .feature:nth-child(even) .feature-copy {
    justify-self: start;
  }

  .phone {
    width: 18.5rem;
  }

  .gallery-track .phone {
    width: 15.5rem;
  }

  .tablet {
    width: 26rem;
  }

  .section {
    padding: 7rem 0;
  }
}
