/* ==========================================================================
   打个勾 · Check It Off — marketing site
   Paper-and-sticker visual language, matching the app's printed sheet.
   ========================================================================== */

:root {
  --ink: #2f4a3a;
  --ink-muted: #5c7a63;
  --ink-faint: #8aa792;
  --paper: #dce8d4;
  --grid: #c6d6ba;
  --card: #f8fbf4;
  --card-warm: #fffdf6;
  --accent: #c8e3a8;
  --accent-soft: #e6f2d7;
  --success: #6fbc85;
  --highlight: #f3c89a;
  --highlight-soft: #fdeedc;
  --sun: #efb04a;
  --blush: #e69d8c;

  --border: 2.5px;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow: #7ba482;
  --shift: 4px 5px;
  --shift-sm: 2px 3px;

  --max: 1140px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

html[dir="rtl"] { direction: rtl; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nunito", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans TC",
    "Hiragino Sans", "Noto Sans JP", "Apple SD Gothic Neo", "Noto Sans KR",
    "Noto Naskh Arabic", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  font-weight: 600;
  min-height: 100vh;
  letter-spacing: .01em;
  overflow-x: hidden;
}

html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "Nunito", system-ui, sans-serif;
  line-height: 1.85;
}

/* Backdrop: graph paper, a soft wash, and the animated check pattern. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(920px 440px at 10% -10%, rgba(248, 201, 154, .30), transparent 62%),
    radial-gradient(760px 400px at 94% 4%, rgba(200, 227, 168, .40), transparent 58%),
    radial-gradient(640px 320px at 78% 100%, rgba(230, 157, 140, .16), transparent 52%);
}

#grid-activity {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .7;
}

::selection { background: var(--accent); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, select { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.028em; }

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

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--card);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus { inset-inline-start: 16px; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

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

.section { padding: clamp(52px, 8vw, 88px) 0; }
.section-tight { padding: clamp(28px, 4vw, 44px) 0; }

.section-head { margin-bottom: clamp(28px, 4vw, 40px); max-width: 46rem; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.14;
}

.intro, .lede {
  color: var(--ink-muted);
  margin: 0;
}

.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 40em; }
.intro { max-width: 42em; }

.section-more {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.link-more {
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2.5px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .2s var(--ease);
}
.link-more::after { content: " →"; }
html[dir="rtl"] .link-more::after { content: " ←"; }
.link-more:hover { background: var(--accent); }

.muted { color: var(--ink-muted); font-weight: 700; }
.small { font-size: 13.5px; }

/* --------------------------------------------------------------------------
   Sticker surfaces and controls
   -------------------------------------------------------------------------- */

.sticker {
  background: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shift) 0 var(--shadow);
}

.sticker-accent { background: var(--accent-soft); }
.sticker-sun { background: var(--highlight-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: var(--border) solid var(--ink);
  background: var(--ink);
  color: var(--card);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shift) 0 var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  cursor: pointer;
}

.btn:hover { transform: translate(2px, 3px); box-shadow: var(--shift-sm) 0 var(--shadow); }
.btn:active { transform: translate(4px, 5px); box-shadow: 0 0 0 var(--shadow); }

.btn-ghost { background: var(--card); color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
}

.chip-sun { background: var(--sun); }

.ico { width: 24px; height: 24px; flex: none; }
.ico-sm { width: 17px; height: 17px; }
.ico-lg { width: 40px; height: 40px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 84%, white);
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 2px solid var(--ink);
  box-shadow: var(--shift-sm) 0 var(--shadow);
  object-fit: cover;
  background: #2f8a3a;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; letter-spacing: -.02em; }
.brand-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .16s var(--ease);
}

.nav-links a:hover { background: var(--accent-soft); }
.nav-links a.is-active { background: var(--accent); }

.nav-side { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--card);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shift-sm) 0 var(--shadow);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-end: 0;
  min-width: 190px;
  padding: 8px;
  background: var(--card);
  border: var(--border) solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shift) 0 var(--shadow);
  z-index: 50;
}

.lang.open .lang-menu { display: grid; gap: 2px; }

.lang-menu a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
}

.lang-menu a:hover { background: var(--accent-soft); }
.lang-menu a.is-active { background: var(--accent); }

