/* Noo marketing site — tokens mirror lib/theme/design_tokens.dart exactly,
   so this reads as the same product, not a separate marketing skin. The
   short names (--sf, --act, --acs ...) match the ones the interactive
   mockups use inside the phone, so a mock card and the page share one set. */

:root {
  --bg: #F3EFE6;
  --sf: #FFFFFF;
  --sf2: #F6F5F2;
  --sf3: #EAE8E2;
  --ln: #EAE8E2;
  --fg1: #0E0D0B;
  --fg2: #5A5852;
  --fg3: #7C7A72;
  --ac: #8D0DE3;
  --act: #8D0DE3;
  --acs: #ECDFFF;
  --dg: #A8202A;
  --dgs: #FDE7E7;
  --dgf: #A8202A;
  --ok: #3E7A23;
  --oks: #EAF5DF;
  --wn: #8C5A0E;
  --wns: #FBEFD0;
  --in: #2940A8;
  --ins: #E6ECFE;
  --shadow: 0 24px 48px rgba(30, 0, 47, 0.14);

  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --ease: cubic-bezier(0.7, 0, 0.15, 1);
  --motion-fast: 180ms;
  --motion-base: 280ms;

  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-input: 14px;
  --radius-panel: 28px;

  --gutter: clamp(20px, 5vw, 64px);
  --content-max: 1120px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0D0B; --sf: #25241F; --sf2: #3D3C38; --sf3: #5A5852; --ln: #3D3C38;
    --fg1: #F3EFE6; --fg2: #BDBAB1; --fg3: #9E9B92;
    --act: #CBA5FD; --acs: #2F0454;
    --dg: #F49E9E; --dgs: #560F18;
    --ok: #B7DD9F; --oks: #1E3F10; --wn: #F0C26C; --wns: #4A3208; --in: #B6C3FB; --ins: #1C2B73;
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0E0D0B; --sf: #25241F; --sf2: #3D3C38; --sf3: #5A5852; --ln: #3D3C38;
  --fg1: #F3EFE6; --fg2: #BDBAB1; --fg3: #9E9B92;
  --act: #CBA5FD; --acs: #2F0454;
  --dg: #F49E9E; --dgs: #560F18;
  --ok: #B7DD9F; --oks: #1E3F10; --wn: #F0C26C; --wns: #4A3208; --in: #B6C3FB; --ins: #1C2B73;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg1);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Lucide glyphs from icons.svg */
.i {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ac);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-input);
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--act);
  margin: 0 0 12px;
}

.text-link { color: var(--act); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ac); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-outline { background: transparent; color: var(--fg1); border-color: var(--ln); }
.btn-outline:hover { background: var(--sf2); }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--ln);
}

.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--fg1);
  margin-right: auto;
}
.wordmark-sm { font-size: 18px; }

/* The app's own monochrome mark (noo-mark.png), tinted with the accent. */
.wordmark-mark {
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--ac);
  -webkit-mask: url("noo-mark.png") center / 132% no-repeat;
  mask: url("noo-mark.png") center / 132% no-repeat;
}
.wordmark-sm .wordmark-mark { width: 28px; height: 28px; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg2);
  transition: color var(--motion-fast) var(--ease);
}
.site-nav a:hover { color: var(--fg1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: -6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--fg1);
  transition: transform var(--motion-base) var(--ease), opacity var(--motion-base) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 20px;
  border-top: 1px solid var(--ln);
}
.mobile-nav a {
  padding: 12px 4px;
  text-decoration: none;
  color: var(--fg1);
  font-weight: 500;
  border-bottom: 1px solid var(--ln);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 8px; text-align: center; }
.mobile-nav.is-open { display: flex; }

@media (max-width: 760px) {
  .site-nav, .header-row > .btn { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: clip; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.hero-copy h1 { font-size: clamp(38px, 5.2vw, 60px); line-height: 1.02; margin-bottom: 20px; }
.hero-copy h1 em { font-style: normal; color: var(--act); }

.hero-sub { font-size: clamp(16px, 1.6vw, 18px); color: var(--fg2); max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-proof {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg3);
}
.hero-proof li { display: flex; align-items: center; gap: 7px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); }

/* ---------- hero exploded visual ---------- */

.hero-visual {
  position: relative;
  min-height: clamp(420px, 50vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow {
  position: absolute;
  inset: -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ac) 16%, transparent), transparent 70%);
  pointer-events: none;
}

