:root {
  --bg: #0c100e;
  --elevated: #141a16;
  --surface: #1a221c;
  --surface-2: #232c26;
  --line: rgba(243, 241, 234, 0.12);
  --text: #f3f1ea;
  --muted: #b7c0b4;
  --sage: #c9d9b8;
  --violet: #c4b8ff;
  --gold: #e4c56a;
  --button: #c9d9b8;
  --button-hover: #d7e4c9;
  --input: #101612;
  --logo-bg: #141a16;
  --radius: 18px;
  --nav: #d5d8d0;
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: auto;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, Manrope, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: clip;
}

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

:focus {
  outline: none;
}

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

img,
svg,
video,
pre {
  max-width: 100%;
}

a {
  color: var(--sage);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #f3f1ea;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb,
.spark {
  position: absolute;
  border-radius: 50%;
}

.orb {
  filter: blur(78px);
}

.orb-pink {
  width: 300px;
  height: 300px;
  left: -20px;
  top: 52%;
  background: rgba(201, 217, 184, 0.22);
}

.orb-blue {
  width: 420px;
  height: 360px;
  right: -70px;
  top: 42%;
  background: rgba(62, 92, 66, 0.45);
}

.orb-violet {
  width: 260px;
  height: 260px;
  left: 38%;
  top: 8%;
  background: rgba(196, 184, 255, 0.12);
}

.spark {
  width: 7px;
  height: 7px;
  background: #fff;
  filter: blur(0.4px);
  box-shadow: 0 0 14px rgba(201, 217, 184, 0.55);
}

.spark-a {
  left: 14%;
  top: 22%;
  background: #c9d9b8;
  box-shadow: 0 0 16px rgba(201, 217, 184, 0.7);
}

.spark-b {
  left: 22%;
  top: 46%;
  width: 5px;
  height: 5px;
  background: #c9d9b8;
  box-shadow: 0 0 12px rgba(201, 217, 184, 0.7);
}

.spark-c {
  right: 18%;
  top: 30%;
  width: 6px;
  height: 6px;
  background: #d2c4ff;
}

.spark-d {
  left: 8%;
  top: 34%;
  width: 4px;
  height: 4px;
  opacity: 0.7;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(12, 16, 14, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

body.home .site-header {
  background: linear-gradient(to bottom, rgba(12, 16, 14, 0.78), rgba(12, 16, 14, 0));
  border-bottom: 0;
  backdrop-filter: none;
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #dedee8;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
}

.brand:hover {
  color: #fff;
}

.mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 1.45rem;
  margin-left: auto;
}

.nav a,
.menu-button {
  color: var(--nav);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav a {
  padding: 0.35rem 0;
}

.nav a:hover,
.nav a[aria-current="page"],
.menu-button:hover,
.menu-button[aria-expanded="true"] {
  color: #fff;
}

body.home .lang-pill {
  margin-left: auto;
}

.menu {
  position: relative;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.chevron {
  width: 12px;
  height: 12px;
  display: block;
}

.menu-button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 24, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  z-index: 8;
}

.menu-panel a {
  display: block;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  color: #eeeef6;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
}

.menu-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.menu-note {
  margin: 0;
  padding: 0.55rem 0.75rem 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.lang-pill .menu-button {
  min-height: 36px;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f2f2f6;
  font-size: 0.9rem;
}

.lang-pill .menu-button:hover,
.lang-pill .menu-button[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.lang-pill .menu-panel {
  left: auto;
  right: 0;
  transform: none;
  min-width: 240px;
}

@media (max-width: 980px) {
  .menu-panel {
    left: 0;
    transform: none;
  }

  .lang-pill .menu-panel {
    left: auto;
    right: 0;
  }
}

main section,
.page {
  scroll-margin-top: 5.5rem;
}

.hero {
  position: relative;
}

.hero-inner {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4.4rem);
  padding: 1.5rem 0 4.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.7rem;
  padding: 0.42rem 0.8rem 0.42rem 0.72rem;
  border: 1px solid rgba(201, 217, 184, 0.45);
  border-radius: 999px;
  background: rgba(20, 26, 22, 0.55);
  color: #f3f1ea;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(201, 217, 184, 0.08);
}

.eyebrow:hover {
  color: #fff;
  border-color: rgba(216, 180, 254, 0.85);
}

.eyebrow svg,
.cta-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2rem, 8vw, 6.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: #f3f1ea;
}

@supports (font-size: 1cqi) {
  .hero h1 {
    font-size: clamp(1.9rem, 9.15cqi, 6.2rem);
  }
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background-image: linear-gradient(180deg, #f3f1ea 0%, #c9d9b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.lede,
.card p,
.notice p,
details p,
.page p,
.page li,
.illustration p,
.caption {
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.hero .lede {
  max-width: 44rem;
  margin: 1.4rem auto 0;
  color: #a7a7b4;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.hero .actions {
  justify-content: center;
  margin-top: 2.35rem;
}

.cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.cta-primary {
  background: linear-gradient(180deg, #e4eed9 0%, #c9d9b8 100%);
  color: #0c100e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 10px 30px rgba(201, 217, 184, 0.16);
}

.cta-primary:hover {
  color: #0c100e;
  filter: brightness(1.04);
}

.cta-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #f3f3f7;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.button {
  background: var(--button);
  color: #0c100e;
  border-radius: 16px;
}

.button:hover {
  background: var(--button-hover);
  color: #0c100e;
}

.button.quiet {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.button.quiet:hover {
  background: var(--surface);
  color: var(--text);
}

button.button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.rtl-line,
[dir="rtl"] {
  unicode-bidi: isolate;
}

.rtl-line {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.7;
  text-align: right;
}

.section {
  padding: 4.25rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid.features,
  .grid.prices {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .grid.features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.card,
.notice,
.illustration,
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card {
  padding: 1.15rem 1.15rem 1.25rem;
  min-width: 0;
}

.card.best {
  border-color: rgba(196, 184, 255, 0.7);
}

.card p,
.illustration p,
.notice p {
  margin: 0.35rem 0 0;
}

.plan-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.plan-row h3,
.plan-row .best-flag {
  margin: 0;
}

.best-flag {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.price {
  margin: 0.35rem 0 0;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.price span,
.equiv,
.billed {
  color: var(--text);
  font-weight: 600;
}

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

.equiv {
  margin: 0.45rem 0 0;
  font-size: 1.05rem;
}

.billed {
  margin: 0.2rem 0 0;
}

.card ul,
.page ul {
  margin: 0.85rem 0 0;
  padding-left: 1.15rem;
}

.card li + li,
.page li + li {
  margin-top: 0.28rem;
}

.notice {
  margin-top: 0.9rem;
  padding: 1rem 1.1rem;
}

.notice p + p {
  margin-top: 0.75rem;
}

.lang-search {
  margin: 0 0 1rem;
  max-width: 28rem;
}

.lang-search label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.lang-search input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.lang-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .lang-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .lang-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.lang-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.lang-name {
  font-weight: 600;
}

.lang-note {
  margin-left: auto;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 700;
}

.lang-native {
  color: var(--muted);
}

.empty {
  margin: 0.5rem 0 0;
}

.faq {
  display: grid;
  gap: 0.65rem;
}

details {
  padding: 0.85rem 1rem 0.95rem;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 0.7rem 0 0;
  max-width: 70ch;
}

.illustration {
  margin: 1.25rem 0 0;
  padding: 1.1rem;
  max-width: 44rem;
}

.illustration figcaption strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
}

.mock {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

@media (min-width: 700px) {
  .mock {
    grid-template-columns: 1fr 1fr;
  }
}

.mock-pane {
  min-height: 7rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--input);
}

.mock-label {
  margin: 0;
  color: var(--sage);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-text {
  margin: 0.55rem 0 0;
  color: var(--text);
  font-size: 1.35rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

.page {
  padding: 3rem 0 4rem;
}

main.legal-doc {
  background: #f3f1ea;
  color: #1c241e;
}

.legal-wrap {
  width: min(760px, calc(100% - 2rem));
}

.legal-doc h1,
.legal-doc h2,
.legal-doc h3 {
  color: #121a16;
}

.legal-doc h1 {
  max-width: 22ch;
}

.legal-doc .meta-line,
.legal-doc .lede,
.legal-doc p,
.legal-doc li {
  color: #2c382f;
}

.legal-doc a {
  color: #234233;
}

.legal-doc a:hover {
  color: #121a16;
}

.draft-banner {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #121a16;
}

.draft-banner p {
  margin: 0;
  color: #f3f1ea;
  max-width: 68ch;
}

.toc {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(18, 26, 22, 0.12);
  border-radius: 16px;
  background: #fffdf8;
}

.toc h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc li {
  margin: 0.18rem 0;
  break-inside: avoid;
}

.toc a {
  text-decoration: none;
}

.owner-fields {
  margin: 0.4rem 0 0;
}

.owner-fields div {
  margin: 0.75rem 0;
}

.owner-fields dt {
  font-weight: 700;
  color: #121a16;
}

.owner-fields dd {
  margin: 0.15rem 0 0;
  color: #6a3b2a;
  font-weight: 650;
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.45;
}

.check input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
  accent-color: #c9d9b8;
}

.auth-form .check label,
.check label {
  display: block;
  color: var(--text);
}

.gate-card.wide {
  width: min(640px, 100%);
}

@media (min-width: 720px) {
  .toc ol {
    columns: 2;
    column-gap: 1.5rem;
  }
}

.page h1 {
  max-width: 16ch;
}

main.legal-doc h1 {
  max-width: 24ch;
}

.page h2 {
  margin-top: 2rem;
  font-size: 1.28rem;
}

.page p,
.page li {
  max-width: 68ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
}

.footer-label {
  margin: 0 0 0.35rem;
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.site-footer p {
  margin: 0.7rem 0 0;
  max-width: 62ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.steps article,
.points article {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 26, 22, 0.72);
}

.step-num {
  margin: 0 0 0.4rem;
  color: var(--sage);
  font-weight: 700;
}

.cream-band {
  background: #f3f1ea;
  color: #1a221c;
}

.cream-band .lede,
.cream-band p {
  color: #3e4a40;
}

.cream-band h2,
.cream-band h3 {
  color: #0c100e;
}

.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.points article {
  background: #fff;
  border-color: rgba(12, 16, 14, 0.08);
}

.gate {
  display: none;
}

.auth-page {
  display: flex;
  justify-content: center;
  padding: 5.5rem 1rem 3rem;
}

.gate:target {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 8;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 6.5rem 1rem 3rem;
  background: #0c100e;
}

.gate-card {
  width: min(440px, 100%);
  padding: 1.6rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #141a16;
}

.gate-card h2 {
  margin-top: 0.4rem;
}

.auth-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.auth-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.auth-form .check input {
  width: 1.25rem;
  min-height: 1.25rem;
  height: 1.25rem;
  padding: 0;
}

.form-note {
  min-height: 1.4rem;
  margin: 0;
  color: var(--sage);
}

.auth-form .cta {
  border: 0;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 800px) {
  .steps,
  .points {
    grid-template-columns: 1fr;
  }
}

.billing-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0.2rem 0 1rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.toggle-option {
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.toggle-option.is-selected {
  background: var(--button);
  color: #0c100e;
}

.feature-detail {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.seats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.seat-step {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.text-button {
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sage);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.card .button,
.card .text-button {
  margin-top: 0.85rem;
}

.plan-summary {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.plan-summary li {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.cream-band .plan-summary li {
  border-color: rgba(12, 16, 14, 0.08);
  background: #fff;
  color: #1a221c;
}

.product-ui {
  margin: 1.25rem 0 0;
  padding: 1.1rem;
  max-width: 44rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.product-ui figcaption {
  color: var(--text);
}

.slot,
.keys {
  margin: 0.45rem 0 0;
}

.slot {
  color: var(--muted);
}

.keys {
  letter-spacing: 0.08em;
  font-weight: 600;
}

.unavailable {
  color: var(--gold);
  font-weight: 700;
}

.tool-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
  max-width: 46rem;
}

.tool-form label,
.pair label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.tool-form input,
.tool-form select,
.tool-form textarea,
.pair select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.tool-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.pair {
  display: grid;
  gap: 0.75rem;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.result-pane {
  min-height: 4.5rem;
  margin: 0.35rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--input);
  white-space: pre-wrap;
}

.password-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.password-row input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.password-row .text-button {
  margin: 0;
  min-height: 48px;
}

.form-note:empty {
  display: none;
}

.form-note.is-error {
  color: var(--gold);
}

.example-label {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 46rem;
}

.example-list .cta {
  max-width: 100%;
  height: auto;
  white-space: normal;
  text-align: center;
}

.guest-nudge {
  max-width: 46rem;
  margin: 0.2rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.guest-nudge p {
  margin: 0;
}

.guest-nudge .actions {
  margin-top: 0.85rem;
}

.tool-form select,
.tool-form textarea,
.auth-form input,
.pair select {
  max-width: 100%;
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (min-width: 700px) {
  .pair {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
  }

  .plan-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  margin-left: auto;
  min-height: 36px;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f2f2f6;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-close-label {
  display: none;
}

.nav-check:focus-visible ~ .nav-toggle {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

.nav a.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--button);
  color: #0c100e;
}

.nav a.nav-cta:hover,
.nav a.nav-cta[aria-current="page"] {
  color: #0c100e;
  background: var(--button-hover);
}

@media (min-width: 921px) {
  .nav {
    flex-wrap: nowrap;
  }

  .nav a {
    white-space: nowrap;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    z-index: 6;
    top: calc(100% - 0.15rem);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.35rem 0 0.9rem;
    background: rgba(12, 16, 14, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav a {
    padding: 0.72rem 0.15rem;
  }

  .nav-check:checked ~ .nav {
    display: flex;
  }

  .nav-check:checked ~ .nav-toggle .nav-open-label {
    display: none;
  }

  .nav-check:checked ~ .nav-toggle .nav-close-label {
    display: inline;
  }

  body.home .site-header:has(.nav-check:checked) {
    background: rgba(12, 16, 14, 0.98);
  }
}

body.home .hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem 2.5rem;
  align-items: center;
  padding: 2.75rem 0 3.25rem;
}

body.home .hero-copy {
  min-width: 0;
}

body.home .hero-layout h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

body.home .hero .lede {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

body.home .hero .actions {
  justify-content: flex-start;
}

.keyboard-figure {
  margin: 0;
  max-width: none;
}

#keyboard,
#features,
#how,
#product {
  scroll-margin-top: 5.5rem;
}

body.home .brand-line {
  margin: 0.85rem 0 0;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
}

.key-deck {
  margin-top: 0.85rem;
  padding: 0.7rem;
  border-radius: 16px;
  background: var(--input);
  border: 1px solid var(--line);
}

.key-row {
  display: flex;
  gap: 0.28rem;
}

.key-row + .key-row {
  margin-top: 0.28rem;
}

.key {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.48rem 0;
  border-radius: 8px;
  border: 1px solid rgba(243, 241, 234, 0.14);
  background: var(--surface-2);
  color: #f3f1ea;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
}

.key.wide {
  flex: 5 1 0;
  min-height: 1.7rem;
}

.plan-summary h3 {
  margin-bottom: 0.35rem;
}

.plan-summary .actions {
  margin-top: 0.85rem;
}

.pay-note {
  min-height: 1.4rem;
  margin: 1rem 0 0;
  color: var(--gold);
  font-weight: 700;
}

.cream-band a {
  color: #1a221c;
}

.cream-band a:hover {
  color: #0c100e;
}

.cream-band .cta-primary,
.cream-band .cta-primary:hover {
  color: #0c100e;
}

.cream-band .cta-secondary {
  background: transparent;
  color: #1a221c;
  border: 1px solid rgba(12, 16, 14, 0.22);
  box-shadow: none;
}

.cream-band .cta-secondary:hover {
  background: rgba(12, 16, 14, 0.05);
  color: #0c100e;
}

.cream-band .pay-note {
  color: #1a221c;
}

@media (max-width: 860px) {
  body.home .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 1.75rem;
  }
}

.app-body {
  min-height: 100vh;
}

.app-nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.app-shell {
  min-height: 100vh;
}

.app-side {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0.8rem;
  background: var(--elevated);
  border-right: 1px solid var(--line);
}

.app-side a,
.app-bottom a,
.app-menu {
  color: var(--text);
  text-decoration: none;
}

.app-side a {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
}

.app-side a.is-current {
  background: var(--surface);
  color: var(--sage);
  font-weight: 700;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
}

.app-top .brand {
  text-decoration: none;
}

#account-line {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-content {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.app-content h1 {
  margin-top: 0;
}

.app-text,
.app-content select,
.app-content input[type="text"],
.app-content input[type="password"],
.app-content input[type="search"],
.app-content input[type="number"],
.app-content textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  font: inherit;
}

.app-text {
  min-height: 8rem;
  resize: vertical;
}

.record {
  margin: 0.7rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.record p {
  margin: 0.3rem 0;
}

.tool-row,
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.8rem 0;
}

button.key {
  font: inherit;
  cursor: pointer;
}

.app-menu {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.app-bottom {
  position: fixed;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
  background: var(--elevated);
  border-top: 1px solid var(--line);
}

.app-bottom a,
.app-bottom .app-menu {
  flex: 1 1 0;
  justify-content: center;
  font-size: 0.78rem;
  text-align: center;
}

.app-body {
  padding-bottom: 4.4rem;
}

.app-nav-check:checked ~ .app-shell .app-side {
  display: flex;
  position: fixed;
  z-index: 8;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(280px, 86vw);
  overflow: auto;
}

.lang-catalog {
  columns: 2;
  padding-left: 1.1rem;
}

@media (min-width: 960px) {
  .app-body {
    padding-bottom: 0;
  }

  .app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .app-side {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
  }

  .app-menu,
  .app-bottom {
    display: none;
  }
}
