/* =========================================================
   Nmistic Apps — design system
   ========================================================= */

:root {
  --accent: #16A34A;
  --accent-soft: #ECFDF3;

  --ink: #0B0B0F;
  --ink-2: #3A3A44;
  --ink-3: #6B6B78;
  --ink-4: #9A9AA6;

  --bg: #FFFFFF;
  --surface: #F7F7F9;
  --surface-2: #F0F0F3;
  --line: rgba(11, 11, 15, 0.09);
  --line-2: rgba(11, 11, 15, 0.06);

  --cta-bg: #0B0B0F;
  --cta-fg: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(11, 11, 15, .05), 0 1px 3px rgba(11, 11, 15, .04);
  --shadow-md: 0 4px 12px rgba(11, 11, 15, .06), 0 12px 32px rgba(11, 11, 15, .06);
  --shadow-lg: 0 8px 24px rgba(11, 11, 15, .08), 0 32px 64px rgba(11, 11, 15, .10);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --gutter: clamp(20px, 5vw, 40px);
  --max: 1160px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F5F5F7;
    --ink-2: #C9C9D2;
    --ink-3: #9A9AA6;
    --ink-4: #6E6E7A;

    --bg: #08080B;
    --surface: #111116;
    --surface-2: #191920;
    --line: rgba(255, 255, 255, 0.11);
    --line-2: rgba(255, 255, 255, 0.07);

    --cta-bg: #15151C;
    --cta-fg: #F5F5F7;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .5), 0 32px 64px rgba(0, 0, 0, .45);
  }
}

:root[data-theme="dark"] {
  --ink: #F5F5F7;
  --ink-2: #C9C9D2;
  --ink-3: #9A9AA6;
  --ink-4: #6E6E7A;

  --bg: #08080B;
  --surface: #111116;
  --surface-2: #191920;
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(255, 255, 255, 0.07);

  --cta-bg: #15151C;
  --cta-fg: #F5F5F7;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .45), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .5), 0 32px 64px rgba(0, 0, 0, .45);
}

/* ---------- reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.035em; font-weight: 640; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--surface { background: var(--surface); }

.rule { height: 1px; background: var(--line-2); border: 0; margin: 0; }

/* ---------- type ---------- */

.display {
  font-size: clamp(2.5rem, 6.4vw, 4.4rem);
  letter-spacing: -0.045em;
  font-weight: 660;
  line-height: 1.02;
}

.h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); letter-spacing: -0.025em; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 56ch;
}

.muted { color: var(--ink-3); }
.small { font-size: .875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 560;
  letter-spacing: .02em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.section-head { max-width: 62ch; }
.section-head .h2 { margin-top: 14px; }
.section-head .lede { margin-top: 16px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 550;
  font-size: .95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn--accent:hover { box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 34%, transparent); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-4); }

.btn--sm { padding: 9px 16px; font-size: .875rem; }