html[dir="rtl"] .lang-menu { inset-inline-end: auto; inset-inline-start: 0; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shift-sm) 0 var(--shadow);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.4px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.4px) rotate(-45deg); }

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

.hero {
  padding: clamp(36px, 6vw, 68px) 0 clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero h1 {
  margin: 16px 0;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

html[lang="ar"] .hero h1 { line-height: 1.25; }

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0 46px;
}

.hero-stage-tight { padding-block: 8px 24px; }

.float-sticker {
  position: absolute;
  padding: 9px 15px;
  font-weight: 800;
  font-size: 14px;
  z-index: 3;
  animation: float 5.6s var(--ease) infinite;
  box-shadow: var(--shift-sm) 0 var(--shadow);
}

.float-sticker.a { top: 4px; inset-inline-start: -6px; background: var(--highlight); rotate: -7deg; }
.float-sticker.b { top: 44px; inset-inline-end: -10px; background: var(--accent); rotate: 6deg; animation-delay: .7s; }
.float-sticker.c { bottom: 74px; inset-inline-start: -14px; background: var(--card-warm); rotate: -3deg; animation-delay: 1.3s; }

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

.hero-mascots {
  position: absolute;
  bottom: -6px;
  inset-inline-end: 6px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  z-index: 4;
}

.mascot-chip {
  width: 88px;
  height: 88px;
  padding: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.mascot-chip img { width: 68px; height: 68px; max-width: none; object-fit: contain; }
.mascot-chip:first-child { rotate: -6deg; }
.mascot-chip:last-child { rotate: 5deg; }

/* --------------------------------------------------------------------------
   The printed sheet illustration
   -------------------------------------------------------------------------- */

.sheet {
  position: relative;
  margin: 0;
  width: min(430px, 100%);
  padding: 22px 20px 18px;
  background: var(--card-warm);
  border: var(--border) solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 10px 0 var(--shadow);
  rotate: -1.4deg;
  font-size: 13px;
}

.sheet-anchor {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-radius: 2px;
}
.sheet-anchor.a1 { top: 9px; left: 9px; }
.sheet-anchor.a2 { top: 9px; right: 9px; }
.sheet-anchor.a3 { bottom: 9px; left: 9px; }
.sheet-anchor.a4 { bottom: 9px; right: 9px; }

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 12px 12px;
  border-bottom: 2px dashed var(--grid);
  margin-bottom: 12px;
}

.sheet-head strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.sheet-head span { font-size: 12.5px; color: var(--ink-muted); font-weight: 700; }

.sheet-days, .sheet-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline: 12px;
}

.sheet-task {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-cells {
  flex: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.sheet-days .sheet-cells span {
  width: 24px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-muted);
}

.sheet-body { display: grid; gap: 6px; margin-top: 6px; }

.sheet-row { padding-block: 3px; }
.sheet-row:nth-child(even) { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }

.cell {
  width: 24px;
  height: 24px;
  border: 1.8px solid var(--ink);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--success);
}

.cell.is-on { background: color-mix(in srgb, var(--accent) 55%, transparent); }
.cell .tick { width: 16px; height: 16px; }

.sheet-foot {
  display: flex;
  justify-content: flex-end;
  padding: 14px 12px 4px 12px;
  margin-top: 10px;
  border-top: 2px dashed var(--grid);
}

.sheet-scan { display: flex; align-items: center; gap: 10px; }
.sheet-scan em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink-muted); }

.qr {
  width: 52px;
  height: 52px;
  padding: 3px;
  background: #fff;
  border: 1.8px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  shape-rendering: crispEdges;
}

/* --------------------------------------------------------------------------
   Posters — the photographed sheet, before and after a week
   -------------------------------------------------------------------------- */

.poster-showcase { padding-bottom: clamp(56px, 9vw, 108px); }

/* Wider than .wrap so the photographs get room to breathe. */
.poster-band {
  width: min(1320px, calc(100% - var(--gutter)));
  margin-inline: auto;
}

.poster-panel { position: relative; }
.poster-panel + .poster-panel { margin-top: clamp(48px, 7vw, 92px); }

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--card-warm);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 10px 12px 0 var(--shadow);
  rotate: -.7deg;
}

