/* Aplexa website styles. No external resources, no inline styles. */

:root {
  --bg: #07090c;
  --elevated: #0d1117;
  --border: #1c2430;
  --border-strong: #283241;
  --text: #e9eef6;
  --muted: #97a3b4;
  --accent: #63e6b0;
  --blue: #7aa2ff;
  --ink: #04110c;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Inter, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --max: 1120px;
  --radius: 16px;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.28);
  --shadow-window: 0 34px 90px rgba(0, 0, 0, 0.55);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 50% -240px, rgba(99, 230, 176, 0.055), transparent 65%),
    radial-gradient(900px 600px at 100% 10%, rgba(122, 162, 255, 0.045), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(99, 230, 176, 0.28);
  color: #ffffff;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 680;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

:target {
  scroll-margin-top: 88px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 12, 0.78);
  border-bottom: 1px solid rgba(28, 36, 48, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: none;
}

.brand:hover .brand-mark {
  border-color: rgba(99, 230, 176, 0.45);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
  color: var(--accent);
  border: 1px solid rgba(99, 230, 176, 0.26);
  border-radius: 8px;
  background: rgba(99, 230, 176, 0.07);
}

.brand-text {
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  padding: 4px 0;
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(99, 230, 176, 0.14);
}

.btn-primary:hover {
  background: #86f0c5;
  border-color: #86f0c5;
}

.btn-ghost {
  background: rgba(13, 17, 23, 0.72);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #3a4a61;
  background: #111821;
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link:hover {
  color: #a4bfff;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(233, 238, 246, 0.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 238, 246, 0.042) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 82% 74% at 50% 0%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 82% 74% at 50% 0%, #000 18%, transparent 78%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -22% -10% auto -10%;
  height: 78%;
  z-index: 0;
  background:
    radial-gradient(42% 42% at 22% 32%, rgba(99, 230, 176, 0.11), transparent 70%),
    radial-gradient(38% 38% at 82% 24%, rgba(122, 162, 255, 0.1), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 230, 176, 0.12);
  flex: none;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 5.2vw, 4.15rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.grad {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(100deg, var(--accent) 8%, #a9f3d7 48%, var(--blue) 104%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-sub {
  max-width: 53ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row li + li::before {
  content: "·";
  color: #3b4a5f;
  font-family: var(--mono);
  font-size: 12px;
}

/* CSS-only app window mock */

.window {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #223042;
  border-radius: 16px;
  background: linear-gradient(180deg, #0b1016, #080c11);
  box-shadow: var(--shadow-window), inset 0 1px 0 rgba(233, 238, 246, 0.045);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.92);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
  flex: none;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3546;
}

.window-dots span:nth-child(1) {
  background: #354156;
}

.window-dots span:nth-child(3) {
  background: rgba(99, 230, 176, 0.42);
}

.window-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.window-badge {
  flex: none;
  padding: 2px 7px;
  border: 1px solid rgba(99, 230, 176, 0.3);
  border-radius: 999px;
  background: rgba(99, 230, 176, 0.08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-body {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  min-width: 0;
}

.window-side {
  min-width: 0;
  padding: 12px 9px;
  border-right: 1px solid var(--border);
  background: rgba(7, 9, 12, 0.35);
}

.side-label {
  margin: 0 0 8px;
  padding: 0 7px;
  color: #77859a;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.file-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 6px;
}

.file-list li > span:not(.file-dot):not(.file-status) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list li.active {
  background: rgba(122, 162, 255, 0.1);
  color: var(--text);
}

.file-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #354156;
  flex: none;
}

.file-list li.active .file-dot {
  background: var(--blue);
}

.file-status {
  margin-left: auto;
  color: var(--accent);
  font-size: 8.5px;
  flex: none;
}

.window-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.editor-tabs {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.42);
}

.tab {
  padding: 8px 11px;
  border-right: 1px solid rgba(28, 36, 48, 0.75);
  color: #77859a;
  font-family: var(--mono);
  font-size: 9.5px;
  white-space: nowrap;
}

.tab-active {
  color: var(--text);
  background: rgba(7, 9, 12, 0.35);
  box-shadow: inset 0 -1px 0 var(--accent);
}

.editor-prompt {
  padding: 11px 14px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(122, 162, 255, 0.035);
}

.prompt-label {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.editor-prompt p {
  margin: 0;
  color: #c9d3e1;
  font-size: 10.5px;
  line-height: 1.5;
}

.agent-plan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
}

.plan-chip {
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  color: #93a1b4;
  font-family: var(--mono);
  font-size: 8.5px;
  white-space: nowrap;
}

.plan-chip-on {
  border-color: rgba(99, 230, 176, 0.28);
  background: rgba(99, 230, 176, 0.07);
  color: var(--accent);
}

.code {
  padding: 7px 0 9px;
  overflow: hidden;
  background: #080c11;
  color: #b7c3d4;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.7;
}

.code-line {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 0 12px;
  white-space: pre;
}

.ln {
  width: 15px;
  flex: none;
  color: #405067;
  text-align: right;
  user-select: none;
}

.code-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.diff-meta {
  color: #6f7d90;
}

.diff-add {
  background: rgba(99, 230, 176, 0.085);
  box-shadow: inset 2px 0 0 #2f9d76;
  color: #a8f0cf;
}

.diff-del {
  background: rgba(255, 122, 122, 0.065);
  box-shadow: inset 2px 0 0 #a55858;
  color: #dba3a3;
}

.editor-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.75);
  color: #77859a;
  font-family: var(--mono);
  font-size: 8.5px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.status-pill {
  color: var(--accent);
  flex: none;
}

.status-pill::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

/* Sections */

.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--border);
}

.section-tight {
  padding: 72px 0;
}

.section-cta {
  padding: 80px 0 96px;
}

.section-head {
  max-width: 690px;
  margin-bottom: 44px;
}

.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  letter-spacing: -0.035em;
}

.section-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-head-center p {
  margin-left: auto;
  margin-right: auto;
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 23, 31, 0.88), rgba(13, 17, 23, 0.88));
  box-shadow: 0 1px 0 rgba(233, 238, 246, 0.025) inset;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #2c3a4d;
  background: linear-gradient(180deg, rgba(19, 26, 35, 0.94), rgba(13, 17, 23, 0.94));
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid rgba(99, 230, 176, 0.22);
  border-radius: 10px;
  background: rgba(99, 230, 176, 0.07);
  color: var(--accent);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(4) .feature-icon {
  border-color: rgba(122, 162, 255, 0.24);
  background: rgba(122, 162, 255, 0.08);
  color: var(--blue);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.018em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.55);
}