.phone-wrap { position: relative; zoom: 0.78; will-change: transform; }
.phone-wrap-lg { zoom: 1; }

.chip {
  position: absolute;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: var(--radius-card);
  will-change: transform;
  box-shadow: var(--shadow);
  z-index: 2;
}

.chip-photo { top: 4%; right: 0; width: 92px; height: 92px; padding: 8px; transform: rotate(-6deg); }
.chip-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; height: 100%; }
.chip-photo-grid span { border-radius: 8px; }
.chip-photo-grid span:nth-child(1) { background: #8DCDE2; }
.chip-photo-grid span:nth-child(2) { background: #E5D8BD; }
.chip-photo-grid span:nth-child(3) { background: #DA9AC7; }
.chip-photo-grid span:nth-child(4) { background: #A7D296; }

.chip-share {
  bottom: 22%; right: -2%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  transform: rotate(4deg);
  color: var(--act);
}
.chip-share span { display: flex; flex-direction: column; line-height: 1.2; color: var(--fg1); font-size: 13px; }
.chip-share b { font-weight: 600; }
.chip-share i { font-style: normal; color: var(--fg3); font-size: 12px; }

.chip-lock {
  top: 16%; left: -2%;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  transform: rotate(-3deg);
  color: var(--act);
}
.chip-lock span { color: var(--fg1); }

.chip-badge {
  bottom: -2%; left: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  transform: rotate(-2deg);
  color: var(--ok);
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-copy .hero-sub { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { order: 1; }
}
@media (max-width: 480px) {
  .chip-photo, .chip-share { display: none; }
  .phone-wrap { zoom: 0.7; }
  .phone-wrap-lg { zoom: 0.9; }
}

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--sf); }

.section h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; max-width: 20ch; }
.section-sub { font-size: clamp(15px, 1.4vw, 17px); color: var(--fg2); max-width: 56ch; margin: 16px 0 0; }

/* ---------- feature showcases ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin-top: clamp(48px, 7vw, 88px);
}
.showcase-flip .showcase-copy { order: 2; }
.showcase-flip .showcase-demo { order: 1; }

.feat-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-input);
  background: var(--acs);
  color: var(--act);
}
.showcase-copy h3 { font-size: clamp(22px, 2.4vw, 28px); margin: 16px 0 12px; line-height: 1.15; }
.showcase-copy p { margin: 0 0 12px; color: var(--fg2); max-width: 48ch; }
.showcase-copy .demo-note { font-size: 14px; color: var(--fg3); }

@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase-flip .showcase-copy { order: 1; }
  .showcase-flip .showcase-demo { order: 2; }
}

/* ---------- mock cards (settings-style groups, sheets) ---------- */

.mock-card {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow);
}
.section-alt .mock-card { background: var(--bg); box-shadow: none; }
.section-alt .mock-card .srow, .section-alt .mock-card .tab-row { background: var(--sf); }
.mock-card h3 { font-size: 20px; margin-bottom: 8px; }
.mock-card > p { margin: 0 0 16px; color: var(--fg2); font-size: 14px; }
.mock-title { font-size: 15px; color: var(--fg3); font-weight: 600; margin: 0 0 12px 4px; }

.mock-group { display: flex; flex-direction: column; gap: 1px; background: var(--ln); border-radius: var(--radius-card); overflow: hidden; }

.srow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  background: var(--sf2);
  border: 0;
  text-align: left;
  font: inherit;
  cursor: default;
}
button.srow { cursor: pointer; }
button.srow:hover { filter: brightness(0.98); }
.srow.is-disabled { opacity: 0.45; }
.srow-ic { display: inline-flex; color: var(--fg2); flex: none; }
.srow-accent { color: var(--act); }
.srow-accent .srow-main b { color: var(--act); }
.srow-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srow-main b { font-size: 15px; font-weight: 500; line-height: 1.2; }
.srow-main i { font-style: normal; font-size: 13px; color: var(--fg3); line-height: 1.3; }

