/* SayMyText production styles — derived from prototypes.html */

  :root {
    --ink: #101418;
    --ink-2: #2A3138;
    --muted: #6B7480;
    --line: #E4E8EE;
    --paper: #F3F5F8;
    --surface: #FFFFFF;
    --teal: #0F8F86;
    --teal-deep: #0A6B65;
    --teal-soft: #E6F6F4;
    --amber: #E89B2D;
    --amber-soft: #FFF4E0;
    --rose: #D6455D;
    --rose-soft: #FDECEE;
    --blue: #2F6FED;
    --blue-soft: #EAF1FF;
    --ok: #1F9D6C;
    --ok-soft: #E8F7F0;
    --warn: #C98512;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(16,20,24,.08);
    --shadow-lg: 0 24px 60px rgba(16,20,24,.14);
    --font-display: "Outfit", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    --artboard-w: 100%;
    --nav-w: 260px;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
      radial-gradient(1200px 600px at 10% -10%, #d8f3ef 0%, transparent 55%),
      radial-gradient(900px 500px at 100% 0%, #ffe8c4 0%, transparent 45%),
      var(--paper);
  }
  a { color: inherit; text-decoration: none; }
  a:hover { text-decoration: none; }

  /* Shared app chrome */
  .app-nav {
    display: flex; align-items: center; gap: 20px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.92);
  }
  .brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 700; font-size: 18px;
    letter-spacing: -.02em; text-decoration: none; color: inherit;
  }
  .brand .mark {
    width: 32px; height: 32px; border-radius: 9px;
    display: grid; place-items: center; color: #fff; font-size: 13px;
    background: linear-gradient(135deg, var(--teal), #14b8a6);
  }
  .nav-links { display: flex; gap: 4px; margin-left: 12px; }
  .nav-links a {
    text-decoration: none; color: var(--muted); font-size: 13.5px;
    padding: 8px 12px; border-radius: 9px; font-weight: 500;
  }
  .nav-links a.active, .nav-links a:hover { color: var(--ink); background: var(--paper); }
  .nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .quota {
    font-size: 12px; color: var(--muted);
    background: var(--paper); border: 1px solid var(--line);
    padding: 7px 11px; border-radius: 999px;
  }
  .quota b { color: var(--teal-deep); }
  .btn {
    appearance: none; border: 1px solid transparent; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-weight: 600; font-size: 13.5px; line-height: 1.2;
    padding: 10px 16px; border-radius: 11px; white-space: nowrap;
    color: var(--ink); background: #fff;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  }
  .btn:hover { transform: translateY(-1px); }
  .btn:hover, .btn:focus, .btn:active, .btn:visited {
    text-decoration: none !important;
  }
  .btn i { flex-shrink: 0; }
  .btn-primary {
    background-color: #0f8f86;
    background-image: linear-gradient(135deg, #12a89e, #0a6b65);
    color: #fff !important; border-color: transparent;
    box-shadow: 0 8px 18px rgba(15,143,134,.28);
  }
  .btn-secondary {
    background: #fff; color: var(--ink) !important; border-color: var(--line);
  }
  .btn-ghost { background: transparent; color: var(--ink-2) !important; border-color: transparent; }
  .btn-amber {
    background: linear-gradient(135deg, #f0b145, #d88918);
    color: #fff !important; border-color: transparent;
    box-shadow: 0 8px 18px rgba(216,137,24,.28);
  }
  .btn-danger { background: var(--rose); color: #fff !important; border-color: transparent; }
  .btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
  .btn-block { width: 100%; }
  .btn-icon {
    width: 36px; height: 36px; padding: 0; border-radius: 10px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2);
    text-decoration: none !important;
  }
  .logo-svg { width: 18px; height: 18px; display: block; }
  .logo-mark .logo-svg, .mark .logo-svg { width: 16px; height: 16px; }

  .field { display: flex; flex-direction: column; gap: 7px; }
  .field label { font-size: 12px; font-weight: 600; color: var(--muted); }
  .input, .select, .textarea {
    width: 100%; font: inherit; color: var(--ink);
    background: #fff; border: 1px solid var(--line);
    border-radius: 11px; padding: 11px 13px; outline: none;
  }
  .input:focus, .select:focus, .textarea:focus {
    border-color: #7dcdc6; box-shadow: 0 0 0 3px rgba(15,143,134,.12);
  }
  .textarea { min-height: 160px; resize: vertical; line-height: 1.65; }
  .select { appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7480' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
  }
  .slider-row {
    display: grid; grid-template-columns: 48px 1fr 36px 36px; gap: 8px; align-items: center;
  }
  .slider-row .val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal-deep); }
  input[type=range] {
    width: 100%; accent-color: var(--teal); height: 4px;
  }

  .pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  }
  .pill-teal { background: var(--teal-soft); color: var(--teal-deep); }
  .pill-amber { background: var(--amber-soft); color: #9a6410; }
  .pill-rose { background: var(--rose-soft); color: var(--rose); }
  .pill-ok { background: var(--ok-soft); color: var(--ok); }
  .pill-blue { background: var(--blue-soft); color: var(--blue); }

  /* ========== 01 Landing ========== */
  .landing-hero {
    position: relative; min-height: 680px; overflow: hidden;
    background:
      radial-gradient(900px 480px at 70% 20%, rgba(15,143,134,.28), transparent 60%),
      radial-gradient(700px 420px at 15% 80%, rgba(232,155,45,.18), transparent 55%),
      linear-gradient(160deg, #0b1418 0%, #132027 45%, #0f1a1e 100%);
    color: #eef4f3;
  }
  .landing-hero .app-nav {
    background: transparent; border-bottom: 1px solid rgba(255,255,255,.08);
    flex-wrap: wrap; gap: 12px;
  }
  .landing-hero .nav-links { flex-wrap: wrap; }
  .landing-hero .nav-links a { color: rgba(255,255,255,.72); }
  .landing-hero .nav-links a:hover,
  .landing-hero .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
  .landing-hero .brand { color: #fff; }
  .landing-hero .btn-ghost {
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.06);
  }
  .landing-hero .btn-ghost:hover { background: rgba(255,255,255,.14); }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
    gap: 24px; padding: 40px 28px 48px; align-items: center;
  }
  .hero-copy { min-width: 0; }
  .hero-copy .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: #9adbd4; margin-bottom: 18px; font-weight: 600;
  }
  .hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em;
    margin: 0 0 18px; color: #fff;
  }
  .hero-copy h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #5eead4, #fbbf24);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .hero-copy .lead {
    font-size: 16px; line-height: 1.7; color: rgba(238,244,243,.78);
    max-width: 480px; margin: 0 0 28px;
  }
  .hero-cta {
    display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px;
    width: 100%; max-width: 100%;
  }
  .hero-cta .btn {
    min-height: 48px; padding: 12px 20px; font-size: 15px;
    flex: 0 1 auto; max-width: 100%;
  }
  .hero-cta .btn-primary {
    color: #fff !important;
    background-color: #0f8f86;
    background-image: linear-gradient(135deg, #18b5aa, #0a6b65);
  }
  .hero-cta .btn-secondary {
    background-color: rgba(255,255,255,.16) !important;
    background-image: none !important;
    border: 1.5px solid rgba(255,255,255,.55) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  }
  .hero-cta .btn-secondary span,
  .hero-cta .btn-primary span { color: inherit; }
  .hero-cta .btn-secondary:hover {
    background-color: rgba(255,255,255,.26) !important;
  }
  .hero-metrics {
    display: flex; gap: 28px; padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,.1); max-width: 460px;
  }
  .hero-metrics div strong {
    display: block; font-family: var(--font-display);
    font-size: 28px; color: #fff; letter-spacing: -.02em;
  }
  .hero-metrics div span { font-size: 12px; color: rgba(238,244,243,.55); }
  .hero-visual {
    position: relative; height: min(460px, 52vw);
    min-height: 320px;
    border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    background:
      linear-gradient(180deg, rgba(20,40,44,.4), rgba(8,14,16,.75)),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='520' viewBox='0 0 800 520'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%2314b8a6' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%23f59e0b' stop-opacity='.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='520' fill='%230b1518'/%3E%3Cg fill='none' stroke='url(%23g)' stroke-width='2'%3E%3Cpath d='M0 260 C40 180 80 340 120 260 S200 180 240 260 S320 340 360 260 S440 180 480 260 S560 340 600 260 S680 180 720 260 S780 340 800 260'/%3E%3Cpath d='M0 280 C50 220 90 320 140 280 S220 220 280 280 S360 320 420 280 S500 220 560 280 S640 320 700 280 S760 220 800 280' opacity='.55'/%3E%3C/g%3E%3C/svg%3E") center/cover;
    box-shadow: var(--shadow-lg);
  }
  .floating-card {
    position: absolute; left: 28px; right: 28px; bottom: 28px;
    background: rgba(255,255,255,.94); color: var(--ink);
    border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg);
  }
  .floating-card .row { display: flex; align-items: center; gap: 12px; }
  .voice-avatar {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center; color: #fff; font-weight: 700;
    background: linear-gradient(135deg, #0f8f86, #0a6b65);
  }
  .wave-bars { display: flex; align-items: end; gap: 3px; height: 22px; margin-left: auto; }
  .wave-bars span {
    width: 3px; border-radius: 2px; background: var(--teal);
    animation: pulse 1.1s ease-in-out infinite;
  }
  .wave-bars span:nth-child(1){height:8px}.wave-bars span:nth-child(2){height:16px;animation-delay:.1s}
  .wave-bars span:nth-child(3){height:22px;animation-delay:.2s}.wave-bars span:nth-child(4){height:12px;animation-delay:.3s}
  .wave-bars span:nth-child(5){height:18px;animation-delay:.15s}
  @keyframes pulse { 50% { transform: scaleY(.55); opacity: .7; } }

  .landing-section { padding: 48px 40px; }
  .landing-section h2 {
    font-family: var(--font-display); font-size: 34px;
    letter-spacing: -.03em; margin: 0 0 10px;
  }
  .landing-section .sub { color: var(--muted); margin: 0 0 32px; max-width: 560px; }
  .feature-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  }
  .feature-item {
    padding: 22px 20px 24px; border-top: 2px solid var(--teal);
  }
  .feature-item i {
    font-size: 20px; color: var(--teal); margin-bottom: 14px;
  }
  .feature-item h3 { margin: 0 0 8px; font-size: 18px; }
  .feature-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
  .module-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  }
  .module {
    border: 1px solid var(--line); border-radius: 16px; padding: 22px;
    background: linear-gradient(180deg, #fff, #f8fafb);
  }
  .module .ico {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 14px;
    background: var(--teal-soft); color: var(--teal-deep);
  }
  .module h3 { margin: 0 0 8px; font-size: 17px; }
  .module p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
  .module ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
  .landing-cta {
    margin: 0 40px 40px; border-radius: 20px; padding: 32px 36px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: linear-gradient(120deg, #0f1f22, #14353a 50%, #1a2a20);
    color: #fff;
  }
  .landing-cta h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 28px; }
  .landing-cta p { margin: 0; color: rgba(255,255,255,.7); }

  /* ========== 02 Studio ========== */
  .studio-body {
    display: grid; grid-template-columns: 1fr 340px;
    min-height: 760px;
  }
  .studio-main { padding: 20px 22px 24px; border-right: 1px solid var(--line); }
  .studio-side {
    padding: 18px 18px 24px; background: #f8fafb;
    display: flex; flex-direction: column; gap: 14px;
  }
  .editor-toolbar {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
  }
  .tool-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
    background: #fff; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer;
    text-decoration: none !important;
  }
  .tool-btn:hover:not(:disabled) { border-color: #b7e0db; color: var(--teal-deep); background: var(--teal-soft); }
  .tool-btn.danger:hover:not(:disabled) { border-color: #f0b4bd; color: var(--rose); background: var(--rose-soft); }
  .tool-btn:disabled { opacity: .45; cursor: not-allowed; }
  .editor-shell {
    position: relative; border: 1px solid var(--line); border-radius: 14px;
    background: #fff; overflow: hidden;
  }
  .editor-shell textarea {
    width: 100%; min-height: 320px; border: 0; resize: vertical;
    padding: 18px 18px 40px; font: inherit; line-height: 1.75; outline: none;
  }
  .editor-meta {
    position: absolute; left: 14px; right: 14px; bottom: 10px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--muted);
  }
  .ssml-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px;
  }
  .ssml-tags span {
    font-size: 11px; padding: 4px 8px; border-radius: 7px;
    background: #eef2f7; color: #44505c; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  }
  .player-bar {
    display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  }
  .play-btn {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer;
  }
  .progress {
    height: 6px; border-radius: 999px; background: #e8edf2; position: relative; overflow: hidden;
  }
  .progress > i {
    position: absolute; inset: 0 auto 0 0; width: 38%;
    background: linear-gradient(90deg, var(--teal), #5eead4); border-radius: inherit;
  }
  .player-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 6px; }
  .action-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px;
  }
  .action-grid .btn { padding: 11px 8px; font-size: 12.5px; }
  .side-block {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  }
  .side-block h4 {
    margin: 0 0 12px; font-size: 13px; display: flex; align-items: center; gap: 8px;
  }
  .side-block h4 i { color: var(--teal); }
  .voice-pick {
    display: flex; align-items: center; gap: 10px; padding: 10px;
    border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; margin-bottom: 10px;
  }
  .voice-pick .info { flex: 1; min-width: 0; }
  .voice-pick .info strong { display: block; font-size: 13.5px; }
  .voice-pick .info span { font-size: 12px; color: var(--muted); }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .notice {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: 12px; font-size: 12.5px; line-height: 1.55;
  }
  .notice-ok { background: var(--ok-soft); color: #176b49; }
  .notice-warn { background: var(--amber-soft); color: #8a5a0a; }
  .notice-info { background: var(--blue-soft); color: #1f4fb8; }

  /* ========== 03 Voice library ========== */
  .voices-body { padding: 20px 22px 28px; }
  .filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px;
  }
  .filter-bar .search {
    flex: 1; min-width: 220px; position: relative;
  }
  .filter-bar .search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted);
  }
  .filter-bar .search input { padding-left: 36px; }
  .seg {
    display: inline-flex; background: var(--paper); border-radius: 11px; padding: 3px; border: 1px solid var(--line);
  }
  .seg button {
    border: 0; background: transparent; padding: 7px 12px; border-radius: 9px;
    font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer;
  }
  .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  .voice-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  }
  .voice-card {
    border: 1px solid var(--line); border-radius: 14px; padding: 14px;
    background: #fff; display: flex; flex-direction: column; gap: 12px;
  }
  .voice-card.selected { border-color: #7dcdc6; box-shadow: 0 0 0 3px rgba(15,143,134,.12); }
  .voice-card .top { display: flex; gap: 10px; align-items: center; }
  .voice-card .avatar {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    color: #fff; font-weight: 700; font-family: var(--font-display);
  }
  .voice-card .meta strong { display:block; font-size: 14px; }
  .voice-card .meta span { font-size: 12px; color: var(--muted); }
  .voice-card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .voice-card .foot { display: flex; gap: 8px; }
  .voice-card .foot .btn { flex: 1; }

  /* ========== Shared footer ========== */
  .app-footer {
    padding: 16px 22px; border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 12px; color: var(--muted); background: #fbfcfd;
  }

  /* ========== 04 Batch ========== */
  .batch-body { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 700px; }
  .batch-main { padding: 20px 22px; border-right: 1px solid var(--line); }
  .batch-side { padding: 18px; background: #f8fafb; }
  .dropzone {
    border: 1.5px dashed #b7c0cc; border-radius: 16px; padding: 36px 20px;
    text-align: center; background: linear-gradient(180deg, #fff, #f7faf9);
    margin-bottom: 16px;
  }
  .dropzone i { font-size: 28px; color: var(--teal); margin-bottom: 10px; }
  .dropzone h4 { margin: 0 0 6px; font-size: 16px; }
  .dropzone p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
  .job-list { display: flex; flex-direction: column; gap: 10px; }
  .job-item {
    display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  }
  .job-item strong { display:block; font-size: 13.5px; }
  .job-item span { font-size: 12px; color: var(--muted); }
  .bar {
    height: 6px; border-radius: 999px; background: #e8edf2; margin-top: 8px; overflow: hidden;
  }
  .bar > i { display:block; height:100%; background: linear-gradient(90deg, var(--teal), #5eead4); }

  /* ========== 05 Subtitles ========== */
  .sub-body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .upload-card {
    border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff;
  }
  .upload-card h4 { margin: 0 0 6px; font-size: 15px; }
  .upload-card p { margin: 0 0 14px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
  .srt-preview {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px; line-height: 1.6; background: #0f1419; color: #d7e0e8;
    border-radius: 12px; padding: 14px; min-height: 280px; white-space: pre-wrap;
  }

  /* ========== 06 SSML ========== */
  .ssml-body { display: grid; grid-template-columns: 200px 1fr 280px; min-height: 680px; }
  .ssml-tools { padding: 16px; border-right: 1px solid var(--line); background: #f8fafb; }
  .ssml-tools button {
    width: 100%; justify-content: flex-start; margin-bottom: 6px;
  }
  .ssml-editor { padding: 16px 18px; }
  .code-area {
    width: 100%; min-height: 480px; border: 1px solid var(--line); border-radius: 12px;
    padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px; line-height: 1.65; background: #0f1419; color: #d7e0e8; resize: vertical;
  }
  .ssml-help { padding: 16px; border-left: 1px solid var(--line); background: #fbfcfd; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
  .ssml-help h4 { margin: 0 0 10px; color: var(--ink); font-size: 13px; }
  .ssml-help code { background: #eef2f7; color: #334155; padding: 1px 5px; border-radius: 4px; font-size: 11.5px; }


  /* ========== 08 Pricing ========== */
  .pricing-body { padding: 36px 40px 48px; }
  .pricing-head { text-align: center; margin-bottom: 28px; }
  .pricing-head h2 {
    font-family: var(--font-display); font-size: 34px; letter-spacing: -.03em; margin: 0 0 8px;
  }
  .pricing-head p { margin: 0; color: var(--muted); }
  .price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
  .pay-channel-list { display: grid; gap: 10px; }
  .pay-channel-btn {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    width: 100%; text-align: left; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    cursor: pointer; font: inherit; color: inherit;
  }
  .pay-channel-btn:hover { border-color: var(--teal); background: var(--teal-soft); }
  .pay-channel-btn:disabled { opacity: .6; cursor: wait; }
  .pay-channel-btn strong { font-size: 15px; }
  .pay-channel-btn span { font-size: 12px; color: var(--muted); }
  .pay-channel-btn.is-loading { opacity: .7; }
  .pay-qr-wrap { display: grid; place-items: center; padding: 8px 0 4px; }
  .pay-qr-wrap img {
    width: 220px; height: 220px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff;
  }
  .price-card {
    border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px;
    background: #fff; display: flex; flex-direction: column; gap: 14px; position: relative;
  }
  .price-card.featured {
    border-color: transparent;
    background: linear-gradient(#fff,#fff) padding-box,
      linear-gradient(135deg, #0f8f86, #e89b2d) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow);
  }
  .price-card .plan { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
  .price-card .amount {
    font-family: var(--font-display); font-size: 40px; letter-spacing: -.03em; line-height: 1;
  }
  .price-card .amount small { font-size: 14px; color: var(--muted); font-weight: 500; }
  .price-card ul { margin: 0; padding: 0; list-style: none; flex: 1; }
  .price-card li {
    display: flex; gap: 8px; align-items: flex-start;
    font-size: 13.5px; padding: 7px 0; color: var(--ink-2);
  }
  .price-card li i { color: var(--teal); margin-top: 3px; }
  .ribbon {
    position: absolute; top: 14px; right: 14px;
    background: var(--amber); color: #fff; font-size: 11px; font-weight: 700;
    padding: 4px 8px; border-radius: 999px;
  }

  /* ========== Modals / overlays ========== */
  .modal-stage {
    position: relative; min-height: 560px;
    background:
      linear-gradient(180deg, rgba(15,20,24,.45), rgba(15,20,24,.62)),
      var(--paper);
    display: grid; place-items: center; padding: 32px;
  }
  .modal {
    width: min(440px, 100%); background: #fff; border-radius: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden;
  }
  .modal.wide { width: min(720px, 100%); }
  .modal-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
  }
  .modal-hd h4 { margin: 0; font-size: 16px; }
  .modal-bd { padding: 18px; }
  .modal-ft {
    padding: 14px 18px; border-top: 1px solid var(--line);
    display: flex; justify-content: flex-end; gap: 8px; background: #fbfcfd;
  }
  .qr-box {
    width: 180px; height: 180px; margin: 8px auto 14px; border-radius: 12px;
    border: 1px dashed #c5ccd6; display: grid; place-items: center;
    background:
      repeating-conic-gradient(#e8edf2 0% 25%, #fff 0% 50%) 50% / 16px 16px;
    color: var(--muted); font-size: 12px; text-align: center; padding: 12px;
  }
  .phoneme-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  }
  .phoneme-grid button {
    border: 1px solid var(--line); background: #fff; border-radius: 10px;
    padding: 10px 6px; cursor: pointer; font: inherit;
  }
  .phoneme-grid button strong { display:block; font-size: 16px; }
  .phoneme-grid button span { font-size: 11px; color: var(--muted); }
  .phoneme-grid button.on { border-color: #7dcdc6; background: var(--teal-soft); }

  .result-panel {
    width: min(640px, 100%); background: #fff; border-radius: 18px;
    box-shadow: var(--shadow-lg); padding: 22px;
  }
  .result-panel .ok-ico {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: var(--ok-soft); color: var(--ok); font-size: 22px; margin-bottom: 12px;
  }
  .split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-tile {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    background: #f8fafb;
  }
  .stat-tile span { display:block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
  .stat-tile strong { font-family: var(--font-display); font-size: 20px; }

  .model-list { display: flex; flex-direction: column; gap: 8px; }
  .model-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  }
  .model-row .grow { flex: 1; min-width: 0; }
  .model-row strong { display:block; font-size: 13.5px; }
  .model-row span { font-size: 12px; color: var(--muted); }

  .hit-list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
  .hit-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 12px; border-radius: 10px; background: var(--rose-soft); color: #8f2d3d;
    font-size: 13px; line-height: 1.5;
  }
  .sensitive-body {
    display: grid; grid-template-columns: 1.2fr .8fr; min-height: 560px;
  }
  .sensitive-main { padding: 20px; border-right: 1px solid var(--line); }
  .sensitive-side { padding: 18px; background: #f8fafb; }
  @media (max-width: 1100px) {
    .sensitive-body { grid-template-columns: 1fr; }
    .sensitive-main { border-right: 0; border-bottom: 1px solid var(--line); }
  }

  @media (max-width: 1100px) {
    .hero-grid, .studio-body, .feature-strip, .module-row, .voice-grid,
    .batch-body, .sub-body, .ssml-body, .price-grid, .split-2 { grid-template-columns: 1fr; }
    .action-grid { grid-template-columns: repeat(3, 1fr); }
    .landing-cta { flex-direction: column; align-items: flex-start; }
    .ssml-body { grid-template-columns: 1fr; }
    .hero-visual { height: 280px; order: -1; }
  }

/* ===== Site shell (production) ===== */
body.site-body {
  background:
    radial-gradient(1200px 600px at 10% -10%, #d8f3ef 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe8c4 0%, transparent 45%),
    var(--paper);
  min-height: 100vh;
}
body.page-landing {
  background: #0b1418;
}
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.page-wrap > main { flex: 1; }
.app-shell {
  max-width: 1180px; margin: 0 auto; width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; overflow: clip; box-shadow: var(--shadow);
  margin-top: 20px; margin-bottom: 40px;
}
body.page-landing .app-shell {
  max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none;
}
.page-pad { padding: 0 20px; }
@media (max-width: 900px) {
  .app-nav { flex-wrap: wrap; }
  .nav-links { margin-left: 0; width: 100%; overflow-x: auto; }
}
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px;
  font-size: 13px; box-shadow: var(--shadow-lg); display: none;
}
.toast.show { display: block; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,20,24,.5); z-index: 900;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.open { display: flex; }