.step-num {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.66;
}

/* Pricing preview */

.preview {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 44px;
  align-items: center;
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(70% 130% at 8% 0%, rgba(99, 230, 176, 0.07), transparent 58%),
    radial-gradient(55% 100% at 100% 10%, rgba(122, 162, 255, 0.06), transparent 58%),
    var(--elevated);
}

.preview h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.preview-copy p {
  max-width: 50ch;
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.7;
}

.preview-card {
  padding: 24px;
  border: 1px solid #2b394c;
  border-radius: 14px;
  background: #0a0f15;
  box-shadow: var(--shadow-card);
}

.preview-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.preview-plan strong {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.preview-plan span {
  padding: 2px 8px;
  border: 1px solid rgba(99, 230, 176, 0.26);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.preview-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 4px;
}

.preview-price strong {
  font-size: 2.5rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

.preview-price span {
  color: var(--muted);
  font-size: 0.88rem;
}

.preview-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.preview-card .btn {
  min-height: 42px;
  font-size: 14px;
}

/* FAQ */

.faq {
  max-width: 840px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 0 22px;
}

.faq-answer p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Closing CTA */

.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 48px;
  border: 1px solid #263245;
  border-radius: 16px;
  background:
    radial-gradient(72% 130% at 16% 0%, rgba(99, 230, 176, 0.1), transparent 60%),
    radial-gradient(58% 110% at 92% 12%, rgba(122, 162, 255, 0.1), transparent 58%),
    #0b1118;
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.cta-panel p {
  max-width: 55ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

/* Page hero (subpages) */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 34px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto 20%;
  height: 340px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(99, 230, 176, 0.08), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.3rem, 4.6vw, 3.45rem);
  letter-spacing: -0.042em;
}

.page-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.7;
}

.page-hero-center {
  text-align: center;
}

.page-hero-center .eyebrow {
  justify-content: center;
}

