/* AudioFlip service pages — static, local-only, and tracking-free. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface: #111114;
  --surface-raised: #18181c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f0f0f2;
  --dim: rgba(255, 255, 255, 0.62);
  --muted: rgba(255, 255, 255, 0.4);
  --teal: #00ded6;
  --teal-soft: rgba(0, 222, 214, 0.12);
  --coral: #f24d5a;
  --coral-soft: rgba(242, 77, 90, 0.1);
  --radius: 18px;
  --content: 1120px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 222, 214, 0.08), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(242, 77, 90, 0.06), transparent 28rem),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  color: #062b2a;
  background: var(--teal);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 740;
  letter-spacing: -0.015em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-links,
.language-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.language-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--dim);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover,
.language-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.language-links {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.service-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 72px;
  border-bottom: 1px solid var(--line);
}

.service-hero::before,
.service-hero::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  transform: rotate(45deg);
  pointer-events: none;
}

.service-hero::before {
  width: 280px;
  height: 280px;
  right: 6%;
  top: -160px;
  box-shadow: 0 0 80px var(--teal-soft);
}

.service-hero::after {
  width: 180px;
  height: 180px;
  right: 20%;
  bottom: -150px;
  border-color: rgba(242, 77, 90, 0.18);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
}

h1, h2, h3 { margin: 0; line-height: 1.14; }

h1 {
  max-width: 820px;
  margin-top: 18px;
  font-size: clamp(2.55rem, 7vw, 5rem);
  letter-spacing: -0.052em;
}

.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: var(--dim);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  font-weight: 460;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  font-weight: 650;
}

.signal-pill.output { border-color: rgba(0, 222, 214, 0.22); }
.signal-pill.input { border-color: rgba(242, 77, 90, 0.22); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.summary-item {
  min-height: 144px;
  padding: 26px;
  background: var(--surface);
}

.summary-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
  letter-spacing: -0.012em;
}

.summary-item span {
  color: var(--dim);
  font-size: 0.88rem;
}

.summary-mark {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 21px;
  background: var(--teal);
  box-shadow: 0 0 14px var(--teal);
}

.summary-item:nth-child(even) .summary-mark {
  background: var(--coral);
  box-shadow: 0 0 14px var(--coral);
}

.service-main { padding: 64px 0 112px; }

.language-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 54px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.language-jump p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.document {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  padding: 64px 0;
}

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

.document-aside {
  align-self: start;
  position: sticky;
  top: 108px;
}

.language-code {
  display: block;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.document-aside h2 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.updated {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.document-content {
  max-width: 720px;
}

.content-section + .content-section { margin-top: 48px; }

.content-section h3 {
  margin-bottom: 15px;
  font-size: 1.23rem;
  letter-spacing: -0.018em;
}

.content-section p,
.content-section li {
  color: var(--dim);
}

.content-section p { margin: 0; }
.content-section p + p { margin-top: 14px; }

.content-section ul,
.content-section ol {
  margin: 14px 0 0;
  padding-left: 1.25rem;
}

.content-section li + li { margin-top: 9px; }
.content-section li::marker { color: var(--teal); }

.content-section a,
.contact-card a {
  color: var(--text);
  text-decoration-color: rgba(0, 222, 214, 0.5);
  text-underline-offset: 3px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  margin-top: 22px;
  padding: 26px;
  border: 1px solid rgba(0, 222, 214, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-soft), rgba(255, 255, 255, 0.02));
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -58px;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(242, 77, 90, 0.24);
  transform: rotate(45deg);
}

.contact-card strong { display: block; margin-bottom: 6px; }
.contact-card p { max-width: 560px; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.support-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.support-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.95rem;
}

.support-card p { font-size: 0.88rem; }

kbd {
  display: inline-flex;
  min-width: 28px;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-raised);
  font: 650 0.8rem/1 -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--dim); text-decoration: none; }
.footer-links a:hover { color: var(--teal); }

@media (max-width: 820px) {
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document { grid-template-columns: 1fr; gap: 28px; }
  .document-aside { position: static; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 36px, var(--content)); }
  .site-nav .nav-links > a:not([aria-current="page"]) { display: none; }
  .nav-inner { gap: 10px; }
  .language-links { padding-left: 0; border-left: 0; }
  .service-hero { padding: 72px 0 56px; }
  .summary-grid, .support-grid { grid-template-columns: 1fr; }
  .summary-item { min-height: auto; }
  .language-jump { align-items: flex-start; flex-direction: column; }
  .service-main { padding-bottom: 80px; }
  .document { padding: 52px 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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

@media print {
  body { color: #111; background: #fff; }
  .site-nav, .language-jump, .site-footer, .service-hero::before, .service-hero::after { display: none; }
  .service-hero { padding: 32px 0; border-color: #bbb; }
  .hero-copy, .content-section p, .content-section li, .updated { color: #333; }
  .document { display: block; padding: 28px 0; break-inside: avoid; }
  .document-aside { margin-bottom: 24px; }
  .contact-card, .support-card { background: #fff; border-color: #bbb; }
}
