/*
 * QuietFocus website — shared stylesheet.
 * No external resources; logical properties throughout so ar/he (dir="rtl") mirror correctly.
 * CSP-friendly: the HTML has no inline styles, everything lives here.
 */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #FFFAF6;
  --bg-alt: #FFF3EC;
  --surface: #FFFFFF;
  --soft: #FDE6DA;
  --soft-2: #FBD5C2;
  --text: #2B1E1A;
  --text-2: #5A4842;
  --muted: #7C6A62;
  --accent: #E5623F;
  --accent-2: #F28A5B;
  --link: #B5442A;
  --link-hover: #8F3420;
  --icon-fg: #C2462A;
  --border: #F1DFD5;
  --border-strong: #E5C9BA;
  --ring: #B5442A;

  /* Primary button: white text keeps >= 4.5:1 on both gradient stops. */
  --btn-bg: linear-gradient(135deg, #C94A2A 0%, #AE3E24 100%);
  --btn-bg-hover: linear-gradient(135deg, #BC4426 0%, #9C371F 100%);
  --btn-text: #FFFFFF;
  --btn-glow: rgb(201 74 42 / 0.55);

  --glow-1: rgb(242 138 91 / 0.24);
  --glow-2: rgb(253 230 218 / 0.95);

  --shadow-sm: 0 1px 2px rgb(43 30 26 / 0.04), 0 4px 14px -6px rgb(120 60 40 / 0.12);
  --shadow: 0 1px 2px rgb(43 30 26 / 0.04), 0 14px 36px -14px rgb(176 72 40 / 0.28);
  --shadow-lg: 0 2px 6px rgb(43 30 26 / 0.05), 0 34px 70px -24px rgb(176 72 40 / 0.42);

  --cta-bg: #2B1E1A;
  --cta-text: #FFF4EE;
  --cta-text-2: #EBD3C7;

  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;

  --container: 1180px;
  --pad: clamp(1rem, 0.55rem + 2.2vw, 2rem);
  --header-h: 76px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial,
    "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Thai", "Noto Sans Devanagari", "Hiragino Sans", "Yu Gothic UI",
    "Meiryo", "PingFang SC", "Microsoft YaHei", "Malgun Gothic", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1513;
    --bg-alt: #211916;
    --surface: #2A201D;
    --soft: #3A2722;
    --soft-2: #4A2F27;
    --text: #F6ECE6;
    --text-2: #D9C9C0;
    --muted: #BFAEA5;
    --accent: #F27A55;
    --accent-2: #F28A5B;
    --link: #F59573;
    --link-hover: #FFB79C;
    --icon-fg: #F59573;
    --border: #3A2D29;
    --border-strong: #4D3B35;
    --ring: #F59B7C;

    --btn-bg: linear-gradient(135deg, #F58E6D 0%, #F27A55 100%);
    --btn-bg-hover: linear-gradient(135deg, #F8A285 0%, #F48A68 100%);
    --btn-text: #1C1513;
    --btn-glow: rgb(242 122 85 / 0.35);

    --glow-1: rgb(242 122 85 / 0.16);
    --glow-2: rgb(90 46 34 / 0.55);

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 14px -6px rgb(0 0 0 / 0.4);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -16px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 36px 70px -24px rgb(0 0 0 / 0.75);

    --cta-bg: #2A201D;
    --cta-text: #FFF4EE;
    --cta-text-2: #E3CDC2;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: opacity 0.18s ease;
}

/* While a non-English dictionary loads (set by i18n.js; removed after at most 2.5 s). */
html.qf-pending body {
  opacity: 0;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

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

img {
  height: auto;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
  font-weight: 750;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

h1 {
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.65rem);
  letter-spacing: -0.02em;
  margin-block: 0 0.75rem;
}

h3 {
  letter-spacing: -0.01em;
}

.lead {
  text-wrap: pretty;
}

/* Scripts that do not like tight tracking or need taller lines. */
:lang(ar) :is(h1, h2, h3),
:lang(he) :is(h1, h2, h3),
:lang(hi) :is(h1, h2, h3),
:lang(th) :is(h1, h2, h3),
:lang(ja) :is(h1, h2, h3),
:lang(ko) :is(h1, h2, h3),
:lang(zh) :is(h1, h2, h3) {
  letter-spacing: normal;
}

:lang(hi) body,
:lang(th) body,
:lang(ar) body {
  line-height: 1.75;
}

:lang(hi) :is(h1, h2, h3),
:lang(th) :is(h1, h2, h3),
:lang(ar) :is(h1, h2, h3) {
  line-height: 1.35;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

::selection {
  background: var(--soft-2);
  color: var(--text);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -200px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.container {
  width: min(100% - 2 * var(--pad), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2 * var(--pad), 780px);
  margin-inline: auto;
}

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

.icon-sm {
  width: 18px;
  height: 18px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  max-width: 100%;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.btn > span {
  min-width: 0;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 24px -12px var(--btn-glow);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-text);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 16px 30px -12px var(--btn-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--link);
  padding-inline: 0.6rem;
}

.btn-ghost:hover {
  color: var(--link-hover);
  background: var(--soft);
}

.btn-lg {
  min-height: 56px;
  padding: 0.95rem 1.8rem;
  font-size: 1.06rem;
}

.btn-sm {
  min-height: 42px;
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  min-height: var(--header-h);
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-inline-end: auto;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 780;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 12px;
}

.brand:hover {
  color: var(--text);
}

.brand .logo {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 4px 8px rgb(224 83 58 / 0.28));
}

.main-nav {
  order: 5;
  flex: 1 1 100%;
  border-block-start: 1px solid var(--border);
  padding-block-start: 0.5rem;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--soft);
  color: var(--text);
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1100px) {
  .site-header {
    position: sticky;
    inset-block-start: 0;
  }

  html {
    scroll-padding-block-start: calc(var(--header-h) + 12px);
  }

  .main-nav {
    order: 0;
    flex: 0 1 auto;
    border: 0;
    padding: 0;
  }

  .main-nav ul {
    flex-wrap: nowrap;
  }

  .main-nav a {
    white-space: nowrap;
  }
}

/* Language switcher (revealed by i18n.js) */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.lang .icon {
  position: absolute;
  inset-inline-start: 0.7rem;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.lang .chev {
  inset-inline-start: auto;
  inset-inline-end: 0.7rem;
  width: 14px;
  height: 14px;
}

.lang select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 42px;
  max-width: 13rem;
  padding-block: 0.45rem;
  padding-inline: 2.2rem 2rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  text-overflow: ellipsis;
  cursor: pointer;
}

.lang select:hover {
  border-color: var(--accent);
}

@media (max-width: 520px) {
  .header-inner {
    column-gap: 0.6rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 1.1rem;
  }

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

  .lang select {
    max-width: 9.5rem;
    padding-inline: 2rem 1.75rem;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(4rem, 2.8rem + 4.5vw, 7rem);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin-inline: auto;
  margin-block-end: clamp(2.25rem, 1.5rem + 2vw, 3.5rem);
  text-align: center;
}

.section-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 1.15rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.5rem, 1.2rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5vw, 7rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 55% at 82% 30%, var(--glow-1), transparent 72%),
    radial-gradient(45% 45% at 8% 0%, var(--glow-2), transparent 70%);
  pointer-events: none;
}

[dir="rtl"] .hero::before {
  background:
    radial-gradient(50% 55% at 18% 30%, var(--glow-1), transparent 72%),
    radial-gradient(45% 45% at 92% 0%, var(--glow-2), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin: 0;
  padding-block: 0.4rem;
  padding-inline: 0.8rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(229 98 63 / 0.18);
}

.hero h1 {
  margin-block: 1.4rem 1.2rem;
  font-size: clamp(2.35rem, 1.45rem + 3.6vw, 4.15rem);
  line-height: 1.04;
}

.hero .lead {
  max-width: 34em;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-block-start: 2rem;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-block: 1.4rem 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.hero-note .icon {
  color: var(--icon-fg);
}

.hero-visual {
  position: relative;
  width: min(100%, 470px);
  margin-inline: auto;
  aspect-ratio: 470 / 560;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 0 2%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--soft-2), transparent 68%);
  opacity: 0.9;
}

.hero-shot {
  position: absolute;
  margin: 0;
}

.hero-shot-front {
  z-index: 2;
  width: 66%;
  inset-block-start: 5%;
  inset-inline-start: 4%;
}

.hero-shot-back {
  z-index: 1;
  width: 54%;
  inset-block-start: 17%;
  inset-inline-end: 3%;
  transform: rotate(6deg);
  opacity: 0.96;
}

[dir="rtl"] .hero-shot-back {
  transform: rotate(-6deg);
}

/* ---------- Screenshot frames (stable even while images are missing) ---------- */
.shot-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--soft);
  box-shadow: var(--shadow-lg);
}

.shot-frame picture {
  display: block;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 380 / 580;
  background: linear-gradient(160deg, var(--soft), var(--bg-alt));
  object-fit: cover;
  /* Alt text while an image is missing */
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.shot-frame-wide {
  border-radius: 20px;
}

.shot-frame-wide img {
  aspect-ratio: 1280 / 800;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature {
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.feature h3 {
  margin-block: 0 0.5rem;
  font-size: 1.14rem;
}

.feature p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.99rem;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-block-end: 1.15rem;
  border-radius: 15px;
  background: var(--soft);
  color: var(--icon-fg);
}

.icon-badge .icon {
  width: 26px;
  height: 26px;
}

/* ---------- Steps (how it works / welcome) ---------- */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.step {
  position: relative;
  padding: 1.75rem 1.6rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-block-end: 1.15rem;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 18px -8px var(--btn-glow);
}

.step h3 {
  margin-block: 0 0.45rem;
  font-size: 1.2rem;
}

.step p {
  margin: 0;
  color: var(--text-2);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0;
  min-width: 0;
}

.shot .shot-frame {
  width: 100%;
  max-width: 330px;
}

.shot figcaption {
  color: var(--text-2);
  font-weight: 650;
  text-align: center;
}

.shot-wide {
  margin-block-start: clamp(2rem, 1rem + 3vw, 3.5rem);
}

.shot-wide .shot-frame {
  max-width: 980px;
}

@media (max-width: 719px) {
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(74%, 300px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-block: 0.5rem 1.5rem;
    padding-inline: 0.25rem;
    scrollbar-width: thin;
  }

  .gallery > li {
    scroll-snap-align: center;
  }

  .gallery .shot-frame {
    box-shadow: var(--shadow);
  }
}

/* ---------- Privacy band ---------- */
.privacy-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--soft) 0%, var(--surface) 75%);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 800px) {
  .privacy-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2.75rem;
  }
}