.page-hero-center p {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-center h1 {
  margin-left: auto;
  margin-right: auto;
}

/* Pricing plan card */

.pricing-section {
  padding: 28px 0 88px;
}

.plan-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #2a384b;
  border-radius: 16px;
  background: linear-gradient(180deg, #0e141c, #0a0f15);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(233, 238, 246, 0.04);
}

.plan-main {
  padding: 40px;
  border-right: 1px solid var(--border);
}

.plan-aside {
  padding: 40px;
  background: rgba(7, 9, 12, 0.32);
}

.plan-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.plan-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.plan-badge {
  padding: 3px 9px;
  border: 1px solid rgba(99, 230, 176, 0.28);
  border-radius: 999px;
  background: rgba(99, 230, 176, 0.07);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  margin: 26px 0 6px;
}

.price-amount {
  font-size: 3.55rem;
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 1;
}

.price-currency {
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-period {
  padding-bottom: 7px;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.plan-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 12px 0 0;
  font-size: 12.5px;
}

.plan-legal a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plan-legal a:hover {
  color: #a4bfff;
}

.price-tax {
  margin: 14px 0 22px;
  color: #8290a3;
  font-size: 12px;
  line-height: 1.55;
}

.plan-main .btn {
  width: 100%;
}

.plan-subnote {
  margin: 12px 0 0;
  color: #7f8b9c;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.aside-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c8d2e0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-list li::before {
  content: "\2713";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border: 1px solid rgba(99, 230, 176, 0.28);
  border-radius: 50%;
  background: rgba(99, 230, 176, 0.08);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.aside-note {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* Subscribe steps */

.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.subscribe-step {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.58);
}

.subscribe-step .step-num {
  margin-bottom: 14px;
}

.subscribe-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.012em;
}

.subscribe-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.support-note {
  margin: 34px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.5);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.support-note strong {
  color: var(--text);
}

.support-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legal pages */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 38px;
  border-bottom: 1px solid var(--border);
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: -50% 30% auto 30%;
  height: 320px;
  background: radial-gradient(50% 60% at 50% 50%, rgba(122, 162, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.legal-hero .wrap {
  position: relative;
}

.legal-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 4.2vw, 3.1rem);
  letter-spacing: -0.04em;
}

.legal-hero p {
  max-width: 66ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 22px 0 0;
  color: #8290a3;
  font-size: 12.5px;
}

.legal-meta span {
  display: inline-flex;
  gap: 6px;
}

.legal-meta strong {
  color: var(--muted);
  font-weight: 600;
}

.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 56px;
  align-items: start;
  padding-top: 52px;
  padding-bottom: 92px;
}

.legal-toc {
  position: sticky;
  top: 92px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
  font-size: 12.5px;
}

.legal-toc h2 {
  margin: 0 0 12px;
  color: #8290a3;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  color: var(--muted);
  line-height: 1.4;
  transition: color 0.16s ease;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-body {
  max-width: 760px;
  min-width: 0;
}

.legal-intro {
  margin: 0 0 8px;
  color: #c6d1df;
  font-size: 1.02rem;
  line-height: 1.78;
}

.legal-body h2 {
  margin: 44px 0 12px;
  font-size: 1.32rem;
  letter-spacing: -0.022em;
  scroll-margin-top: 92px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  margin: 26px 0 8px;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
}

.legal-body p,
.legal-body li {
  color: #c6d1df;
  font-size: 1rem;
  line-height: 1.78;
}

.legal-body p {
  margin: 0 0 1.05em;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.legal-body li {
  margin: 0.36em 0;
}

.legal-body li::marker {
  color: var(--accent);
}

.legal-body strong {
  color: var(--text);
  font-weight: 650;
}

.legal-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-body a:hover {
  color: #a4bfff;
}

.legal-body code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #0d1117;
  font-family: var(--mono);
  font-size: 0.86em;
}

.table-wrap {
  margin: 22px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.4);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline-offset: 4px;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

caption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: left;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: #0d1117;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #c6d1df;
  line-height: 1.6;
}

tr:last-child td {
  border-bottom: 0;
}

.legal-contact {
  margin: 40px 0 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.55);
}