.poster-panel:nth-child(even) .poster-frame { rotate: .7deg; }

/* A soft floor under the photo so the caption card never fights the image. */
.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(28, 46, 34, .3), transparent);
  pointer-events: none;
}

.poster-shot { display: block; }

.poster-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  animation: poster-drift 28s ease-in-out infinite alternate;
}

@keyframes poster-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate3d(-1.4%, -1.2%, 0); }
}

/* Washi tape, outside the frame so it is not clipped. Poster positions are
   physical, not logical: the photographs do not mirror in Arabic, so the
   captions have to stay on the same side of the picture in every language. */
.poster-tape {
  position: absolute;
  top: -15px;
  left: 9%;
  z-index: 3;
  width: clamp(96px, 12vw, 148px);
  height: 32px;
  rotate: -3.5deg;
  background: repeating-linear-gradient(
    -45deg,
    color-mix(in srgb, var(--highlight) 88%, transparent) 0 8px,
    color-mix(in srgb, var(--highlight-soft) 92%, transparent) 8px 16px
  );
  border: 2px solid color-mix(in srgb, var(--ink) 20%, transparent);
  border-radius: 3px;
}

.poster-card {
  position: relative;
  z-index: 2;
  padding: clamp(22px, 2.8vw, 30px);
  display: grid;
  gap: 12px;
  justify-items: start;
  background: var(--card-warm);
}

.poster-card h3 { margin: 0; font-size: clamp(21px, 2.6vw, 30px); line-height: 1.16; }
.poster-card p { margin: 0; color: var(--ink-muted); font-size: 15.5px; }

.poster-tags {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.poster-tag {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: var(--shift-sm) 0 var(--shadow);
}

/* The slim band that leads the marketing sub-pages. */
.poster-strip-wrap { padding: clamp(16px, 2.5vw, 28px) 0 clamp(6px, 1.5vw, 16px); }

.poster-strip {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--card-warm);
  border: var(--border) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 10px 0 var(--shadow);
}

.poster-strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: linear-gradient(to top, rgba(28, 46, 34, .32), transparent);
  pointer-events: none;
}

.poster-strip .poster-img {
  aspect-ratio: auto;
  height: clamp(200px, 26vw, 320px);
  object-position: center 60%;
}

.poster-strip-card {
  position: absolute;
  z-index: 2;
  left: clamp(14px, 2.5vw, 28px);
  bottom: clamp(14px, 2.5vw, 26px);
  max-width: min(470px, 64%);
  padding: 15px 20px 17px;
  display: grid;
  gap: 6px;
  justify-items: start;
}

.poster-strip-card strong { font-size: clamp(16px, 1.9vw, 20px); line-height: 1.25; }
.poster-strip-card .muted { font-size: 14px; }

/* From tablet up the caption sits on the photo and hangs off its lower edge. */
@media (min-width: 901px) {
  .poster-panel { padding-bottom: clamp(24px, 3.5vw, 48px); }

  /* Sides alternate, and each one keeps the subject of its photo clear: the
     phone and fresh sheets in the first, the handwritten note in the second. */
  .poster-card {
    position: absolute;
    bottom: 0;
    right: clamp(26px, 4vw, 62px);
    width: min(430px, 41%);
    rotate: 1.1deg;
  }

  .poster-panel:nth-child(even) .poster-card {
    right: auto;
    left: clamp(26px, 4vw, 62px);
    rotate: -1.1deg;
  }
}

/* Entrance choreography. Only armed once site.js confirms motion is welcome,
   so the posters stay visible without JavaScript. */
.poster-panel.anim .poster-frame,
.poster-strip.anim {
  opacity: 0;
  transform: translateY(28px);
}

.poster-panel.anim.is-in .poster-frame,
.poster-strip.anim.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .85s var(--ease), transform 1s var(--ease);
}

.poster-panel.anim .poster-shot,
.poster-strip.anim .poster-shot { transform: scale(1.16); }

.poster-panel.anim.is-in .poster-shot,
.poster-strip.anim.is-in .poster-shot {
  transform: none;
  transition: transform 1.9s var(--ease);
}

.poster-panel.anim .poster-card,
.poster-panel.anim .poster-tape,
.poster-strip.anim .poster-strip-card {
  opacity: 0;
  transform: translateY(18px);
}