.pill-tag {
  font-size: 12px; font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--acs); color: var(--act);
}

/* NooToggle */
.toggle {
  flex: none;
  width: 46px; height: 28px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--sf3);
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background var(--motion-base) var(--ease);
}
.toggle i {
  position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--motion-base) var(--ease);
}
.toggle.is-on { background: var(--ac); }
.toggle.is-on i { transform: translateX(18px); }
.toggle:disabled { cursor: not-allowed; }
.np .toggle, .mock-group .toggle { pointer-events: auto; }

.btn-tonal {
  border: 0;
  background: var(--acs);
  color: var(--act);
  font-weight: 600;
  font-size: 13px;
  padding: 0 16px;
  height: 32px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-wide { width: 100%; justify-content: center; height: 40px; }
.btn-primary-sm {
  border: 0;
  background: var(--ac);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  height: 40px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
}

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--acs);
  border-top-color: var(--act);
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* avatars */
.av {
  --s: 36px;
  width: var(--s); height: var(--s);
  flex: none;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: calc(var(--s) * 0.38);
  color: #0E0D0B;
}
.av-current { box-shadow: 0 0 0 2px var(--bg, #fff), 0 0 0 4px var(--ac); }

/* share sheet (NooSheet) */
.sheet {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: var(--radius-panel) var(--radius-panel) var(--radius-card) var(--radius-card);
  padding: 10px 20px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 440px;
  margin-inline: auto;
}
.sheet-grab { display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--sf3); margin: 0 auto -6px; }
.sheet-title { display: flex; align-items: baseline; gap: 10px; }
.sheet-title b { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.sheet-title i { font-style: normal; font-size: 13px; color: var(--fg3); }
.sh-sec { display: flex; flex-direction: column; gap: 4px; }
.sh-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sh-head h5 { font-size: 16px; }
.sh-cap { margin: 4px 0 0; font-size: 13px; color: var(--fg3); }
.field {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px;
  background: var(--sf2);
  border-radius: var(--radius-pill);
  color: var(--fg3);
  margin-bottom: 4px;
}
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--fg1); }
.prow { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.owner { font-size: 13px; font-weight: 600; color: var(--fg3); }
.menu-wrap { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 10px 0 12px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--sf2);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  color: var(--fg1);
}
.pill .i { color: var(--fg2); }
.mini-menu {
  position: absolute; right: 0; top: 38px; z-index: 5;
  min-width: 170px;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 10px;
  padding: 4px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.mini-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 0; background: transparent; text-align: left;
  padding: 9px 10px; border-radius: 8px;
  font-size: 14px; cursor: pointer;
}
.mini-menu button:hover { background: var(--sf2); }
.mini-menu .danger { color: var(--dg); }

/* ---------- customize lab ---------- */

.lab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  margin-top: 44px;
}
.lab-phone { position: sticky; top: 96px; text-align: center; }
.lab-hint { font-size: 13px; color: var(--fg3); margin: 12px 0 0; }

.lab-controls { display: flex; flex-direction: column; gap: 16px; }
.ctl {
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}
.ctl h3 { font-size: 18px; margin-bottom: 6px; }
.ctl > p { margin: 0 0 16px; color: var(--fg2); font-size: 14px; }
.ctl-value { color: var(--act); font-weight: 600; }
.ctl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ln);
}
.ctl-row > span { display: flex; flex-direction: column; }
.ctl-row b { font-size: 15px; font-weight: 500; }
.ctl-row i { font-style: normal; font-size: 13px; color: var(--fg3); }
.ctl-row.is-disabled { opacity: 0.45; }
.ctl-row .toggle:disabled { cursor: not-allowed; }

