/* ============ shortenurl.id — original design ============ */

:root {
  /* Surfaces — warm cream tone, off-paper */
  --canvas: #f4efe4;
  --canvas-2: #ebe5d6;
  --paper: #fbf8f1;
  --ink: #0e1410;
  --ink-2: #1a2018;
  --ink-soft: #3a4339;
  --ink-muted: #6f7568;
  --hairline: rgba(14, 20, 16, 0.12);
  --hairline-soft: rgba(14, 20, 16, 0.06);

  /* The single accent — electric chartreuse */
  --signal: #d4ff3a;
  --signal-press: #c5f024;
  --signal-ink: #0e1410;

  /* Secondary accent — used sparingly for click charts */
  --plum: #4a2bd9;

  /* Type */
  --font-display: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Geist", "Geist Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Spacing rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 9vw, 140px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }

::selection { background: var(--signal); color: var(--signal-ink); }

/* ====================== TYPE SCALE ====================== */

.display-xl {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 9.2vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
  box-shadow: 0 0 0 4px rgba(212, 255, 58, 0.25);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}
.mono { font-family: var(--font-mono); }

/* ====================== LAYOUT ====================== */
.wrap {
  width: 100%;
  max-width: 1320px;
  padding: 0 var(--gutter);
  margin: 0 auto;
}
.section { padding-block: var(--section-y); }

/* ====================== NAV ====================== */
.nav-rail {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 228, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.brand-mark::before { left: 4px; }
.brand-mark::after { right: 4px; border-color: var(--canvas); }
.brand small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-left: -4px;
  margin-top: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
}
.nav-burger span {
  width: 16px;
  height: 1.6px;
  background: var(--ink);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px; background: var(--ink);
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after { top: 5px; }

/* ====================== BUTTONS ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
  border: 1px solid var(--signal-press);
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.04);
}
.btn-primary:hover { background: var(--signal-press); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-ink:hover { background: var(--ink-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* ====================== HERO ====================== */
.hero {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(40px, 6vw, 80px);
  position: relative;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.hero-eyebrow .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hero-eyebrow .chip b {
  background: var(--signal);
  color: var(--signal-ink);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.hero h1 { margin: 0; max-width: 14ch; }
.hero h1 .accent {
  font-style: italic;
  color: var(--ink);
  position: relative;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  inset: auto -0.05em -0.06em -0.05em;
  height: 0.18em;
  background: var(--signal);
  z-index: -1;
  border-radius: 2px;
}

.hero-sub {
  margin: 28px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

/* The shortener composer */
.shortener {
  margin-top: 40px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 1px 2px rgba(14, 20, 16, 0.05),
    0 20px 40px -28px rgba(14, 20, 16, 0.25);
}
.shortener-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.shortener-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 0 18px;
  height: 56px;
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-md);
  transition: border-color .15s ease, background .15s ease;
}
.shortener-input:focus-within { border-color: var(--ink); background: var(--paper); }
.shortener-input .scheme {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  padding-right: 12px;
  border-right: 1px solid var(--hairline);
  flex: 0 0 auto;
}
.shortener-input input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
  color: var(--ink);
  min-width: 0;
}
.shortener-input input::placeholder { color: var(--ink-muted); }
.shortener .btn-primary { height: 56px; padding: 0 24px; border-radius: var(--r-md); font-size: 15px; }

.shortener-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
}
.shortener-options .opt-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  transition: all .12s ease;
}
.opt-pill:hover { border-color: var(--ink); color: var(--ink); }
.opt-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.opt-pill svg { width: 12px; height: 12px; }

.shortener-options .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* Result card (after shortening) */
.result {
  margin-top: 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  animation: fadeUp .35s ease both;
}
.result .short-url {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.result .short-url .host { color: rgba(255,255,255,0.55); }
.result .short-url .slug { color: var(--signal); font-weight: 500; }
.result .short-url .original {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-actions {
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--paper);
  transition: background .15s ease, transform .12s ease;
}
.icon-btn:hover { background: rgba(255,255,255,0.16); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.copied {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: var(--signal);
}

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

/* ====================== HERO SIDE: live tape ====================== */
.tape {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px;
  overflow: hidden;
  position: relative;
}
.tape-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--hairline);
}
.tape-head .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.tape-head .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
}
.live .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0432e;
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 67, 46, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(224, 67, 46, 0); }
}

