@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  font-family: "Space Grotesk", sans-serif;
  --font-display: "Fraunces", serif;
  --bg: #f4f2ed;
  --bg-tint: #e7f1ef;
  --ink: #1f2933;
  --muted: #5b6b7a;
  --primary: #0f766e;
  --primary-strong: #0b5f59;
  --accent: #f97316;
  --card: #ffffff;
  --field-bg: #f4f6f9;
  --field-text: #1f2933;
  --border: #d7e0e7;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --glow-1: rgba(15, 118, 110, 0.18);
  --glow-2: rgba(249, 115, 22, 0.16);
  --overlay: rgba(255, 255, 255, 0.35);
  --header-bg: rgba(255, 255, 255, 0.85);
  --nav-hover: rgba(15, 118, 110, 0.12);
  --accent-line: rgba(15, 118, 110, 0.2);
  --radius: 18px;
}

html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background 0.6s ease,
    background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease,
    box-shadow 0.6s ease,
    fill 0.6s ease,
    stroke 0.6s ease,
    text-decoration-color 0.6s ease;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-tint: #0b1322;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --primary: #14b8a6;
  --primary-strong: #0f766e;
  --accent: #f59e0b;
  --card: #111827;
  --field-bg: #0b1322;
  --field-text: #e2e8f0;
  --border: #233247;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.55);
  --glow-1: rgba(20, 184, 166, 0.22);
  --glow-2: rgba(245, 158, 11, 0.14);
  --overlay: rgba(15, 23, 42, 0.45);
  --header-bg: rgba(15, 23, 42, 0.75);
  --nav-hover: rgba(20, 184, 166, 0.2);
  --accent-line: rgba(20, 184, 166, 0.25);
  --btn-secondary-bg: #0b1322;
  --btn-secondary-text: #cbd5f5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--glow-1), transparent 60%),
    radial-gradient(1000px 500px at 90% 0%, var(--glow-2), transparent 60%),
    var(--bg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, var(--overlay), rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: -1;
}
header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 1.1rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}
a.logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  background: var(--nav-hover);
  transform: translateY(-1px);
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}
nav a:hover {
  color: var(--ink);
  background: var(--nav-hover);
}
nav a.active {
  color: var(--ink);
  font-weight: 600;
  background: transparent;
}
nav a.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.5);
}
main {
  flex: 1;
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
main.home { gap: clamp(2rem, 5vw, 3.5rem); }
main.auth {
  min-height: calc(100vh - 96px);
  align-content: center;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-5vh);
  justify-items: center;
  text-align: center;
}
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.4rem);
  line-height: 1.05;
}
h2 { font-size: clamp(1.6rem, 2.4vw, 2.4rem); }
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  width: min(560px, 92vw);
}

.auth-footer {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.75rem;
  width: min(560px, 92vw);
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-link-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
}

.auth-legal {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-sep {
  color: var(--muted);
}

main.legal {
  align-content: start;
  gap: 1.6rem;
}

.legal-hero {
  display: grid;
  gap: 0.6rem;
}

.legal-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.legal-meta {
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
}

.legal-card h2 {
  font-size: 1.4rem;
  margin: 0;
}

.legal-card h3 {
  font-size: 1.05rem;
  margin: 0.2rem 0 0;
}

.legal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.legal-card li {
  line-height: 1.6;
}

.hotkeys-page {
  padding-top: clamp(3.4rem, 6vw, 4.2rem);
  gap: 2.6rem;
  align-content: start;
  grid-auto-rows: max-content;
}

.hotkeys-page h1 {
  margin-bottom: 0;
}

.hotkey-form {
  width: calc(100% + 2%);
  margin-left: -1%;
  margin-right: -1%;
  max-width: none;
  padding: 1.6rem;
  gap: 1.5rem;
}

.hotkey-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hotkey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
}

.hotkey-field--modifier { grid-column: 1; }
.hotkey-field--key { grid-column: 2; }
.hotkey-field--text { grid-column: 1 / -1; }

.hotkey-submit {
  grid-column: 1;
  padding: 0.9rem 1.6rem;
  white-space: nowrap;
  align-self: end;
}