.swatch-row { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  cursor: pointer;
  padding: 0;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--bg) inset;
  transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
}
.swatch-btn[data-accent="wallpaper"] { background: linear-gradient(135deg, #8DCDE2, #DA9AC7 50%, #E5D8BD); color: var(--fg1); }
.swatch-btn.is-active { border-color: var(--fg1); transform: scale(1.1); }
.swatch-btn:hover { transform: scale(1.1); }

/* NooSegmentedControl */
.segmented {
  display: inline-flex;
  padding: 3px;
  background: var(--sf2);
  border-radius: var(--radius-pill);
  gap: 2px;
}
.section-alt .segmented { background: var(--sf2); }
.segmented-full { display: flex; }
.segmented-full .segmented-btn { flex: 1; }
.segmented-btn {
  border: none;
  background: transparent;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg2);
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}
.segmented-btn.is-active { background: var(--acs); color: var(--act); }
.segmented-sm .segmented-btn { padding: 6px 12px; font-size: 13px; }

/* tab / action reorder list (NooTabOrderRow) */
.tab-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1px;
  background: var(--ln);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.tab-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 6px 16px 6px 8px;
  background: var(--sf);
  user-select: none;
}
.tab-row.is-dragging { background: var(--acs); position: relative; z-index: 2; box-shadow: var(--shadow); }
.grip { display: inline-flex; padding: 8px; color: var(--fg3); cursor: grab; touch-action: none; }
.tab-ic { display: inline-flex; color: var(--fg2); }
.tab-label { flex: 1; font-size: 15px; font-weight: 500; }
.where { font-size: 12px; font-weight: 600; color: var(--fg3); padding: 3px 10px; border-radius: var(--radius-pill); background: var(--sf2); }
.where.is-bar { background: var(--acs); color: var(--act); }
.ctl .tab-row { background: var(--sf); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.duo .mock-card { background: var(--bg); box-shadow: none; border: 0; padding: 24px; }
.duo .tab-row { background: var(--sf); }

@media (max-width: 1000px) {
  .lab { grid-template-columns: 1fr; }
  .lab-phone { position: static; }
  .duo { grid-template-columns: 1fr; }
}

/* selection action bar (NooSelectionBar) */
.selbar-stage { position: relative; margin-bottom: 18px; }
.selbar {
  height: 48px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px;
  background: var(--sf);
  border-radius: var(--radius-card);
}
.selbar-x { width: 36px; height: 36px; border-radius: 50%; background: var(--sf2); display: inline-flex; align-items: center; justify-content: center; }
.selbar b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.selbar-acts { margin-left: auto; display: flex; align-items: center; }
.selbar-btn { border: 0; background: transparent; padding: 10px; color: var(--act); cursor: pointer; border-radius: 50%; display: inline-flex; }
.selbar-btn:hover { background: var(--acs); }
.sheet-mini {
  margin-top: 8px;
  background: var(--sf);
  border-radius: var(--radius-panel) var(--radius-panel) var(--radius-card) var(--radius-card);
  padding: 10px 16px 14px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 1px;
}
.sheet-mini .sheet-grab { margin-bottom: 8px; }
.sheet-mini .srow { background: var(--sf2); }
.sheet-mini .srow:first-of-type { border-radius: var(--radius-card) var(--radius-card) 0 0; }
.sheet-mini .srow:last-child { border-radius: 0 0 var(--radius-card) var(--radius-card); }
.sheet-mini .srow:only-of-type { border-radius: var(--radius-card); }

/* swipe demo */
.swipe-pick { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.swipe-pick > span { width: 84px; font-size: 14px; font-weight: 600; color: var(--fg2); }
.swipe-stage { position: relative; margin-top: 16px; }
.swipe-list { background: var(--sf); border-radius: var(--radius-card); overflow: hidden; }
.sw { position: relative; height: 64px; overflow: hidden; transition: height var(--motion-base) var(--ease), opacity var(--motion-base) var(--ease); touch-action: pan-y; user-select: none; cursor: grab; border-bottom: 1px solid var(--ln); }
.sw:last-child { border-bottom: 0; }
.sw.is-gone { height: 0; opacity: 0; }
.sw-fg { position: absolute; inset: 0; background: var(--sf); transform: translateX(var(--dx, 0px)); transition: transform var(--motion-base) var(--ease); }
.sw.is-dragging .sw-fg { transition: none; }
.sw-block {
  position: absolute; top: 0; bottom: 0;
  color: #fff;
  display: none;
  align-items: center;
}
.sw-right { left: 0; right: 0; justify-content: flex-start; }
.sw-left { left: 0; right: 0; justify-content: flex-end; }
.sw.show-right .sw-right, .sw.show-left .sw-left { display: flex; }
.sw-inner { width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: transform var(--motion-fast) var(--ease); }
.sw-inner b { font-size: 12px; font-weight: 600; }
.sw.is-through .sw-inner { transform: scale(1.12); }
.swipe-toast {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--fg1); color: var(--bg);
  padding: 10px 14px; border-radius: var(--radius-input);
  font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--motion-base) var(--ease), transform var(--motion-base) var(--ease);
  pointer-events: none;
}
.swipe-toast.is-on { opacity: 1; transform: none; }

