/*
  Shared interior pages for Auri.
  Loads after guides.css and extends its navigation, reading, and footer shell.
*/

:root {
  --page-wide: min(1280px, calc(100% - 64px));
  --panel: rgb(237 240 241 / 72%);
  --panel-strong: rgb(246 247 247 / 88%);
  --panel-dark: #151719;
  --panel-dark-soft: #1d2023;
  --keyboard-key: #3a3d40;
  --keyboard-key-ink: #f4f5f5;
  --keyboard-edge: rgb(255 255 255 / 12%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --panel: rgb(26 29 32 / 78%);
    --panel-strong: rgb(32 36 39 / 90%);
  }
}

body {
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip;
}

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

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.page-wide {
  width: var(--page-wide);
  margin-inline: auto;
}

.nav-links a[aria-current="page"]::after {
  display: block;
  width: 4px;
  height: 4px;
  margin: 4px auto -8px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.article-header.legal-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.65fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: end;
  min-height: 430px;
  padding-top: 164px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--hairline);
}

.legal-header-copy h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.92;
  text-wrap: balance;
}

.legal-kicker,
.section-kicker,
.support-kicker,
.keyboard-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-header-meta {
  max-width: 28rem;
  padding-bottom: 4px;
}

.legal-header-meta > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.legal-header-meta .article-meta {
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.legal-layout {
  padding-top: 56px;
  padding-bottom: 88px;
}

.legal-page .article-column,
.legal-page .guide-prose {
  max-width: 44rem;
}

.legal-page .article-layout {
  grid-template-columns: minmax(0, 44rem) minmax(190px, 230px);
  gap: clamp(40px, 7vw, 88px);
}

.legal-page .guide-prose > section {
  scroll-margin-top: 112px;
}

.legal-page .guide-prose > section + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--hairline);
}

.legal-page .guide-prose section > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.4vw, 1.72rem);
  font-weight: 690;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-wrap: balance;
}

.legal-page .guide-prose section > h3 {
  margin: 1.65rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.legal-page .guide-prose p,
.legal-page .guide-prose li {
  color: var(--muted);
}

.legal-page .guide-prose strong {
  color: var(--ink);
  font-weight: 680;
}

.legal-page .guide-prose .legal-caps {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 620;
  letter-spacing: 0.005em;
}

.legal-summary {
  position: relative;
  overflow: hidden;
  margin: 0 0 2.6rem;
  padding: 28px 30px 30px;
  border: 1px solid var(--nav-edge);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--edge);
}

.legal-summary::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  content: "";
}

.legal-summary .answer-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.legal-page .toc {
  padding-top: 4px;
}

.legal-page .toc li + li {
  margin-top: 10px;
}

.legal-page .toc a {
  display: block;
  padding-left: 12px;
  border-left: 1px solid var(--hairline);
  transition: border-color 180ms ease, color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .legal-page .toc a:hover {
    color: var(--ink);
    border-color: var(--accent);
  }
}

/* Support */

.support-hero {
  position: relative;
  min-height: 570px;
  padding: 170px 0 88px;
  border-bottom: 1px solid var(--hairline);
}

.support-hero::after {
  position: absolute;
  right: max(3vw, 20px);
  bottom: -1px;
  width: min(34vw, 470px);
  height: 1px;
  background: var(--accent);
  content: "";
}

.support-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.58fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: end;
}

.support-hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 730;
  letter-spacing: -0.07em;
  line-height: 0.88;
  text-wrap: balance;
}

.support-intro {
  max-width: 27rem;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.support-response-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--quiet);
  font-size: 0.84rem;
}

.support-response-note::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgb(184 67 56 / 10%);
  content: "";
}

.support-contact-section {
  padding: clamp(80px, 10vw, 140px) 0 112px;
}

.support-contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 1.15fr);
  gap: clamp(48px, 9vw, 132px);
  align-items: start;
}

.support-aside {
  position: sticky;
  top: 118px;
}

.support-aside h2,
.support-form-wrap h2,
.support-faq-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1;
  text-wrap: balance;
}

.support-aside > p:not(.section-kicker) {
  max-width: 23rem;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.support-channels {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  border-top: 1px solid var(--hairline);
}

.support-channel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.support-channel strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.94rem;
}

.support-channel span:last-child {
  color: var(--accent);
  font-size: 1.2rem;
}

