@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  /* Exact tokens from globals.css */
  --background: #F5FAFB;
  --foreground: oklch(0.13 0.02 260);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.13 0.02 260);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.13 0.02 260);
  --primary: oklch(0.13 0.02 260);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.96 0.005 240);
  --secondary-foreground: oklch(0.13 0.02 260);
  --muted: oklch(0.95 0.005 240);
  --muted-foreground: #4f5661;
  --accent: oklch(0.55 0.15 250);
  --accent-foreground: oklch(0.99 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.577 0.245 27.325);
  --border: oklch(0.90 0.01 240);
  --input: oklch(0.92 0.005 240);
  --ring: oklch(0.55 0.15 250);
  --radius: 0.75rem;

  /* Additional utility colors mapping to accent */
  --primary-hover: oklch(0.55 0.15 250);
  --primary-soft: oklch(0.55 0.15 250 / 0.08);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

  /* Typography strictly from example */
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Tailwind Utilities Injection */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.leading-tight {
  line-height: 1.1;
}

.leading-relaxed {
  line-height: 1.625;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.text-foreground {
  color: var(--foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.bg-card {
  background-color: var(--card);
}

.bg-foreground {
  background-color: var(--foreground);
}

.text-background {
  color: var(--background);
}

.text-accent {
  color: var(--accent);
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-6xl {
  max-width: 72rem;
}

.w-full {
  width: 100%;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

/* --- UI Component: Buttons (Design Guideline) --- */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  padding: 0 1.25rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  gap: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.ui-btn:active {
  transform: scale(0.98);
}

.ui-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.ui-btn-primary {
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ui-btn-primary:hover:not(:disabled) {
  opacity: 0.85;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ui-btn-secondary {
  background: var(--secondary);
  color: var(--foreground);
}

.ui-btn-secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--secondary) 85%, var(--foreground) 15%);
}

.ui-btn-outline {
  background: #fff;
  border-color: var(--border);
  color: var(--foreground);
}

.ui-btn-outline:hover:not(:disabled) {
  background: var(--secondary);
}

.ui-btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
}

.ui-btn-ghost:hover:not(:disabled) {
  background: var(--secondary);
  color: var(--foreground);
}

.ui-btn-lg {
  height: 3.2rem;
  font-size: 1rem;
  border-radius: 0.8rem;
  padding: 0 1.5rem;
}

/* Auth Modal Button Layout Utilities applied with generic buttons */
.mt-3 {
  margin-top: 0.75rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* --- Tailwind Typography & Layout Injections --- */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

.pt-8 {
  padding-top: 2rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.font-serif {
  font-family: 'Playfair Display', 'Noto Serif SC', serif;
}

.font-sans {
  font-family: 'IBM Plex Sans', 'Noto Sans SC', sans-serif;
}

.font-mono {
  font-family: monospace;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.text-foreground {
  color: var(--foreground);
}

/* Positioning & Transforms */
.top-0 {
  top: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.-top-4 {
  top: -1rem;
}

.-bottom-2 {
  bottom: -0.5rem;
}

.left-1\/2 {
  left: 50%;
}

.-translate-x-1\/2 {
  transform: translateX(-50%);
}

.translate-x-1 {
  transform: translateX(0.25rem);
}

.transform {
  transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1));
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.grid {
  display: grid;
}

/* Widths and Heights */
.w-px {
  width: 1px;
}

.h-px {
  height: 1px;
}

.w-3 {
  width: 0.75rem;
}

.h-3 {
  height: 0.75rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.min-h-\[16px\] {
  min-height: 16px;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

/* Interactive Hover States (Tailwind mapped) */
.group:hover .group-hover\:bg-accent\/10 {
  background-color: oklch(0.55 0.15 250 / 0.1);
}

.group:hover .group-hover\:text-accent {
  color: var(--accent);
}

.group:hover .group-hover\:translate-x-1 {
  transform: translateX(0.25rem);
}

.hover\:shadow-lg:hover {
  box-shadow: var(--shadow-lg);
}

.hover\:shadow-md:hover {
  box-shadow: var(--shadow-md);
}

.hover\:border-accent\/30:hover {
  border-color: oklch(0.55 0.15 250 / 0.3) !important;
}

.hover\:border-border:hover {
  border-color: var(--border) !important;
}

.hover\:bg-background\/90:hover {
  background-color: oklch(0.985 0.002 240 / 0.9);
}

.hover\:bg-foreground\/90:hover {
  background-color: oklch(0.13 0.02 260 / 0.9);
}

.z-10 {
  z-index: 10;
}

@media (min-width: 640px) {
  .sm\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:block {
    display: block;
  }

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

@media (min-width: 1024px) {
  .lg\:gap-8 {
    gap: 2rem;
  }

  .lg\:gap-10 {
    gap: 2.5rem;
  }

  .lg\:scale-105 {
    transform: scale(1.05);
  }
}

.inline-flex {
  display: inline-flex;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.flex-item-end {
  align-items: flex-end;
}

.flex-row-reverse {
  flex-direction: row-reverse;
}

.justify-center {
  justify-content: center;
}

/* Custom CSS Components copied from ui-redesign-example states */
.billing-toggle-btn.active {
  background-color: var(--foreground);
  color: var(--background);
}

.billing-toggle-btn.active span {
  background-color: var(--accent);
  color: #fff;
}

.billing-toggle-btn:not(.active) {
  color: var(--muted-foreground);
}

.billing-toggle-btn:not(.active):hover {
  color: var(--foreground);
}

.billing-toggle-btn:not(.active) span {
  background-color: rgba(166, 46, 7, 0.2);
  color: var(--accent);
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pt-32 {
  padding-top: 8rem;
}

.rounded-full {
  border-radius: 9999px;
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-secondary\/30 {
  --tw-gradient-from: oklch(0.96 0.005 240 / 0.3);
  --tw-gradient-to: rgba(246, 248, 250, 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.w-4 {
  width: 1rem;
}

.h-4 {
  height: 1rem;
}

.w-5 {
  width: 1.25rem;
}

.h-5 {
  height: 1.25rem;
}

.w-8 {
  width: 2rem;
}

.h-8 {
  height: 2rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.w-20 {
  width: 5rem;
}

.h-20 {
  height: 5rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

.shadow-2xl {
  box-shadow: var(--shadow-2xl);
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.overflow-hidden {
  overflow: hidden;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-serif);
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  /* Prevent body scroll, layout handles flex */
  display: flex;
  flex-direction: column;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
}

/* Sophisticated Ambient Glow Aesthetic */
.app-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-elegant-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.ambient-glow.bg-top-radial {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at top, var(--accent) 5%, transparent 60%);
  opacity: 0.15;
}

.ambient-glow.bg-top-blur {
  position: absolute;
  top: 0;
  left: 25%;
  height: 600px;
  width: 600px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.03;
  filter: blur(120px);
}

.ambient-glow.bg-bottom-blur {
  position: absolute;
  bottom: 25%;
  right: 25%;
  height: 400px;
  width: 400px;
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.03;
  filter: blur(100px);
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: overlay;
}

button {
  background: none;
  border: none;
  font-family: var(--font-ui);
  cursor: pointer;
  outline: none;
}

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

/* TOPBAR */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-base,
.brand-highlight {
  font-family: var(--font-serif);
}

.brand-logo {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
  border-radius: 0.4rem;
  object-fit: contain;
}

.brand-base {
  color: var(--foreground);
}

.brand-highlight {
  color: var(--primary);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pricing-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  transition: colors 0.2s, background-color 0.2s;
}

.pricing-link:hover,
.lang-switch-btn:hover {
  color: var(--foreground);
  background-color: var(--secondary);
}

.lang-switch-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 0.375rem 0.625rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

/* CONTROL PANEL */
.control-panel {
  flex-shrink: 0;
  padding: 0.75rem 1rem 0.5rem;
  background-color: transparent;
  z-index: 10;
  max-width: 32rem;
  /* max-w-lg */
  margin: 0 auto;
  width: 100%;
}

.pair-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-selector-container {
  flex: 1;
  min-width: 0;
  position: relative;
}

.lang-selector-trigger {
  width: 100%;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--card-foreground);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-selector-trigger[aria-expanded="true"] {
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(166, 46, 7, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.lang-selector-trigger:hover {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.lang-selector-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
}

.lang-native {
  font-weight: 600;
  font-size: 1rem;
}

.lang-name {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.lang-selector-popover {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  width: 17.5rem;
  max-width: calc(100vw - 2rem);
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slide-down 0.15s ease-out;
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-selector-popover.hidden {
  display: none;
}

.lang-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.search-icon {
  color: var(--muted-foreground);
  flex-shrink: 0;
}

.lang-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  height: 2rem;
  font-size: 0.875rem;
  background: transparent;
  color: var(--foreground);
  outline: none;
}

.lang-search-input::placeholder {
  color: var(--muted-foreground);
}

.lang-options-list {
  list-style: none;
  max-height: 15rem;
  overflow-y: auto;
  padding: 0.25rem;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}

.lang-option:hover {
  background-color: var(--secondary);
}

.lang-option.selected {
  background-color: rgba(166, 46, 7, 0.1);
  /* primary/10 */
  color: var(--primary);
}

.lang-option.selected .option-name {
  color: inherit;
  opacity: 0.8;
}

.option-native {
  font-weight: 500;
}

.option-name {
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.option-check {
  margin-left: auto;
  flex-shrink: 0;
}

.chevron-down {
  flex-shrink: 0;
  color: var(--muted-foreground);
}

.swap-btn {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--muted-foreground);
  transition: all 0.3s;
}

.swap-btn:hover {
  color: var(--foreground);
  background-color: rgba(246, 248, 250, 0.8);
  /* secondary/80 */
  transform: scale(1.05);
}

/* TALK ZONE */
.talk-zone {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem 0.75rem;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}

.talk-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.talk-btn-container {
  position: relative;
}

.talk-btn {
  position: relative;
  z-index: 10;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--foreground);
  color: var(--background);
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  touch-action: none;
}

.talk-btn .mic-icon {
  width: 2rem;
  height: 2rem;
  transition: color 0.3s;
}

.talk-btn:hover {
  transform: scale(1.05);
  background: rgba(33, 33, 33, 0.9);
  /* foreground/90 */
}

.talk-btn:active,
.talk-btn.recording {
  transform: scale(1.1);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(166, 46, 7, 0.3), 0 8px 10px -6px rgba(166, 46, 7, 0.3);
  /* shadow-xl + shadow-accent/30 */
}

.talk-btn.busy {
  background-color: var(--muted);
  color: var(--muted-foreground);
  cursor: wait;
}

/* Animations injected by recording state logic */
.ring-ping {
  position: absolute;
  inset: -0.75rem;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.1);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ring-pulse {
  position: absolute;
  inset: -0.5rem;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.15);
  animation: pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ping {

  75%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.status {
  font-size: 0.875rem;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
}

.shortcut {
  display: none;
  font-size: 0.625rem;
  /* 10px */
  color: var(--muted-foreground);
  margin-top: 0.375rem;
}

@media (min-width: 768px) {
  .shortcut {
    display: block;
  }
}

kbd {
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  background-color: var(--secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
}

/* DIVIDER */
.divider-container {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}

.divider-line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.clear-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.625rem;
  /* 10px */
  color: color-mix(in srgb, var(--muted-foreground) 60%, transparent);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s;
}

.clear-btn:hover {
  color: var(--muted-foreground);
  background-color: var(--secondary);
}

/* CHAT PANEL */
.chat-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1rem;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
  text-align: center;
}

.empty-state p {
  color: color-mix(in srgb, var(--muted-foreground) 50%, transparent);
  font-size: 0.75rem;
  line-height: 1.625;
  max-width: 13.75rem;
  text-wrap: balance;
}

/* TURN CARD (Chat Bubbles) generated by app.js */
.chat-turn {
  display: flex;
  width: 100%;
  animation: fade-in 200ms ease;
}

.chat-turn.side-left {
  justify-content: flex-start;
}

.chat-turn.side-right {
  justify-content: flex-end;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* The bubble card */
.turn-card {
  max-width: 82%;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm), var(--shadow-glass);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.turn-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glass);
}

.chat-turn.side-left .turn-card {
  background-color: var(--secondary);
  border-top-left-radius: 0.25rem;
  box-shadow: none;
  border: none;
}

.chat-turn.side-right .turn-card {
  background-color: var(--foreground);
  color: var(--background);
  border-top-right-radius: 0.25rem;
  box-shadow: none;
  border: none;
}

/* Internal contents container */
.turn-content {
  display: flex;
  flex-direction: column;
}

/* Base block padding shared across states */
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.py-2-5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.pt-2-5 {
  padding-top: 0.625rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-1-5 {
  padding-bottom: 0.375rem;
}

.pt-1-5 {
  padding-top: 0.375rem;
}

/* Status Text Styles */
.text-original {
  font-size: 0.875rem;
  color: inherit;
  opacity: 0.9;
  line-height: 1.625;
}

.text-translated {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  color: inherit;
  opacity: 0.7;
  font-weight: 400;
  line-height: 1.625;
  flex: 1;
}

.text-italics {
  font-style: italic;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Phase: LISTENING */
.phase-group.listening .listening-block {
  display: block;
}

.listening-block {
  display: none;
}

.listening-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.dot-wrapper {
  position: relative;
  display: flex;
  height: 0.375rem;
  width: 0.375rem;
}

.dot-ping {
  position: absolute;
  display: inline-flex;
  height: 100%;
  width: 100%;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.6);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot-solid {
  position: relative;
  display: inline-flex;
  height: 0.375rem;
  width: 0.375rem;
  border-radius: 9999px;
  background-color: var(--primary);
}

.listening-text {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Phase: TRANSLATING */
.phase-group.translating .translating-block {
  display: block;
}

.translating-block {
  display: none;
}

.translating-footer {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.chat-turn.side-right .translating-footer {
  border-top-color: rgba(166, 46, 7, 0.1);
}

.spin-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--primary);
  animation: spin 1s linear infinite;
}

.translating-text {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 500;
}

.bounce-dots {
  display: flex;
  gap: 0.125rem;
  margin-left: 0.125rem;
}

.bounce-dot {
  width: 0.125rem;
  height: 0.125rem;
  border-radius: 9999px;
  background-color: rgba(166, 46, 7, 0.5);
  animation: bounce 1s infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }

  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Phase: RESULT */
.phase-group.result .result-block {
  display: block;
}

.result-block {
  display: none;
}

.result-footer {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
  display: flex;
  flex-direction: column;
}

.chat-turn.side-right .result-footer {
  border-top-color: rgba(166, 46, 7, 0.1);
}

.result-footer-top {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
}

.replay-btn {
  flex-shrink: 0;
  margin-top: 0.125rem;
  padding: 0.25rem;
  border-radius: 9999px;
  color: var(--primary);
  background-color: rgba(166, 46, 7, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.replay-btn:hover {
  background-color: rgba(166, 46, 7, 0.2);
}

.replay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Playing Animation State */
.phase-group.playing .replay-btn {
  animation: bg-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.phase-group.playing .play-icon {
  animation: pulse-icon 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.playing-indicator {
  display: none;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.375rem;
}

.phase-group.playing .playing-indicator {
  display: flex;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.2rem;
}

.eq-bar {
  width: 2px;
  border-radius: 9999px;
  background-color: var(--primary);
  height: 3px;
}

.phase-group.playing .eq-bar {
  animation: soundBar 0.45s ease-in-out infinite alternate;
}

.playing-text {
  font-size: 0.625rem;
  color: var(--primary);
  font-weight: 500;
}

@keyframes bg-pulse {

  0%,
  100% {
    background-color: rgba(166, 46, 7, 0.1);
  }

  50% {
    background-color: rgba(166, 46, 7, 0.25);
  }
}

@keyframes pulse-icon {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

@keyframes soundBar {
  0% {
    height: 3px;
  }

  100% {
    height: 10px;
  }
}

/* ==========================
   Landing Page Overrides
========================== */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  display: block;
  background:
    radial-gradient(1200px 500px at 10% -5%, rgba(225, 106, 75, 0.14), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(39, 119, 107, 0.1), transparent 58%),
    var(--background);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: auto;
  min-height: 3.5rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  text-decoration: none;
}

.top-nav-right {
  gap: 0.45rem;
}

.nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted-foreground);
  padding: 0.42rem 0.62rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--secondary);
}

.pricing-link {
  font-size: 0.8rem;
}

.landing-shell {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 5rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-header-center {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  color: var(--foreground);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-subtitle {
  color: var(--muted-foreground);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.625;
  max-width: 42rem;
  margin: 0 auto;
  text-wrap: pretty;
}

/* --- Elegant Background Layered Effects --- */

.hero-live-panel {
  width: 100%;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), var(--shadow-glass), 0 12px 32px -12px rgba(67, 92, 178, 0.15);
  padding: 1.2rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-copy,
.hero-proof {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), var(--shadow-glass), 0 12px 32px -12px rgba(67, 92, 178, 0.1);
  padding: 1.35rem;
}

.hero-marketing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
}

.marketing-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
}

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

.tag-primary {
  background: linear-gradient(135deg, var(--primary), #3b4b9b);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-primary svg {
  color: #FFD700;
}

.tag-secondary {
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(67, 92, 178, 0.12);
}

.tag-secondary svg {
  color: #E16A4B;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(225, 106, 75, 0.14);
  margin-bottom: 0.55rem;
}

.hero-proof h2 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 0.82rem;
}

.proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
}

.proof-list li {
  border-radius: 0.85rem;
  padding: 0.72rem;
  background: rgba(251, 249, 247, 0.72);
  border: 1px solid rgba(166, 46, 7, 0.12);
}

.proof-label {
  display: inline-flex;
  margin-bottom: 0.25rem;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.proof-list p {
  font-size: 0.84rem;
  color: var(--secondary-foreground);
  line-height: 1.5;
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(to bottom right, rgba(239, 246, 255, 0.4), rgba(246, 248, 250, 0.6));
  position: relative;
  overflow: hidden;
}

.section-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(67, 92, 178, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.section-block>* {
  position: relative;
  z-index: 1;
}

.translator-home {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-intro h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.section-intro p {
  color: var(--muted-foreground);
  max-width: 62ch;
  line-height: 1.65;
}

.translator-widget {
  position: relative;
  background-color: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-2xl, 0 25px 50px -12px rgba(0, 0, 0, 0.25)), 0 0 0 1px rgba(0, 0, 0, 0.05);
  /* shadow-2xl shadow-foreground/5 */
  overflow: hidden;
  margin: 0 auto;
  z-index: 10;
}

.widget-decorative-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(166, 46, 7, 0.5), transparent);
}

.control-panel,
.talk-zone,
.divider-container,
.chat-panel {
  max-width: 54rem;
}

.control-panel {
  padding-top: 0.82rem;
}

.talk-zone {
  padding-top: 0.75rem;
}

.talk-btn {
  width: 4.15rem;
  height: 4.15rem;
}

.status {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.chat-panel {
  flex: none;
  min-height: 12.5rem;
  max-height: 22rem;
  overflow-y: auto;
  padding-bottom: 1.15rem;
}

.steps-grid,
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.info-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), var(--shadow-sm), var(--shadow-glass);
}

.info-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), var(--shadow-lg), var(--shadow-glass);
  border-color: rgba(67, 92, 178, 0.25);
  background: rgba(255, 255, 255, 0.85);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  border: 1px solid rgba(67, 92, 178, 0.1);
}

.card-icon-wrapper {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(67, 92, 178, 0.1), rgba(225, 106, 75, 0.05));
  color: var(--primary);
  transition: transform 0.3s ease, color 0.3s ease;
}

.info-card:hover .card-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  color: #E16A4B;
  /* secondary color pop on hover */
}

.card-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-card .card-icon-wrapper {
  margin-bottom: 1.25rem;
  width: 3rem;
  height: 3rem;
  background: rgba(246, 248, 250, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card .card-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.info-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #1a202c;
  font-weight: 700;
}

.info-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.pricing-preview {
  border-radius: 1.2rem;
  border: 1px solid rgba(166, 46, 7, 0.14);
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.78);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.pricing-grid-paid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0.75rem 0 0.95rem;
}

.billing-toggle-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted-foreground);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
}

.billing-toggle-btn.active {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--primary-rgb), 0.12);
}

.billing-toggle-note {
  margin-left: 0.2rem;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.price-number {
  margin-right: 0.22rem;
}

.price-period {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted-foreground);
}

.price-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), var(--shadow-md), var(--shadow-glass);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.price-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), var(--shadow-lg), var(--shadow-glass);
}

.price-card.highlighted {
  border-color: rgba(67, 92, 178, 0.4);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 12px 32px -12px rgba(67, 92, 178, 0.3), var(--shadow-glass);
}

.price-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.67rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(166, 46, 7, 0.1);
}

.price-value {
  font-size: 1.72rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.price-value span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-left: 0.3rem;
}

.price-card ul {
  list-style: disc;
  padding-left: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.5;
}

.plan-cta-static {
  pointer-events: none;
  opacity: 0.85;
  transform: none;
}

.plan-cta.busy {
  pointer-events: none;
  opacity: 0.72;
}

/* Hero & CTA Buttons */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  cursor: pointer;
  border: none;
  outline: none;
}

.hero-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px 0 rgba(67, 92, 178, 0.39), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.hero-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 8px 20px 0 rgba(67, 92, 178, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--foreground);
  border: 1px solid rgba(166, 46, 7, 0.2);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
  background: #fff;
  border-color: rgba(67, 92, 178, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-btn:active {
  transform: scale(0.96);
  filter: brightness(0.95);
}

.pricing-preview-footer {
  margin-top: 0.9rem;
  display: flex;
  justify-content: flex-start;
}

.pricing-status {
  min-height: 1.35rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}

.faq-list details {
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.72rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
}

.faq-list p {
  margin-top: 0.4rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
  line-height: 1.58;
}

.final-cta {
  border-radius: 1.25rem;
  border: 1px solid rgba(166, 46, 7, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 245, 240, 0.95), rgba(255, 251, 247, 0.92));
  padding: 1.55rem;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.92rem);
  letter-spacing: -0.02em;
}

.final-cta p {
  margin: 0.55rem auto 0.95rem;
  max-width: 62ch;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid rgba(15, 27, 58, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.site-footer-inner {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

.site-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  width: min(760px, 100%);
}

.site-footer-link {
  color: var(--primary);
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer-link:hover {
  text-decoration: underline;
}

.site-footer-friend-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  width: min(760px, 100%);
}

.site-footer-friend-label {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-friend-text-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.2rem 0.8rem;
}

.site-footer-friend-text-links .site-footer-link {
  color: var(--muted-foreground);
  color: color-mix(in srgb, var(--muted-foreground) 78%, var(--primary) 22%);
  font-weight: 600;
  font-size: 0.68rem;
  white-space: nowrap;
}

.site-footer-badge-marquee-wrap {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 4%, black 96%, transparent 100%);
}

.site-footer-badge-marquee-track {
  display: flex;
  width: max-content;
  animation: site-footer-badge-marquee 55s linear infinite;
}

.site-footer-badge-marquee-group {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-right: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-footer-badge-marquee-wrap:hover .site-footer-badge-marquee-track {
  animation-play-state: paused;
}

@keyframes site-footer-badge-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.site-footer-badge-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-footer-badge {
  height: 1.15rem;
  width: auto;
  display: block;
}

.site-footer-feature-badge {
  width: 220px;
  max-width: min(220px, 70vw);
  height: auto;
  display: block;
}

.site-footer-feature-badge-md {
  width: 200px;
  max-width: min(200px, 70vw);
  height: auto;
  display: block;
}

.site-footer-home .site-footer-inner {
  width: min(1100px, calc(100% - 2rem));
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.52rem 0 0.72rem;
}

.site-footer-home .site-footer-inner>p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

.site-footer-home .site-footer-right {
  width: 100%;
  align-items: stretch;
  gap: 0.38rem;
}

.site-footer-home .site-footer-links {
  justify-content: flex-end;
}

.site-footer-home .site-footer-links .site-footer-link {
  color: color-mix(in srgb, var(--muted-foreground) 80%, var(--primary) 20%);
  font-size: 0.72rem;
  font-weight: 600;
}

.site-footer-home .site-footer-links .site-footer-link:hover {
  color: var(--primary);
}

.site-footer-home .site-footer-friend-links {
  width: 100%;
  align-items: stretch;
}

.site-footer-home .site-footer-friend-label {
  align-self: flex-end;
}

.site-footer-home .site-footer-friend-text-links {
  justify-content: flex-end;
}

.site-footer-home .site-footer-badge-marquee-wrap {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-badge-marquee-track {
    animation: none;
  }
}

.legal-shell {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 2.4rem;
}

.legal-header h1 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.legal-header p {
  margin-top: 0.55rem;
  color: var(--muted-foreground);
  line-height: 1.62;
  max-width: 66ch;
}

.legal-meta {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.legal-card {
  margin-top: 1rem;
  border: 1px solid rgba(15, 27, 58, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.legal-section+.legal-section {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.legal-section h2 {
  font-size: 1.03rem;
  margin-bottom: 0.45rem;
}

.legal-section p {
  color: var(--secondary-foreground);
  line-height: 1.66;
}

.legal-list {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  color: var(--secondary-foreground);
  display: grid;
  gap: 0.45rem;
  line-height: 1.58;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(166, 46, 7, 0.5);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .steps-grid,
  .use-case-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-grid-paid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    width: calc(100% - 1rem);
  }

  .brand-logo {
    width: 1.4rem;
    height: 1.4rem;
  }

  .nav-link {
    display: none;
  }

  .landing-shell {
    width: calc(100% - 1rem);
    gap: 2.75rem;
    padding-top: 1.2rem;
  }

  .hero-header-center,
  .hero-proof,
  .pricing-preview,
  .final-cta {
    padding: 1rem;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid-paid {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    width: calc(100% - 1rem);
    padding-top: 1.1rem;
  }

  .legal-card {
    padding: 0.9rem;
  }

  .site-footer-inner {
    width: calc(100% - 1rem);
    min-height: 2.8rem;
    font-size: 0.76rem;
    align-items: flex-start;
    padding: 0.4rem 0;
  }

  .site-footer-right {
    align-items: flex-start;
    width: 100%;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .site-footer-friend-links {
    align-items: flex-start;
    width: 100%;
  }

  .site-footer-friend-text-links {
    justify-content: flex-start;
  }

  .site-footer-badge-marquee-wrap {
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
  }

  .site-footer-home .site-footer-inner {
    width: calc(100% - 1rem);
    gap: 0.35rem;
    padding: 0.42rem 0 0.62rem;
  }

  .site-footer-home .site-footer-links,
  .site-footer-home .site-footer-friend-text-links {
    justify-content: flex-start;
  }

  .site-footer-home .site-footer-friend-label {
    align-self: flex-start;
  }

  .control-panel,
  .talk-zone,
  .divider-container,
  .chat-panel {
    max-width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .lang-selector-trigger {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .lang-selector-popover {
    width: min(18rem, calc(100vw - 2rem));
  }

  .talk-btn {
    width: 3.65rem;
    height: 3.65rem;
  }
}

/* ==========================
   Hero First Fold Tweaks
========================== */

.hero-live {
  position: relative;
}

.hero-live::before,
.hero-live::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}

.hero-live::before {
  width: 340px;
  height: 340px;
  right: -100px;
  top: -90px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0));
}

.hero-live::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(24, 151, 142, 0.18), rgba(24, 151, 142, 0));
}

.hero-live-panel {
  border-radius: 1.25rem;
  border: 1px solid rgba(166, 46, 7, 0.16);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px -28px rgba(22, 20, 17, 0.4);
  padding: 0.95rem;
  width: 100%;
}

.hero-live-head h2 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.hero-live-head p {
  color: var(--muted-foreground);
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.translator-upsell-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #153f69;
  background: linear-gradient(135deg, #ffe9a8, #ffd17e);
  border: 1px solid rgba(21, 63, 105, 0.18);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  margin-bottom: 0.55rem;
  box-shadow: 0 8px 20px -15px rgba(74, 46, 7, 0.85);
}

.translator-upsell-bubble::after {
  content: ">";
  font-size: 0.72rem;
  line-height: 1;
}

.translator-upsell-bubble:hover {
  filter: brightness(1.02);
}

.hero-live-panel .translator-widget {
  border-radius: 1rem;
  padding-top: 0.15rem;
}

.hero-live-panel .control-panel,
.hero-live-panel .talk-zone,
.hero-live-panel .divider-container,
.hero-live-panel .chat-panel {
  max-width: 100%;
}

.hero-live-panel .control-panel {
  padding-top: 0.55rem;
  padding-bottom: 0.35rem;
}

.hero-live-panel .talk-zone {
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

.hero-live-panel .talk-btn {
  width: 3.4rem;
  height: 3.4rem;
}

.hero-live-panel .chat-panel {
  min-height: clamp(18rem, 40vh, 30rem);
  max-height: min(58vh, 42rem);
  padding-top: 0.5rem;
}

.hero-live-panel.conversation-mode .hero-live-head p {
  display: none;
}

.hero-live-panel.conversation-mode .hero-live-head {
  margin-bottom: 0.2rem;
}

.hero-live-panel.conversation-mode .translator-widget {
  padding-top: 0;
}

.hero-live-panel.conversation-mode .control-panel {
  padding-top: 0.35rem;
  padding-bottom: 0.28rem;
}

.hero-live-panel.conversation-mode .chat-panel {
  min-height: clamp(22rem, 52vh, 38rem);
  max-height: min(70vh, 52rem);
}

#translator.checkout-return-focus .hero-live-panel {
  animation: checkoutReturnGlow 2.1s ease;
}

@keyframes checkoutReturnGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(67, 92, 178, 0.28), 0 18px 36px -28px rgba(22, 20, 17, 0.4);
  }

  45% {
    box-shadow: 0 0 0 10px rgba(67, 92, 178, 0.12), 0 18px 36px -24px rgba(22, 20, 17, 0.45);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(67, 92, 178, 0), 0 18px 36px -28px rgba(22, 20, 17, 0.4);
  }
}

@media (max-width: 980px) {
  .hero-live {
    grid-template-columns: 1fr;
  }

  .hero-live-panel {
    padding: 0.8rem;
  }

  .hero-live-panel .chat-panel {
    min-height: clamp(16rem, 34vh, 24rem);
    max-height: min(54vh, 34rem);
  }

  .hero-live-panel.conversation-mode .chat-panel {
    min-height: clamp(20rem, 48vh, 32rem);
    max-height: min(68vh, 40rem);
  }
}

@media (max-width: 760px) {
  .hero-copy {
    padding: 0.9rem;
  }

  .hero-live-panel .talk-btn {
    width: 3.2rem;
    height: 3.2rem;
  }

  .hero-live-panel .chat-panel {
    min-height: 14rem;
    max-height: 44vh;
  }

  .hero-live-panel.conversation-mode .chat-panel {
    min-height: 18rem;
    max-height: 58vh;
  }
}

/* ==========================
   Visual Refresh
========================== */

h1,
h2,
h3,
.brand-mark {
  font-family: 'IBM Plex Sans', 'Noto Sans SC', system-ui, sans-serif;
  font-weight: 600;
}

.hero-live {
  position: relative;
}

.hero-live::before,
.hero-live::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
}

.hero-live::before {
  width: 340px;
  height: 340px;
  right: -100px;
  top: -90px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.22), rgba(var(--primary-rgb), 0));
}

.hero-live::after {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(24, 151, 142, 0.18), rgba(24, 151, 142, 0));
}

.hero-copy,
.hero-live-panel,
.section-block,
.pricing-preview,
.final-cta {
  backdrop-filter: blur(3px);
}

.hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  line-height: 1.02;
}