/* ---------- tab grid ---------- */

.tab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.tab-chip {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--sf);
  border-radius: var(--radius-card);
  padding: 22px;
}
.tab-chip-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-input);
  background: var(--acs); color: var(--act);
}
.tab-chip h3 { font-size: 18px; margin-bottom: 4px; }
.tab-chip p { margin: 0; color: var(--fg2); font-size: 14px; }
@media (max-width: 960px) { .tab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tab-grid { grid-template-columns: 1fr; } }

/* ---------- privacy teaser ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.privacy-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-points li {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg);
  border-radius: var(--radius-input);
  padding: 16px 18px;
  font-weight: 500;
}
.pt-ic {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 40px; height: 40px;
  border-radius: var(--radius-input);
  background: var(--acs); color: var(--act);
}
@media (max-width: 820px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- cta ---------- */

.section-cta { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.section-cta h2 { max-width: none; }
.cta-inner .section-sub { margin-bottom: 32px; }
.cta-actions { justify-content: center; }

.soon-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.soon-list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border: 1px solid var(--ln);
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  color: var(--fg2);
}
.soon-list span { font-size: 12px; font-weight: 600; color: var(--act); background: var(--acs); padding: 2px 10px; border-radius: var(--radius-pill); }
.oss-note { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--fg2); font-size: 15px; justify-content: center; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--ln); padding: 32px 0; }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-note { color: var(--fg3); font-size: 13px; margin: 0; flex: 1; min-width: 200px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 14px; text-decoration: none; color: var(--fg2); }
.footer-links a:hover { color: var(--fg1); }

/* ---------- phone mockup (Android layout) ---------- */

.phone-host { width: 356px; }
.np {
  --frame: #1B1A17;
  position: relative;
  width: 356px;
  height: 700px;
  border: 8px solid var(--frame);
  border-radius: 44px;
  background: var(--bg);
  color: var(--fg1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  text-align: left;
  line-height: 1.3;
  box-shadow: var(--shadow);
  transition: background var(--motion-base) var(--ease);
}
.np button { cursor: pointer; border: 0; background: transparent; padding: 0; }

.np-status {
  height: 28px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  font-size: 12px; font-weight: 600;
}
.np-status-i { display: inline-flex; gap: 5px; align-items: center; }

.np-top {
  height: 64px; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px 0 8px;
}
.np-ib { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--fg1); }
.np-top h4 { font-size: 22px; line-height: 1; padding-left: 8px; }
.np-ib + h4 { padding-left: 0; }
.np-top h4:has(+ .np-search) { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-top h4:not(:has(+ .np-search)) { flex: 1; }
.np-search {
  flex: 1; min-width: 0;
  height: 40px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--sf);
  color: var(--fg3);
  font-size: 14px;
}
.np-avbtn { margin-left: auto; display: inline-flex; border-radius: 50%; }
.np-search + .np-avbtn { margin-left: 0; }

.np-body { flex: 1; overflow: hidden; padding-bottom: 8px; }
.np-list { display: flex; flex-direction: column; }
.fr {
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 16px;
  border-bottom: 1px solid var(--ln);
}
.sw .fr { height: 64px; border-bottom: 0; }
.ft { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.fm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fm b { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg1); }
.fm i { font-style: normal; font-size: 13px; color: var(--fg3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb { display: inline-flex; gap: 6px; flex: none; align-items: center; }
.b-fav { color: var(--wn); fill: var(--wn); }
.b-ok { color: var(--ok); }
.b-sync { color: var(--act); }
.b-muted { color: var(--fg3); }

.np-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px 3px 0; }
.np-photos span { aspect-ratio: 1; border-radius: 4px; }

.np-fab {
  position: absolute; right: 16px;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--ac); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(30, 0, 47, 0.25);
  z-index: 3;
}

