/* My IDE marketing — tokens from brand.css (docs/visual-identity.md) */
@import url("brand.css");

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1, "liga" 1;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.announce {
  background: var(--accent-soft);
  border-bottom: 1px solid rgba(64, 184, 140, 0.35);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 0;
  text-align: center;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— Header —— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(18, 20, 25, 0.82);
  border-bottom: 1px solid var(--border);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  box-shadow: 0 0 0 1px var(--border);
  object-fit: cover;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 650;
}

.nav {
  display: none;
  gap: 1.1rem;
  margin-left: 0.75rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

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

.top-actions {
  margin-left: auto;
  display: none;
  align-items: center;
  gap: 0.85rem;
}

.lang {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.menu-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--ink);
}

.drawer {
  display: grid;
  gap: 0.85rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.drawer a {
  font-weight: 600;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

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

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 0.85rem 1.25rem;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--accent);
  color: #0a1210;
  box-shadow: 0 8px 28px var(--accent-glow);
}

.btn-primary:hover {
  background: #4ec99c;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent-muted);
  background: var(--accent-soft);
}

.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-apple:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}
.btn-apple svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0.75rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--accent);
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(64, 184, 140, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(45, 115, 97, 0.18), transparent 50%),
    linear-gradient(180deg, #0e1014 0%, var(--bg) 100%);
  color: var(--ink);
  padding: 3.25rem 0 2.75rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: auto -10% -20% 35%;
  height: 55%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  white-space: pre-line;
  max-width: 16ch;
}

.lede {
  margin: 1.15rem 0 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 40ch;
  font-weight: 400;
}

.trust {
  margin-top: 1.5rem;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 48ch;
  font-family: var(--font-mono);
  line-height: 1.5;
}

/* Device mock — mirrors AppIcon IDE window */
.hero-visual {
  perspective: 1200px;
}

.device {
  position: relative;
  transform: rotateY(-6deg) rotateX(3deg);
  animation: float-in 0.9s ease both;
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: rotateY(-6deg) rotateX(3deg) translateY(20px);
  }
  to {
    opacity: 1;
    transform: rotateY(-6deg) rotateX(3deg) translateY(0);
  }
}

.device-bezel {
  background: #0a0c0f;
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
}

.ide {
  background: var(--sidebar);
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
  border: 1px solid var(--border);
}

.ide-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.ide-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  flex-shrink: 0;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.chip {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.chip.mute {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.ide-body {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 240px;
}

.side {
  border-right: 1px solid var(--border);
  padding: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  background: var(--bg);
}

.file {
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file.on {
  background: var(--accent-soft);
  color: var(--ink);
  border-left: 2px solid var(--accent);
}

.editor {
  padding: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: var(--bg);
}

.editor pre {
  margin: 0;
  white-space: pre-wrap;
}

.editor .k {
  color: var(--accent);
}
.editor .f {
  color: var(--warning);
}
.editor .c {
  color: var(--muted);
}

.term {
  margin-top: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #0a0c0f;
  color: var(--muted);
  border: 1px solid var(--border);
}

.term .prompt {
  color: var(--accent);
  margin-right: 0.35rem;
}

.term .ok {
  color: var(--accent);
  margin-left: 0.5rem;
}

.float-card {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: bob 5s ease-in-out infinite;
  font-family: var(--font-mono);
}

.float-card::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.4rem;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent);
}

.float-a {
  top: 8%;
  right: -4%;
}

.float-b {
  bottom: 12%;
  left: -2%;
  animation-delay: -1.5s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Hero brand badge */
.hero-icon-float {
  position: absolute;
  bottom: -8%;
  right: 6%;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.15rem;
  box-shadow: var(--shadow), 0 0 0 1px var(--border);
  z-index: 2;
  animation: bob 6s ease-in-out infinite;
  animation-delay: -0.8s;
}

/* —— Sections —— */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2,
.band h2,
.companion h2,
.final h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  margin: 0 0 0.65rem;
}

.section-head p,
.sub {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.band-problem {
  padding: 3.25rem 0;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.two-col {
  display: grid;
  gap: 1.75rem;
}

.two-col p {
  color: var(--muted);
  max-width: 42ch;
}

.solution-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.solution-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  color: var(--accent);
}

.solution-card p {
  margin: 0;
  color: var(--ink-soft);
}

.paths {
  display: grid;
  gap: 1rem;
}

.path {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}

.path-accent {
  border-color: rgba(64, 184, 140, 0.4);
  background: linear-gradient(160deg, var(--panel) 0%, rgba(64, 184, 140, 0.08) 100%);
}

.path h3 {
  margin: 0.45rem 0 0.4rem;
  letter-spacing: -0.02em;
  font-weight: 650;
  font-size: 1.1rem;
}

.path p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--tab);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.tag-accent {
  color: var(--accent);
  background: var(--accent-soft);
}

.feats {
  display: grid;
  gap: 1rem;
}

.feat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.feat h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.steps .n {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(64, 184, 140, 0.35);
}

.steps h3 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Companion */
.companion {
  background:
    radial-gradient(ellipse 55% 45% at 90% 20%, rgba(64, 184, 140, 0.1), transparent 60%),
    var(--bg);
}

.companion-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.companion .req {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1rem 0;
  font-family: var(--font-mono);
}

.companion .note {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 44ch;
  margin-top: 1rem;
}

.companion-panel {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.companion-panel-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.companion-panel-head img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
}

.companion-panel-head strong {
  font-size: 0.95rem;
  font-weight: 650;
}

.cp-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  font-family: var(--font-mono);
}