.privacy-emblem {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 32px;
  background: var(--surface);
  color: var(--icon-fg);
  box-shadow: var(--shadow);
}

.privacy-emblem .icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.5;
}

.privacy-card h2 {
  margin-block-end: 0.6rem;
}

.privacy-card p {
  max-width: 46em;
  margin-block: 0 1.4rem;
  color: var(--text-2);
  font-size: 1.1rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 840px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: 18px;
  font-size: 1.07rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary:hover {
  color: var(--link);
}

.faq-q {
  min-width: 0;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--soft);
  color: var(--icon-fg);
  transition: transform 0.2s ease;
}

.faq-icon .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.35rem 1.3rem;
  color: var(--text-2);
}

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.75rem, 1.5rem + 4vw, 4.75rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cta-bg);
  color: var(--cta-text);
  text-align: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 80% at 100% 0%, rgb(242 138 91 / 0.45), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgb(229 98 63 / 0.35), transparent 70%);
}

.cta-band .logo {
  width: 64px;
  height: 64px;
  margin-block-end: 1.1rem;
  filter: drop-shadow(0 10px 18px rgb(0 0 0 / 0.3));
}

.cta-band h2 {
  color: var(--cta-text);
}

.cta-band p {
  max-width: 36em;
  margin-block: 0 2rem;
  margin-inline: auto;
  color: var(--cta-text-2);
  font-size: 1.15rem;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-block-start: clamp(3rem, 2rem + 3vw, 5rem);
}