/* bottom bar - NooBottomBar */
.np-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; }
.np-bar-row { display: flex; }
.nb { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; color: var(--fg2); }
.nb-pill {
  width: 56px; height: 32px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--motion-base) var(--ease);
}
.nb-label { margin-top: 4px; font-size: 12px; font-weight: 500; line-height: 1; opacity: 0; color: var(--fg1); transition: opacity var(--motion-base) var(--ease); }
.nb.is-sel { color: var(--act); }
.nb.is-sel .nb-pill { background: var(--acs); }
.nb.is-sel .nb-label { opacity: 1; font-weight: 600; }

.np-bar.is-attached { background: var(--sf); border-top: 1px solid var(--ln); }
.np-bar.is-attached .np-bar-row { height: 80px; }
.np-bar.is-attached .nb { padding-top: 14px; }

.np-bar.is-floating { display: flex; gap: 8px; padding: 0 16px 12px; }
.np-bar.is-floating .np-bar-row {
  flex: 1; height: 64px;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(30, 0, 47, 0.14);
  overflow: hidden;
}
.np-bar.is-floating .nb { padding-top: 8px; }
.np-bar.is-floating .nb-icon { justify-content: center; padding-top: 0; color: var(--fg2); }
.nb-sat {
  width: 64px; height: 64px; flex: none;
  border-radius: 50%;
  background: var(--sf);
  border: 1px solid var(--ln);
  box-shadow: 0 24px 48px rgba(30, 0, 47, 0.14);
  color: var(--fg1);
  display: inline-flex; align-items: center; justify-content: center;
}

/* drawer + avatar menu */
.np-scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 6; }
.np-drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: 78%;
  background: var(--sf);
  border-radius: 0 28px 28px 0;
  padding: 44px 12px 16px;
  z-index: 7;
  display: flex; flex-direction: column; gap: 2px;
  animation: drawerIn var(--motion-base) var(--ease);
}
@keyframes drawerIn { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.np-drawer-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px 16px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.np-mark { width: 30px; height: 30px; background: var(--ac); -webkit-mask: url("noo-mark.png") center / 132% no-repeat; mask: url("noo-mark.png") center / 132% no-repeat; }
.np-dr {
  display: flex; align-items: center; gap: 14px;
  height: 48px; padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 500; color: var(--fg1);
  text-align: left; width: 100%;
}
.np-dr:hover { background: var(--sf2); }
.np-sep { height: 1px; background: var(--ln); margin: 8px 8px; }
.np-pop {
  position: absolute; top: 80px; right: 12px; width: 260px;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: var(--radius-card);
  padding: 8px;
  z-index: 7;
  box-shadow: 0 24px 48px rgba(30, 0, 47, 0.14);
  animation: drawerIn var(--motion-base) var(--ease);
}
.np-acct { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
.np-acct span:not(.av) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.np-acct b { font-size: 14px; font-weight: 600; }
.np-acct i { font-style: normal; font-size: 12px; color: var(--fg3); }
.np-pop .av-current { box-shadow: none; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip, .btn, .np-drawer, .np-pop, .sw-fg, .toggle, .toggle i { transition: none !important; animation: none !important; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- long-form pages (privacy policy) ---------- */

.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.doc-wrap { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.doc h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; margin-bottom: 12px; }
.doc .doc-meta { color: var(--fg3); font-size: 14px; margin: 0 0 32px; }
.doc .doc-lead {
  font-size: 18px; color: var(--fg1);
  background: var(--acs);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 0 0 40px;
}
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--fg2); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--act); }
.doc strong { color: var(--fg1); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--ln); }
.doc th { color: var(--fg1); font-weight: 600; background: var(--sf); }
.doc td { color: var(--fg2); }
.doc .toc { background: var(--sf); border-radius: var(--radius-card); padding: 18px 24px; margin: 0 0 8px; }
.doc .toc ol { margin: 0; columns: 2; column-gap: 32px; }
.doc .toc a { text-decoration: none; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