.support-form-wrap {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--nav-edge);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--edge), 0 18px 48px var(--shade);
}

.support-form-wrap > p {
  max-width: 34rem;
  margin: 16px 0 34px;
  color: var(--muted);
  line-height: 1.6;
}

.support-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  border: 1px solid var(--hairline);
  border-radius: 13px;
  outline: 0;
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 var(--edge);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--quiet);
  opacity: 0.72;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(184 67 56 / 11%);
}

.form-field [aria-invalid="true"] {
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  grid-column: 1 / -1;
  padding-top: 4px;
}

.support-submit {
  min-width: 148px;
}

.support-submit[disabled] {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  flex: 1;
  min-width: min(100%, 230px);
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status[data-state="success"] {
  color: #347348;
}

.form-status[data-state="error"] {
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .form-status[data-state="success"] {
    color: #8fd3a1;
  }
}

.support-faq-section {
  padding: 104px 0 128px;
  background: var(--surface);
}

.support-faq-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.05fr);
  gap: clamp(48px, 9vw, 132px);
  align-items: start;
}

.support-faq-heading {
  position: sticky;
  top: 118px;
}

.support-faq-heading p:last-child {
  max-width: 23rem;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-details {
  border-top: 1px solid var(--hairline);
}

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

.faq-details summary {
  position: relative;
  padding: 25px 54px 25px 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 640;
  letter-spacing: -0.018em;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

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

.faq-details summary::before,
.faq-details summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  content: "";
  transition: transform 200ms var(--ease-out);
}

.faq-details summary::after {
  transform: rotate(90deg);
}

.faq-details details[open] summary::after {
  transform: rotate(0);
}

.faq-answer {
  max-width: 42rem;
  padding: 0 48px 26px 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-answer p {
  margin: 0 0 0.9rem;
}

.faq-answer p:last-child,
.faq-answer ol:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer ol,
.faq-answer ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

/* AI Keyboard product page */

.keyboard-page {
  background:
    radial-gradient(860px 520px at 78% 8%, rgb(184 67 56 / 13%), transparent 60%),
    radial-gradient(920px 520px at 15% -5%, rgb(255 255 255 / 24%), transparent 55%),
    var(--page);
}

.keyboard-hero {
  position: relative;
  min-height: 940px;
  padding: 154px 0 104px;
  overflow: hidden;
}

.keyboard-hero::before {
  position: absolute;
  top: 112px;
  left: -15vw;
  width: 92vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  transform: rotate(-9deg);
  transform-origin: right center;
  content: "";
}

.keyboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(440px, 0.82fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

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

.keyboard-hero h1 {
  max-width: 8.5ch;
  margin: 0;
  font-size: clamp(4.25rem, 8.5vw, 8rem);
  font-weight: 735;
  letter-spacing: -0.075em;
  line-height: 0.86;
  text-wrap: balance;
}

.keyboard-hero-lede {
  max-width: 35rem;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.keyboard-hero-actions,
.keyboard-closing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 32px;
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 620;
}

.text-action span {
  margin-left: 8px;
  color: var(--accent);
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .text-action:hover span {
    transform: translateX(3px);
  }
}

.keyboard-proof-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 13px;
  margin-top: 28px;
  color: var(--quiet);
  font-size: 0.8rem;
}

.keyboard-proof-line strong {
  color: var(--ink);
  font-weight: 680;
}

.keyboard-proof-line .stars {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.keyboard-proof-line i {
  width: 1px;
  height: 14px;
  background: var(--hairline);
}

.keyboard-stats {
  padding: 0 0 40px;
}

.keyboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.keyboard-stat {
  min-height: 150px;
  padding: 30px 26px;
}

.keyboard-stat + .keyboard-stat {
  border-left: 1px solid var(--hairline);
}

.keyboard-stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  font-weight: 690;
  letter-spacing: -0.05em;
  line-height: 1;
}

.keyboard-stat span {
  display: block;
  max-width: 15rem;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.keyboard-story {
  padding: 96px 0 120px;
}

.keyboard-story-row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: clamp(52px, 9vw, 140px);
  align-items: center;
  min-height: 650px;
  padding: 60px 0;
}

.keyboard-story-row + .keyboard-story-row {
  border-top: 1px solid var(--hairline);
}

.keyboard-story-row:nth-child(even) .keyboard-story-copy {
  order: 2;
}

.keyboard-story-copy h2,
.keyboard-privacy-copy h2,
.keyboard-reviews-heading h2,
.keyboard-faq-heading h2,
.keyboard-closing h2 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.keyboard-story-copy > p:last-of-type {
  max-width: 34rem;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 560;
}

.feature-list li::before {
  position: absolute;
  top: 0.58em;
  left: 1px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.feature-canvas {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--nav-edge);
  border-radius: 34px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--edge), 0 28px 64px var(--shade);
}

.writing-canvas {
  display: grid;
  align-content: center;
  padding: clamp(26px, 6vw, 64px);
}

.draft-card {
  position: relative;
  width: min(100%, 530px);
  margin-inline: auto;
  padding: 26px;
  border-radius: 24px 24px 8px;
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 var(--edge), 0 18px 42px var(--shade);
}

.draft-card-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 630;
}