.hero-subtitle {
  max-width: 60ch;
}

.hero-metrics {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.metric-card {
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 255, 0.95));
  border-radius: 0.8rem;
  padding: 0.5rem 0.55rem;
}

.metric-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--foreground);
}

.metric-label {
  margin-top: 0.12rem;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  line-height: 1.35;
}

.live-signal {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.live-signal span {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.9), rgba(24, 151, 142, 0.75));
  animation: signalPulse 1s ease-in-out infinite;
}

.live-signal span:nth-child(1) {
  height: 5px;
  animation-delay: 0s;
}

.live-signal span:nth-child(2) {
  height: 10px;
  animation-delay: 0.08s;
}

.live-signal span:nth-child(3) {
  height: 15px;
  animation-delay: 0.16s;
}

.live-signal span:nth-child(4) {
  height: 9px;
  animation-delay: 0.24s;
}

@keyframes signalPulse {

  0%,
  100% {
    transform: scaleY(0.75);
    opacity: 0.72;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.visual-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: -2.1rem;
}

.band-link {
  width: 48px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.45), rgba(var(--primary-rgb), 0.12));
}

.band-node {
  border-radius: 999px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px -18px rgba(10, 17, 35, 0.7);
}

.node-a,
.node-c {
  width: 9px;
  height: 9px;
}

