@import url("./shell.css");

:root {
  --ed-bg: #08080a;
  --ed-ink: #f4f4f5;
  --ed-muted: #d4d4d8;
  --ed-dim: #c8c8d0;
  --ed-line: rgba(255, 255, 255, 0.12);
  --ed-paper: #fafafa;
  --ed-paper-ink: #16161a;
  --ed-paper-muted: #3f3f46;
  --ed-violet: #a855f7;
  --ed-violet-soft: #e9d5ff;
  --nav-h: 64px;
}

body.ed {
  background: var(--ed-bg);
  color: #f4f4f5;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body.ed h1, body.ed h2 { color: #fafafa; }
body.ed .ed-paper, body.ed .ed-paper h1, body.ed .ed-paper h2, body.ed .ed-paper h3, body.ed .ed-paper p, body.ed .ed-paper li { color: #f4f4f5; }
body.ed .ed-paper .lede, body.ed .ed-paper .ed-split p, body.ed .ed-price ul { color: #d4d4d8; }

body.ed .bg-grid { display: block; opacity: 0.35; }

.ed-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.ed-nav .nav-brand img { width: 22px; height: 22px; }
.ed-nav-kicker {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ed-dim);
  letter-spacing: -0.02em;
}

body.ed .site-header.ed-nav {
  background: color-mix(in srgb, var(--ed-bg) 88%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
body.ed .site-header.ed-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
body.ed .site-header.ed-nav .nav-brand {
  flex-shrink: 0;
}
body.ed .site-header.ed-nav .nav-links {
  margin-right: auto;
  margin-left: 12px;
}
body.ed .site-header.ed-nav .ed-nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
body.ed .site-header > .btn { margin-left: 0; }

@media (min-width: 901px) {
  .ed-nav .nav-toggle { display: none; }
}

.ed-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 36px;
  min-height: 72px;
  padding: 0 40px;
  background: color-mix(in srgb, var(--ed-bg) 86%, transparent);
  border-bottom: 1px solid var(--ed-line);
  backdrop-filter: blur(16px);
  transition: background 280ms ease, color 280ms ease, border-color 280ms ease;
}

.ed-nav.is-paper {
  background: color-mix(in srgb, var(--ed-paper) 90%, transparent);
  color: var(--ed-paper-ink);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

.ed-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 18px;
}

.ed-brand img { width: 22px; height: 22px; }

.ed-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ed-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #d4d4d8;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.ed-links a:hover,
.ed-links a[aria-current="page"] { color: #fff; }
.ed-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 #c4b5fd; }

.ed-links a:focus-visible,
.ed-dash:focus-visible,
.ed-login:focus-visible,
.ed-palette button:focus-visible,
.ed-mode:focus-visible,
.ed-send:focus-visible {
  outline: 2px solid var(--ed-violet-soft);
  outline-offset: 2px;
}

.ed-nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.ed-login {
  min-height: 44px;
  padding: 0 12px;
  background: transparent;
  color: inherit;
  border: 0;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ed-dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f0f0f3;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ed-nav.is-paper .ed-dash { background: #16161a; color: #fafafa; }

.ed-menu {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.ed-band { padding: var(--section-y-md) 0; border-top: 1px solid var(--ed-line); }
.ed-band-metrics { padding-top: var(--section-y-sm); padding-bottom: var(--section-y-md); border-top: 0; }
.ed-design-band .ed-split { border-top: 0; padding: 0; gap: var(--gap-xl); }
.ed-split-band .ed-split,
.ed-rows-band .ed-rows { border-top: 0; padding: 0; }
.ed-steps-band .ed-steps,
.ed-chart-band .ed-chart { border-top: 0; padding: 0; }

.ed-hero.ed-editorial {
  padding: calc(var(--section-y) + 20px) 0 var(--section-y-md);
  border-bottom: 1px solid var(--ed-line);
}
.ed-hero.ed-editorial h1 {
  position: relative;
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(44px, 5.8vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 560;
}
.ed-hero.ed-editorial .ed-lead { margin-top: 24px; max-width: 44rem; }

.ed-hero.ed-canvas {
  position: relative;
  padding: calc(var(--section-y) + 24px) 0 var(--section-y-md);
  overflow: hidden;
  border-bottom: 1px solid var(--ed-line);
}
.ed-canvas-inner { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.ed-canvas h1 {
  position: relative;
  max-width: none;
  margin: 0 auto;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 560;
}
.ed-canvas .ed-lead { margin: 20px auto 0; max-width: 36rem; font-size: 17px; }
.ed-composer {
  display: block;
  margin: 40px 0 0;
  padding: 16px 16px 12px;
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  background: #2a2a2e;
  color: #f4f4f5;
  text-decoration: none;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transition: border-color 200ms ease, transform 200ms ease;
}
.ed-composer:hover { border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.ed-composer-ph { display: block; min-height: 56px; color: var(--ed-muted); line-height: 1.5; padding: 4px 4px 12px; }
.ed-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: #f4f4f5; }
.ed-composer-plus,
.ed-composer-send { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; }
.ed-composer-plus { border: 1px solid rgba(255, 255, 255, 0.18); }
.ed-composer-send { background: #f4f4f5; color: #141418; font-weight: 700; }
.ed-starters { margin-top: 28px; display: flex; flex-direction: column; gap: 0; text-align: left; }
.ed-starters a {
  display: grid;
  gap: 4px;
  padding: 16px 4px;
  border-top: 1px solid var(--ed-line);
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease;
}
.ed-starters a:hover { background: rgba(255, 255, 255, 0.03); }
.ed-starters b { font-weight: 600; font-size: 15px; }
.ed-starters span { color: var(--ed-muted); font-size: 14px; line-height: 1.45; }
.ed-hero-foot { margin-top: 32px; }
.ed-hero-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ed-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 14px;
}
.ed-hero-foot a:hover { color: #fff; }

.ed-hero {
  position: relative;
  padding: 88px 8vw 40px;
  overflow: hidden;
}

.ed-dots { display: none; }

.ed-hero h1 {
  position: relative;
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 560;
}

.word-design {
  background: linear-gradient(100deg, #d8b4fe, #ffffff, #e9d5ff, #ffffff, #d8b4fe);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: design-shift 7s linear infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.45));
}

.ed-lead {
  position: relative;
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--ed-muted);
  font-size: 18px;
  line-height: 1.55;
}

.ed-actions { position: relative; display: flex; gap: 18px; margin-top: 28px; flex-wrap: wrap; }

.ed-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  font-weight: 550;
}

.ed-metrics:not(.shell) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--ed-line);
}

.ed-metrics:not(.shell) div {
  padding: 22px 16px;
  border-bottom: 0;
  text-align: center;
}

.ed-metrics:not(.shell) div + div {
  padding-left: 24px;
  border-left: 1px solid var(--ed-line);
}

.ed-metrics:not(.shell) b {
  display: block;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 560;
}

.ed-metrics:not(.shell) span { color: var(--ed-dim); font-size: 13px; }

.ed-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--gap-xl);
  align-items: center;
  padding: 0;
  border-top: 0;
  overflow: hidden;
}
.ed-split-cta { margin: 20px 0 0; }
.ed-split-cta a { color: #e9d5ff; text-decoration: none; border-bottom: 1px solid rgba(233, 213, 255, 0.45); font-weight: 550; }

.ed-split h2 {
  margin: 0 0 12px;
  font-family: var(--font-display, "Space Grotesk", system-ui, sans-serif);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1;
  font-weight: 550;
}

.ed-split p { margin: 0; color: var(--ed-muted); font-size: 17px; line-height: 1.55; max-width: 36rem; }

.ed-wire { width: 100%; height: auto; display: block; }

.ed-wire path { fill: none; stroke: rgba(255, 255, 255, 0.72); stroke-width: 1.25; }

.ed-pricing {
  padding: var(--section-y) 0;
  background: transparent;
  color: var(--ed-ink);
}
.ed-pricing h2,
.ed-pricing h3 { color: #fafafa; }
.ed-pricing-head { max-width: 36rem; margin-bottom: 36px; }
.ed-pricing-head p { margin: 12px 0 0; color: var(--ed-muted); font-size: 17px; line-height: 1.55; }
.ed-pricing .ed-bill { padding: 0 0 8px; }
.ed-pricing .ed-bill button {
  border-color: var(--ed-line);
  color: var(--ed-ink);
}
.ed-pricing .ed-bill button[aria-pressed="true"] { background: #f4f4f5; color: #141418; }
.ed-pricing .ed-price { border-top-color: var(--ed-line); }
.ed-pricing .ed-price article + article { border-left-color: var(--ed-line); }
.ed-pricing .ed-price ul { color: var(--ed-muted); }
.ed-pricing .ed-price li { border-top-color: var(--ed-line); color: var(--ed-ink); }

.ed-paper {
  background: transparent;
  color: #f4f4f5;
  position: relative;
}

.ed-paper .ed-dots {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1.2px);
}

.ed-paper .ed-split { border-top: 0; padding-top: 40px; padding-bottom: 24px; }
.ed-paper .ed-split p { color: #d4d4d8; }
.ed-paper .ed-wire path { stroke: rgba(255, 255, 255, 0.72); }

.ed-sandbox {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: #2a2a2a;
  color: #f4f4f5;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 16px 16px 12px;
}
.mock-top { min-height: 64px; color: #d4d4d8; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #f4f4f5; }
.mock-plus, .mock-send { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
.mock-plus { border: 1px solid rgba(255,255,255,.2); }
.mock-send { background: #f4f4f5; color: #141418; }

.ed-sandbox header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.ed-sandbox textarea {
  width: 100%;
  min-height: 96px;
  border: 0;
  resize: vertical;
  padding: 14px;
  font: inherit;
  color: inherit;
  background: transparent;
}

.ed-sandbox footer { display: flex; justify-content: space-between; gap: 8px; padding: 0 14px 14px; align-items: center; }

.ed-sandbox button, .ed-mode, .ed-send {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f4f4f5;
  font: inherit;
  cursor: pointer;
  padding: 0 14px;
}

.ed-sandbox .go {
  background: #f4f4f5;
  color: #141418;
  border: 0;
}

.ed-preview {
  margin: 0 14px 14px;
  padding: 12px;
  border-radius: 10px;
  background: #1c1c1c;
  color: #e4e4e7;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ed-price {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ed-price article { padding: 28px 22px 32px; }

.ed-price article + article { border-left: 1px solid rgba(255, 255, 255, 0.12); }

.ed-price h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.03em; }

.ed-price b { display: block; font-size: 40px; letter-spacing: -0.05em; font-weight: 560; }

.ed-price ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--ed-paper-muted); }

.ed-price li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #f4f4f5; }

.ed-bill { display: flex; gap: 8px; padding: 0; }
.ed-bill button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #f4f4f5;
  font: inherit;
  cursor: pointer;
}
.ed-bill button[aria-pressed="true"] { background: #f4f4f5; color: #141418; }

.ed-rows { padding: 0; }

.ed-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--ed-line);
}

.ed-row h3 { margin: 0; font-size: 18px; letter-spacing: -0.03em; }
.ed-row p { margin: 0; color: var(--ed-muted); line-height: 1.5; }

.ed-reveal { opacity: 0; transform: translateY(16px); animation: ed-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.ed-reveal:nth-child(2) { animation-delay: 70ms; }
.ed-reveal:nth-child(3) { animation-delay: 140ms; }

@keyframes ed-in { to { opacity: 1; transform: none; } }
@keyframes design-shift { to { background-position: 220% 0; } }

.ed-palette {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 21, 0.62);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
  z-index: 60;
}

.ed-palette[hidden] { display: none; }

.ed-palette form {
  width: min(520px, 100%);
  background: #18181c;
  color: var(--ed-ink);
  border: 1px solid var(--ed-line);
  border-radius: 14px;
  padding: 8px;
}

.ed-palette input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0 10px;
}

.ed-palette button {
  display: flex;
  width: 100%;
  min-height: 44px;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  cursor: pointer;
  font: inherit;
}

.ed-palette button:hover, .ed-palette button[aria-selected="true"] { background: rgba(255, 255, 255, 0.06); }

@media (max-width: 900px) {
  .ed-links { display: none; }
  .ed-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--ed-bg);
    border-bottom: 1px solid var(--ed-line);
    padding: 8px;
  }
  .ed-nav.is-paper .ed-links.is-open { background: var(--ed-paper); }
  .ed-menu { display: inline-flex; align-items: center; justify-content: center; }
  .ed-metrics, .ed-price, .ed-split, .ed-row, .ed-chart, .ed-steps li { grid-template-columns: 1fr; }
  .ed-metrics div + div, .ed-price article + article { border-left: 0; padding-left: 0; }
  .ed-hero.ed-canvas { padding-top: calc(var(--section-y-sm) + 16px); }
}

.ed-steps, .ed-chart { padding: 0; border-top: 0; overflow: hidden; }
.ed-steps h2, .ed-chart h2 { margin: 0 0 28px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.045em; color: #fafafa; }
.ed-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ed-steps li { display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--ed-line); color: #f4f4f5; font-size: 20px; }
.ed-steps b { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 14px; letter-spacing: 0.08em; color: #e9d5ff; }
.ed-chart { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.ed-chart p { margin: 0; color: #e4e4e7; max-width: 28rem; }
.ed-chart ul { list-style: none; margin: 20px 0 0; padding: 0; color: #f4f4f5; }
.ed-chart li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.ed-chart i { width: 18px; height: 3px; background: #e9d5ff; display: inline-block; }
.ed-chart figure { margin: 0; background: #18181d; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 12px 12px 4px; }
.ed-chart svg { width: 100%; height: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .word-design { animation: none; filter: none; }
  .ed-reveal { animation: none; opacity: 1; transform: none; }
  .ed-nav { transition: none; }
}