/* ---------- store badges ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 17px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: var(--shadow-sm);
}
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store svg { width: 24px; height: 24px; flex: none; }
.store .store__txt { display: grid; line-height: 1.15; }
.store .store__sm { font-size: .64rem; opacity: .72; letter-spacing: .06em; text-transform: uppercase; }
.store .store__lg { font-size: .98rem; font-weight: 580; letter-spacing: -0.02em; }

.store--soon {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--line);
  box-shadow: none;
  cursor: default;
}
.store--soon:hover { transform: none; box-shadow: none; }
.store--soon svg { opacity: .5; }

/* ---------- header ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.hdr[data-stuck="true"] { border-bottom-color: var(--line-2); }

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.03em; }
.brand__mark { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.brand__name { font-size: 1.02rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: .92rem;
  color: var(--ink-2);
  font-weight: 500;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

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

@media (max-width: 720px) {
  .nav { display: none; }
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); }

.glow {
  position: absolute;
  inset: -160px 0 auto 0;
  height: 620px;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(46% 52% at 50% 8%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 68%),
    radial-gradient(34% 44% at 80% 20%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 70%);
  filter: blur(6px);
}

.hero__center { text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero__center .lede { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }

/* app-page hero: copy + phone */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
/* An app with no screens yet has nothing for the second column to hold. */
.hero__split--solo { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero__split--solo .hero__copy { justify-items: center; }
.hero__split--solo .lede { margin-inline: auto; }
.hero__split--solo .stores, .hero__split--solo .chips { justify-content: center; }
.hero__split--solo .app-id { justify-content: center; }

@media (max-width: 900px) {
  .hero__split { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero__split .lede { margin-inline: auto; }
  .hero__split .stores { justify-content: center; }
  .hero__split .chips { justify-content: center; }
}

.hero__copy { display: grid; gap: 22px; justify-items: start; }
@media (max-width: 900px) { .hero__copy { justify-items: center; } }

.app-id { display: flex; align-items: center; gap: 16px; }
.app-id__meta { display: grid; gap: 2px; }
.app-id__cat { font-size: .8rem; color: var(--ink-3); font-weight: 520; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: .8rem;
  font-weight: 520;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 13px;
  border-radius: 999px;
}
.chip--accent {
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ---------- app icon ---------- */

.appicon {
  border-radius: 24%;
  flex: none;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.appicon::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(0,0,0,.06);
}
.appicon svg { width: 52%; height: 52%; color: #fff; }
.appicon--lg { width: 84px; height: 84px; }
.appicon--md { width: 60px; height: 60px; }
.appicon--sm { width: 44px; height: 44px; }

/* ---------- phone mockup ---------- */

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1400px;
}

.phone {
  --pw: 258px;
  width: var(--pw);
  aspect-ratio: 258 / 540;
  flex: none;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #2C2C33, #0D0D11 40%, #2A2A31);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.phone__notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 78px; height: 21px;
  border-radius: 999px;
  background: #0A0A0D;
  z-index: 5;
}

.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 4px;
  font-size: .62rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  z-index: 4;
}
.phone__status .bars { display: flex; gap: 3px; align-items: flex-end; }
.phone__status .bars i { display: block; width: 3px; background: currentColor; border-radius: 1px; opacity: .85; }
.phone__status .bars i:nth-child(1) { height: 4px; }
.phone__status .bars i:nth-child(2) { height: 6px; }
.phone__status .bars i:nth-child(3) { height: 8px; }
.phone__status .bars i:nth-child(4) { height: 10px; }

.phone__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.phone__home {
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: .22;
  z-index: 6;
}

.phone__label {
  position: absolute;
  bottom: -40px; left: 0; right: 0;
  text-align: center;
  font-size: .76rem;
  color: var(--ink-4);
  font-weight: 520;
}

.phones--stage { padding-bottom: 52px; }
.phones--stage .phone { transition: transform .4s cubic-bezier(.2,.7,.3,1); }
.phones--stage .phone:nth-child(1) { --pw: 224px; transform: translateY(24px) rotate(-5deg); z-index: 1; margin-right: -26px; }
.phones--stage .phone:nth-child(2) { z-index: 3; }
.phones--stage .phone:nth-child(3) { --pw: 224px; transform: translateY(24px) rotate(5deg); z-index: 1; margin-left: -26px; }
.phones--stage:hover .phone:nth-child(1) { transform: translateY(12px) rotate(-7deg); }
.phones--stage:hover .phone:nth-child(3) { transform: translateY(12px) rotate(7deg); }
.phones--stage .phone:nth-child(1) .phone__label { transform: rotate(5deg); }
.phones--stage .phone:nth-child(3) .phone__label { transform: rotate(-5deg); }

@media (max-width: 620px) {
  .phones--stage .phone:nth-child(1),
  .phones--stage .phone:nth-child(3) { display: none; }
  .phone { --pw: min(258px, 72vw); }
}

/* --- screen: lock --- */

.scr-lock {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    var(--surface);
}
.scr-lock__ring {
  width: 92px; height: 92px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 7%, transparent);
  color: var(--accent);
  margin-bottom: 4px;
}
.scr-lock__ring svg { width: 38px; height: 38px; }
.scr-lock__t { font-size: .95rem; font-weight: 600; letter-spacing: -0.02em; }
.scr-lock__s { font-size: .74rem; color: var(--ink-3); line-height: 1.4; max-width: 20ch; }
.scr-lock__pill {
  margin-top: 6px;
  font-size: .66rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
}

/* --- screen: play --- */

.scr-play {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 26px 20px;
  display: grid;
  align-content: start;
  gap: 6px;
  background: linear-gradient(170deg,
    color-mix(in srgb, var(--accent) 88%, #fff),
    color-mix(in srgb, var(--accent) 96%, #000));
  color: #fff;
}
.scr-play__t { position: relative; z-index: 1; font-size: .95rem; font-weight: 620; letter-spacing: -0.02em; }
.scr-play__s { position: relative; z-index: 1; font-size: .72rem; opacity: .8; }
.scr-play__blobs { position: absolute; inset: 0; z-index: 0; }
.scr-play__blobs i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  animation: float 7s ease-in-out infinite;
}
.scr-play__blobs i:nth-child(1) { width: 88px; height: 88px; left: -18px; bottom: 96px; animation-delay: -1s; }
.scr-play__blobs i:nth-child(2) { width: 54px; height: 54px; right: 20px; bottom: 190px; background: rgba(255,255,255,.3); animation-delay: -3s; }
.scr-play__blobs i:nth-child(3) { width: 132px; height: 132px; right: -40px; bottom: -30px; animation-delay: -5s; }
.scr-play__blobs i:nth-child(4) { width: 36px; height: 36px; left: 58px; bottom: 46px; background: rgba(255,255,255,.34); animation-delay: -2s; }
.scr-play__blobs i:nth-child(5) { width: 22px; height: 22px; left: 140px; bottom: 250px; background: rgba(255,255,255,.4); animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-14px) scale(1.06); }
}

/* --- screen: list --- */

.scr-list { flex: 1; padding: 18px 16px; display: grid; align-content: start; gap: 8px; background: var(--surface); }
.scr-list__t { font-size: 1.05rem; font-weight: 640; letter-spacing: -0.03em; padding: 4px 4px 10px; }
.scr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: .74rem;
  font-weight: 500;
}
.scr-row__v { font-size: .7rem; color: var(--ink-4); }
.scr-tog { width: 30px; height: 18px; border-radius: 999px; background: var(--surface-2); position: relative; flex: none; }
.scr-tog::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 999px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: left .2s ease;
}
.scr-tog[data-on="true"] { background: var(--accent); }
.scr-tog[data-on="true"]::after { left: 14px; }