.draft-card s,
.draft-card strong {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.4;
}

.draft-card s {
  color: var(--quiet);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.draft-card strong {
  margin-top: 16px;
  color: var(--ink);
  font-weight: 620;
}

.draft-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.draft-tool-row span {
  padding: 8px 11px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 620;
}

.draft-tool-row span:first-child {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.voice-canvas {
  display: grid;
  place-items: center;
  padding: 44px;
  background: #16191b;
}

.voice-canvas::before,
.voice-canvas::after {
  position: absolute;
  top: 50%;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(223 103 91 / 60%));
  content: "";
}

.voice-canvas::before {
  left: 0;
}

.voice-canvas::after {
  right: 0;
  transform: scaleX(-1);
}

.voice-orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(70%, 270px);
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #34383b, #101214 68%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 0 80px rgb(184 67 56 / 17%);
}

.voice-orb img {
  width: 34px;
  filter: brightness(1.4);
}

.voice-rings,
.voice-rings::before,
.voice-rings::after {
  position: absolute;
  inset: -18%;
  border: 1px solid rgb(223 103 91 / 26%);
  border-radius: 50%;
  content: "";
}

.voice-rings::before {
  inset: 9%;
}

.voice-rings::after {
  inset: 22%;
}

.language-canvas {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 6vw, 68px);
}

.language-line {
  display: grid;
  grid-template-columns: minmax(90px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.language-line span {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 650;
}

.language-line strong {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 620;
  letter-spacing: -0.035em;
}

.keyboard-privacy {
  padding: 120px 0;
  color: #f3f4f5;
  background: #121416;
}

.keyboard-privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 0.75fr);
  gap: clamp(56px, 10vw, 150px);
  align-items: center;
}

.keyboard-privacy-copy .section-kicker {
  color: #df675b;
}

.keyboard-privacy-copy > p:last-of-type {
  max-width: 35rem;
  margin: 26px 0 0;
  color: #afb5b9;
  font-size: 1.07rem;
  line-height: 1.65;
}

.privacy-ledger {
  margin: 0;
  border-top: 1px solid rgb(255 255 255 / 13%);
}

.privacy-ledger div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgb(255 255 255 / 13%);
}

.privacy-ledger dt {
  color: #afb5b9;
}

.privacy-ledger dd {
  margin: 0;
  color: #f3f4f5;
  font-weight: 650;
}

.privacy-policy-link {
  display: inline-flex;
  margin-top: 28px;
  color: #df675b;
  font-size: 0.9rem;
  font-weight: 620;
}

.keyboard-reviews {
  padding: 128px 0;
}

.keyboard-reviews-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}

.keyboard-reviews-heading > p {
  max-width: 29rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.keyboard-review-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr;
  gap: 16px;
  align-items: start;
}

.keyboard-review {
  margin: 0;
  padding: 28px;
  border-top: 2px solid var(--accent);
  background: var(--panel);
  box-shadow: inset 0 1px 0 var(--edge);
}

.keyboard-review:nth-child(2) {
  margin-top: 72px;
}

.keyboard-review:nth-child(3) {
  margin-top: 26px;
}

.keyboard-review .stars {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.keyboard-review p {
  margin: 22px 0 28px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.keyboard-review footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--quiet);
  font-size: 0.75rem;
}

.keyboard-review cite {
  color: var(--ink);
  font-style: normal;
  font-weight: 650;
}

.keyboard-faq {
  padding: 112px 0 128px;
  background: var(--surface);
}

.keyboard-faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.keyboard-faq-heading {
  position: sticky;
  top: 120px;
}