.node-b {
  width: 14px;
  height: 14px;
}

.section-block,
.pricing-preview {
  border: 1px solid rgba(15, 27, 58, 0.08);
  border-radius: 1.15rem;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(252, 253, 255, 0.82));
}

.info-card {
  border-color: rgba(23, 48, 112, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.92));
  box-shadow: 0 10px 20px -18px rgba(19, 33, 66, 0.38);
}

.info-card h3 {
  font-weight: 600;
}

.section-kicker {
  background: rgba(var(--primary-rgb), 0.12);
}

.lang-selector-trigger[aria-expanded="true"] {
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.22);
}

.lang-option.selected {
  background-color: rgba(var(--primary-rgb), 0.12);
}

.talk-btn.recording {
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2), var(--shadow-lg);
}

.dot-ping {
  background-color: rgba(var(--primary-rgb), 0.58);
}

.translating-text,
.spin-icon,
.playing-text,
.replay-btn,
.listening-text,
.card-index,
.price-badge {
  color: var(--primary);
}

.replay-btn {
  background-color: rgba(var(--primary-rgb), 0.12);
}

.replay-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.2);
}

.chat-turn.side-right .turn-card {
  background-color: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.chat-turn.side-right .translating-footer,
.chat-turn.side-right .result-footer {
  border-top-color: rgba(var(--primary-rgb), 0.18);
}

.bounce-dot,
.eq-bar {
  background-color: rgba(var(--primary-rgb), 0.72);
}

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

  .visual-band {
    margin-top: -1.6rem;
  }
}