/* The landing page ends with a padded section, so no extra gap is needed. */
main > .section:last-child {
  padding-block-end: clamp(2.5rem, 2rem + 2vw, 4rem);
}

main:has(> .section:last-child) + .site-footer {
  margin-block-start: 0;
}

.site-footer {
  padding-block: 2.25rem 2.5rem;
  border-block-start: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.footer-brand .logo {
  width: 30px;
  height: 30px;
  flex: none;
}

.footer-brand p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-2);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* ---------- Generic sub pages ---------- */
.page-hero {
  padding-block: clamp(2.75rem, 1.75rem + 4vw, 5rem) clamp(1.75rem, 1rem + 2vw, 2.75rem);
  text-align: center;
}

.page-hero h1 {
  margin-block: 0 0.75rem;
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem);
}

.page-hero .lead {
  max-width: 36em;
  margin: 0 auto;
  color: var(--text-2);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
}

.page-hero .logo-xl {
  width: 84px;
  height: 84px;
  margin-block-end: 1.25rem;
  filter: drop-shadow(0 14px 22px rgb(224 83 58 / 0.32));
}

.card {
  padding: clamp(1.4rem, 1rem + 2vw, 2.4rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.meta-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* Privacy policy */
.prose {
  padding-block-end: 1rem;
}

.prose .lead {
  margin-block: 0 0.5rem;
  color: var(--text);
  font-size: 1.15rem;
}

.prose section {
  padding-block-start: 1.75rem;
  margin-block-start: 1.75rem;
  border-block-start: 1px solid var(--border);
}

.prose h2 {
  margin-block: 0 0.6rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0;
  color: var(--text-2);
}

.prose a {
  overflow-wrap: anywhere;
}

/* Changelog */
.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-block-end: 1.25rem;
  padding-block-end: 1rem;
  border-block-end: 1px solid var(--border);
}

.release-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.release-date {
  color: var(--muted);
  font-weight: 600;
}

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

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-2);
}