/* ---------- app grid (home) ---------- */

.appgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}
@media (max-width: 700px) { .appgrid { grid-template-columns: 1fr; } }

.appcard {
  --card-accent: var(--accent);
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.appcard::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 180px;
  background: radial-gradient(70% 100% at 20% 0%, color-mix(in srgb, var(--card-accent) 13%, transparent), transparent 72%);
  pointer-events: none;
}
.appcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--card-accent) 30%, var(--line));
}
.appcard__top { display: flex; align-items: center; gap: 15px; }
.appcard__name { font-size: 1.22rem; letter-spacing: -0.035em; font-weight: 620; }
.appcard__cat { font-size: .78rem; color: var(--ink-3); font-weight: 520; }
.appcard__body { color: var(--ink-3); font-size: .95rem; line-height: 1.55; }
.appcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 2px;
}
.appcard__plat { display: flex; align-items: center; gap: 7px; color: var(--ink-4); }
.appcard__plat svg { width: 17px; height: 17px; }
.appcard__go {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .9rem; font-weight: 550;
  color: color-mix(in srgb, var(--card-accent) 70%, var(--ink));
}
.appcard__go svg { width: 15px; height: 15px; transition: transform .2s ease; }
.appcard:hover .appcard__go svg { transform: translateX(3px); }
.appcard__link { position: absolute; inset: 0; }

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.feature {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 26%, var(--line)); transform: translateY(-2px); }
.feature__ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
  margin-bottom: 2px;
}
.feature__ico svg { width: 20px; height: 20px; }
.feature__t { font-size: 1.03rem; font-weight: 600; letter-spacing: -0.025em; }
.feature__b { font-size: .92rem; color: var(--ink-3); line-height: 1.58; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  position: relative;
}
.step__n {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-size: .8rem; font-weight: 620;
  margin-bottom: 2px;
}
.step__t { font-size: .98rem; font-weight: 600; letter-spacing: -0.02em; }
.step__b { font-size: .9rem; color: var(--ink-3); line-height: 1.55; }