@media (max-width: 760px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .visual-band {
    margin-top: -1.1rem;
  }

  .section-block,
  .pricing-preview {
    padding: 0.85rem;
  }
}

.hidden {
  display: none !important;
}

.status.error,
.auth-form-message.error {
  color: #d13a3a;
  background-color: rgb(209 58 58 / 0.08);
  /* 8% opacity */
}

.auth-status-chip {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
}

.auth-nav-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  border-radius: 0.55rem;
  padding: 0.38rem 0.65rem;
}

.auth-nav-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
}

.auth-inline {
  margin: 0.9rem 1rem 0;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 0.8rem;
  background: rgba(var(--primary-rgb), 0.06);
  padding: 0.6rem 0.75rem;
}

.auth-inline-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.auth-inline-text {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.talk-btn.disabled,
.talk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal {
  width: min(420px, 100%);
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.45);
  max-height: min(92vh, 48rem);
  overflow-y: auto;
  padding: 1rem;
}

.auth-modal h2 {
  font-size: 1rem;
}

.auth-modal-subtitle {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-flow-shell,
.auth-flow-nav {
  width: min(320px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.auth-flow-nav {
  margin-bottom: 0.8rem;
}

.auth-flow-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease;
}

.auth-flow-nav-btn:hover {
  color: #111827;
}

.auth-modal-footer-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.9rem;
}

#auth-form {
  margin-top: 0;
  display: grid;
  gap: 0.75rem;
}