.legal-contact h2,
.legal-contact h3 {
  margin-top: 0;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

/* 404 */

.error-page {
  display: flex;
  align-items: center;
  min-height: 64vh;
  padding: 80px 0 96px;
}

.error-inner {
  max-width: 620px;
}

.error-code {
  margin: 0 0 14px;
  color: #1d2938;
  font-family: var(--mono);
  font-size: clamp(3.4rem, 10vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  user-select: none;
}

.error-page h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
}

.error-page .error-sub {
  max-width: 52ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

/* Footer */

.site-footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
  background: #06080b;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.9fr 1fr 1fr 1.25fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 36ch;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-entity {
  color: #b3bfce;
}

.footer-heading {
  margin: 0 0 14px;
  color: #7f8b9c;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #c2ccda;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: #a4bfff;
}

.footer-contact p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #141b24;
  color: #7f8b9c;
  font-size: 12.5px;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    padding: 72px 0 68px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .window {
    max-width: 660px;
  }

  .preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .preview-card {
    max-width: 420px;
  }

  .subscribe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    max-width: 800px;
  }

  .legal-toc {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .site-nav {
    gap: 18px;
    font-size: 13px;
  }

  .plan-card {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
  }

  .plan-main {
    padding: 32px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .plan-aside {
    padding: 32px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px;
  }
}

@media (max-width: 700px) {
  :target {
    scroll-margin-top: 108px;
  }

  .legal-body h2 {
    scroll-margin-top: 108px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 10px;
    min-height: 0;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 16px;
    padding: 2px 0 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    flex: none;
  }

  .brand {
    font-size: 17px;
  }

  .hero {
    padding: 56px 0 56px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.25rem, 8vw, 2.9rem);
  }

  .hero-sub {
    font-size: 1.03rem;
  }

  .section,
  .section-tight,
  .section-cta {
    padding: 62px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview {
    padding: 28px;
  }

  .cta-panel {
    padding: 30px;
    border-radius: 16px;
  }

  .page-hero {
    padding: 52px 0 26px;
  }

  .legal-hero {
    padding: 48px 0 30px;
  }

  .legal-shell {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    margin-top: 32px;
  }

  .window-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .window-side {
    display: none;
  }

  table {
    min-width: 520px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-actions .btn {
    min-height: 32px;
    padding: 0 11px;
    font-size: 12.5px;
  }

  .site-nav {
    gap: 14px;
    font-size: 12.5px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    gap: 6px 10px;
    font-size: 12.5px;
  }

  .feature-card {
    padding: 22px;
  }

  .window-bar {
    gap: 8px;
    padding: 9px 11px;
  }

  .window-title {
    font-size: 10px;
  }

  .tab {
    padding: 8px 9px;
    font-size: 9px;
  }

  .editor-prompt {
    padding: 10px 11px;
  }

  .agent-plan {
    padding: 7px 11px;
  }

  .code {
    font-size: 9px;
  }

  .code-line {
    padding: 0 10px;
    gap: 7px;
  }

  .editor-status {
    padding: 8px 11px;
    font-size: 8px;
  }

  .preview {
    padding: 22px;
  }

  .plan-main,
  .plan-aside {
    padding: 26px 22px;
  }

  .price-amount {
    font-size: 3rem;
  }

  .subscribe-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-note {
    padding: 16px 18px;
  }

  .error-page {
    padding: 56px 0 72px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand {
    grid-column: auto;
  }

  .legal-body h2 {
    font-size: 1.22rem;
    margin-top: 36px;
  }
}

/* Print styles for legal pages */

@media print {
  @page {
    margin: 18mm 16mm;
  }

  body.legal-page {
    background: #ffffff;
    color: #111111;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  body.legal-page .site-header,
  body.legal-page .site-footer,
  body.legal-page .skip-link,
  body.legal-page .legal-toc {
    display: none;
  }

  body.legal-page .legal-hero {
    padding: 0 0 18px;
    border: 0;
    background: none;
  }

  body.legal-page .legal-hero::before {
    display: none;
  }

  body.legal-page .wrap {
    max-width: none;
    padding: 0;
  }

  body.legal-page .legal-shell {
    display: block;
    padding: 0;
  }

  body.legal-page .legal-body {
    max-width: none;
  }

  body.legal-page h1,
  body.legal-page h2,
  body.legal-page h3,
  body.legal-page strong {
    color: #000000;
  }

  body.legal-page .legal-hero h1 {
    font-size: 22pt;
  }

  body.legal-page .legal-hero p {
    font-size: 10.5pt;
  }

  body.legal-page .legal-body h2 {
    margin: 18pt 0 6pt;
    font-size: 13pt;
  }

  body.legal-page .legal-body h3 {
    font-size: 11pt;
  }

  body.legal-page p,
  body.legal-page li,
  body.legal-page td,
  body.legal-page .legal-intro,
  body.legal-page .legal-meta {
    color: #111111;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  body.legal-page p {
    orphans: 3;
    widows: 3;
  }

  body.legal-page .legal-meta strong {
    color: #111111;
  }

  body.legal-page h2,
  body.legal-page h3 {
    break-after: avoid;
  }

  body.legal-page a {
    color: #111111;
    text-decoration: underline;
  }

  body.legal-page .table-wrap {
    overflow: visible;
    border-color: #bbbbbb;
    background: none;
  }

  body.legal-page table {
    min-width: 0;
  }

  body.legal-page th {
    background: #eeeeee;
    color: #000000;
  }

  body.legal-page th,
  body.legal-page td {
    border-color: #bbbbbb;
  }

  body.legal-page .legal-contact {
    border-color: #bbbbbb;
    background: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