.poster-panel.anim.is-in .poster-card,
.poster-strip.anim.is-in .poster-strip-card {
  opacity: 1;
  transform: none;
  transition: opacity .7s .3s var(--ease), transform .8s .3s var(--ease);
}

.poster-panel.anim.is-in .poster-tape {
  opacity: 1;
  transform: none;
  transition: opacity .5s .5s var(--ease), transform .6s .5s var(--ease);
}

.poster-panel.anim .poster-tag { opacity: 0; transform: scale(.86); }

.poster-panel.anim.is-in .poster-tag {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}

.poster-panel.anim.is-in .poster-tag:nth-child(1) { transition-delay: .55s; }
.poster-panel.anim.is-in .poster-tag:nth-child(2) { transition-delay: .68s; }

/* --------------------------------------------------------------------------
   Trust row
   -------------------------------------------------------------------------- */

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-muted);
}

.trust .ico { color: var(--success); }

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

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

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  border: 2px solid var(--ink);
  background: var(--accent);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 16px;
}

.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Stat band
   -------------------------------------------------------------------------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 30px 24px;
  background: var(--accent-soft);
}

.stat { text-align: center; padding: 6px 10px; }
.stat + .stat { border-inline-start: 2px dashed var(--grid); }

.stat strong {
  display: block;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.stat span { display: block; font-size: 13.5px; color: var(--ink-muted); font-weight: 700; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature { padding: 26px 24px; }

.feature .mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  border: 2px solid var(--ink);
  margin-bottom: 16px;
}

.feature h3 { margin: 0 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   Bands
   -------------------------------------------------------------------------- */

.band {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(24px, 3vw, 36px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
}

.band h2 { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 38px); }
.band p { margin: 0 0 22px; color: var(--ink-muted); }
.band-science { background: var(--card-warm); }
.band-privacy { background: var(--accent-soft); }

.band-aside {
  padding: 24px;
  rotate: 1.6deg;
  display: grid;
  gap: 14px;
  justify-items: start;
}

.band-aside p { margin: 0; font-size: 14px; }

/* --------------------------------------------------------------------------
   Plans
   -------------------------------------------------------------------------- */

.plan-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }

.plan {
  padding: 28px 26px;
  display: grid;
  gap: 12px;
  justify-items: start;
}

.plan h2, .plan h3 { margin: 0; font-size: 22px; }
.plan p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.plan-featured {
  background: var(--highlight-soft);
  box-shadow: 6px 8px 0 var(--shadow);
}

.plan-price { font-size: 34px; font-weight: 900; color: var(--ink) !important; letter-spacing: -.03em; }
.plan-note { margin: 20px 0 0; text-align: center; }

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.table-wrap { padding: 8px 10px; overflow: hidden; }

.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }

.compare th, .compare td { padding: 14px 16px; text-align: start; }

.compare thead th {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 2.5px solid var(--ink);
}

.compare thead th:not(:first-child), .compare tbody td { text-align: center; }

.compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 2px dashed var(--grid); }

.compare tbody th { font-weight: 700; }
.compare tbody td { font-weight: 800; color: var(--ink-muted); }
.compare tbody td.is-pro { color: var(--ink); background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }

/* --------------------------------------------------------------------------
   Note list, principles, references
   -------------------------------------------------------------------------- */

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.note-list li { padding: 22px 24px; color: var(--ink-muted); font-size: 15px; }

.principles { display: grid; gap: 18px; }

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 28px 30px;
  align-items: start;
}

.principle-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--ink-faint);
  letter-spacing: -.04em;
  line-height: 1;
}

.principle h2 { margin: 0 0 10px; font-size: clamp(21px, 2.4vw, 27px); }
.principle p { margin: 0; color: var(--ink-muted); }

.refs { padding: clamp(26px, 3.5vw, 38px); }
.refs h2 { margin: 0 0 8px; font-size: 26px; }
.refs > .muted { margin: 0 0 22px; max-width: 46em; }

.ref-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.ref-list a {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 2px solid var(--grid);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}

.ref-list a:hover { border-color: var(--ink); background: var(--accent-soft); }
.ref-list strong { font-size: 15.5px; }
.ref-list .muted { font-size: 13.5px; }