#auth-form > div,
#auth-form > p {
  margin-bottom: 0;
}

#auth-confirm-group {
  display: grid;
  gap: 0.42rem;
}

.auth-captcha-group {
  margin-top: 0.15rem;
  display: grid;
  gap: 0.35rem;
}

#auth-captcha-widget {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
  transform: scale(0.95);
  transform-origin: center;
}

#auth-captcha-widget:empty {
  display: none !important;
}

.auth-captcha-hint {
  min-height: 1rem;
  font-size: 0.74rem;
  color: var(--muted-foreground);
}

.auth-captcha-hint.error {
  color: #b42318;
}

.auth-legal-note {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.auth-legal-link {
  color: var(--primary);
  font-weight: 600;
}

.auth-legal-link:hover {
  text-decoration: underline;
}

#auth-form label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

#auth-form input {
  height: 2.3rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0 0.7rem;
  font-size: 0.9rem;
}

#auth-form input:focus {
  border-color: rgba(var(--primary-rgb), 0.7);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.google-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.email-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.auth-view {
  display: none;
  animation: auth-fade-in 0.25s ease-out forwards;
}

.auth-view.active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes auth-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form-message {
  margin: 0.6rem auto 0;
  width: min(320px, 100%);
  font-size: 0.78rem;
  min-height: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

#forgot-password-row {
  margin: -0.15rem 0 0;
}

#auth-reset-help {
  margin: 0.05rem 0 0.15rem;
}

@media (max-width: 760px) {
  .auth-status-chip {
    display: none;
  }
}

/* ==========================
   Dedicated Pricing Page
========================== */

.pricing-shell {
  gap: 1.2rem;
  padding-top: 1.5rem;
}

.pricing-hero {
  padding: 1.2rem;
}

.pricing-hero .section-intro p {
  max-width: 68ch;
}

.pricing-page-plans {
  padding: 1.2rem;
}

.pricing-page-plans .billing-toggle {
  margin-top: 0.35rem;
}

.pricing-page-plans .price-card {
  min-height: 100%;
}

.pricing-meta-note {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.pricing-comparison {
  padding: 1.2rem;
}

.plan-compare-wrap {
  margin-top: 0.65rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.86);
}

.plan-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.plan-compare-table th,
.plan-compare-table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 0.78rem 0.8rem;
  font-size: 0.83rem;
  vertical-align: top;
}

.plan-compare-table thead th {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  background: rgba(248, 250, 255, 0.95);
}

.plan-compare-table tbody tr:nth-child(even) {
  background: rgba(248, 251, 255, 0.55);
}

.plan-compare-table tbody tr:last-child td {
  border-bottom: none;
}

.plan-cell-strong {
  font-weight: 700;
  color: var(--foreground);
}

@media (max-width: 980px) {
  .pricing-shell {
    padding-top: 1.2rem;
  }
}

@media (max-width: 760px) {
  .pricing-shell {
    width: calc(100% - 1rem);
    padding-top: 1rem;
    gap: 0.95rem;
  }

  .pricing-hero,
  .pricing-page-plans,
  .pricing-comparison {
    padding: 0.95rem;
  }
}

/* ==========================
   Homepage Layout Cleanup
========================== */

body[tabindex="0"] .landing-shell {
  gap: 2rem;
  padding: 1.1rem 0 3rem;
}

body[tabindex="0"] .hero-live {
  align-items: center;
}

body[tabindex="0"] .hero-title {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
  line-height: 1.08;
}

