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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #16161f;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent: #7EE8A2;
  --accent2: #4fd183;
  --text: #f0f0f0;
  --muted: #888899;
  --muted2: #555566;
  --muted-hi: #b8b8c8;
  --card: #13131a;
  --warn: #f5a623;
  --danger: #ff5c5c;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,232,162,0.06) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none; z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
}

.logo-group { display: flex; align-items: center; gap: 14px; }

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

.nav-tagline { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .nav-tagline { display: none; } }

.logo-mark {
  width: 32px; height: 32px;
  border: 1.5px solid var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; position: relative;
  flex-shrink: 0;
}
.logo-mark::before {
  content: ''; width: 10px; height: 10px; border-radius: 2px;
  background: var(--accent); position: absolute; top: 5px; left: 5px;
}
.logo-mark::after {
  content: ''; width: 6px; height: 6px; border-radius: 1px;
  background: var(--accent2); position: absolute; bottom: 5px; right: 5px; opacity: 0.6;
}
.logo-mark.sm { width: 24px; height: 24px; border-radius: 6px; }
.logo-mark.sm::before { width: 7.5px; height: 7.5px; border-radius: 1.5px; top: 3.75px; left: 3.75px; }
.logo-mark.sm::after { width: 4.5px; height: 4.5px; border-radius: 0.75px; bottom: 3.75px; right: 3.75px; }

.logo-name { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; color: var(--text); letter-spacing: 0.02em; }
.logo-name span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-badge { font-size: 11px; padding: 4px 10px; border: 1px solid var(--border2); border-radius: 99px; color: var(--muted); font-family: 'DM Mono', monospace; letter-spacing: 0.05em; }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-size: 12px; font-family: 'DM Mono', monospace; letter-spacing: 0.05em;
  padding: 5px 10px; border-radius: 6px; border: 1px solid transparent;
  color: var(--muted); cursor: pointer; text-decoration: none; transition: all 0.15s;
  background: none;
}
.nav-link:hover, .nav-link.active { color: var(--accent); border-color: rgba(126,232,162,0.2); background: rgba(126,232,162,0.05); }

/* hamburger button — hidden on desktop */
.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; padding: 6px;
  background: transparent; border: 1px solid var(--border2); border-radius: 8px;
  cursor: pointer; transition: border-color 0.15s;
}
.nav-burger:hover { border-color: rgba(126,232,162,0.3); }
.nav-burger span {
  display: block; height: 1.5px; background: var(--muted);
  border-radius: 2px; transition: all 0.25s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--accent); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

/* mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; top: 61px; left: 0; right: 0; bottom: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(16px);
  z-index: 99;
  flex-direction: column;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.nav-drawer.open {
  opacity: 1; transform: none; pointer-events: all;
}
.nav-drawer-link {
  display: flex; align-items: center; gap: 10px; padding: 1rem 0;
  font-size: 1.2rem; font-family: 'DM Mono', monospace;
  color: var(--muted-hi); text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav-drawer-link svg { flex-shrink: 0; color: var(--accent); }
.nav-drawer-link:hover { color: var(--accent); }
.nav-drawer-link:last-of-type { border-bottom: none; }
.nav-drawer-badge {
  display: inline-block; margin-top: 1.5rem;
  font-size: 11px; padding: 4px 10px; border: 1px solid var(--border2);
  border-radius: 99px; color: var(--muted2); font-family: 'DM Mono', monospace;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-badge { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: flex; }
}

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 1.5rem 2rem;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-family: 'DM Mono', monospace; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1.5rem; padding: 6px 14px;
  border: 1px solid rgba(126,232,162,0.2); border-radius: 99px;
  background: rgba(126,232,162,0.05);
  animation: fadeUp 0.6s ease both;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 strong { font-weight: 500; color: var(--accent); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 520px; line-height: 1.7; margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

/* Tighten hero spacing on laptop/desktop-sized viewports only, so the tool
   cards sit closer to the fold — mobile keeps its original breathing room.
   H1 font-size is untouched; only the surrounding spacing is reduced. */
