:root {
  --ig-blue: #0095f6;
  --ig-blue-dark: #1877f2;
  --ig-link: #00376b;
  --text: #000;
  --muted: #737373;
  --faint: #a8a8a8;
  --bg: #fafafa;
  --card: #fff;
  --error: #ed4956;
  --ok: #000;
  --ok-check: #0095f6;
  --line: #dbdbdb;
  --line-soft: #efefef;
  --accent: #0095f6;
  --accent-2: #833ab4;
  --header-cta: #0095f6;
  --header-cta-hover: #1877f2;
  --shadow: none;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}
html.nav-open,
html.nav-open body { overflow: hidden; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
a, button, .nav-toggle, summary, .nav-cta, .btn {
  touch-action: manipulation;
}
::selection { background: rgba(0, 149, 246, 0.25); }
a { color: var(--ig-link); }
img { max-width: 100%; }

.accent { display: none; }

.site-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.site-top-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: url("/assets/icon.svg") center / 100% 100% no-repeat;
  flex: none;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-copy strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-copy span {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(240px, 42vw);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle i {
  display: block;
  width: 16px;
  height: 2px;
  background: #000;
  border-radius: 2px;
}
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px 24px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--muted); }
.site-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
}
.nav-link:hover { color: var(--muted); }
.nav-signedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00A400;
  flex: none;
}
.nav-mobile-only .nav-dot { margin-right: 8px; }
.nav-cta {
  background: var(--header-cta);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--header-cta-hover); }
.nav-mobile-only { display: none; }