body[tabindex="0"] .hero-subtitle {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

body[tabindex="0"] .hero-live-panel {
  padding: 1.2rem;
}

body[tabindex="0"] .hero-live-head {
  margin-bottom: 0.35rem;
}

body[tabindex="0"] .hero-live-head .section-kicker {
  margin-bottom: 0.45rem;
}

body[tabindex="0"] .hero-live-head h2 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

body[tabindex="0"] .hero-live-head p {
  margin-bottom: 0.35rem;
}

body[tabindex="0"] .hero-live-panel .translator-widget {
  padding-top: 0.1rem;
  padding-bottom: 0.55rem;
}

body[tabindex="0"] .hero-live-panel .control-panel {
  padding-top: 0.45rem;
  padding-bottom: 0.3rem;
}

body[tabindex="0"] .hero-live-panel .talk-zone {
  padding-top: 0.2rem;
  padding-bottom: 0.42rem;
}

body[tabindex="0"] .hero-live-panel .talk-btn {
  width: 3.2rem;
  height: 3.2rem;
}

body[tabindex="0"] .hero-live-panel .chat-panel {
  min-height: clamp(8.5rem, 18vh, 11rem);
  max-height: min(26vh, 13rem);
  padding-top: 0.35rem;
}

body[tabindex="0"] .hero-live-panel.conversation-mode .chat-panel {
  min-height: clamp(14rem, 34vh, 24rem);
  max-height: min(56vh, 36rem);
}

body[tabindex="0"] .section-block,
body[tabindex="0"] .pricing-preview {
  padding: 0.9rem;
}

body[tabindex="0"] .steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[tabindex="0"] .feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[tabindex="0"] .use-case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[tabindex="0"] .pricing-preview .hero-actions {
  margin-top: 0.25rem;
}

@media (max-width: 980px) {
  body[tabindex="0"] .hero-live-panel .chat-panel {
    min-height: 9.5rem;
    max-height: 30vh;
  }

  body[tabindex="0"] .hero-live-panel.conversation-mode .chat-panel {
    min-height: 16rem;
    max-height: 52vh;
  }

  body[tabindex="0"] .steps-grid,
  body[tabindex="0"] .feature-grid,
  body[tabindex="0"] .use-case-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body[tabindex="0"] .landing-shell {
    gap: 1.4rem;
    padding-top: 0.9rem;
  }

  body[tabindex="0"] .hero-copy {
    padding: 0.85rem;
  }

  body[tabindex="0"] .hero-live-panel {
    padding: 0.72rem;
  }

  body[tabindex="0"] .hero-actions .hero-btn {
    min-width: 7.2rem;
  }

  body[tabindex="0"] .hero-live-panel .chat-panel {
    min-height: 8.5rem;
    max-height: 27vh;
  }

  body[tabindex="0"] .hero-live-panel.conversation-mode .chat-panel {
    min-height: 14rem;
    max-height: 52vh;
  }
}

/* =========================================================
   2026 Redesign Override Layer (ui-redesign-example parity)
========================================================= */

:root {
  --background: #F5FAFB;
  --foreground: oklch(0.13 0.02 260);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.13 0.02 260);
  --secondary: oklch(0.96 0.005 240);
  --muted: oklch(0.95 0.005 240);
  --muted-foreground: #4f5661;
  --accent: oklch(0.55 0.15 250);
  --border: oklch(0.9 0.01 240);
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body,
body[tabindex="0"],
body.page-home,
body.page-pricing,
body.page-account,
body.page-legal {
  margin: 0;
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

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

.hidden {
  display: none !important;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: 4rem;
  background: color-mix(in oklab, white 84%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
}

.topbar-inner {
  width: min(72rem, calc(100% - 3rem));
  min-height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand-logo {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.4rem;
}

.brand-base {
  font-size: 1.1rem;
  color: var(--foreground);
}

.brand-highlight {
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.pricing-link {
  font-size: 0.84rem;
  color: var(--muted-foreground);
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover,
.pricing-link:hover {
  color: var(--foreground);
  background: color-mix(in oklab, var(--secondary) 90%, white);
}

.auth-nav-btn {
  border: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  background: white;
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -12px rgba(0, 0, 0, 0.35);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  height: 2rem;
  padding: 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--background);
  background: var(--foreground);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
}

.auth-status-chip {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.landing-shell {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 0 4rem;
  display: block;
}

.hero-elegant-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ambient-glow.bg-top-radial {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at top, color-mix(in oklab, var(--accent) 8%, transparent), transparent 58%);
}

.ambient-glow.bg-top-blur {
  position: absolute;
  top: -120px;
  left: 20%;
  width: min(38vw, 620px);
  height: min(38vw, 620px);
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  filter: blur(110px);
}

.ambient-glow.bg-bottom-blur {
  position: absolute;
  bottom: 10%;
  right: 18%;
  width: min(26vw, 420px);
  height: min(26vw, 420px);
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  filter: blur(90px);
}

.noise-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.hero-section {
  position: relative;
  z-index: 1;
  padding: 8.2rem 1.5rem 2.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--border) 74%, transparent);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title-accent {
  display: inline-block;
  position: relative;
}

.hero-title-underline {
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 0.8rem;
  color: color-mix(in oklab, var(--accent) 30%, transparent);
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  line-height: 1.625;
  color: var(--muted-foreground);
}

.hero-cta-wrap {
  margin-top: 2.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-weight: 500;
  padding: 1rem 2rem;
  box-shadow: 0 20px 24px -14px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 32px -16px rgba(0, 0, 0, 0.36);
}

.hero-cta-btn svg {
  transition: transform 0.3s;
}

.hero-cta-btn:hover svg {
  transform: translateX(3px);
}

.hero-cta-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-stats {
  margin-top: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3.8rem);
}

.hero-stat-value {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
}

.hero-stat-label {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted-foreground);
}

.hero-stat-divider {
  width: 1px;
  height: 2.45rem;
  background: color-mix(in oklab, var(--border) 90%, transparent);
}

.hero-live-panel {
  position: relative;
  z-index: 1;
  width: min(56rem, calc(100% - 3rem));
  margin: 0 auto;
}

.translator-widget {
  border-radius: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
  background: var(--card);
  box-shadow: 0 25px 50px -12px rgba(24, 24, 27, 0.08);
  overflow: hidden;
}

.widget-decorative-gradient {
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in oklab, var(--accent) 50%, transparent), transparent);
}

.control-panel {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 44%, transparent);
}

.lang-selector-trigger {
  border-radius: 1rem;
}

.lang-selector-trigger:hover {
  background: color-mix(in oklab, var(--secondary) 90%, white);
}

.lang-search-input {
  border: 1px solid color-mix(in oklab, var(--border) 58%, transparent);
}

.lang-options-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.lang-option {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.56rem 0.85rem;
  cursor: pointer;
  color: var(--foreground);
  font-size: 0.85rem;
}

.lang-option:hover {
  background: color-mix(in oklab, var(--secondary) 85%, white);
}

.lang-option.selected {
  background: color-mix(in oklab, var(--secondary) 95%, white);
}

.option-name {
  color: var(--muted-foreground);
  font-size: 0.74rem;
}

.option-check {
  color: var(--accent);
}

.talk-zone {
  background: linear-gradient(to bottom, color-mix(in oklab, var(--secondary) 35%, transparent), transparent);
}

.talk-btn {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  transition: transform 0.3s, background-color 0.3s;
}

.talk-btn:hover {
  transform: scale(1.05);
}

.talk-btn.recording {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent) 16%, transparent), 0 0 0 20px color-mix(in oklab, var(--accent) 8%, transparent);
}

.talk-btn.busy {
  opacity: 0.92;
  pointer-events: none;
}

.status {
  color: var(--muted-foreground);
}

.status.error {
  color: color-mix(in oklab, red 62%, #d00);
}

.chat-panel {
  border-top: 1px solid color-mix(in oklab, var(--border) 45%, transparent);
  min-height: 23rem;
}

.chat-thread {
  list-style: none;
  margin: 0;
  padding: 0;
}

.empty-state {
  color: var(--muted-foreground);
}

.hero-live-panel.conversation-mode .chat-panel {
  min-height: 30rem;
}

.translator-upsell-bubble {
  margin: 1rem auto 0;
  width: fit-content;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, white 90%, transparent);
  color: var(--muted-foreground);
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  font-size: 0.8rem;
}

.translator-upsell-bubble a {
  color: var(--foreground);
  font-weight: 600;
  margin-left: 0.5rem;
}

#translator.checkout-return-focus .translator-widget {
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 35%, transparent), 0 25px 50px -12px rgba(24, 24, 27, 0.08);
}

.usecase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.usecase-card:hover::before {
  opacity: 1;
}

.usecase-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  background: color-mix(in oklab, var(--secondary) 92%, white);
}

.usecase-icon-travel {
  color: #2563eb;
}

.usecase-icon-business {
  color: #d97706;
}

.usecase-icon-personal {
  color: #e11d48;
}

.usecase-card:nth-child(1)::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.08));
}

.usecase-card:nth-child(2)::before {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.08));
}

.usecase-card:nth-child(3)::before {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.11), rgba(236, 72, 153, 0.08));
}

.feature-list-grid {
  row-gap: 2rem;
}

.feature-row-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--secondary) 92%, white);
  color: var(--muted-foreground);
  transition: color 0.25s, background-color 0.25s;
}

.feature-row-card:hover .feature-icon-box {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, white);
}

.pricing-check-dot {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  background: color-mix(in oklab, var(--secondary) 92%, white);
}

.pricing-check-dot svg {
  color: var(--foreground);
}

.pricing-check-dot-pro {
  background: var(--accent);
}