.hotkey-form input[name="key"] {
  text-transform: uppercase;
}
.hotkey-form input,
.hotkey-form select,
.hotkey-form textarea {
  background: var(--field-bg);
  color: var(--field-text);
}
.hotkey-form input::placeholder,
.hotkey-form textarea::placeholder {
  color: var(--muted);
}
main.auth input,
main.auth select,
main.auth textarea {
  background: var(--field-bg);
  color: var(--field-text);
}
main.auth input::placeholder,
main.auth textarea::placeholder {
  color: var(--muted);
}
input, button, select, textarea {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.15rem);
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.hotkey-form textarea {
  resize: none;
  min-height: 56px;
  line-height: 1.4;
}
button {
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  color: #fff;
  cursor: pointer;
  border: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
form button { width: 100%; }
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
  filter: brightness(1.03);
}
.password-field {
  position: relative;
  display: flex;
  align-items: center;
}
.password-field input {
  width: 100%;
  padding-right: 2.8rem;
}
.password-toggle {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--ink);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}
.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.75;
}
.password-toggle:hover {
  transform: translateY(-50%);
  box-shadow: none;
  filter: none;
}
.password-toggle:hover svg {
  opacity: 1;
}
.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}
button.secondary {
  background: var(--btn-secondary-bg, #fff);
  color: var(--btn-secondary-text, var(--muted));
  border: 1px solid var(--border);
  box-shadow: none;
}
.hotkey-list { margin-top: 1rem; }
.hotkeys-page .hotkey-list { margin-top: 0.5rem; }
.hotkey {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  position: relative;
}
.hotkey::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 3px;
  border-radius: 999px;
  background: var(--accent-line);
}
.hotkey-main {
  display: grid;
  gap: 0.35rem;
  padding-left: 1rem;
}
.hotkey-combo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.combo-pill {
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-strong);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.combo-plus {
  color: var(--muted);
  font-weight: 600;
}
.combo-key {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  padding: 0.25rem 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.hotkey-text {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 500;
}
.hotkey:hover {
  background: rgba(15, 118, 110, 0.04);
}
.hotkey .secondary {
  font-size: 0.9rem;
}
.hotkey-fixed {
  align-self: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-strong);
  background: rgba(15, 118, 110, 0.12);
  white-space: nowrap;
}
.demo-stack {
  display: grid;
  gap: 1rem;
}
.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
}
.demo-card .typing-line {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 1.2em;
  position: relative;
  --wave: 0%;
}
.demo-card .typing-line .prefix,
.demo-card .typing-line .suffix {
  white-space: pre-wrap;
}
.demo-card .typing-line.is-overwriting {
  background-image: linear-gradient(90deg, transparent 0%, rgba(20, 184, 166, 0.35) 50%, transparent 70%);
  background-size: 140px 100%;
  background-repeat: no-repeat;
  background-position: calc(var(--wave) - 25%) 50%;
}
.demo-card .typing-line .suffix {
  transition: opacity 0.2s ease;
}
.demo-card .typing-line.is-selected .prefix,
.demo-card .typing-line.is-selected .suffix {
  background: rgba(15, 118, 110, 0.18);
  color: var(--ink);
  border-radius: 4px;
}
.demo-card .caret {
  width: 8px;
  height: 1.1em;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0;
  animation: caret-blink 0.9s steps(2, end) infinite;
}
.demo-card .typing-line.is-typing .caret {
  opacity: 1;
}
.demo-card .src { color: var(--muted); }
.demo-card .combo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-strong);
  font-weight: 600;
  width: fit-content;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.combo-block {
  display: grid;
  gap: 0.25rem;
  width: fit-content;
}
.combo-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-left: 0.4rem;
}
.demo-card .combo.is-pressed {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.demo-card .dst {
  display: none;
  font-weight: 600;
}
.demo-dots {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-start;
  padding-left: 0.2rem;
}
.demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  opacity: 0.7;
}
.demo-dot.active {
  background: var(--primary);
  opacity: 1;
}

.section {
  display: grid;
  gap: 1.5rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.section-lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.1rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}
.feature-card h3 { margin-bottom: 0.4rem; }

.examples {
  gap: 1.6rem;
}
.examples-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.examples-copy {
  display: grid;
  gap: 0.9rem;
}
.examples-lead {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0;
}
.examples-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 1rem;
}
.examples-note {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.examples-cards {
  display: grid;
  gap: 1rem;
}
.prompt-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.35rem;
}
.prompt-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.prompt-key {
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--nav-hover);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.9rem;
}
.prompt-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.prompt-line span {
  color: var(--ink);
  font-weight: 600;
}
.prompt-card--accent {
  border-color: rgba(15, 118, 110, 0.35);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), transparent);
}
.feature-card p { margin: 0; color: var(--muted); }

