/* RIMA Studio landing — light fintech + pill nav */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f5;
  --bg-elevated: #ffffff;
  --ink: #1c1e1f;
  --forest: #15241c;
  --muted: #5c6366;
  --line: #e3e5e6;
  --line-soft: rgba(28, 30, 31, 0.08);
  /* Glacier cyan from app icon wave (#30d0e0) */
  --accent: #30d0e0;
  --accent-hover: #22b8c8;
  --accent-soft: rgba(48, 208, 224, 0.14);
  --sage: #30d0e0;
  --sage-soft: rgba(48, 208, 224, 0.14);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Source Sans 3", system-ui, sans-serif;
  --font-mono: "DM Mono", "JetBrains Mono", ui-monospace, monospace;
  /* Type scale — keep steps close so nothing feels tiny or shouty */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1.05rem;
  --text-md: 1.125rem;
  --text-lg: clamp(1.35rem, 2.2vw, 1.7rem);
  --text-xl: clamp(1.55rem, 2.5vw, 2rem);
  --text-hero: clamp(2.2rem, 4.2vw, 3.1rem);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --max: 1160px;
  --nav-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-primary:hover {
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.btn-secondary {
  padding: 0.6rem 0.9rem;
  border-color: var(--line);
  background: #fff;
  color: var(--forest);
}

.btn-secondary:hover {
  border-color: rgba(21, 36, 28, 0.35);
  background: var(--bg-soft);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

:where(a, button, input):focus-visible {
  outline: 3px solid rgba(48, 208, 224, 0.38);
  outline-offset: 3px;
}

.btn-arrow {
  font-size: 1.05em;
  line-height: 1;
  margin-left: 0.1rem;
}

.btn-accent {
  background: var(--accent);
  color: var(--forest);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: var(--forest);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: #d2d2d7;
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: var(--text-sm);
}

.btn-xl {
  padding: 1rem 1.7rem;
  font-size: var(--text-base);
}

.btn-nav {
  padding: 0.55rem 1.1rem;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn.is-placeholder {
  opacity: 0.85;
}

/* Nav — Custora-style: brand | flat links | single capsule CTA */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.85rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: calc(var(--nav-h) - 1.7rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  justify-self: start;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  color: var(--forest);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 1.05rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 1;
  background: var(--bg-soft);
}

.nav-links a.is-active {
  opacity: 1;
  font-weight: 600;
  color: #fff;
  background: #000;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  justify-self: end;
}

/* Sections */

.section {
  padding: 5.5rem 0;
}

.section-header {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.section-header-center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
}

/* Hero — centered manifesto (demo-aligned) */

.hero {
  position: relative;
  padding: clamp(3.75rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% 22% auto 22%;
  height: 38%;
  background: radial-gradient(ellipse at center, rgba(48, 208, 224, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 50rem;
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(48, 208, 224, 0.16);
  color: #0d8a96;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-title {
  margin: 0 0 1.15rem;
  font-size: var(--text-hero);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 12ch;
}

.hero-subtitle {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-actions .btn {
  min-width: 10.5rem;
  padding: 0.75rem 1.75rem;
}

.hero-meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* Features — NotebookLM-style alternating blocks */

.features-section {
  background: var(--bg);
}

.feature-blocks {
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
  margin-top: 1rem;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.feature-block--media-left {
  grid-template-areas: "media copy";
}

.feature-block--media-right {
  grid-template-areas: "copy media";
}

.feature-block__media {
  grid-area: media;
  min-width: 0;
}

.feature-block__copy {
  grid-area: copy;
  max-width: 28rem;
}

.feature-block--media-right .feature-block__copy {
  justify-self: end;
  text-align: left;
}

.feature-block__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--forest);
  box-shadow: 0 6px 16px rgba(21, 36, 28, 0.04);
}

.feature-block__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.feature-block__index {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.feature-block__copy h3 {
  margin: 0 0 0.65rem;
  font-size: var(--text-lg);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.feature-block__hook {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.01em;
}

.feature-block__copy p:not(.feature-block__index):not(.feature-block__hook) {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.55;
  max-width: 28rem;
}

/* Product storyboard demos (Studio-faithful, simplified) */

.demo-studio {
  --demo-teal: var(--accent);
  --demo-amber: #d97706;
  --demo-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --demo-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --demo-dur: 6s;
  --demo-stagger: 0.28s;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(21, 36, 28, 0.06);
  min-height: 280px;
}

.demo-studio__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.demo-studio__dots {
  display: inline-flex;
  gap: 5px;
}

.demo-studio__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5d8d6;
  display: block;
}

.demo-studio__dots i:nth-child(1) { background: #ef9a9a; }
.demo-studio__dots i:nth-child(2) { background: #f6d365; }
.demo-studio__dots i:nth-child(3) { background: #a8d08d; }

.demo-studio__bar-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.demo-studio__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* —— 01 Import —— */

.demo-import {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 240px;
}

.demo-import__drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 88px;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.demo-import__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent) 0%, #7ae8f0 100%);
  opacity: 0.85;
  margin-bottom: 0.15rem;
}

.demo-import__drop-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}

.demo-import__drop-hint {
  font-size: var(--text-xs);
  color: var(--muted);
}

.demo-import__actions {
  display: flex;
  gap: 0.5rem;
}

.demo-import__cta {
  flex: 1;
  text-align: center;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
}

.demo-import__cta--primary {
  background: var(--forest);
  color: #fff;
}

.demo-import__cta--ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.demo-import__url-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  opacity: 0;
  transform: translateY(6px);
}

.demo-import__url-label {
  font-size: var(--text-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

.demo-import__url-type {
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink);
}

.demo-import__url-text {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
}

.demo-import__url-go {
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: var(--forest);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
}

.demo-import__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 2.6rem;
}

.demo-import__file {
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: var(--text-sm);
  font-family: var(--font-display);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.demo-studio[data-scene="import"].is-playing .demo-import__drop {
  animation: demo-import-drop var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="import"].is-playing .demo-import__file--a {
  animation: demo-import-file-a var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="import"].is-playing .demo-import__url-bar {
  animation: demo-import-url var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="import"].is-playing .demo-import__url-text {
  animation: demo-import-type var(--demo-dur) steps(32, end) infinite;
}

.demo-studio[data-scene="import"].is-playing .demo-import__url-go {
  animation: demo-import-go var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="import"].is-playing .demo-import__file--b {
  animation: demo-import-file-b var(--demo-dur) var(--demo-ease) infinite;
}

@keyframes demo-import-drop {
  0%, 10% { border-color: var(--line); background: #fff; box-shadow: none; }
  18%, 32% {
    border-color: var(--demo-teal);
    background: rgba(48, 208, 224, 0.06);
    box-shadow: 0 0 0 4px rgba(48, 208, 224, 0.1);
  }
  42%, 100% { border-color: var(--line); background: #fff; box-shadow: none; }
}

@keyframes demo-import-file-a {
  0%, 16% { opacity: 0; transform: translateY(10px) scale(0.96); }
  30%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes demo-import-url {
  0%, 36% { opacity: 0; transform: translateY(8px); }
  48%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes demo-import-type {
  0%, 48% { max-width: 0; }
  68%, 100% { max-width: 14rem; }
}

@keyframes demo-import-go {
  0%, 66% { box-shadow: none; }
  72%, 82% { box-shadow: 0 0 0 5px rgba(48, 208, 224, 0.35); }
  90%, 100% { box-shadow: none; }
}

@keyframes demo-import-file-b {
  0%, 76% { opacity: 0; transform: translateY(10px) scale(0.96); }
  88%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* —— 02 ASR —— */

.demo-asr__btn {
  position: relative;
  margin-left: auto;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  min-width: 4.6rem;
  text-align: center;
}

.demo-asr__btn-busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
}

.demo-asr__btn-idle {
  display: block;
}

.demo-asr {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem 1rem;
  min-height: 230px;
}

.demo-asr__wave {
  position: relative;
  height: 72px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}

.demo-asr__scan {
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(48, 208, 224, 0.14), transparent);
  opacity: 0;
  transform: translateX(-40%);
}

.demo-asr__progress {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
}

.demo-asr__progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: var(--demo-teal);
  border-radius: inherit;
}

.demo-asr__card {
  flex: 1;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 96px;
}

.demo-asr__line {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.45;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__btn-idle {
  animation: demo-asr-idle var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__btn-busy {
  animation: demo-asr-busy var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__progress {
  animation: demo-asr-progress-show var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__progress::after {
  animation: demo-asr-progress-fill var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__scan {
  animation: demo-asr-scan var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__line--1 {
  animation: demo-asr-line var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: 0s;
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__line--2 {
  animation: demo-asr-line var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: var(--demo-stagger);
}

.demo-studio[data-scene="asr"].is-playing .demo-asr__line--3 {
  animation: demo-asr-line var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(var(--demo-stagger) * 2);
}

@keyframes demo-asr-idle {
  0%, 12% { opacity: 1; }
  18%, 64% { opacity: 0; }
  74%, 100% { opacity: 1; }
}

@keyframes demo-asr-busy {
  0%, 12% { opacity: 0; }
  18%, 64% { opacity: 1; }
  74%, 100% { opacity: 0; }
}

@keyframes demo-asr-progress-show {
  0%, 14% { opacity: 0; }
  20%, 66% { opacity: 1; }
  78%, 100% { opacity: 0; }
}

@keyframes demo-asr-progress-fill {
  0%, 18% { width: 0%; }
  66% { width: 100%; }
  100% { width: 100%; }
}

@keyframes demo-asr-scan {
  0%, 16% { opacity: 0; transform: translateX(-25%); }
  22% { opacity: 0.85; }
  58% { opacity: 0.85; transform: translateX(260%); }
  68%, 100% { opacity: 0; transform: translateX(260%); }
}

@keyframes demo-asr-line {
  0%, 38% { opacity: 0; transform: translateY(8px); }
  52%, 90% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(4px); }
}

/* —— 03 Wave / slice —— */

.demo-wave__smart {
  margin-left: auto;
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--forest);
}

.demo-wave {
  display: grid;
  grid-template-columns: 1fr minmax(104px, 30%);
  min-height: 230px;
}

.demo-wave__main {
  position: relative;
  min-height: 230px;
  background: var(--bg-soft);
  overflow: hidden;
}

/* Colored bands = sentence chunks after split */
.demo-wave__segments {
  position: absolute;
  inset: 14% 0;
  pointer-events: none;
}

.demo-wave__seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--from);
  width: calc(var(--to) - var(--from));
  border-radius: 8px;
  opacity: 0;
  transform: scaleY(0.92);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.35rem;
}

.demo-wave__seg--1 { background: rgba(48, 208, 224, 0.22); }
.demo-wave__seg--2 { background: rgba(48, 208, 224, 0.14); }
.demo-wave__seg--3 { background: rgba(48, 208, 224, 0.22); }
.demo-wave__seg--4 { background: rgba(48, 208, 224, 0.14); }

.demo-wave__seg-label {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Cut points: scissors notch, not bare lines */
.demo-wave__cuts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.demo-wave__cut {
  position: absolute;
  top: 10%;
  bottom: 10%;
  left: var(--pos);
  width: 0;
  opacity: 0;
  transform: translateX(-50%) scaleY(0.3);
  transform-origin: top center;
}

.demo-wave__cut::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.demo-wave__cut i {
  position: absolute;
  top: -2px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.demo-wave__cut i::before {
  content: "✂";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  line-height: 1;
}

.demo-wave__slices {
  border-left: 1px solid var(--line);
  padding: 0.65rem 0.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-wave__slices-title {
  margin: 0 0 0.1rem;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.06em;
}

.demo-wave__slice {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  opacity: 0;
  transform: translateX(10px);
}

.demo-wave__slice-num {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.demo-wave__slice-text {
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__smart {
  animation: demo-wave-smart var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__cut:nth-child(1) {
  animation: demo-wave-cut var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: 0.15s;
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__cut:nth-child(2) {
  animation: demo-wave-cut var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.15s + var(--demo-stagger));
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__cut:nth-child(3) {
  animation: demo-wave-cut var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.15s + var(--demo-stagger) * 2);
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__seg--1 {
  animation: demo-wave-seg var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: 0.55s;
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__seg--2 {
  animation: demo-wave-seg var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.55s + var(--demo-stagger));
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__seg--3 {
  animation: demo-wave-seg var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.55s + var(--demo-stagger) * 2);
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__seg--4 {
  animation: demo-wave-seg var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.55s + var(--demo-stagger) * 3);
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__slice--1 {
  animation: demo-wave-slice var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: 0.7s;
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__slice--2 {
  animation: demo-wave-slice var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.7s + var(--demo-stagger));
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__slice--3 {
  animation: demo-wave-slice var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.7s + var(--demo-stagger) * 2);
}

.demo-studio[data-scene="wave"].is-playing .demo-wave__slice--4 {
  animation: demo-wave-slice var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(0.7s + var(--demo-stagger) * 3);
}

@keyframes demo-wave-cut {
  0%, 28% { opacity: 0; transform: translateX(-50%) scaleY(0.25); }
  40%, 92% { opacity: 1; transform: translateX(-50%) scaleY(1); }
  100% { opacity: 1; transform: translateX(-50%) scaleY(1); }
}

@keyframes demo-wave-seg {
  0%, 32% { opacity: 0; transform: scaleY(0.92); }
  44%, 92% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 1; transform: scaleY(1); }
}

@keyframes demo-wave-slice {
  0%, 40% { opacity: 0; transform: translateX(10px); }
  54%, 100% { opacity: 1; transform: translateX(0); }
}

@keyframes demo-wave-smart {
  0%, 22% { background: #fff; color: var(--ink); border-color: var(--line); }
  30%, 78% { background: #000; color: #fff; border-color: #000; }
  88%, 100% { background: #fff; color: var(--ink); border-color: var(--line); }
}

/* —— 04 Dict / manage + lookup —— */

.demo-dict {
  position: relative;
  padding: 0;
  min-height: 280px;
  background: var(--bg-soft);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.demo-dict__lookup {
  position: relative;
  padding: 1rem 1rem 0.75rem;
  min-height: 155px;
}

.demo-dict__context {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 94%;
}

.demo-dict__hit {
  background: transparent;
  color: inherit;
  border-radius: 4px;
  padding: 0 0.15em;
  font-weight: 600;
}

.demo-dict__panel {
  position: absolute;
  top: 4.2rem;
  right: 0.9rem;
  width: min(200px, 64%);
  padding: 0.5rem 0.6rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(21, 36, 28, 0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: top right;
  z-index: 2;
}

.demo-dict__grip {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto 0.4rem;
}

.demo-dict__search {
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  margin-bottom: 0.45rem;
}

.demo-dict__word {
  margin: 0 0 0.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.demo-dict__phonetic {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
}

.demo-dict__sense {
  margin: 0 0 0.3rem;
  font-size: var(--text-sm);
  line-height: 1.35;
  color: var(--ink);
  opacity: 0;
  transform: translateY(4px);
}

.demo-dict__bookmark {
  display: inline-flex;
  margin-top: 0.25rem;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0;
}

.demo-dict__manage {
  position: relative;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 0.65rem 0.85rem 0.75rem;
}

.demo-dict__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.demo-dict__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.demo-dict__import-btn {
  flex-shrink: 0;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
}

.demo-dict__file {
  position: absolute;
  top: 0.35rem;
  right: 5.5rem;
  z-index: 2;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 18px rgba(21, 36, 28, 0.12);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}

.demo-dict__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-dict__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
}

.demo-dict__row--b {
  opacity: 0;
  transform: translateY(6px);
}

.demo-dict__row-mark {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--forest);
}

.demo-dict__row-mark--new {
  background: var(--demo-teal);
  box-shadow: 0 0 0 3px rgba(48, 208, 224, 0.2);
}

.demo-dict__row-name {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink);
}

.demo-dict__chip {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(28, 30, 31, 0.06);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
}

.demo-dict__chip--new {
  background: rgba(48, 208, 224, 0.18);
  color: #0a6b75;
}

.demo-dict__toggle {
  width: 1.55rem;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(28, 30, 31, 0.12);
  position: relative;
}

.demo-dict__toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.demo-dict__toggle.is-on {
  background: #000;
}

.demo-dict__toggle.is-on::after {
  left: auto;
  right: 2px;
}

/* Manage first half → lookup second half */
.demo-studio[data-scene="dict"].is-playing .demo-dict__import-btn {
  animation: demo-dict-import-btn var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__file {
  animation: demo-dict-file var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__row--b {
  animation: demo-dict-row-b var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__chip--new {
  animation: demo-dict-chip-new var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__hit {
  animation: demo-dict-hit var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__panel {
  animation: demo-dict-panel var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__sense--1 {
  animation: demo-dict-sense var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__sense--2 {
  animation: demo-dict-sense var(--demo-dur) var(--demo-ease) infinite;
  animation-delay: calc(var(--demo-stagger) * 0.6);
}

.demo-studio[data-scene="dict"].is-playing .demo-dict__bookmark {
  animation: demo-dict-bookmark var(--demo-dur) var(--demo-ease) infinite;
}

@keyframes demo-dict-import-btn {
  0%, 6% { box-shadow: none; transform: scale(1); }
  12%, 22% { box-shadow: 0 0 0 5px rgba(48, 208, 224, 0.28); transform: scale(1.03); }
  30%, 100% { box-shadow: none; transform: scale(1); }
}

@keyframes demo-dict-file {
  0%, 10% {
    opacity: 0;
    transform: translate(14px, -10px) scale(0.92);
  }
  16% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  26% {
    opacity: 1;
    transform: translate(8px, 22px) scale(0.96);
  }
  34%, 100% {
    opacity: 0;
    transform: translate(8px, 28px) scale(0.9);
  }
}

@keyframes demo-dict-row-b {
  0%, 28% { opacity: 0; transform: translateY(8px); }
  38%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes demo-dict-chip-new {
  0%, 36% { box-shadow: none; }
  44% { box-shadow: 0 0 0 4px rgba(48, 208, 224, 0.28); }
  54%, 100% { box-shadow: none; }
}

@keyframes demo-dict-hit {
  0%, 42% { background: transparent; box-shadow: none; }
  50%, 92% { background: rgba(48, 208, 224, 0.35); box-shadow: 0 0 0 2px rgba(48, 208, 224, 0.22); }
  100% { background: rgba(48, 208, 224, 0.28); }
}

@keyframes demo-dict-panel {
  0%, 48% { opacity: 0; transform: translateY(10px) scale(0.96); }
  58%, 94% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes demo-dict-sense {
  0%, 56% { opacity: 0; transform: translateY(6px); }
  66%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes demo-dict-bookmark {
  0%, 70% { opacity: 0; box-shadow: none; }
  78% { opacity: 1; box-shadow: 0 0 0 5px rgba(48, 208, 224, 0.28); }
  90%, 100% { opacity: 1; box-shadow: none; }
}

/* —— 05 Shadow —— */

.demo-shadow__badge {
  margin-left: auto;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--demo-amber);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.9);
}

.demo-shadow {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 230px;
}

.demo-shadow__legend {
  display: flex;
  gap: 0.45rem;
}

.demo-shadow__tag {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-family: var(--font-display);
  font-weight: 600;
  opacity: 0.35;
}

.demo-shadow__tag--ref {
  background: rgba(48, 208, 224, 0.12);
  color: var(--demo-teal);
}

.demo-shadow__tag--user {
  background: rgba(217, 119, 6, 0.12);
  color: var(--demo-amber);
}

.demo-shadow__wave {
  position: relative;
  height: 130px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}

.demo-shadow__dock {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.15rem 0;
}

.demo-shadow__mic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--forest);
  position: relative;
  flex-shrink: 0;
}

.demo-shadow__mic::before {
  content: "";
  position: absolute;
  inset: 9px 13px 9px 13px;
  border-radius: 6px;
  background: #fff;
}

.demo-shadow__mic::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(217, 119, 6, 0.45);
  opacity: 0;
}

.demo-shadow__hint {
  font-size: var(--text-xs);
  color: var(--muted);
  font-family: var(--font-mono);
}

.demo-studio[data-scene="shadow"].is-playing .demo-shadow__tag--ref {
  animation: demo-shadow-tag-ref var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="shadow"].is-playing .demo-shadow__tag--user {
  animation: demo-shadow-tag-user var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="shadow"].is-playing .demo-shadow__mic::after {
  animation: demo-shadow-mic var(--demo-dur) var(--demo-ease) infinite;
}

.demo-studio[data-scene="shadow"].is-playing .demo-shadow__badge {
  animation: demo-shadow-badge var(--demo-dur) var(--demo-ease) infinite;
}

@keyframes demo-shadow-tag-ref {
  0%, 10% { opacity: 0.28; }
  22%, 100% { opacity: 1; }
}

@keyframes demo-shadow-tag-user {
  0%, 38% { opacity: 0.22; }
  50%, 100% { opacity: 1; }
}

@keyframes demo-shadow-mic {
  0%, 50% { opacity: 0; }
  58%, 78% { opacity: 1; }
  88%, 100% { opacity: 0.45; }
}

@keyframes demo-shadow-badge {
  0%, 70% { opacity: 0; transform: translateY(6px) scale(0.96); }
  82%, 100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Reduced motion: freeze end-ish state */

@media (prefers-reduced-motion: reduce) {
  .demo-studio.is-playing *,
  .demo-studio.is-playing *::before,
  .demo-studio.is-playing *::after {
    animation: none !important;
  }

  .demo-import__file,
  .demo-import__url-bar {
    opacity: 1;
    transform: none;
  }

  .demo-import__url-text {
    max-width: 14rem;
  }

  .demo-asr__line,
  .demo-wave__slice,
  .demo-wave__seg,
  .demo-wave__cut,
  .demo-dict__row--b,
  .demo-dict__panel,
  .demo-dict__sense,
  .demo-dict__bookmark,
  .demo-shadow__badge,
  .demo-shadow__tag {
    opacity: 1;
    transform: none;
  }

  .demo-dict__hit {
    background: rgba(48, 208, 224, 0.28);
  }

  .demo-dict__file {
    opacity: 0;
  }

  .demo-wave__cut {
    transform: translateX(-50%) scaleY(1);
  }

  .demo-asr__progress {
    opacity: 1;
  }

  .demo-asr__progress::after {
    width: 100%;
  }
}


/* Pricing — comparison cards */

.pricing-banner {
  margin: 0 auto 2rem;
  max-width: 28rem;
  padding: 0.75rem 1rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 36rem;
  padding: 2rem 1.65rem 1.85rem;
  border: 1.5px solid var(--line);
  border-radius: 1.5rem;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.price-card:hover {
  border-color: rgba(28, 30, 31, 0.28);
}

.price-card:focus-visible {
  border-color: #000;
}

/* Black edge protrusion when selected / clicked */
.price-card.is-selected {
  z-index: 2;
  border-color: #000;
  border-width: 2.5px;
  transform: translateY(-4px);
  box-shadow:
    0 0 0 3px #000,
    5px 5px 0 0 #000,
    0 18px 36px rgba(0, 0, 0, 0.08);
}

.price-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-bottom: 1.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.price-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.price-desc {
  margin: 0;
  max-width: 28ch;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--muted);
  min-height: 4.2em;
}

.price-start {
  margin: 0.35rem 0 0;
  display: grid;
  gap: 0.2rem;
}

.price-start__label {
  font-size: var(--text-sm);
  color: var(--ink);
}

.price-amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

.price-period {
  font-size: var(--text-sm);
  font-weight: 500;
  opacity: 0.55;
}

.price-eff {
  margin: -0.35rem 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

.price-badge {
  align-self: flex-start;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.price-card__cta {
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-pill);
  background: #000;
  border-color: #000;
  color: #fff;
}

.price-card__cta:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.price-features {
  list-style: none;
  margin: 0;
  padding: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.price-feature {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: var(--text-sm);
  line-height: 1.4;
  color: var(--ink);
}

.price-feature--off {
  color: #a8adb3;
}

.price-feature__icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.price-feature__icon--yes {
  background: var(--accent, #30d0e0);
}

.price-feature__icon--yes::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.26rem;
  width: 0.32rem;
  height: 0.55rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-feature__icon--no {
  background: transparent;
}

.price-feature__icon--no::before,
.price-feature__icon--no::after {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 0.5rem;
  width: 0.72rem;
  height: 2px;
  background: #e25555;
  border-radius: 1px;
}

.price-feature__icon--no::before {
  transform: rotate(45deg);
}

.price-feature__icon--no::after {
  transform: rotate(-45deg);
}

.pricing-footnote {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .price-card {
    transition: none;
  }

  .price-card.is-selected {
    transform: none;
  }
}

/* Download */

.download-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, var(--bg-soft) 100%);
}

.download-specs {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.download-specs li {
  display: flex;
  gap: 0.75rem;
  font-size: var(--text-base);
}

.spec-label {
  min-width: 3.5rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.download-action .btn {
  border-radius: var(--radius-pill);
}

.download-hint,
.download-macos-note {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  margin: 0;
  width: 100%;
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Auth */

.auth-page {
  min-height: calc(100vh - var(--nav-h) - 5rem);
  display: grid;
  place-items: center;
  padding: 3rem 0;
  background: var(--bg-soft);
}

.auth-card {
  width: min(100%, 460px);
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(28, 30, 31, 0.05);
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: var(--text-xl);
}

.auth-eyebrow,
.account-kicker {
  margin: 0 0 0.45rem;
  color: #167885;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.auth-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: var(--text-base);
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field label {
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
}

.auth-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  font: inherit;
  color: var(--ink);
}

.auth-field input:focus {
  border-color: var(--ink);
}

.auth-field small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.auth-code-row .btn {
  min-width: 8.5rem;
  white-space: nowrap;
}

.auth-field-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.4rem;
  font-size: var(--text-sm);
}

.auth-form .btn {
  border-radius: var(--radius-pill);
}

.auth-switch {
  margin: 1.25rem 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.auth-switch a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.auth-status,
.account-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--forest);
  font-size: var(--text-sm);
}

.auth-status[data-tone="error"],
.account-status[data-tone="error"] {
  border-color: #bd4d3c;
  background: #fff4f1;
  color: #762d23;
}

.auth-status[data-tone="success"],
.account-status[data-tone="success"] {
  border-color: #22845c;
  background: #f0faf5;
  color: #175c41;
}

.auth-success {
  display: grid;
  gap: 1rem;
}

.auth-success[hidden],
.auth-form[hidden] {
  display: none !important;
}

.auth-success p {
  margin: 0;
  color: var(--muted);
}

.auth-success .btn {
  border-radius: var(--radius-pill);
}

/* Account */

.account-page {
  min-height: calc(100vh - var(--nav-h));
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  background:
    linear-gradient(180deg, rgba(48, 208, 224, 0.07), transparent 18rem),
    var(--bg-soft);
}

.account-shell {
  max-width: 940px;
}

.account-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.account-header h1 {
  margin: 0;
  font-size: var(--text-hero);
}

.account-header > div > p:last-child {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.account-identity {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
}

.account-identity span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.account-identity strong {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.account-content {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.account-content[hidden] {
  display: none;
}

.membership-panel,
.devices-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.membership-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.membership-panel h2,
.devices-panel h2 {
  margin: 0;
  font-size: var(--text-xl);
}

.membership-state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
}

.membership-state span {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #22845c;
  box-shadow: 0 0 0 4px rgba(34, 132, 92, 0.12);
}

.membership-state[data-status="expired"] span {
  background: #8b9294;
  box-shadow: 0 0 0 4px rgba(139, 146, 148, 0.12);
}

.membership-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(8rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.membership-facts div {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.membership-facts dt {
  color: var(--muted);
  font-size: var(--text-xs);
}

.membership-facts dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
}

.membership-expired {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
}

.devices-panel {
  padding: clamp(1.4rem, 4vw, 2.25rem);
}

.account-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1rem;
}

.account-section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.device-list {
  border-top: 1px solid var(--line);
}

.device-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.device-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.device-icon {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(48, 208, 224, 0.45);
  border-radius: 50%;
  background: var(--accent-soft);
}

.device-row h3,
.device-row p {
  margin: 0;
}

.device-row h3 {
  font-size: var(--text-base);
}

.device-row p,
.account-empty {
  color: var(--muted);
  font-size: var(--text-sm);
}

.account-empty {
  margin: 1rem 0 0;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 50;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--text-sm);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reveal */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

}

/* Responsive */

@media (max-width: 960px) {
  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .download-card,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .demo-wave {
    grid-template-columns: 1fr;
  }

  .demo-wave__slices {
    border-left: none;
    border-top: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
  }

  .demo-wave__slice {
    flex: 1;
    min-width: 64px;
  }


  .feature-block,
  .feature-block--media-left,
  .feature-block--media-right {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "copy";
    gap: 1.5rem;
  }

  .feature-block--media-right .feature-block__copy {
    justify-self: stretch;
  }

  .feature-blocks {
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  .download-action {
    align-items: stretch;
  }

  .download-action .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 22rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .account-header,
  .membership-panel {
    grid-template-columns: 1fr;
  }

  .account-identity {
    justify-items: start;
  }

  .membership-facts {
    grid-template-columns: 1fr;
  }

  .account-section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 520px) {
  .auth-page {
    align-items: start;
    padding: 1.5rem 0;
  }

  .auth-card {
    padding: 1.5rem 1.1rem;
    border-radius: 16px;
  }

  .auth-code-row,
  .device-row {
    grid-template-columns: 1fr;
  }

  .auth-code-row .btn,
  .device-row .btn {
    width: 100%;
  }

  .device-icon {
    display: none;
  }
}