.pricing-check-dot-pro svg {
  color: white;
}

.pricing-pro-card {
  box-shadow: 0 25px 50px -12px rgba(30, 30, 30, 0.2);
  transform: scale(1.02);
}

.billing-toggle-btn {
  border: none;
  cursor: pointer;
}

.billing-toggle-btn.active {
  background: var(--foreground);
  color: var(--background);
}

.billing-toggle-btn:not(.active) {
  color: var(--muted-foreground);
  background: transparent;
}

.billing-toggle-btn:not(.active) span {
  background: color-mix(in oklab, var(--accent) 20%, white);
  color: var(--accent);
}

.billing-toggle-btn.active span {
  background: var(--accent);
  color: white;
}

.plan-cta.busy {
  opacity: 0.65;
  pointer-events: none;
}

.pricing-status {
  min-height: 1.4rem;
}

.pricing-status.error {
  color: color-mix(in oklab, red 68%, #d00);
}

.faq-list details {
  background: var(--card);
}

.faq-list summary {
  list-style: none;
}

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

.faq-contact-card {
  margin-top: 3rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, var(--secondary) 45%, white);
  padding: 2rem;
}

.faq-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--foreground);
}

.site-footer {
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--card);
  margin-top: 4rem;
}

.site-footer-inner {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.8rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
}

.site-footer-inner>p {
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.site-footer-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer-link {
  color: var(--muted-foreground);
  font-size: 0.82rem;
}

.site-footer-link:hover {
  color: var(--foreground);
}

.site-footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  max-width: 64rem;
}

.site-footer-friend-label {
  color: var(--foreground);
  font-size: 0.8rem;
  font-weight: 600;
}

.site-footer-badge-link {
  display: inline-flex;
  align-items: center;
}

.site-footer-badge {
  height: 52px;
  width: auto;
}

.site-footer-feature-badge,
.site-footer-feature-badge-md {
  border-radius: 10px;
}

.page-pricing .pricing-shell,
.page-account .account-main,
.page-legal .legal-shell {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.page-pricing .pricing-shell {
  display: grid;
  gap: 1.75rem;
}

.page-pricing .section-block {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 1rem;
}

.page-pricing .section-intro {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.page-pricing .section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.page-pricing .section-intro h1,
.page-pricing .section-intro h2 {
  margin: 0.9rem 0 0.8rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-pricing .section-intro p {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.65;
}

.page-pricing .pricing-preview {
  border-radius: 1.5rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab, white 92%, transparent);
  padding: 2rem;
}

.page-pricing .pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.page-pricing .price-card {
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  padding: 1.6rem;
  background: var(--card);
}

.page-pricing .price-card.highlighted {
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 25px 50px -12px rgba(24, 24, 27, 0.2);
}

.page-pricing .price-badge {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.page-pricing .price-card.highlighted .price-badge,
.page-pricing .price-card.highlighted li,
.page-pricing .price-card.highlighted .price-period {
  color: rgba(255, 255, 255, 0.75);
}

.page-pricing .price-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.page-pricing .price-value {
  margin: 1.1rem 0;
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.page-pricing .price-period {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.page-pricing .price-card ul {
  margin: 0 0 1.2rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.page-pricing .hero-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
}

.page-pricing .hero-btn-primary {
  background: var(--foreground);
  color: var(--background);
}

.page-pricing .price-card.highlighted .hero-btn-primary,
.page-pricing .price-card.highlighted .hero-btn-secondary {
  background: var(--background);
  color: var(--foreground);
}

.page-pricing .hero-btn-secondary {
  border-color: color-mix(in oklab, var(--border) 70%, transparent);
  background: white;
  color: var(--foreground);
}

.page-pricing .plan-compare-wrap {
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--card);
  overflow-x: auto;
}

.page-pricing .plan-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 42rem;
}

.page-pricing .plan-compare-table th,
.page-pricing .plan-compare-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 65%, transparent);
  text-align: left;
  font-size: 0.86rem;
}

.page-pricing .plan-compare-table th {
  color: var(--muted-foreground);
  font-weight: 600;
}

.page-account .account-main {
  width: min(52rem, calc(100% - 2.5rem));
}

.page-account .account-header h1 {
  margin: 0 0 1.5rem;
  text-align: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.page-account .account-card {
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 1rem;
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  background: var(--card);
  box-shadow: 0 18px 28px -24px rgba(24, 24, 27, 0.4);
}

.page-account .account-card-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-account .plan-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-account .plan-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 14%, white);
  color: var(--accent);
  padding: 0.4rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: capitalize;
}

.page-account .plan-info p {
  margin: 0.55rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.page-account .quota-container {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in oklab, var(--border) 72%, transparent);
}

.page-account .quota-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  margin-bottom: 0.5rem;
}

.page-account .quota-bar-track {
  position: relative;
  height: 0.72rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--secondary) 92%, white);
  overflow: hidden;
}

.page-account .quota-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.35s;
}

.page-account .quota-bar-fill.warning {
  background: #f59e0b;
}

.page-account .quota-bar-fill.danger {
  background: #ef4444;
}

.page-account .history-table {
  width: 100%;
  border-collapse: collapse;
}

.page-account .history-table th,
.page-account .history-table td {
  text-align: left;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 66%, transparent);
  font-size: 0.86rem;
}

.page-account .history-table th {
  color: var(--muted-foreground);
  font-weight: 500;
}

.page-account .empty-history {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  padding: 1.2rem 0 0.5rem;
}

.page-account .loading-container {
  text-align: center;
  color: var(--muted-foreground);
}

.page-account .loading-spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid color-mix(in oklab, var(--border) 72%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

.page-reset-password .account-main {
  max-width: 42rem;
}

.page-reset-password .password-reset-card {
  max-width: 36rem;
  margin: 0 auto;
}

.page-reset-password .password-reset-card h1 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.password-reset-lead,
.password-reset-note {
  color: var(--muted-foreground);
  line-height: 1.65;
}

.password-reset-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.password-reset-field {
  display: grid;
  gap: 0.45rem;
}

.password-reset-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
}