.quote-card {
  background: linear-gradient(140deg, rgba(15, 118, 110, 0.12), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  width: min(980px, 92vw);
  margin: 0 auto;
}
.quote-card::after {
  content: "“";
  position: absolute;
  top: -10px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(15, 118, 110, 0.15);
  line-height: 1;
}
.quote-text {
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  color: var(--ink);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}
.quote-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.quote-name {
  font-weight: 700;
  color: var(--primary-strong);
}
.quote-role {
  color: var(--muted);
  font-size: 0.95rem;
}


.steps {
  display: grid;
  gap: 1rem;
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.2rem;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.step h3 { margin: 0 0 0.3rem; }
.step p { margin: 0; color: var(--muted); }

main > * {
  animation: fade-up 0.6s ease both;
}
main > *:nth-child(2) { animation-delay: 0.08s; }
main > *:nth-child(3) { animation-delay: 0.16s; }
main > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes caret-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}


/* --- pricing ------------------------------------------------------------- */
.pricing-section {
  max-width: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.pricing-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center;
}

.pricing-copy {
  display: grid;
  gap: 0.8rem;
}

.pricing-lead {
  color: var(--muted);
  max-width: 44ch;
  margin: 0;
  font-size: 1.1rem;
}

.pricing-note {
  color: var(--muted);
  margin: 0;
  font-size: 1.1rem;
}

.pricing-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.pricing-list li {
  position: relative;
  padding-left: 1.2rem;
}

.pricing-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

.pricing-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  width: min(100%, 500px);
  max-width: 500px;
  padding: 3rem clamp(1.25rem, 5vw, 3.2rem) 2.4rem;
  box-shadow: var(--shadow);
  background: var(--card);
  text-align: left;
  justify-self: end;
}

.pricing-label {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.pricing-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--nav-hover);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pricing-original {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(239, 68, 68, 0.85);
}

.pricing-price {
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  margin: 0.2rem 0 1.5rem;
}

.pricing-scarcity {
  margin: 0.25rem 0 1.35rem;
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.92rem;
}

.pricing-desc {
  margin: 0 0 1.75rem;
  color: var(--muted);
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
}

.pricing-price .period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  width: 100%;
  font-size: 1rem;
  border-radius: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.pricing-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* --- subscription -------------------------------------------------------- */
.subscription-page {
  gap: clamp(2rem, 4vw, 3.2rem);
}

.subscription-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.subscription-copy {
  display: grid;
  gap: 0.9rem;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.status-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-strong);
}
.status-pill.is-loading {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
}
.status-pill.is-inactive {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}
.status-pill.is-warning {
  background: rgba(249, 115, 22, 0.16);
  color: #c2410c;
}

.status-hint {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.subscription-card {
  width: min(100%, 500px);
  max-width: 500px;
  text-align: left;
}

.subscription-card .pricing-cta {
  width: 100%;
}

.subscription-actions {
  display: grid;
  gap: 0.6rem;
}

.account-advanced {
  margin-top: 0.75rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}

.account-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}

.account-advanced summary::-webkit-details-marker {
  display: none;
}

.account-advanced summary::before {
  content: "+";
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--primary-strong);
}

.account-advanced[open] summary::before {
  content: "–";
}

.account-advanced-note {
  margin: 0.6rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.account-advanced-actions {
  display: grid;
  gap: 0.4rem;
  align-items: start;
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  width: fit-content;
}

.link-button:hover {
  color: var(--primary-strong);
}

.subscription-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- account ------------------------------------------------------------ */
.account-page {
  gap: clamp(4rem, 2vw, 1.6rem);
  align-content: start;
  grid-auto-rows: max-content;
}

.account-hero {
  display: grid;
  gap: 1rem;
}

.account-hero .section-lead {
  margin: 10rem;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(5rem, 4.5vw, 3rem);
  align-items: start;
}

.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}

.account-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.account-list {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
}

.account-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.account-row dt {
  color: var(--muted);
  font-weight: 600;
}

.account-row dd {
  margin: 0;
  font-weight: 600;
}