.keyboard-faq-heading p:last-child {
  max-width: 24rem;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.keyboard-closing {
  padding: 128px 0 144px;
}

.keyboard-closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: end;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.keyboard-closing h2 {
  max-width: 12ch;
}

.keyboard-closing p {
  max-width: 36rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.keyboard-closing-actions {
  justify-content: flex-end;
  margin: 0;
}

@media (max-width: 1050px) {
  .keyboard-hero-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.72fr);
    gap: 42px;
  }

  .keyboard-hero h1 {
    font-size: clamp(4rem, 8.6vw, 6.8rem);
  }
}

@media (max-width: 900px) {
  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .article-header.legal-header,
  .support-hero-grid,
  .support-contact-grid,
  .support-faq-layout,
  .keyboard-hero-grid,
  .keyboard-story-row,
  .keyboard-privacy-grid,
  .keyboard-reviews-heading,
  .keyboard-faq-layout,
  .keyboard-closing-grid {
    grid-template-columns: 1fr;
  }

  .article-header.legal-header {
    min-height: auto;
    padding-top: 138px;
  }

  .legal-header-meta {
    padding-bottom: 0;
  }

  .legal-page .article-layout {
    grid-template-columns: 1fr;
  }

  .support-hero {
    min-height: auto;
    padding-top: 144px;
  }

  .support-aside,
  .support-faq-heading,
  .keyboard-faq-heading {
    position: static;
  }

  .support-aside > p:not(.section-kicker),
  .support-faq-heading p:last-child {
    max-width: 36rem;
  }

  .keyboard-hero {
    padding-top: 140px;
  }

  .keyboard-hero-copy {
    max-width: 700px;
  }

  .keyboard-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .keyboard-stat:nth-child(3) {
    border-left: 0;
  }

  .keyboard-stat:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }

  .keyboard-story-row {
    min-height: 0;
    padding: 80px 0;
  }

  .keyboard-story-row:nth-child(even) .keyboard-story-copy {
    order: 0;
  }

  .feature-canvas {
    min-height: 440px;
  }

  .keyboard-review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .keyboard-review:nth-child(2),
  .keyboard-review:nth-child(3) {
    margin-top: 0;
  }

  .keyboard-review:nth-child(3) {
    grid-column: 1 / -1;
    width: min(100%, 620px);
  }

  .keyboard-closing-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  :root {
    --page-wide: min(100% - 28px, 1280px);
  }

  .legal-layout {
    padding-top: 34px;
  }

  .legal-header-copy h1 {
    font-size: clamp(3.4rem, 15vw, 5.6rem);
  }

  .legal-summary {
    padding: 24px 24px 26px;
    border-radius: 21px;
  }

  .support-hero h1,
  .keyboard-hero h1 {
    font-size: clamp(3.7rem, 17vw, 6.2rem);
  }

  .support-contact-section {
    padding-top: 76px;
  }

  .support-form-wrap {
    border-radius: 24px;
  }

  .support-form {
    grid-template-columns: 1fr;
  }

  .form-field-full,
  .form-actions {
    grid-column: auto;
  }

  .keyboard-hero {
    min-height: auto;
    padding-bottom: 70px;
  }

  .keyboard-stat {
    min-height: 134px;
    padding: 24px 18px;
  }

  .keyboard-story {
    padding-top: 56px;
  }

  .keyboard-story-copy h2,
  .keyboard-privacy-copy h2,
  .keyboard-reviews-heading h2,
  .keyboard-faq-heading h2,
  .keyboard-closing h2 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  .feature-canvas {
    min-height: 390px;
    border-radius: 26px;
  }

  .keyboard-privacy,
  .keyboard-reviews,
  .keyboard-faq,
  .keyboard-closing {
    padding-block: 92px;
  }

  .keyboard-review-grid {
    grid-template-columns: 1fr;
  }

  .keyboard-review:nth-child(3) {
    grid-column: auto;
    width: auto;
  }
}

@media (max-width: 520px) {
  .support-form-wrap {
    padding: 24px 18px;
  }

  .keyboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .keyboard-stat + .keyboard-stat {
    border-top: 1px solid var(--hairline);
    border-left: 0;
  }

  .voice-canvas {
    min-height: 360px;
    padding: 30px;
  }

  .language-canvas {
    padding: 28px 22px;
  }

  .language-line {
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }

  .privacy-ledger div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