.password-reset-field input {
  width: 100%;
  min-height: 3rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(19, 45, 89, 0.14);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.82rem 0.95rem;
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.password-reset-field input:focus {
  border-color: rgba(var(--primary-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
  outline: none;
}

.password-reset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.password-reset-alert {
  min-height: 1.35rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.password-reset-alert.error {
  color: #b42318;
}

.password-reset-inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.password-reset-inline-link:hover {
  color: color-mix(in srgb, var(--primary) 78%, black 22%);
}

.password-reset-success-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.55rem;
}

.page-legal .legal-shell {
  width: min(54rem, calc(100% - 2.5rem));
}

.page-legal .legal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-legal .legal-header h1 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.025em;
}

.page-legal .legal-header p {
  margin: 0.8rem auto 0;
  max-width: 46rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.page-legal .legal-meta {
  font-size: 0.82rem;
}

.page-legal .legal-card {
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: var(--card);
  padding: 1.6rem;
}

.page-legal .legal-section+.legal-section {
  margin-top: 1.55rem;
}

.page-legal .legal-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.page-legal .legal-section p,
.page-legal .legal-list li {
  color: var(--muted-foreground);
  line-height: 1.65;
  font-size: 0.95rem;
}

.page-legal .legal-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 1024px) {

  .topbar-inner,
  .site-footer-inner,
  .hero-live-panel {
    width: calc(100% - 2rem);
  }

  .hero-section {
    padding-top: 7.4rem;
  }

  .pricing-pro-card {
    transform: none;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    width: calc(100% - 1.4rem);
  }

  .top-nav-right {
    gap: 0.3rem;
  }

  .top-nav-right .nav-link,
  .top-nav-right .pricing-link,
  .top-nav-right .auth-status-chip {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero-section {
    padding: 6.8rem 1rem 1.8rem;
  }

  .hero-cta-wrap {
    margin-top: 2rem;
  }

  .hero-stats {
    margin-top: 2.8rem;
    gap: 1.2rem;
  }

  .hero-live-panel {
    width: calc(100% - 1rem);
  }

  .control-panel {
    padding-left: 1rem;
    padding-right: 1rem;
    gap: 0.4rem;
  }

  .lang-selector-trigger {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }

  .lang-native {
    font-size: 0.86rem;
  }

  .talk-zone {
    padding: 1.25rem 1rem;
  }

  .chat-panel {
    min-height: 20rem;
  }

  .hero-live-panel.conversation-mode .chat-panel {
    min-height: 24rem;
  }

  #how-it-works,
  #use-cases,
  #features,
  #pricing,
  #faq {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .feature-row-card {
    gap: 0.95rem;
  }

  .page-pricing .pricing-shell,
  .page-account .account-main,
  .page-legal .legal-shell {
    width: calc(100% - 1.2rem);
    padding-top: 7rem;
  }

  .page-pricing .pricing-preview {
    padding: 1rem;
  }

  .page-pricing .pricing-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    width: calc(100% - 1.2rem);
    padding: 2rem 0;
  }

  .site-footer-friend-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   Fidelity Tuning Pass (Home parity fixes)
========================================================= */

.font-serif {
  font-family: "Source Serif 4", Georgia, serif !important;
}

body.page-home[tabindex="0"] .landing-shell {
  padding-top: 0 !important;
  padding-bottom: 4rem !important;
  gap: 0 !important;
}

body.page-home[tabindex="0"] .hero-section {
  padding-top: 8rem !important;
  padding-bottom: 2.25rem !important;
}

body.page-home[tabindex="0"] .hero-live-panel {
  width: min(56rem, calc(100% - 3rem)) !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body.page-home[tabindex="0"] .hero-live-panel .translator-widget {
  width: 100%;
  padding: 0 !important;
}

body.page-home[tabindex="0"] .hero-live-panel .control-panel {
  padding: 1.15rem 1.5rem !important;
}

body.page-home[tabindex="0"] .hero-live-panel .talk-zone {
  padding: 2rem 1.5rem !important;
}

body.page-home[tabindex="0"] .hero-live-panel .talk-btn {
  width: 5rem !important;
  height: 5rem !important;
}

body.page-home[tabindex="0"] .hero-live-panel .chat-panel {
  min-height: 22rem !important;
  max-height: 25rem !important;
}

body.page-home[tabindex="0"] .hero-live-panel.conversation-mode .chat-panel {
  min-height: 28rem !important;
  max-height: 36rem !important;
}

body.page-home[tabindex="0"] .hero-live-panel:not(.conversation-mode) #clear-btn {
  opacity: 0;
  pointer-events: none;
}

body.page-home .faq-list-lines {
  border-top: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

body.page-home .faq-line-item {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

body.page-home .faq-line-item summary {
  list-style: none;
  padding: 1rem 0.15rem;
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.page-home .faq-line-item summary::-webkit-details-marker {
  display: none;
}

body.page-home .faq-line-item summary::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--muted-foreground);
  line-height: 1;
}

body.page-home .faq-line-item[open] summary::after {
  content: "−";
}

body.page-home .faq-line-item p {
  margin: 0;
  padding: 0 0.15rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.88rem;
  line-height: 1.6;
}

body.page-home .site-footer-landing-grid {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 1.5rem;
  align-items: start;
}

body.page-home .site-footer-brand p {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 20rem;
}

body.page-home .site-footer-nav-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

body.page-home .site-footer-nav-cols h3 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foreground);
}

body.page-home .site-footer-nav-cols a {
  display: block;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-bottom: 0.45rem;
}

body.page-home .site-footer-nav-cols a:hover {
  color: var(--foreground);
}

body.page-home .site-footer-bottom-bar {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  border-top: 1px solid color-mix(in oklab, var(--border) 65%, transparent);
  padding: 0.95rem 0 0.25rem;
}

body.page-home .site-footer-bottom-bar p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted-foreground);
}

body.page-home .site-footer-friend-disclosure {
  width: min(72rem, calc(100% - 3rem));
  margin: 0.2rem auto 0;
  border-top: 1px solid color-mix(in oklab, var(--border) 65%, transparent);
  padding-top: 0.6rem;
}

body.page-home .site-footer-friend-disclosure>summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  user-select: none;
}

body.page-home .site-footer-friend-disclosure>summary::-webkit-details-marker {
  display: none;
}

body.page-home .site-footer-friend-disclosure>summary::after {
  content: " +";
}

body.page-home .site-footer-friend-disclosure[open]>summary::after {
  content: " −";
}

body.page-home .site-footer-friend-disclosure .site-footer-friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin-top: 0.75rem;
}

body.page-home .site-footer-friend-disclosure .site-footer-link {
  font-size: 0.72rem;
}

body.page-home .site-footer-badge-strip {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

body.page-home .site-footer-badge-strip .site-footer-badge-link {
  flex: 0 0 auto;
}

body.page-home .site-footer-badge-strip img,
body.page-home .site-footer-badge-strip .site-footer-badge,
body.page-home .site-footer-badge-strip .site-footer-feature-badge,
body.page-home .site-footer-badge-strip .site-footer-feature-badge-md {
  height: 26px !important;
  width: auto !important;
  border-radius: 6px;
}

@media (max-width: 900px) {
  body.page-home[tabindex="0"] .hero-live-panel {
    width: calc(100% - 1.2rem) !important;
  }

  body.page-home .site-footer-landing-grid {
    grid-template-columns: 1fr;
  }

  body.page-home .site-footer-nav-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-home .site-footer-bottom-bar,
  body.page-home .site-footer-friend-disclosure {
    width: calc(100% - 1.2rem);
  }
}

@media (max-width: 760px) {
  body.page-home[tabindex="0"] .hero-section {
    padding-top: 6.8rem !important;
  }

  body.page-home[tabindex="0"] .hero-live-panel .control-panel {
    padding: 0.9rem 1rem !important;
  }

  body.page-home[tabindex="0"] .hero-live-panel .talk-zone {
    padding: 1.3rem 1rem !important;
  }

  body.page-home[tabindex="0"] .hero-live-panel .chat-panel {
    min-height: 18.5rem !important;
    max-height: 24rem !important;
  }

  body.page-home[tabindex="0"] .hero-live-panel.conversation-mode .chat-panel {
    min-height: 23rem !important;
    max-height: 30rem !important;
  }

  body.page-home .site-footer-nav-cols {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

/* =========================================================
   Emergency Home Flow Fix (pricing/faq overlap)
========================================================= */

body.page-home #how-it-works,
body.page-home #use-cases,
body.page-home #features,
body.page-home #pricing,
body.page-home #faq {
  position: relative;
  z-index: 1;
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

body.page-home #how-it-works>.mx-auto,
body.page-home #use-cases>.mx-auto,
body.page-home #features>.mx-auto,
body.page-home #pricing>.mx-auto {
  width: min(72rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.page-home #faq>.mx-auto {
  width: min(48rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

body.page-home #pricing {
  background: color-mix(in oklab, var(--secondary) 30%, transparent);
}

body.page-home #pricing .pricing-grid-paid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

body.page-home #pricing .pricing-grid-paid>div {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.page-home #pricing .pricing-grid-paid>div>ul {
  flex: 1 1 auto;
}

body.page-home .pricing-pro-card {
  transform: none !important;
}

body.page-home #pricing+#faq {
  margin-top: 2.2rem;
}

body.page-home #faq .faq-contact-card {
  margin-top: 2.5rem;
}

body.page-home #pricing .text-4xl {
  font-size: 2.25rem;
  line-height: 1;
}

body.page-home .text-background\/90 {
  color: rgba(255, 255, 255, 0.9);
}

body.page-home .text-background\/70 {
  color: rgba(255, 255, 255, 0.7);
}

body.page-home .text-background\/60 {
  color: rgba(255, 255, 255, 0.6);
}

body.page-home .space-y-3>*+* {
  margin-top: 0.75rem;
}

body.page-home .max-w-3xl {
  max-width: 48rem;
}

body.page-home .max-w-xl {
  max-width: 36rem;
}

@media (max-width: 900px) {
  body.page-home #pricing .pricing-grid-paid {
    grid-template-columns: 1fr;
  }

  body.page-home #pricing+#faq {
    margin-top: 1.25rem;
  }
}

@media (max-width: 760px) {

  body.page-home #how-it-works,
  body.page-home #use-cases,
  body.page-home #features,
  body.page-home #pricing,
  body.page-home #faq {
    padding-top: 4.2rem !important;
    padding-bottom: 4.2rem !important;
  }
}