.cp-row:last-child {
  border-bottom: 0;
}

.cp-row span {
  color: var(--muted);
}

.cp-row .live {
  color: var(--accent);
}

.cp-row .pin {
  letter-spacing: 0.2em;
}

/* Pricing */
.prices {
  display: grid;
  gap: 1rem;
}

.price {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.price-featured {
  border-color: rgba(64, 184, 140, 0.45);
  box-shadow: 0 16px 40px rgba(64, 184, 140, 0.1);
  background: linear-gradient(180deg, var(--panel) 0%, rgba(64, 184, 140, 0.08) 100%);
}

.price .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent);
  color: #0a1210;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-family: var(--font-mono);
}

.price h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
}

.amount {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0.35rem 0;
  letter-spacing: -0.03em;
  font-family: var(--font-mono);
  color: var(--accent);
}

.price .desc {
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 2.6em;
}

.price ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.price li {
  padding: 0.35rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.price li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent);
}

.price .btn {
  width: 100%;
}

/* FAQ */
.narrow {
  max-width: 720px;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
}

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

.faq p {
  margin: 0.65rem 0 0.2rem;
  color: var(--muted);
}

/* Final CTA */
.final {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(64, 184, 140, 0.14), transparent 55%),
    linear-gradient(180deg, var(--panel), #0e1014);
  color: var(--ink);
  padding: 4.25rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.final-inner {
  max-width: 40rem;
}

.final-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border);
}

.final p {
  color: var(--ink-soft);
  margin: 0.75rem auto 0;
  max-width: 38ch;
}

.final .cta-row {
  justify-content: center;
}

/* Footer */
.footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.35rem;
}

.footer p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 42ch;
}

.footer .muted {
  color: var(--muted);
  font-size: 0.82rem;
  opacity: 0.85;
}

.footer .muted a {
  color: inherit;
  text-decoration: none;
}

.footer .muted a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .device,
  .float-card,
  .hero-icon-float {
    animation: none;
  }
}

/* Desktop */
@media (min-width: 860px) {
  .nav,
  .top-actions {
    display: flex;
  }
  .menu-btn,
  .drawer {
    display: none !important;
  }
  .hero {
    padding: 4.5rem 0 3.75rem;
    min-height: min(88vh, 780px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .paths {
    grid-template-columns: repeat(3, 1fr);
  }
  .feats {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .companion-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
  .prices {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 1100px) {
  .hero h1 {
    max-width: none;
  }
}

/* —— Account banner + portal —— */
.account-banner {
  border-bottom: 1px solid rgba(64, 184, 140, 0.35);
  background: var(--accent-soft);
  padding: 0.7rem 0;
}
.account-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.92rem;
}
.account-banner-inner span {
  color: var(--ink-soft);
}
.account-banner-inner strong {
  color: var(--accent);
  margin-right: 0.4rem;
}
.account-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.account-banner form {
  margin: 0;
}

.account-body .top-actions,
.acc-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 0.75rem;
}
.account-body .menu-btn {
  display: none;
}

.account-main {
  padding: 2rem 0 4rem;
}
.login-main {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0 3.5rem;
}
.login-card {
  width: min(400px, 100%);
  margin-inline: auto;
  padding: 1.6rem 1.5rem 1.35rem;
}
.login-card .eyebrow {
  margin: 0;
  color: var(--accent);
}
.login-card .lede {
  color: var(--muted);
  margin: 0 0 1.15rem;
}
.account-head {
  margin-bottom: 1.5rem;
}
.account-head h1,
.account-card h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}
.account-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.legal-main .account-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 0.85rem;
}
.legal-main .account-card p:last-child {
  margin-bottom: 0;
}
.account-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.account-card h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stack-form {
  display: grid;
  gap: 0.75rem;
}
.stack-form label,
.inline-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.stack-form input,
.inline-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
}
.inline-form label {
  flex: 1 1 16rem;
}
.btn-block {
  width: 100%;
}
.btn-danger {
  background: transparent;
  border-color: var(--danger);
  color: #ffb4b4;
}
.btn-danger:hover {
  background: rgba(230, 89, 89, 0.12);
}
.flash {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.flash.ok {
  background: var(--accent-soft);
  color: var(--accent);
}
.flash.err {
  background: #3f1d1d;
  color: #fecaca;
}
.or-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 1rem 0;
}
.or-line::before,
.or-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.back {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.kv {
  display: grid;
  gap: 0.75rem;
}
.kv div {
  display: grid;
  gap: 0.15rem;
}
.kv dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.kv dd {
  margin: 0;
  font-weight: 600;
}
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.plain-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.plain-list form {
  margin: 0;
}
.hint {
  color: var(--muted);
  font-size: 0.88rem;
}
.hint.warn {
  color: var(--warning);
}
.wait-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.cancel-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.companion .latest {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.companion .latest a {
  color: var(--accent);
}

.page-changelog .narrow {
  max-width: 40rem;
}
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.changelog-item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
}
.changelog-item h2 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.changelog-item .badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-soft, rgba(64, 184, 140, 0.15));
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.changelog-item .meta {
  margin: 0.35rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.changelog-item .notes ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}
.changelog-item .notes li {
  margin: 0.35rem 0;
}