@media (min-width: 900px) {
  .hero { padding: 6rem 1.5rem 1rem; }
  .hero-eyebrow { margin-bottom: 1rem; }
  .hero h1 { margin-bottom: 1rem; }
  .hero p { margin-bottom: 0.75rem; }
  .directory-grid { margin-top: 0.5rem; }
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* tool count pills */
.hero-stats {
  display: flex; gap: 1.5rem; margin-top: 3rem; flex-wrap: wrap; justify-content: center;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 300; font-family: 'DM Mono', monospace; color: var(--accent); }
.hero-stat-lbl { font-size: 11px; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── BTNS ── */
.btn-primary {
  padding: 12px 24px; background: var(--accent); color: #0a0a0f;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-ghost {
  padding: 12px 24px; background: transparent; color: var(--muted);
  border: 1px solid var(--border2); border-radius: 8px; font-size: 14px;
  font-family: 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.btn-sm {
  padding: 8px 16px; font-size: 13px; font-family: 'DM Sans', sans-serif;
  border-radius: 7px; cursor: pointer; transition: all 0.15s; border: none;
}
.btn-sm-accent { background: var(--accent); color: #0a0a0f; font-weight: 500; }
.btn-sm-accent:hover { background: var(--accent2); }
.btn-sm-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border2); }
.btn-sm-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ── SECTIONS ── */
section {
  position: relative; z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 960px; margin: 0 auto;
}

.section-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.section-title strong { font-weight: 500; }
.section-sub { color: var(--muted); font-size: 1rem; line-height: 1.7; max-width: 480px; margin-bottom: 3rem; }

/* ── TOOL LAYOUT (side-by-side, used on the landing page's old layout) ── */
.tool-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start;
}
@media (max-width: 680px) { .tool-layout { grid-template-columns: 1fr; } }

/* ── TOOL PAGE LAYOUT (stacked: tool widget on top, full width; description below) ── */
.tool-page { max-width: 640px; }
.tool-page .tool-widget { margin-bottom: 2.5rem; }
.tool-page .tool-info { max-width: 640px; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 600px) {
  section { padding: 3rem 1rem; }

  .hero { padding: 6rem 1rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat-num { font-size: 1.6rem; }

  .calc-wrap, .sla-wrap, .phonetic-wrap, .age-wrap, .tone-wrap {
    padding: 1.25rem;
  }

  .result-val { font-size: 36px; }

  .sla-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .sla-time-display { font-size: 2.2rem; }

  .savings-row { flex-direction: column; }

  .phonetic-grid { grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 5px; }
  .phonetic-cell { padding: 7px 4px; }
  .phonetic-cell-letter { font-size: 12px; }
  .phonetic-cell-word { font-size: 9px; }

  .age-big { font-size: 2.8rem; }
  .age-breakdown { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .age-block-val { font-size: 1.1rem; }

  .tools-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tool-card { padding: 1rem; }

  .early-card { padding: 2rem 1.25rem; }
  .email-row { flex-direction: column; }
  .email-input { min-width: unset; width: 100%; }

  .gate-card { padding: 2rem 1.25rem; }

  .section-title { font-size: 1.4rem; }
  .section-sub { font-size: 0.9rem; }

  .btn-primary, .btn-ghost { padding: 11px 18px; font-size: 13px; }

  .sla-presets { gap: 5px; }
  .sla-preset { font-size: 11px; padding: 4px 8px; }

  .tone-modes { gap: 5px; }
  .tone-mode { font-size: 11px; padding: 4px 9px; }

  .shift-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .tools-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

.tool-info { padding-top: 0.5rem; }

/* ── CALC ── */
.calc-wrap {
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 16px; padding: 2rem;
}

.calc-field { margin-bottom: 1.25rem; }

.calc-label { font-size: 11px; font-family: 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

.calc-input-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  padding: 0 14px; transition: border-color 0.2s;
}
.calc-input-row:focus-within { border-color: rgba(126,232,162,0.4); }

.calc-sym { font-size: 18px; font-weight: 400; color: var(--muted2); font-family: 'DM Mono', monospace; }

.calc-input {
  font-size: 22px; font-weight: 400; font-family: 'DM Mono', monospace;
  width: 100%; border: none; background: transparent; color: var(--text);
  outline: none; padding: 14px 0;
}
.calc-input::placeholder { color: var(--muted2); }

.tog-row { display: flex; gap: 6px; margin-top: 8px; }
.tog {
  font-size: 12px; font-family: 'DM Mono', monospace; padding: 5px 12px;
  border-radius: 6px; border: 1px solid var(--border2); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.tog.active { background: rgba(126,232,162,0.1); border-color: rgba(126,232,162,0.3); color: var(--accent); }

.calc-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

.result-lbl { font-size: 11px; font-family: 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.result-val { font-size: 48px; font-weight: 300; font-family: 'DM Mono', monospace; color: var(--accent); letter-spacing: -0.02em; transition: all 0.2s; }
.result-val.empty { color: var(--muted2); }

.savings-row { display: flex; gap: 1rem; margin-top: 0.75rem; }
.saving-block { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.saving-val { font-size: 15px; font-weight: 500; font-family: 'DM Mono', monospace; color: var(--accent); }
.saving-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }

.vat-section { margin-top: 1.25rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.vat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vat-title { font-size: 11px; font-family: 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.copy-btn {
  font-size: 11px; font-family: 'DM Mono', monospace; padding: 4px 10px;
  border-radius: 6px; border: 1px solid var(--border2); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { color: var(--accent); border-color: rgba(126,232,162,0.3); }

.vat-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid var(--border); }
.vat-row:last-child { border-bottom: none; }
.vat-row-lbl { color: var(--muted); }
.vat-row-val { font-family: 'DM Mono', monospace; color: var(--text); }

.reset-btn {
  width: 100%; margin-top: 1rem; padding: 10px; background: transparent;
  border: 1px solid var(--border); border-radius: 8px; color: var(--muted2);
  font-size: 13px; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: all 0.15s;
}
.reset-btn:hover { color: var(--muted); border-color: var(--border2); }

/* ── SLA TIMER ── */
.sla-wrap { background: var(--card); border: 1px solid var(--border2); border-radius: 16px; padding: 2rem; }

.sla-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }

.sla-input {
  font-size: 15px; font-family: 'DM Mono', monospace;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  color: var(--text); padding: 12px 14px; outline: none; width: 100%;
  transition: border-color 0.2s;
}
.sla-input:focus { border-color: rgba(126,232,162,0.4); }

.sla-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sla-preset {
  font-size: 11px; font-family: 'DM Mono', monospace; padding: 5px 10px;
  border-radius: 6px; border: 1px solid var(--border2); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.sla-preset:hover { color: var(--accent); border-color: rgba(126,232,162,0.3); }
.sla-preset.active { background: rgba(126,232,162,0.1); border-color: rgba(126,232,162,0.3); color: var(--accent); }

.sla-countdown {
  text-align: center; padding: 1.5rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem;
}
.sla-countdown.urgent { border-color: rgba(245,166,35,0.3); background: rgba(245,166,35,0.04); }
.sla-countdown.breached { border-color: rgba(255,92,92,0.3); background: rgba(255,92,92,0.04); }

.sla-time-display { font-size: 3rem; font-weight: 300; font-family: 'DM Mono', monospace; color: var(--accent); letter-spacing: 0.05em; }
.sla-countdown.urgent .sla-time-display { color: var(--warn); }
.sla-countdown.breached .sla-time-display { color: var(--danger); }

.sla-status-lbl { font-size: 11px; font-family: 'DM Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sla-countdown.urgent .sla-status-lbl { color: var(--warn); }
.sla-countdown.breached .sla-status-lbl { color: var(--danger); }

.sla-progress { height: 4px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-bottom: 1rem; }
.sla-bar { height: 100%; border-radius: 99px; background: var(--accent); transition: width 1s linear, background 0.5s; }

/* ── PHONETIC ── */
.phonetic-wrap { background: var(--card); border: 1px solid var(--border2); border-radius: 16px; padding: 2rem; }

.phonetic-search-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  padding: 0 14px; margin-bottom: 1.5rem; transition: border-color 0.2s;
}
.phonetic-search-row:focus-within { border-color: rgba(126,232,162,0.4); }
.phonetic-search-icon { color: var(--muted2); display: flex; align-items: center; }
.phonetic-search {
  font-size: 16px; font-family: 'DM Mono', monospace;
  background: transparent; border: none; color: var(--text); outline: none;
  width: 100%; padding: 12px 0; text-transform: uppercase;
}
.phonetic-search::placeholder { color: var(--muted2); text-transform: none; }

.phonetic-result {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem 1.25rem; margin-bottom: 1.25rem; min-height: 60px;
  display: flex; align-items: center; gap: 12px;
}
.phonetic-letter { font-size: 2.5rem; font-weight: 300; font-family: 'DM Mono', monospace; color: var(--accent); min-width: 50px; text-align: center; }
.phonetic-words { display: flex; flex-direction: column; gap: 3px; }
.phonetic-word { font-size: 1.1rem; font-weight: 400; color: var(--text); }
.phonetic-word-sub { font-size: 11px; color: var(--muted); font-family: 'DM Mono', monospace; letter-spacing: 0.06em; }

.phonetic-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px;
}
.phonetic-cell {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 6px; text-align: center; cursor: pointer; transition: all 0.15s;
}
.phonetic-cell:hover { border-color: rgba(126,232,162,0.3); background: rgba(126,232,162,0.05); }
.phonetic-cell.highlight { border-color: rgba(126,232,162,0.4); background: rgba(126,232,162,0.08); }
.phonetic-cell-letter { font-size: 13px; font-weight: 500; font-family: 'DM Mono', monospace; color: var(--accent); }
.phonetic-cell-word { font-size: 10px; color: var(--muted); margin-top: 2px; line-height: 1.3; }

/* ── TICKET AGE ── */
.age-wrap { background: var(--card); border: 1px solid var(--border2); border-radius: 16px; padding: 2rem; }

.age-input {
  font-size: 15px; font-family: 'DM Mono', monospace;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  color: var(--text); padding: 12px 14px; outline: none; width: 100%;
  transition: border-color 0.2s; margin-bottom: 0.75rem;
}
.age-input:focus { border-color: rgba(126,232,162,0.4); }

.age-presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.age-preset {
  font-size: 11px; font-family: 'DM Mono', monospace; padding: 4px 9px;
  border-radius: 6px; border: 1px solid var(--border2); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.age-preset:hover { color: var(--accent); border-color: rgba(126,232,162,0.3); }

.age-result {
  text-align: center; padding: 2rem; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 1rem;
}
.age-big { font-size: 3.5rem; font-weight: 300; font-family: 'DM Mono', monospace; color: var(--accent); }
.age-big.old { color: var(--warn); }
.age-big.very-old { color: var(--danger); }
.age-unit { font-size: 1rem; color: var(--muted); margin-top: 4px; }
.age-exact { font-size: 12px; font-family: 'DM Mono', monospace; color: var(--muted2); margin-top: 8px; }

.age-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.age-block { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 10px; text-align: center; }
.age-block-val { font-size: 1.4rem; font-weight: 300; font-family: 'DM Mono', monospace; color: var(--text); }
.age-block-lbl { font-size: 10px; color: var(--muted2); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* ── TONE SOFTENER ── */
.tone-wrap { background: var(--card); border: 1px solid var(--border2); border-radius: 16px; padding: 2rem; }

.tone-modes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tone-mode {
  font-size: 12px; font-family: 'DM Mono', monospace; padding: 5px 12px;
  border-radius: 6px; border: 1px solid var(--border2); background: transparent;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
}
.tone-mode:hover { color: var(--text); border-color: var(--border2); }
.tone-mode.active { background: rgba(126,232,162,0.1); border-color: rgba(126,232,162,0.3); color: var(--accent); }

.tone-textarea {
  width: 100%; font-size: 14px; font-family: 'DM Sans', sans-serif; line-height: 1.6;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px;
  color: var(--text); padding: 14px; outline: none; resize: vertical; min-height: 100px;
  transition: border-color 0.2s;
}
.tone-textarea:focus { border-color: rgba(126,232,162,0.4); }
.tone-textarea::placeholder { color: var(--muted2); }

.tone-char-count { font-size: 11px; color: var(--muted2); font-family: 'DM Mono', monospace; text-align: right; margin-top: 4px; margin-bottom: 1rem; }

.tone-privacy-note {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  margin-top: -0.5rem; margin-bottom: 1rem;
}
.tone-privacy-note strong { color: var(--muted-hi); font-weight: 500; }

.tone-redacted-note {
  font-size: 12px; color: var(--warn); line-height: 1.6;
  margin-top: 0.5rem; display: none;
  background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.2);
  border-radius: 8px; padding: 8px 12px;
}

.tone-output-wrap {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 10px;
  padding: 1rem; margin-top: 1rem; min-height: 80px; display: none;
}
.tone-output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tone-output-lbl { font-size: 11px; font-family: 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.tone-output-text { font-size: 14px; line-height: 1.7; color: var(--text); }

.tone-loading { display: none; text-align: center; padding: 1.5rem; }
.tone-spinner {
  width: 24px; height: 24px; border: 2px solid var(--border2);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.7s linear infinite; margin: 0 auto 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tone-loading-txt { font-size: 12px; color: var(--muted); font-family: 'DM Mono', monospace; }

.tone-actions { display: flex; gap: 8px; margin-top: 1rem; }

.tone-error { font-size: 13px; color: var(--danger); margin-top: 0.5rem; display: none; }

/* ── TOOLS GRID ── */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 2rem; }

.tool-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.tool-card:hover { border-color: var(--border2); transform: translateY(-2px); }
.tool-card.live { border-color: rgba(126,232,162,0.25); }

.tool-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(126,232,162,0.08); border: 1px solid rgba(126,232,162,0.15);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
  color: var(--accent);
}
.tool-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.tool-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.tool-status { display: inline-block; margin-top: 10px; font-size: 10px; font-family: 'DM Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.status-live { background: rgba(126,232,162,0.1); color: var(--accent); border: 1px solid rgba(126,232,162,0.2); }
.status-soon { background: rgba(255,255,255,0.04); color: var(--muted2); border: 1px solid var(--border); }

/* ── NEXT UP (trimmed coming-soon) ── */
.next-up { margin-top: 1.5rem; font-size: 13px; color: var(--muted); font-family: 'DM Mono', monospace; }
.next-up strong { color: var(--muted-hi); font-weight: 500; }

/* ── EARLY ACCESS ── */
.early-card {
  background: var(--card); border: 1px solid var(--border2); border-radius: 16px;
  padding: 3rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.early-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.early-title { font-size: 1.6rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.early-title strong { color: var(--accent); font-weight: 500; }
.early-sub { color: var(--muted); font-size: 0.95rem; line-height: 1.7; max-width: 400px; margin: 0 auto 2rem; }
.early-sub a { color: var(--accent); text-decoration: none; }
.early-sub a:hover { text-decoration: underline; }

.email-row { display: flex; gap: 8px; max-width: 380px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.email-input {
  flex: 1; min-width: 200px; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px;
  color: var(--text); font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.email-input:focus { border-color: rgba(126,232,162,0.4); }
.email-input::placeholder { color: var(--muted2); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 2rem 1.5rem; text-align: center;
}
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 0.75rem; }
.footer-text { font-size: 13px; color: var(--muted2); }
.footer-text a { color: var(--muted); text-decoration: none; }
.footer-text a:hover { color: var(--accent); }

/* ── DIVIDER ── */
.section-divider { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }
.section-divider hr { border: none; border-top: 1px solid var(--border); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── USAGE COUNTER ── */
.tone-usage-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  margin-bottom: 1rem; padding: 8px 12px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 8px;
}
.tone-usage-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.tone-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); transition: background 0.2s;
}
.tone-dot.used { background: var(--muted2); }
.tone-usage-lbl { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--muted); white-space: nowrap; }

/* ── GATE MODAL ── */
.gate-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.gate-overlay.open { opacity: 1; pointer-events: all; }
.gate-card {
  background: var(--card); border: 1px solid var(--border2); border-radius: 20px;
  padding: 2.5rem 2rem; max-width: 420px; width: 100%; text-align: center;
  position: relative; transform: translateY(20px); transition: transform 0.25s;
}
.gate-overlay.open .gate-card { transform: none; }
.gate-card::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.gate-icon { display: flex; justify-content: center; color: var(--accent); margin-bottom: 1rem; }
.gate-title { font-size: 1.3rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.gate-title strong { color: var(--accent); font-weight: 500; }
.gate-sub { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.75rem; }
.gate-input {
  width: 100%; padding: 12px 16px; margin-bottom: 10px;
  background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px;
  color: var(--text); font-size: 14px; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.2s; text-align: left;
}
.gate-input:focus { border-color: rgba(126,232,162,0.4); }
.gate-input::placeholder { color: var(--muted2); }
.gate-submit { width: 100%; padding: 12px; margin-bottom: 10px; }
.gate-skip { font-size: 12px; color: var(--muted2); cursor: pointer; background: none; border: none; font-family: 'DM Sans', sans-serif; transition: color 0.15s; }
.gate-skip:hover { color: var(--muted); }
.gate-error { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }

/* ── SCROLL NAV DOTS ── */
.tool-nav { display: flex; gap: 8px; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.tool-nav-dot {
  font-size: 12px; font-family: 'DM Mono', monospace; padding: 4px 12px;
  border-radius: 99px; border: 1px solid var(--border2); color: var(--muted2);
  text-decoration: none; transition: all 0.15s; cursor: pointer; background: none;
}
.tool-nav-dot:hover, .tool-nav-dot.on { color: var(--accent); border-color: rgba(126,232,162,0.3); background: rgba(126,232,162,0.06); }

/* ── LANDING PAGE — directory cards ── */
.directory-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin: 2rem 0 1.5rem;
}
.directory-card {
  background: var(--card); border: 1px solid var(--border2); border-radius: 14px;
  padding: 1.5rem; text-decoration: none; display: block;
  transition: border-color 0.2s, transform 0.2s;
  flex: 1 1 260px; max-width: 300px;
}
.directory-card:hover { border-color: rgba(126,232,162,0.35); transform: translateY(-2px); }
.directory-card .tool-icon { margin-bottom: 14px; }
.directory-card .tool-name { font-size: 15px; margin-bottom: 6px; }
.directory-card .tool-desc { font-size: 13px; }

.shift-link-row { text-align: center; margin: 0.5rem 0 3rem; }
.shift-link {
  font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted);
  text-decoration: none; border-bottom: 1px dashed var(--border2); padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.shift-link:hover { color: var(--accent); border-color: rgba(126,232,162,0.4); }

/* ── SHIFT MODE ── */
.shift-header {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.92); backdrop-filter: blur(12px);
  position: sticky; top: 0;
}
.shift-back {
  font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted);
  text-decoration: none; letter-spacing: 0.05em;
}
.shift-back:hover { color: var(--accent); }
.shift-label {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
}
.shift-main { position: relative; z-index: 1; padding: 1.5rem; max-width: 1400px; margin: 0 auto; }
.shift-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}
.shift-tool-title {
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem;
}