.account-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.account-link:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.account-link.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* --- download ----------------------------------------------------------- */
.download-page {
  gap: clamp(2rem, 4vw, 3.2rem);
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.download-copy {
  display: grid;
  gap: 0.9rem;
}

.download-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 52ch;
}

.download-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.download-steps-section .steps {
  margin-top: 0.2rem;
}

.download-card {
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  background: var(--card);
  text-align: left;
  max-width: 420px;
  justify-self: end;
  display: grid;
  gap: 0.9rem;
}

.download-note-section {
  display: flex;
  justify-content: flex-end;
  margin-top: -1.2rem;
}

.download-note-section .download-note {
  margin: 0;
  max-width: 420px;
  width: 100%;
  text-align: right;
}

.about-carousel-section {
  max-width: none;
}

.about-carousel-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 240px);
  gap: 1.4rem;
  align-items: center;
  min-height: 440px;
}

.about-carousel-rail {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  align-self: start;
  margin-left: -1.2rem;
  align-self: center;
}

.about-rail-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 118, 110, 0.12);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.about-rail-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.about-rail-btn.is-active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.3), rgba(249, 115, 22, 0.25));
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.25);
}

.about-carousel-card {
  position: relative;
  overflow: hidden;
}

.about-carousel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 85% 20%, rgba(15, 118, 110, 0.12), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.about-carousel-card.is-swapping {
  animation: about-swap 0.55s ease;
}

@keyframes about-swap {
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.about-card {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(249, 115, 22, 0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 240px);
  gap: 1.4rem;
  align-items: center;
}

.about-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.14);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.about-copy {
  display: grid;
  gap: 1.8rem;
}

.about-copy .section-lead {
  margin: 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-tags span {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
}

.about-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  text-align: left;
  justify-self: end;
  max-width: 240px;
}

.about-pill {
  width: fit-content;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
  color: var(--primary-strong);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .about-card {
    grid-template-columns: 1fr;
  }
  .about-visual {
    text-align: center;
  }
  .about-carousel-card {
    grid-template-columns: 1fr;
  }
  .about-carousel-rail {
    grid-template-columns: repeat(3, 56px);
    justify-content: start;
    margin-left: 0;
  }
}

.download-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.download-card-desc {
  margin: 0;
  color: var(--muted);
}

.download-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-toast {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 30;
}

.download-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.install-section {
  gap: 1.2rem;
}

.install-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.install-item {
  display: grid;
  gap: 0.8rem;
}

.install-item h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.install-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.install-card img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.trust-link {
  width: fit-content;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary-strong);
  font-weight: 600;
  text-decoration: none;
}

.trust-link--compact {
  white-space: nowrap;
}

.trust-link:hover {
  filter: brightness(1.05);
}

.inline-link {
  color: var(--primary-strong);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 118, 110, 0.35);
}