.disclaimer {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-inline-start: 5px solid var(--blush);
  background: color-mix(in srgb, var(--highlight-soft) 70%, transparent);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero { padding: clamp(36px, 5vw, 60px) 0 clamp(16px, 2vw, 24px); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.page-hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
}

.page-hero-wide {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.page-hero-wide h1 { margin-top: 14px; }

.meta {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.glance { padding: 26px 30px; }
.glance h2 { margin: 0 0 14px; font-size: 19px; }
.glance ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.glance li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
}

.glance .ico { color: var(--success); margin-top: 5px; }

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-bottom: clamp(48px, 7vw, 84px);
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  padding: 22px 24px;
  font-size: 14.5px;
}

.legal-toc h2 {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.legal-toc ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 7px; }
.legal-toc a { text-decoration: none; color: var(--ink-muted); font-weight: 700; }
.legal-toc a:hover { color: var(--ink); text-decoration: underline; }

.prose { display: grid; gap: 16px; }
.prose article { padding: 26px 30px; scroll-margin-top: calc(var(--nav-h) + 20px); }

.prose h2 {
  margin: 0 0 12px;
  font-size: 21px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.legal-num { font-size: 14px; font-weight: 900; color: var(--ink-faint); }

.prose p { margin: 0; color: var(--ink-muted); }
.prose a { font-weight: 800; color: var(--ink); }

/* --------------------------------------------------------------------------
   Specs
   -------------------------------------------------------------------------- */

.spec { padding: clamp(26px, 3.5vw, 38px); }
.spec h2 { margin: 0 0 20px; font-size: 26px; }

.spec-list { margin: 0; display: grid; gap: 0; }

.spec-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  padding: 15px 0;
}

.spec-row + .spec-row { border-top: 2px dashed var(--grid); }

.spec-row dt { font-weight: 800; }
.spec-row dd { margin: 0; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   FAQ and contact
   -------------------------------------------------------------------------- */

.faq-group + .faq-group { margin-top: 40px; }

/* Wins over the `.section h2` display size when the label is a real heading. */
.section h2.section-label { font-size: 13px; line-height: 1.4; margin-bottom: 14px; }

.faq { display: grid; gap: 12px; }

.faq details { padding: 4px 24px; transition: background .16s var(--ease); }
.faq details[open] { background: var(--card-warm); }

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
}

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

.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-muted);
  flex: none;
}

.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--ink-muted); font-size: 15.5px; }

.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px, 3vw, 36px);
  padding: clamp(24px, 3.5vw, 36px);
  align-items: start;
}

.contact-mail {
  display: inline-block;
  margin: 6px 0 8px;
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 26px);
  text-decoration: none;
  border-bottom: 3px solid var(--ink);
  word-break: break-all;
}

.contact-note h2 { margin: 0 0 8px; font-size: 19px; }
.contact-note p { margin: 0; font-size: 15px; }

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

.cta-band {
  text-align: center;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, var(--highlight-soft), var(--card));
  display: grid;
  justify-items: center;
}

.cta-band h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); }
.cta-band p { margin: 0; max-width: 36em; color: var(--ink-muted); }
.cta-band .btn-row { justify-content: center; }

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