.tape-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 13px;
  animation: tapeIn .4s ease both;
}
.tape-row:last-child { border-bottom: none; }
.tape-row .flag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--canvas);
  padding: 4px 7px;
  border-radius: var(--r-xs);
  color: var(--ink-soft);
}
.tape-row .path {
  font-family: var(--font-mono);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tape-row .path b { color: var(--ink); font-weight: 500; }
.tape-row .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}
@keyframes tapeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================== STATS STRIP ====================== */
.stats {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .num em {
  font-style: italic;
  color: var(--ink-soft);
}
.stat .label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ====================== FEATURE GRID ====================== */
.feature-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.feature-head .lead { margin-top: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.feature {
  grid-column: span 2;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.feature.span-3 { grid-column: span 3; }
.feature.span-4 { grid-column: span 4; }
.feature.span-6 { grid-column: span 6; min-height: 320px; }
.feature.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.feature.signal {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: var(--signal-press);
}
.feature .ftitle {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.feature .fbody {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 38ch;
}
.feature.dark .fbody { color: rgba(255,255,255,0.65); }
.feature.signal .fbody { color: rgba(14, 20, 16, 0.7); }
.feature .ftag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.feature.dark .ftag { color: rgba(255,255,255,0.5); }
.feature.signal .ftag { color: rgba(14, 20, 16, 0.55); }

/* Feature illustrations (CSS-only, geometric) */
.illus { position: relative; min-height: 140px; }
.illus.analytics {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  padding: 12px;
  background: var(--canvas);
  border-radius: var(--r-md);
}
.illus.analytics .bar {
  flex: 1;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
  position: relative;
}
.illus.analytics .bar.high { background: var(--signal); }
.illus.analytics .bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--ink);
}

.illus.qr {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 140px;
  height: 140px;
}
.illus.qr span {
  background: var(--ink);
  border-radius: 2px;
}
.illus.qr span.off { background: transparent; }
.illus.qr span.signal { background: var(--signal); }
.feature.dark .illus.qr span { background: var(--paper); }
.feature.dark .illus.qr span.signal { background: var(--signal); }

.illus.slug {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.illus.slug .row {
  background: var(--canvas);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.illus.slug .row .sl { color: var(--ink-muted); }
.illus.slug .row .sl b { color: var(--ink); font-weight: 500; }
.illus.slug .row.signal { background: var(--signal); }
.illus.slug .row.signal .sl, .illus.slug .row.signal .sl b { color: var(--signal-ink); }
.feature.dark .illus.slug .row { background: rgba(255,255,255,0.06); }
.feature.dark .illus.slug .row .sl { color: rgba(255,255,255,0.5); }
.feature.dark .illus.slug .row .sl b { color: var(--paper); }

.illus.api {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #0a0d0a;
  color: #cfeed6;
  border-radius: var(--r-sm);
  padding: 16px;
  line-height: 1.6;
  white-space: pre;
  overflow: hidden;
}
.illus.api .k { color: #8ad9ff; }
.illus.api .s { color: var(--signal); }
.illus.api .c { color: #6a7a6a; }

/* ====================== HOW IT WORKS ====================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.step {
  position: relative;
  padding-top: 32px;
  border-top: 1px solid var(--ink);
}
.step .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink);
  position: absolute;
  top: -10px;
  left: 0;
  background: var(--canvas);
  padding-right: 12px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.step p { color: var(--ink-soft); margin: 0; font-size: 15px; line-height: 1.55; }

/* ====================== ANALYTICS PREVIEW ====================== */
.analytics-section {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: clamp(40px, 5vw, 80px);
  margin: clamp(40px, 5vw, 80px) 0;
}
.analytics-section .h2 { color: var(--paper); }
.analytics-section .lead { color: rgba(255,255,255,0.65); }
.analytics-section .eyebrow { color: rgba(255,255,255,0.7); }

.dash {
  margin-top: 56px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.dash-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 22px;
}
.dash-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.dash-card .big {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.dash-card .big em { font-style: italic; color: var(--signal); }
.dash-card .delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--signal);
}

.dash-chart {
  grid-column: span 2;
  height: 260px;
  position: relative;
  background: rgba(255,255,255,0.02);
  border-radius: var(--r-md);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.dash-chart svg { width: 100%; height: 100%; }

.dash-list {
  grid-column: span 2;
  display: grid;
  gap: 8px;
}
.dash-list .row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
}
.dash-list .row .country { font-size: 12px; color: rgba(255,255,255,0.55); width: 32px; }
.dash-list .row .url b { color: var(--paper); font-weight: 500; }
.dash-list .row .url small {
  display: block; color: rgba(255,255,255,0.4); font-size: 11px; font-family: var(--font-sans); margin-top: 2px;
}
.dash-list .row .clicks { color: var(--signal); }
.dash-list .row .meter {
  width: 90px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden;
}
.dash-list .row .meter span {
  display: block; height: 100%; background: var(--signal);
}

/* ====================== USE CASES ====================== */
.cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.case {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 24px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .2s ease, border-color .2s ease;
}
.case:hover { border-color: var(--ink); transform: translateY(-2px); }
.case .glyph {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: var(--canvas);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
}
.case .case-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 24px 0 8px;
}
.case p { color: var(--ink-soft); font-size: 14px; margin: 0; line-height: 1.5; }

/* ====================== PRICING ====================== */
.pricing-toggle {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-top: 24px;
}
.pricing-toggle button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.pricing-toggle button.is-active {
  background: var(--ink);
  color: var(--paper);
}
.pricing-toggle .save {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--signal-ink);
  background: var(--signal);
  padding: 2px 6px;
  border-radius: 999px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.plan {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.plan.feature-plan {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  position: relative;
}
.plan.feature-plan .ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--signal);
  color: var(--signal-ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.plan h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.plan .price {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.plan .price .currency {
  font-size: 22px;
  font-style: italic;
  color: var(--ink-soft);
}
.plan.feature-plan .price .currency { color: rgba(255,255,255,0.55); }
.plan .price .per {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}
.plan.feature-plan .price .per { color: rgba(255,255,255,0.5); }
.plan .price-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: -16px;
}
.plan.feature-plan .price-sub { color: rgba(255,255,255,0.65); }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.plan ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.plan.feature-plan ul li { color: rgba(255,255,255,0.78); }
.plan ul li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background: var(--signal);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M13.4 4.3 6.7 11l-3.1-3 1.1-1.1 2 1.9 5.6-5.6z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='black' d='M13.4 4.3 6.7 11l-3.1-3 1.1-1.1 2 1.9 5.6-5.6z'/></svg>") center/contain no-repeat;
}
.plan ul li b { color: var(--ink); font-weight: 500; }
.plan.feature-plan ul li b { color: var(--paper); }

/* ====================== FAQ ====================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.faq-list { display: grid; gap: 0; }
.faq-item {
  border-top: 1px solid var(--hairline);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--hairline); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.faq-q .toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all .2s ease;
  background: var(--paper);
}
.faq-q .toggle::before, .faq-q .toggle::after { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-q .toggle::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.faq-q .toggle::before, .faq-q .toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: opacity .2s ease, transform .2s ease;
}
.faq-q .toggle::before { width: 12px; height: 1.5px; }
.faq-q .toggle::after { width: 1.5px; height: 12px; }
.faq-item.is-open .toggle {
  background: var(--ink);
}
.faq-item.is-open .toggle::before, .faq-item.is-open .toggle::after { background: var(--paper); }
.faq-item.is-open .toggle::after { opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, margin-top .35s ease;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
}
.faq-item.is-open .faq-a {
  max-height: 240px;
  margin-top: 14px;
}

/* ====================== CTA BAND ====================== */
.cta-band {
  background: var(--signal);
  color: var(--signal-ink);
  border-radius: var(--r-xl);
  padding: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "↗";
  position: absolute;
  right: -40px;
  bottom: -120px;
  font-family: var(--font-display);
  font-size: 460px;
  line-height: 1;
  color: rgba(14, 20, 16, 0.08);
  pointer-events: none;
}
.cta-band h2 { max-width: 16ch; }
.cta-band p { font-size: 18px; color: rgba(14,20,16,0.7); margin: 16px 0 0; max-width: 40ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--ink-2); }
.cta-band .btn-ghost { border-color: rgba(14,20,16,0.3); color: var(--ink); }
.cta-band .btn-ghost:hover { border-color: var(--ink); background: rgba(14,20,16,0.05); }

/* ====================== FOOTER ====================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 6vw, 96px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color .15s ease; }
.footer-grid ul a:hover { color: var(--paper); }
.footer-brand .brand small { color: rgba(255,255,255,0.5); }
.footer-brand .brand-mark { background: var(--paper); }
.footer-brand .brand-mark::after { border-color: var(--ink); }
.footer-brand p {
  margin: 18px 0 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  max-width: 32ch;
  line-height: 1.5;
}
.footer-sub {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.footer-sub .socials { display: flex; gap: 14px; }

.giant-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(120px, 22vw, 320px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  text-align: center;
  margin-top: 64px;
  user-select: none;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .feature, .feature.span-3, .feature.span-4 { grid-column: span 2; }
  .feature.span-6 { grid-column: span 4; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 28px; }
  .dash { grid-template-columns: 1fr 1fr; }
  .dash-chart, .dash-list { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .col-products, .footer-grid .col-resources, .footer-grid .col-company, .footer-grid .col-legal { }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .feature-head { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-mobile-only { display: none; }

  .hero { padding-top: 40px; }
  .hero-eyebrow { flex-wrap: wrap; gap: 10px; }
  .shortener-row { grid-template-columns: 1fr; }
  .shortener .btn-primary { width: 100%; }
  .shortener-input { height: 52px; }
  .shortener-input .scheme { display: none; }
  .shortener-options { padding: 8px 6px; }
  .result { grid-template-columns: 1fr; gap: 12px; }
  .result-actions { width: 100%; }
  .result-actions .btn { flex: 1; }
  .result .short-url { font-size: 15px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 22px 0; }
  .stat .num { font-size: 38px; }

  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature, .feature.span-3, .feature.span-4, .feature.span-6 { grid-column: span 1; min-height: 240px; padding: 24px; }
  .feature .ftitle { font-size: 26px; }

  .steps { grid-template-columns: 1fr; gap: 32px; }

  .analytics-section { padding: 32px 20px; border-radius: var(--r-lg); }
  .dash { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .dash-card { padding: 18px; }
  .dash-card .big { font-size: 42px; }
  .dash-chart, .dash-list { grid-column: span 1; }
  .dash-chart { height: 200px; padding: 16px; }
  .dash-list .row { grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 12px; font-size: 12px; }
  .dash-list .row .meter { display: none; }

  .cases { grid-template-columns: 1fr; }
  .case { min-height: 200px; padding: 22px; }

  .cta-band { padding: 36px 24px; border-radius: var(--r-lg); }
  .cta-band::before { font-size: 280px; right: -60px; bottom: -90px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }

  .footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 36px; }
  .footer-brand { grid-column: span 2; }
  .footer-sub { font-size: 10px; }
  .giant-mark { font-size: 120px; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .nav { height: 56px; }
  .brand { font-size: 20px; }
  .brand small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* Mobile menu drawer */
.mobile-drawer {
  position: fixed;
  inset: 64px 0 0 0;
  background: var(--canvas);
  z-index: 49;
  transform: translateY(-100%);
  transition: transform .3s ease;
  padding: 32px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid var(--hairline);
}
.mobile-drawer.open { transform: translateY(0); }
.mobile-drawer a {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}
.mobile-drawer .drawer-cta { margin-top: 16px; display: grid; gap: 10px; }