main.wrap,
main.home { flex: 1; }
.wrap,
.inner,
.foot-inner,
.banner { width: min(1120px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
.wrap { padding: 40px 0 80px; }
.wrap:not(.wide) { width: min(440px, calc(100% - 40px)); }
main.home { padding: 0 0 0; width: 100%; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  overflow-x: auto;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  font-weight: 700;
}
h3 { font-weight: 600; }
p { color: var(--muted); margin: 0 0 12px; }
.legal p, .prose p, li, ol { color: var(--text); }
.lead { font-size: 16px; max-width: 38rem; line-height: 1.6; color: var(--muted); }
label { display: block; font-weight: 600; font-size: 13px; margin: 16px 0 8px; }
input[type=email],
input[type=text],
input[type=url],
input[type=password],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--faint);
  background: #fff;
}
input[readonly] {
  background: #f3f3f3;
  color: var(--muted);
  cursor: default;
}
textarea { min-height: 120px; resize: vertical; }
.btn, form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  background: var(--ig-blue);
  color: #fff;
  font-family: inherit;
}
.btn:hover, form button:hover { background: var(--ig-blue-dark); }
form button { width: 100%; margin-top: 16px; padding: 11px 16px; }
.btn { width: auto; margin: 0; }
.btn.dark { background: var(--ig-blue); color: #fff; }
.btn.dark:hover { background: var(--ig-blue-dark); }
.btn.ghost, button.secondary, .btn.outline {
  background: var(--line-soft);
  color: var(--text);
  border: 0;
}
.btn.ghost:hover, button.secondary:hover, .btn.outline:hover { background: #dbdbdb; }
button.danger, .btn.danger { background: var(--error); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
.ok { color: var(--ok); font-weight: 600; }
.err { color: var(--error); }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ig-blue);
  margin-bottom: 14px;
}
.kicker:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ig-blue);
}
.hl {
  background: linear-gradient(90deg, #833ab4, #e1306c, #f77737);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.checks { list-style: none; padding: 0; margin: 8px 0 0; }
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  margin: 9px 0;
}
.checks li:before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%230095f6' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.3-4.2 4.2a.75.75 0 0 1-1.06 0L4.3 8.36a.75.75 0 1 1 1.06-1.06L7 8.94l3.64-3.64a.75.75 0 1 1 1.06 1.06z'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

/* ---------------------------------------------------------------- hero ---- */
.hero-wrap {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(0, 149, 246, 0.10), transparent 60%),
    radial-gradient(700px 360px at 0% 10%, rgba(225, 48, 108, 0.06), transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}
.hero > *,
.demo,
.demo-stage,
.demo-pane,
.naming > *,
.install > *,
.split > *,
.namer,
.files { min-width: 0; }
.hero h1 { margin-bottom: 16px; font-size: clamp(32px, 4.4vw, 50px); }
.hero .lead { font-size: 17px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}
.pill i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.btn.lg { padding: 12px 20px; font-size: 15px; }

/* icons + tiles */
.ico { width: 20px; height: 20px; flex: none; }
.ico-ok { color: var(--ig-blue); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.ico-no { color: var(--faint); width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eaf5ff;
  color: var(--ig-blue);
  margin-bottom: 14px;
}
.tile-pro { background: #f3e8ff; color: #7c3aed; }
.tile-dark { background: #111; color: #fff; }

/* demo */
.demo { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.25); max-width: 100%; }
.demo-tabs { display: flex; border-bottom: 1px solid var(--line); background: #fafafa; }
.demo-tabs button {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 12px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.demo-tabs button.is-active { color: var(--text); border-bottom-color: #000; background: #fff; }
.demo-stage { padding: 14px 14px 12px; display: grid; overflow: hidden; }
.demo-pane {
  grid-area: 1 / 1;
  align-self: start;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  max-width: 100%;
  height: 0;
  overflow: hidden;
}
.demo-pane.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  height: auto;
  overflow: visible;
  animation: fade 0.35s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.demo-note { color: var(--muted); font-size: 12.5px; margin: 12px 4px 0; }
.browser-bar { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #dbdbdb; display: inline-block; }
.browser-bar i:first-child { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 6px; background: #f2f2f2; border-radius: 6px; padding: 3px 10px; font-size: 11px; }

.ig { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 12px 6px; min-width: 0; overflow: hidden; }
.ig-head { display: flex; gap: 18px; align-items: flex-start; }
.ig-avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; background: conic-gradient(from 180deg, #fcaf45, #e1306c, #833ab4, #fcaf45); padding: 3px; }
.ig-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #fff;
  background: #efefef;
}
.ig-meta { min-width: 0; flex: 1; }
.ig-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ig-row strong { font-size: 16px; font-weight: 600; margin-right: 4px; }
.ig-btn { background: var(--line-soft); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; }
.ig-btn-ours { background: var(--ig-blue); color: #fff; }
.ig-stats { display: flex; gap: 16px; font-size: 13px; color: var(--text); margin-bottom: 6px; }
.ig-stats b { font-weight: 600; }
.ig-bio { font-size: 12.5px; color: var(--text); line-height: 1.4; }
.ig-tabs { display: flex; gap: 28px; justify-content: center; border-top: 1px solid var(--line); margin: 12px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.ig-tabs span { padding: 10px 0; border-top: 1px solid transparent; margin-top: -1px; }
.ig-tabs span.is-active { color: var(--text); border-top-color: #000; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ig-grid span { display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: #efefef; }
.ig-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-grid .is-reel:before,
.ig-grid .is-album:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 32px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(225deg, rgba(0, 0, 0, 0.4), transparent 70%);
}
.ig-grid .is-reel:after,
.ig-grid .is-album:after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 15px;
  height: 15px;
  z-index: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.ig-grid .is-reel:after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12.5 2.2 14.8 7h4.7a1.5 1.5 0 0 1 0 3h-.8l.6 1.2a1.5 1.5 0 0 1-2.6 1.5L15.8 10H8.2l-.9 1.7A1.5 1.5 0 1 1 4.7 10.2L5.3 10h-.8a1.5 1.5 0 1 1 0-3h4.7L11.5 2.2a1.2 1.2 0 0 1 1 0ZM8.7 15.2v5.1a.9.9 0 0 0 1.3.8l5.4-2.55a.9.9 0 0 0 0-1.6L10 14.4a.9.9 0 0 0-1.3.8Z'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ig-grid .is-album:after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='7' width='13' height='13' rx='2'/%3E%3Cpath d='M4 16V6a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ig-grid span.picked { box-shadow: inset 0 0 0 2px var(--ig-blue); z-index: 1; }
.ig-grid span.picked em {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #000; font-style: normal; font-weight: 600; font-size: 11px; line-height: 1;
  padding: 8px 11px; border-radius: var(--radius-sm); white-space: nowrap; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.ig-grid span.picked em:before {
  content: ""; width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230095f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; max-width: min(420px, 100%); width: 100%; margin: 0 auto; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; }
.mark.sm { width: 22px; height: 22px; border-radius: 6px; }
.panel-plan { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--line-soft); padding: 3px 8px; border-radius: 999px; }
.seg { display: inline-flex; background: var(--line-soft); border-radius: 8px; padding: 3px; gap: 2px; }
.seg span, .seg button { padding: 6px 12px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; border: 0; font-family: inherit; cursor: pointer; }
.seg .is-active { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.panel .seg { display: flex; margin-bottom: 12px; }
.panel .seg span { flex: 1; text-align: center; }
.panel-opts { display: flex; gap: 14px; font-size: 13px; margin-bottom: 10px; }
.panel-opts label { display: inline-flex; align-items: center; gap: 6px; }
.panel-opts i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line); display: inline-block; }
.panel-opts i.on { background: var(--ig-blue); border-color: var(--ig-blue); position: relative; }
.panel-opts i.on:after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.panel-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.panel-line code { background: #fafafa; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--text); font-size: 12px; }
.panel-cta { background: var(--ig-blue); color: #fff; text-align: center; font-weight: 600; border-radius: 8px; padding: 10px; font-size: 14px; }
.panel-progress { margin: 12px 0 10px; }
.panel-progress .bar { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.panel-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, #0095f6, #4db5ff); border-radius: 3px; }
.panel-progress span { font-size: 12px; color: var(--muted); }
.panel-secondary { display: flex; gap: 8px; }
.panel-secondary span { flex: 1; text-align: center; background: var(--line-soft); border-radius: 8px; padding: 8px; font-size: 12.5px; font-weight: 600; }

.files { max-width: 520px; margin: 0 auto; }
.tree { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.tree > div, .tree #namer-folders > div { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree em { font-style: normal; font-family: var(--font); font-size: 11px; color: var(--muted); margin-left: auto; padding-left: 12px; }
.tree .d0 { font-weight: 700; }
.tree .d1 { padding-left: 18px; } .tree .d2 { padding-left: 36px; } .tree .d3 { padding-left: 54px; } .tree .f.d1 { padding-left: 18px; } .tree .f.d2 { padding-left: 36px; } .tree .f.d3 { padding-left: 54px; } .tree .f.d4 { padding-left: 72px; }
.tree .f { padding-left: 72px; }
.tree .d0:before, .tree .d1:before, .tree .d2:before, .tree .d3:before { content: ""; width: 14px; height: 11px; border-radius: 2px; background: #ffcf5c; flex: none; }
.tree .f:before { content: ""; width: 10px; height: 12px; border-radius: 2px; background: #bcd8f0; flex: none; }
.tree .f.csv:before { background: #9fdcb5; }
.tree .dim { color: var(--faint); }
.tree.small { font-size: 12px; }
.files-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.files-badges span { font-size: 12px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; display: inline-flex; align-items: center; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; margin-bottom: 8px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stats strong { display: block; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 4px; }
.stats span { color: var(--muted); font-size: 13px; }

/* sections */
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }
.inner.narrow { width: min(820px, calc(100% - 40px)); }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { position: relative; padding-top: 22px; }
.step-n { position: absolute; top: 18px; right: 20px; font-size: 12px; font-weight: 700; color: var(--faint); letter-spacing: 0.06em; }
.step h3 { font-size: 17px; margin: 0 0 6px; }
.feat { display: flex; flex-direction: column; }
.feat p { flex: 1; }
.tag { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--line-soft); color: var(--muted); width: max-content; }
.tag.free { background: #eaf5ff; color: #0b5cad; }
.tag.pro { background: #f3e8ff; color: #6d28d9; }

.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mode { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.mode h3 { font-size: 16px; margin: 0 0 6px; }
.mode p { margin: 0; font-size: 14px; }

.naming { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.naming h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.namer { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.namer-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; }
.namer-row > span { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.chips button.is-on { background: #000; color: #fff; border-color: #000; }
.namer-out { margin-top: 14px; }
.namer-note { color: var(--muted); font-size: 12px; margin: 10px 2px 0; }

.types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.type { text-align: left; padding: 18px; display: flex; flex-direction: column; }
.type .tile { width: 36px; height: 36px; margin-bottom: 10px; }
.type strong { font-size: 15px; }
.type span { color: var(--muted); font-size: 13px; flex: 1; }
.type em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); background: var(--line-soft); border-radius: 6px; padding: 3px 7px; width: max-content; margin-top: 10px; }

.compare-table, .plan-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ct-head, .ct-row, .pt-head, .pt-row { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; }
.pt-head, .pt-row { grid-template-columns: 1.6fr 1fr 1.2fr; }
.ct-head, .pt-head { background: #fafafa; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ct-head span, .ct-row span, .pt-head span, .pt-row span { padding: 13px 16px; font-size: 14px; border-top: 1px solid var(--line-soft); }
.ct-head span, .pt-head span { border-top: 0; }
.ct-row span:first-child, .pt-row span:first-child { font-weight: 600; }
.ct-row span:nth-child(2), .pt-row span:nth-child(2) { color: var(--muted); }
.ours { background: #f3faff; }
.ct-head .ours, .pt-head .ours { color: var(--ig-blue); }
.plan-table { margin-top: 14px; }

.persona-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.persona h3 { font-size: 16px; }

.safety-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.safety-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.safety-grid h3 { font-size: 15px; margin: 0 0 6px; }
.safety-grid p { margin: 0; font-size: 14px; }

.price { display: flex; flex-direction: column; }
.price .btn { margin-top: auto; width: 100%; }
.price p:not(.period) { margin-bottom: 16px; }
.install { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.install h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }

.section {
  padding: 64px 0;
}
.section.alt {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.dark {
  background: #fff;
  color: var(--text);
  border-top: 1px solid var(--line);
}
.section.dark p,
.section.dark .lead { color: var(--muted); }
.section.dark h2 { color: var(--text); }
.section-head { margin: 0 0 24px; max-width: 40rem; }
.section-head h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.section-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ig-blue);
  margin-bottom: 8px;
}
.section.dark .section-kicker { color: var(--ig-blue); }

.steps,
.feat-grid,
.types,
.row,
.compare,
.persona-grid {
  display: grid;
  gap: 12px;
}
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare { grid-template-columns: 1fr 1fr; }
.persona-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.step, .feat, .type, .price, .persona, .compare-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.step b, .feat b {
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ig-blue);
  margin-bottom: 8px;
  font-weight: 600;
}
.step h2, .feat h3, .type strong, .persona h3 {
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.feat h3, .persona h3 { font-size: 16px; }
.feat p, .persona p { font-size: 14px; }
.type strong { display: block; font-size: 15px; margin-bottom: 4px; }
.feat p, .step p, .persona p { margin: 0; }
#namer-folders { display: contents; }

.price strong {
  display: block;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
  color: var(--text);
  font-weight: 700;
}
.price .period { font-size: 14px; font-weight: 500; color: var(--muted); }
.price .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: var(--ig-blue);
  color: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  margin-bottom: 10px;
}
.price.featured {
  border-color: #000;
  background: #fff;
}
.price ul { margin: 12px 0 0; padding-left: 18px; }
.price li { margin: 6px 0; font-size: 14px; color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 12px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.guide-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.guide-card:hover { border-color: var(--faint); background: #fafafa; }
.guide-card strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }
.guide-card span { color: var(--muted); font-size: 14px; }
.guide-intro .trust { margin-top: 18px; }
.guide-group h2 { margin-bottom: 4px; }
.guide-group > p { margin-bottom: 4px; }
.guide-group .guide-grid { margin-top: 14px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin: 0 0 14px 4px; }
.crumbs a { color: var(--text); text-decoration: none; font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.guide h2 { margin-top: 26px; font-size: 18px; }
.guide h1 + .lead { margin-bottom: 18px; }
.guide p, .guide li { line-height: 1.6; }
.guide code, .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}
.tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: start;
  background: #fafafa;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ig-blue);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 22px 0 6px;
}
.tip strong { font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text); padding-top: 3px; white-space: nowrap; }
.tip p { margin: 0; color: var(--text); }
.guide-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.guide-cta h2 { margin-bottom: 4px; }
.guide-cta p { margin: 0; }
.fineprint a { color: inherit; text-decoration: underline; }

.compare-card h3 { margin-bottom: 10px; font-size: 16px; }
.compare-card.good { border-color: #000; }
.compare-card ul { margin: 0; padding-left: 18px; }
.install-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.install-steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 64px;
  position: relative;
  color: var(--text);
}
.install-steps li:before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ig-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.install-steps strong { display: block; margin-bottom: 4px; font-weight: 600; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary:after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--line-soft);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.faq details[open] summary:after { content: "−"; }
.faq details p { padding-bottom: 12px; }

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 6px; font-size: 26px; }
.section.dark .btn { background: var(--ig-blue); color: #fff; }
.section.dark .btn:hover { background: var(--ig-blue-dark); }
.section.dark .btn.ghost { background: var(--line-soft); color: var(--text); }
.section.dark .btn.ghost:hover { background: #dbdbdb; }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 18px; }

.site-foot {
  background: #fff;
  color: var(--muted);
  padding: 48px 0 24px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot-inner strong { color: var(--text); display: block; margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.foot-inner span { display: block; color: var(--text); font-weight: 600; margin-bottom: 12px; font-size: 13px; }
.foot-inner p { color: var(--muted); }
.foot-inner a, .foot-copy a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 7px 0;
  font-size: 13px;
}
.foot-inner a:hover, .foot-copy a:hover { color: var(--text); }
.foot-copy a { display: inline; margin: 0; font-size: inherit; color: var(--muted); }
.newsletter-form { margin-top: 18px; max-width: 360px; }
.newsletter-form label { margin: 0 0 6px; color: var(--text); font-size: 13px; }
.newsletter-row { display: flex; gap: 6px; }
.newsletter-row input[type=email] { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; }
.newsletter-row button { width: auto; margin: 0; padding: 8px 12px; font-size: 13px; }
.newsletter-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.newsletter-form span { display: block; margin-top: 6px; font-size: 12px; color: var(--faint); }
.foot-copy {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 12px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
ul, ol { padding-left: 18px; margin: 8px 0 16px; }
li { margin: 7px 0; }
.banner {
  background: #fff7ed;
  border: 1px solid #fdc88a;
  color: #9a5b00;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 16px auto 0;
  font-size: 14px;
}
.banner.warn { background: #fef3f2; border-color: #f5c2c7; color: #b42318; }
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 24px;
}
.trust span {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.trust span:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ig-blue);
  flex: none;
}

@media (max-width: 980px) {
  .site-top-inner {
    width: min(1180px, calc(100% - 24px));
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 56px;
    gap: 10px;
  }
  .brand { grid-column: 1; grid-row: 1; }
  .site-actions { grid-column: 2; grid-row: 1; }
  .nav-toggle { display: flex; grid-column: 3; grid-row: 1; min-width: 44px; min-height: 44px; }
  .site-nav { display: none; }
  .site-actions .nav-link { display: none; }
  .site-top.is-open {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }
  .site-top.is-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 8px 0 16px;
    gap: 2px;
    background: #fff;
    border-top: 1px solid var(--line);
  }
  .site-top.is-open .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 6px;
    font-size: 16px;
    border-radius: 8px;
  }
  .site-top.is-open .site-nav a:active { background: #fafafa; }
  .site-top.is-open .nav-mobile-only { display: flex; }
  .wrap, .inner, .foot-inner, .banner { width: min(1120px, calc(100% - 32px)); }
  .wrap:not(.wide) { width: min(440px, calc(100% - 32px)); }
  .inner.narrow { width: min(820px, calc(100% - 32px)); }
  .foot-copy { width: min(1180px, calc(100% - 32px)); }
  .hero, .steps, .row, .compare, .split, .foot-inner, .guide-grid, .trust, .naming, .install {
    grid-template-columns: 1fr;
  }
  .types, .feat-grid, .persona-grid, .mode-grid, .safety-grid, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-stage { min-height: 0; }
  .ct-head, .ct-row { grid-template-columns: 0.8fr 1fr 1.2fr; }
  .ct-head span, .ct-row span, .pt-head span, .pt-row span { padding: 10px 10px; font-size: 13px; }
  .namer-row { grid-template-columns: 1fr; gap: 6px; }
  .namer .seg { flex-wrap: wrap; }
  .hero { padding: 28px 0 16px; gap: 22px; }
  .hero h1 { font-size: clamp(28px, 8vw, 40px); }
  .section { padding: 40px 0; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy span { font-size: 10px; }
  .mark { width: 30px; height: 30px; border-radius: 8px; }
  .nav-cta { padding: 10px 12px; font-size: 13px; }
  .pill { max-width: 100%; white-space: normal; line-height: 1.35; }
  .panel-head { flex-wrap: wrap; row-gap: 6px; min-width: 0; }
  .panel-head strong { min-width: 0; }
  .panel-opts, .panel-secondary { flex-wrap: wrap; }
  .panel-line { flex-wrap: wrap; gap: 6px; }
  .panel-line code { word-break: break-word; }
  .ig-stats { flex-wrap: wrap; gap: 10px 14px; }
  .browser-bar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tree { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .newsletter-row { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .wrap, .inner, .foot-inner, .banner { width: calc(100% - 28px); }
  .wrap:not(.wide) { width: calc(100% - 28px); }
  .inner.narrow { width: calc(100% - 28px); }
  .foot-copy { width: calc(100% - 28px); }
  .types, .stats, .mode-grid, .safety-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid, .persona-grid { grid-template-columns: 1fr; }
  .ct-head, .ct-row, .pt-head, .pt-row { grid-template-columns: 1fr; }
  .ct-head span:first-child, .pt-head span:first-child { display: none; }
  .ct-row span:first-child, .pt-row span:first-child { background: #fafafa; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); padding: 8px 12px; }
  .ct-row span, .pt-row span { padding: 8px 12px; }
  .ig-head { gap: 12px; }
  .ig-avatar { width: 52px; height: 52px; }
  .ig-row .ig-btn:not(.ig-btn-ours) { display: none; }
  .ig-btn-ours { font-size: 11px; }
  .ig-tabs { gap: 16px; }
  .ig-grid span.picked em { font-size: 10px; padding: 6px 8px; }
  .hero-actions { margin: 18px 0 12px; }
  .hero-actions .btn,
  .cta-band .hero-actions .btn,
  .guide-cta .hero-actions .btn { width: 100%; min-height: 44px; }
  .cta-band { flex-direction: column; align-items: stretch; gap: 16px; }
  .cta-band .hero-actions,
  .guide-cta .hero-actions { width: 100%; margin: 0; }
  .cta-band h2 { font-size: 22px; }
  .tip { grid-template-columns: 1fr; }
  .guide-cta { align-items: stretch; }
  .pill-brand, .pill i { display: none; }
  .demo-tabs button { min-height: 44px; padding: 10px 6px; font-size: 12px; }
  .demo-stage { padding: 10px 10px 8px; }
  .panel { padding: 12px; }
  .panel-plan { width: 100%; margin-left: 0; }
  .panel-secondary { flex-direction: column; }
  .panel-secondary span { width: 100%; }
  .stats { gap: 8px; margin-top: 20px; }
  .stats div { padding: 14px 12px; }
  .stats strong { font-size: 20px; }
  .stats span { font-size: 12px; line-height: 1.35; }
  .section { padding: 32px 0; }
  .section-head { margin-bottom: 18px; }
  .hero .lead { font-size: 15px; }
  .card { padding: 20px 16px; }
  .wrap { padding: 28px 0 56px; }
  input[type=email],
  input[type=text],
  input[type=url],
  input[type=password],
  textarea,
  select { font-size: 16px; padding: 12px; }
  form button { min-height: 44px; }
  .newsletter-row { flex-direction: column; }
  .newsletter-row button { width: 100%; min-height: 44px; }
  .site-foot { padding: 36px 0 max(20px, env(safe-area-inset-bottom)); }
  .foot-inner { gap: 22px; }
  .faq summary { min-height: 44px; }
  .price strong { font-size: 32px; }
  .namer .seg { display: flex; }
  .namer .seg button { flex: 1 1 40%; }
  .chips button { min-height: 36px; }
  .install-steps li { padding: 14px 14px 14px 58px; }
  .banner { margin-top: 12px; }
}