.checklist .tick {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  margin-block-start: 0.05rem;
  border-radius: 50%;
  background: var(--soft);
  color: var(--icon-fg);
}

.checklist .tick .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.6;
}

.checklist li > span:last-child {
  min-width: 0;
}

/* Welcome */
.version-pill {
  display: inline-block;
  margin-block-end: 1rem;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin-block-start: clamp(1.25rem, 0.5rem + 2vw, 2rem);
}

@media (min-width: 900px) {
  .welcome-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.pin-card h2,
.note-card h2 {
  margin-block: 0 1.1rem;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  letter-spacing: -0.01em;
}

.toolbar-art {
  display: block;
  width: 100%;
  height: auto;
  margin-block-end: 1.25rem;
  border-radius: 14px;
}

.pin-steps {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pin-steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text-2);
}

.pin-steps .icon-badge {
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 12px;
  flex: none;
}

.pin-steps .icon-badge .icon,
.pin-steps .icon-badge .logo {
  width: 22px;
  height: 22px;
}

.pin-steps li > span:last-child {
  min-width: 0;
}

.note-card {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  background: linear-gradient(150deg, var(--soft) 0%, var(--surface) 80%);
}

.note-card .privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
}

.note-card .privacy-line .icon {
  width: 30px;
  height: 30px;
  color: var(--icon-fg);
}

.note-card .privacy-line span {
  min-width: 0;
}

/* Uninstall */
.feedback {
  display: grid;
  gap: 1.25rem;
}

.reasons {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.reasons legend {
  margin-block-end: 0.9rem;
  padding: 0;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 700;
}

.reason {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.reason:hover {
  border-color: var(--accent);
}

.reason:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.reason:has(input:focus-visible) {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.reason input {
  width: 20px;
  height: 20px;
  flex: none;
  margin: 0;
  accent-color: var(--link);
}

.reason input:focus-visible {
  outline: none;
}

.reason span {
  min-width: 0;
}

.feedback .btn {
  justify-self: start;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.reinstall {
  display: flex;
  justify-content: center;
  margin-block-start: 2rem;
}

.calm-art {
  display: block;
  width: 96px;
  height: 96px;
  margin-inline: auto;
  margin-block-end: 1.25rem;
}

.calm-art .ca-bg {
  fill: var(--soft);
}

.calm-art .ca-star {
  fill: var(--accent-2);
  opacity: 0.85;
}

/* Toolbar illustration on the welcome page */
.toolbar-art .ta-frame {
  fill: var(--bg-alt);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.toolbar-art .ta-dot {
  fill: var(--border-strong);
}

.toolbar-art .ta-bar {
  fill: var(--surface);
  stroke: var(--border);
}

.toolbar-art .ta-line {
  fill: var(--border-strong);
}

.toolbar-art .ta-hl {
  fill: var(--soft);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.toolbar-art .ta-ico,
.toolbar-art .ta-pin {
  fill: none;
  stroke: var(--icon-fg);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar-art .ta-pinbg {
  fill: var(--soft);
}

.toolbar-art .ta-cursor {
  fill: var(--text);
  stroke: var(--surface);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

/* 404 */
.notfound {
  padding-block: clamp(3rem, 2rem + 6vw, 7rem);
  text-align: center;
}

.notfound .calm-art {
  width: 140px;
  height: 140px;
}

.notfound h1 {
  margin-block: 0 0.75rem;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
}

.notfound p {
  margin-block: 0 2rem;
  color: var(--text-2);
  font-size: 1.15rem;
}

.center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .feature:hover,
  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .lang {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