/* ---------- split panel (privacy / about) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { display: grid; gap: 12px; margin-top: 26px; }
.checklist li { display: flex; align-items: flex-start; gap: 11px; font-size: .95rem; color: var(--ink-2); }
.checklist svg { width: 19px; height: 19px; flex: none; color: var(--accent); margin-top: 2px; }

.panel {
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: clamp(28px, 4vw, 44px);
}

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.principle { display: grid; gap: 12px; align-content: start; }
.principle__ico {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.principle__ico svg { width: 20px; height: 20px; }
.principle__t { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.025em; }
.principle__b { font-size: .93rem; color: var(--ink-3); line-height: 1.6; }

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

.faq { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--line-2); }

.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 1.02rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  transition: color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__sign {
  width: 22px; height: 22px; flex: none;
  position: relative;
  margin-top: 3px;
  color: var(--ink-4);
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; inset: 50% 2px auto 2px;
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .22s ease;
}
.faq__sign::after { transform: rotate(90deg); }
.faq details[open] .faq__sign::after { transform: rotate(0deg); }
.faq details[open] .faq__sign { color: var(--accent); }
.faq__a { padding: 0 44px 24px 4px; color: var(--ink-3); font-size: .96rem; line-height: 1.62; max-width: 70ch; }

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

.cta {
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 68px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: 1px solid var(--line-2);
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .h2 { max-width: 20ch; }
.cta__sub { color: color-mix(in srgb, var(--cta-fg) 64%, transparent); max-width: 52ch; font-size: 1.02rem; }
.cta .store { background: var(--cta-fg); color: var(--cta-bg); border-color: var(--cta-fg); }

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

.ftr { border-top: 1px solid var(--line-2); padding-block: 56px 40px; }
.ftr__in {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}
@media (max-width: 760px) { .ftr__in { grid-template-columns: 1fr 1fr; } .ftr__brand { grid-column: 1 / -1; } }

.ftr__brand { display: grid; gap: 14px; align-content: start; max-width: 34ch; }
.ftr__tag { font-size: .92rem; color: var(--ink-3); line-height: 1.6; }
.ftr__h { font-size: .78rem; font-weight: 620; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
.ftr__links { display: grid; gap: 10px; }
.ftr__links a { font-size: .93rem; color: var(--ink-2); transition: color .16s ease; }
.ftr__links a:hover { color: var(--accent); }
.ftr__base {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-2);
  font-size: .85rem; color: var(--ink-4);
}

/* ---------- theme toggle ---------- */

.tog {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
  flex: none;
}
.tog:hover { background: var(--surface); color: var(--ink); }
.tog svg { width: 17px; height: 17px; }
.tog .ico-moon { display: none; }
:root[data-theme="dark"] .tog .ico-moon { display: block; }
:root[data-theme="dark"] .tog .ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tog .ico-moon { display: block; }
  :root:not([data-theme="light"]) .tog .ico-sun { display: none; }
}

/* ---------- legal / prose pages ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.35rem; margin-top: 40px; margin-bottom: 12px; letter-spacing: -0.03em; }
.prose p { color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; font-size: .98rem; }
.prose ul { display: grid; gap: 8px; margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.prose li { color: var(--ink-2); line-height: 1.65; font-size: .98rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal on scroll ---------- */

.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

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

.center-stack {
  min-height: 62vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 20px;
}