.site-footer {
  border-top: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
  margin-top: 20px;
  padding: clamp(36px, 5vw, 56px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 32px;
}

.footer-brand img {
  border-radius: 15px;
  border: 2px solid var(--ink);
  box-shadow: var(--shift-sm) 0 var(--shadow);
  margin-bottom: 12px;
  object-fit: cover;
  background: #2f8a3a;
}

.footer-brand strong { display: block; font-size: 18px; }
.footer-brand p { margin: 8px 0 0; font-size: 14px; max-width: 26em; }

.footer-col h2 {
  margin: 0 0 12px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-col nav { display: grid; gap: 9px; }
.footer-col a { text-decoration: none; font-weight: 700; font-size: 15px; width: max-content; }
.footer-col a:hover { text-decoration: underline; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding-top: 22px;
  border-top: 2px dashed var(--grid);
  font-size: 13.5px;
}

.footer-base .small { flex-basis: 100%; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Redirect / 404 shells
   -------------------------------------------------------------------------- */

.redirect-page { display: grid; place-items: center; min-height: 100vh; padding: 40px 0; }

.redirect-card {
  padding: 36px 40px;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  max-width: 520px;
}

.redirect-card img {
  border-radius: 20px;
  border: 2px solid var(--ink);
  object-fit: cover;
  background: #2f8a3a;
}
.redirect-card h1 { margin: 0; font-size: 26px; }

.redirect-langs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
}

.redirect-langs a {
  display: inline-block;
  padding: 7px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.redirect-langs a:hover { background: var(--accent); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(18px); }

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1040px) {
  .nav-links a { padding: 9px 11px; font-size: 14.5px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: repeat(2, 1fr); display: grid; }
}

@media (max-width: 900px) {
  .hero, .page-hero-wide, .band { grid-template-columns: 1fr; }
  .band-aside { rotate: 0deg; }
  .features, .features-3 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .note-list { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-mascots { inset-inline-end: 50%; transform: translateX(50%); bottom: -14px; }
  html[dir="rtl"] .hero-mascots { transform: translateX(-50%); }

  /* The caption drops below the photo and tucks under its lower edge. */
  .poster-card {
    margin: -34px clamp(8px, 3vw, 24px) 0;
    rotate: .8deg;
    border-radius: var(--radius);
  }

  .poster-panel:nth-child(even) .poster-card { rotate: -.8deg; }
  .poster-frame::after { height: 30%; }
  .poster-strip-card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 14px;
  }

  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; font-size: 16px; }

  .nav { flex-wrap: wrap; padding: 12px 0; }
  .brand-text em { display: none; }
  .lang-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .steps, .features, .features-3, .plan-teaser { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat + .stat { border-inline-start: 0; }
  .stat:nth-child(even) { border-inline-start: 2px dashed var(--grid); }

  .principle { grid-template-columns: 1fr; gap: 10px; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .legal-toc ol { grid-template-columns: 1fr; }

  /* Comparison table collapses into stacked cards. */
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }

  .compare tbody tr {
    border: 2px solid var(--grid);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
    margin-bottom: 12px;
  }

  .compare tbody tr + tr th, .compare tbody tr + tr td { border-top: 0; }
  .compare tbody th { font-weight: 800; padding-bottom: 6px; }

  .compare tbody td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    text-align: start;
    padding: 8px 16px;
  }

  .compare tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--ink-faint);
  }

  .compare tbody td.is-pro { border-radius: 10px; }
}

@media (max-width: 520px) {
  .sheet { padding: 20px 12px 16px; font-size: 12px; }
  .sheet-days, .sheet-row { gap: 6px; padding-inline: 8px; }
  .sheet-cells { gap: 3px; }
  .cell { width: 20px; height: 20px; }
  .sheet-days .sheet-cells span { width: 20px; }
  .float-sticker.a, .float-sticker.c { inset-inline-start: -2px; }
  .float-sticker.b { inset-inline-end: -2px; }
  .mascot-chip { width: 72px; height: 72px; }
  .mascot-chip img { width: 54px; height: 54px; }
  .btn { width: 100%; }
  .btn-row { gap: 10px; }

  .poster-frame { border-radius: var(--radius); box-shadow: 6px 8px 0 var(--shadow); }

  /* A taller crop reads better on a phone, aimed at what each photo is about:
     the printed sheets and the phone in one, the ticked columns in the other. */
  .poster-img { aspect-ratio: 4 / 3; }
  .poster-img[data-poster="hb1"] { object-position: 26% 56%; }
  .poster-img[data-poster="hb2"] { object-position: 62% 50%; }

  .poster-tape { left: 12%; height: 26px; top: -12px; }
  .poster-strip .poster-img { height: 180px; }
  .poster-strip-card .muted { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-sticker, .btn, .reveal, .reveal.is-in { animation: none; transition: none; }
  .reveal { opacity: 1; transform: none; }
  .poster-img { animation: none; transform: none; }
  #grid-activity { display: none; }
}

@media print {
  .site-header, .site-footer, .float-sticker, #grid-activity, .skip { display: none; }
  .poster-showcase, .poster-strip-wrap { display: none; }
  body::before, body::after { display: none; }
  .sticker { box-shadow: none; }
}