.inline-link:hover {
  filter: brightness(1.1);
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1.1rem;
  }
  a.logo {
    font-size: 1.05rem;
  }
  nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.25rem;
    margin: 0 -0.35rem;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
  nav a {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
  }
  main {
    padding: 1.5rem 0 3rem;
  }
  main.home {
    gap: clamp(1.6rem, 4vw, 2.2rem);
  }
  main.auth {
    transform: none;
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  form {
    width: 100%;
  }
  .section {
    gap: 1.2rem;
  }
  .hero {
    gap: 1.6rem;
  }
  .hero-copy {
    gap: 0.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-note {
    font-size: 0.9rem;
  }
  .hero-demo {
    justify-self: stretch;
  }
  .hero-demo .demo-card {
    width: 100%;
    padding: 1rem;
  }
  .hotkey-form {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .hotkey {
    flex-direction: column;
    align-items: flex-start;
  }
  .pricing-cta {
    width: 100%;
  }
  .pricing-card {
    max-width: 100%;
    justify-self: stretch;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .cta {
    width: 100%;
  }
  .download-note-section {
    justify-content: flex-start;
    margin-top: 0;
  }
  .download-note-section .download-note {
    text-align: left;
  }
  .account-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .account-row dd {
    align-self: flex-start;
  }
}

@media (max-width: 920px) {
  .pricing-split {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    justify-self: center;
  }
  .subscription-hero {
    grid-template-columns: 1fr;
  }
  .subscription-card {
    justify-self: center;
    text-align: center;
  }
  .subscription-card .pricing-cta {
    width: 100%;
  }
  .subscription-hero {
    gap: clamp(1.6rem, 4vw, 2.4rem);
  }
  .subscription-copy {
    gap: 0.7rem;
  }
  .subscription-card {
    max-width: 520px;
    width: 100%;
  }
  .subscription-hero {
    align-content: start;
  }
  .download-hero {
    grid-template-columns: 1fr;
  }
  .download-card {
    justify-self: center;
    text-align: center;
    max-width: 100%;
  }
  .download-card .pricing-cta {
    width: 100%;
  }
  .examples-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hotkey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hotkey-field--modifier,
  .hotkey-field--key {
    grid-column: auto;
  }
  .hotkey-field--text {
    grid-column: 1 / -1;
  }
  .hotkey-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  main {
    padding: 1.25rem 0 2.5rem;
  }
  h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }
  .section-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .section-lead,
  .pricing-lead,
  .pricing-note,
  .download-meta {
    font-size: 0.98rem;
  }
  .feature-card {
    padding: 1.1rem;
  }
  .pricing-card {
    padding: 1.5rem;
  }
  .subscription-page {
    gap: 1.6rem;
    align-content: start;
  }
  .subscription-copy {
    gap: 0.6rem;
  }
  .subscription-hero {
    gap: 1.2rem;
    align-items: start;
    align-content: start;
    grid-auto-rows: max-content;
  }
  .subscription-card {
    padding: 1.1rem;
    border-radius: 14px;
    text-align: left;
  }
  .subscription-card .pricing-label {
    font-size: 0.95rem;
  }
  .subscription-card .pricing-price {
    font-size: clamp(2rem, 9vw, 2.5rem);
    margin: 0.2rem 0 1rem;
  }
  .subscription-card .currency {
    font-size: 1.15rem;
  }
  .subscription-card .period {
    font-size: 0.9rem;
  }
  .subscription-card .pricing-desc {
    font-size: 0.95rem;
  }
  .status-row {
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .quote-card {
    padding: 1.2rem;
  }
  .quote-text {
    font-size: 1rem;
  }
  .hotkeys-page {
    padding-top: 2.2rem;
    gap: 1.6rem;
  }
  .hotkey-form {
    padding: 1.1rem;
    gap: 1rem;
  }
  .hotkey-form label {
    font-size: 0.85rem;
  }
  .hotkey-form input,
  .hotkey-form select,
  .hotkey-form textarea {
    padding: 0.7rem 0.85rem;
    font-size: 0.98rem;
    border-radius: 10px;
  }
  .hotkey-submit {
    padding: 0.8rem 1.1rem;
    font-size: 0.98rem;
  }
  .hotkey {
    padding: 0.75rem 0;
    gap: 0.6rem;
  }
  .hotkey::before {
    left: -0.2rem;
  }
  .hotkey-text {
    font-size: 1rem;
  }
  .combo-pill,
  .combo-key {
    font-size: 0.88rem;
  }
  .hotkey .secondary {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }
  .hotkey-grid {
    grid-template-columns: 1fr;
  }
  .hotkey-field--text {
    grid-column: 1;
  }
  .hotkey-submit {
    width: 100%;
  }
  .hotkey > div:last-child {
    width: 100%;
    display: flex;
    gap: 0.6rem;
    justify-content: flex-start;
  }
  .about-carousel-card {
    min-height: auto;
  }
  .about-rail-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.2rem;
  }
  .about-carousel-rail {
    grid-template-columns: repeat(3, 44px);
  }
  .about-card {
    padding: 1.2rem;
  }
  .step {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem;
    border-radius: 14px;
  }
  .step-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  .step > div {
    display: grid;
    gap: 0.25rem;
  }
  .step h3 {
    margin: 0;
    font-size: 1.05rem;
  }
  .step p {
    margin: 0;
    font-size: 0.95rem;
  }
}
#home {
  width: min(1100px, 92vw);
}
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.hero-copy {
  display: grid;
  gap: 1rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}
.hero-subtitle {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  max-width: 36ch;
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}
.cta.primary {
  background: linear-gradient(135deg, var(--primary), #14b8a6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.25);
}
.cta.primary:hover { filter: brightness(1.05); }
.cta.ghost {
  color: var(--primary-strong);
  background: rgba(15, 118, 110, 0.12);
}
.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}
.hero-demo #example {
  margin: 0;
}
