/* ==========================================================================
   SOFTGM DESIGN SYSTEM v3 — «لاجورد و زعفران»
   --------------------------------------------------------------------------
   Idea: a reading page. Cool paper, deep lapis ink, and one saffron marker
   that sweeps over the words as they are spoken. Everything else stays quiet.

   Token contract: the old variable names (--ice-*, --text-*, --border-glass,
   --bg-dark*, --mint-accent ...) are kept as aliases so dashboard / recharge /
   help pages and inline styles keep working and pick up the new palette.
   ========================================================================== */

/* 1. Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  /* Raw palette */
  --lapis-950: #060e24;
  --lapis-900: #0b1a3f;
  --lapis-800: #12275c;
  --lapis-700: #1b3a85;
  --saffron: #f6b93b;
  --saffron-deep: #d99a14;
  --saffron-soft: rgba(246, 185, 59, 0.18);
  --turquoise: #0a7a80;
  --turquoise-bright: #5cd6d0;
  --paper: #f4f6fb;
  --snow: #ffffff;

  --font-fa: 'YekanBakh', 'Yekan Bakh FaNum', 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-read: 'Vazirmatn', 'YekanBakh', system-ui, sans-serif;

  /* Dark theme (default tokens; light overrides below) */
  --bg-dark: #070f26;
  --bg-dark-card: #0f1d45;
  --bg-dark-elevated: #14275a;
  --bg-card: #0f1d45;
  --bg-card-inner: rgba(255, 255, 255, 0.05);
  --bg-section-alt: #0a1531;
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(255, 255, 255, 0.32);
  --accent: var(--saffron);
  --accent-ink: #1b1303;
  --link: var(--turquoise-bright);
  --btn-dark-bg: #eef2fa;
  --btn-dark-text: #0b1a3f;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  --shadow-luxury: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 4px rgba(246, 185, 59, 0.22);

  /* Aliases kept for legacy markup */
  --ice-primary: var(--link);
  --ice-hover: var(--saffron);
  --ice-deep: var(--turquoise);
  --ice-soft: var(--bg-card-inner);
  --ice-mist: var(--bg-card-inner);
  --ice-white: var(--text-main);
  --ice-cyan: var(--link);
  --ice-glow: var(--saffron-soft);
  --ice-glow-soft: var(--saffron-soft);
  --cyan-accent: var(--link);
  --mint-accent: var(--link);
  --emerald-primary: var(--accent);
  --emerald-hover: var(--saffron-deep);
  --emerald-glow: var(--saffron-soft);

  /* Geometry: radius follows role (controls < cards < panels) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 26px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-height: 76px;
}

html[data-theme="light"] {
  --bg-dark: #f4f6fb;
  --bg-dark-card: #ffffff;
  --bg-dark-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-inner: #eef2f9;
  --bg-section-alt: #eaeff8;
  --text-main: #0b1a3f;
  --text-muted: #334155;
  --text-dim: #475569;
  --border-glass: #dbe2ef;
  --border-hover: #94a3b8;
  --link: var(--turquoise);
  --btn-dark-bg: #0b1a3f;
  --btn-dark-text: #ffffff;
  --shadow-card: 0 1px 2px rgba(11, 26, 63, 0.05), 0 14px 32px -20px rgba(11, 26, 63, 0.28);
  --shadow-luxury: 0 30px 60px -30px rgba(11, 26, 63, 0.35);
  --shadow-glow: 0 0 0 4px rgba(246, 185, 59, 0.35);
}

/* 3. Base ----------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-fa);
  font-size: 1rem;
  background: var(--bg-dark);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.4; font-weight: 800; color: var(--text-main); }

/* Global Text Justification (تراز جاستیفای تمام متون در کلیه صفحات) */
p,
article,
article p,
.entry-content,
.entry-content p,
.post-content,
.post-content p,
.single-post-content,
.single-post-content p,
.page-content,
.page-content p,
.site-main p,
.lp-lead,
.section-subtitle,
.faq-answer,
.karaoke-text-box,
.studio-karaoke-box,
.tts-hero-desc,
.tts-help-section p,
.tts-accordion-body,
.tts-accordion-body p,
.lp-feature-card p,
.lp-testimonial-card p,
.card-glass p,
.about-content,
.about-content p,
.contact-content,
.contact-content p,
.legal-content,
.legal-content p,
.hero-desc,
.page-desc,
.feature-desc,
.step-desc,
blockquote,
blockquote p {
  text-align: justify !important;
  text-justify: inter-word !important;
}

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.section-padding { padding-block: 96px; }
.site-main { display: block; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* The marker: the one recurring device. Used on highlighted words only. */
.marker {
  background-image: linear-gradient(transparent 52%, var(--saffron) 52% 94%, transparent 94%);
  padding-inline: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: inherit;
}

/* 4. Header --------------------------------------------------------------- */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: var(--header-height);
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-dark) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--border-glass); background: color-mix(in srgb, var(--bg-dark) 94%, transparent); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-height); }
.header-brand-group { display: flex; align-items: center; gap: 12px; }

.site-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.3rem; }
.site-brand svg { width: 38px; height: 38px; border-radius: 10px; }
.site-brand .custom-logo { max-height: 40px; width: auto; }
.brand-text { color: var(--text-main); font-weight: 900; white-space: nowrap; }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  position: relative; display: block; padding: 7px 12px;
  font-weight: 700; font-size: 0.92rem; color: var(--text-muted);
  border-radius: var(--radius-sm); white-space: nowrap;
}
.main-nav a:hover { color: var(--text-main); }
.main-nav .current-menu-item > a { color: var(--text-main); }
.main-nav .current-menu-item > a::after {
  content: ''; position: absolute; inset-inline: 12px; inset-block-end: 2px; height: 5px;
  background: var(--saffron); opacity: 0.85; z-index: -1; border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle-btn, .mobile-menu-toggle {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  border: 1px solid var(--border-glass); background: transparent; color: var(--text-main);
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle-btn:hover, .mobile-menu-toggle:hover { border-color: var(--border-hover); }
.mobile-menu-toggle { display: none; }
.header-account-btn { padding: 8px 16px; font-size: 0.9rem; }
.header-cta-btn { padding: 9px 18px; font-size: 0.9rem; }

/* 5. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-md);
  font-weight: 800; font-size: 0.98rem; line-height: 1.4;
  border: 1.5px solid transparent; cursor: pointer; transition: var(--transition);
  text-align: center; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; border-radius: 12px; }

.btn-primary, .btn-emerald { background: var(--saffron); color: var(--accent-ink); border-color: var(--saffron); }
.btn-primary:hover, .btn-emerald:hover { background: #ffc85a; border-color: #ffc85a; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(217, 154, 20, 0.7); }

.btn-outline { background: transparent; color: var(--text-main); border-color: var(--border-hover); }
.btn-outline:hover { border-color: var(--text-main); transform: translateY(-2px); }

.btn-dark { background: var(--btn-dark-bg); color: var(--btn-dark-text); }
.btn-dark:hover { transform: translateY(-2px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.93rem; color: var(--text-main); border-bottom: 2px solid var(--saffron); padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { border-bottom-color: var(--text-main); }

/* 6. Section scaffolding -------------------------------------------------- */
.section-header { max-width: 720px; margin: 0 0 56px; text-align: right; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-tag {
  display: inline-block; margin-bottom: 14px;
  font-size: 0.88rem; font-weight: 800; color: var(--link);
  background: none; border: 0; padding: 0; box-shadow: none;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; line-height: 1.45; }
.section-subtitle { margin-top: 14px; color: var(--text-muted); font-size: 1.05rem; line-height: 1.95; }

.badge-glow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--border-hover); color: var(--text-muted);
  font-size: 0.86rem; font-weight: 700; background: transparent; box-shadow: none;
}
.badge-glow svg { width: 15px; height: 15px; color: var(--saffron-deep); }

/* 7. Generic hero (inner pages) ------------------------------------------ */
.hero-section { padding: calc(var(--header-height) + 72px) 0 72px; }
.hero-content { max-width: 860px; }
.hero-title { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 900; line-height: 1.35; margin: 18px 0 20px; color: var(--text-main); }
.hero-title span { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
.hero-description { font-size: 1.15rem; line-height: 2; color: var(--text-muted); max-width: 62ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-features-list { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--text-dim); font-size: 0.92rem; }

/* 8. Cards & product tiles ------------------------------------------------ */
.card-glass {
  background: var(--bg-card); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card-glass:hover { border-color: var(--border-hover); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.products-grid > .card-glass { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }

.product-icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lapis-900); color: var(--saffron); margin-bottom: 18px;
}
html:not([data-theme="light"]) .product-icon-wrap { background: var(--lapis-800); }
.product-icon-wrap svg { width: 24px; height: 24px; }
.product-tag { display: inline-block; font-size: 0.84rem; font-weight: 800; color: var(--link); margin-bottom: 8px; background: none; padding: 0; }
.product-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 10px; line-height: 1.5; }
.product-desc { color: var(--text-muted); font-size: 0.97rem; line-height: 1.95; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border-glass); }
.product-version { font-size: 0.82rem; color: var(--text-dim); direction: ltr; font-weight: 700; }
.product-status-tag { font-size: 0.8rem; font-weight: 800; color: var(--text-muted); border: 1px dashed var(--border-hover); padding: 3px 12px; border-radius: var(--radius-full); }

/* 9. Inquiry / forms ------------------------------------------------------ */
.inquiry-box {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  background: var(--lapis-900); color: #eef2fa;
  border-radius: var(--radius-xl); padding: 56px; box-shadow: var(--shadow-luxury);
}
html:not([data-theme="light"]) .inquiry-box { background: var(--lapis-800); }
.inquiry-info h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; line-height: 1.5; margin-bottom: 16px; color: #fff; }
.inquiry-info p { color: #b6c1d8; margin-bottom: 26px; font-size: 1.02rem; line-height: 2; }
.inquiry-info .section-tag { color: var(--saffron); }
.inquiry-box .features-list li { color: #d3dbed; }
.inquiry-box .features-list li svg { color: var(--saffron); }
.inquiry-form { background: var(--snow); color: #0b1a3f; border-radius: var(--radius-lg); padding: 30px; }
.inquiry-form .form-group label { color: #0b1a3f; }
.inquiry-form .form-control { background: #f4f6fb; border-color: #dbe2ef; color: #0b1a3f; }
.inquiry-form .form-control::placeholder { color: #7d89a6; }

.features-list { display: flex; flex-direction: column; gap: 14px; }
.features-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.98rem; color: var(--text-muted); }
.features-list li svg { color: var(--turquoise); flex-shrink: 0; width: 20px; height: 20px; margin-top: 4px; }
html:not([data-theme="light"]) .features-list li svg { color: var(--turquoise-bright); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 8px; color: var(--text-main); }
.form-control {
  width: 100%; padding: 12px 16px; background: var(--bg-card-inner);
  border: 1.5px solid var(--border-glass); border-radius: var(--radius-md);
  color: var(--text-main); outline: none; transition: var(--transition); font-size: 0.97rem;
}
.form-control:focus { border-color: var(--saffron); box-shadow: var(--shadow-glow); }
select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: 18px 52%, 24px 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-start: 40px; }

/* 10. Blog ---------------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.post-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.post-body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }
.post-meta { font-size: 0.84rem; color: var(--text-dim); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.post-title { font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; line-height: 1.6; }
.post-title a:hover { text-decoration: underline; text-decoration-color: var(--saffron); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.post-excerpt { color: var(--text-muted); font-size: 0.94rem; line-height: 1.95; margin-bottom: 18px; }

/* Single post / page typography */
.single-post-content, .legal-content, .entry-content { font-size: 1.05rem; line-height: 2.1; color: var(--text-muted); }
.single-post-content > * + *, .legal-content > * + *, .entry-content > * + * { margin-top: 1.2em; }
.single-post-content h2, .legal-content h2 { font-size: 1.6rem; margin-top: 2em; color: var(--text-main); }
.single-post-content h3, .legal-content h3 { font-size: 1.28rem; margin-top: 1.6em; color: var(--text-main); }
.single-post-content a, .legal-content a { color: var(--link); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--saffron); text-decoration-thickness: 2px; }
.single-post-content ul, .legal-content ul { list-style: disc; padding-inline-start: 1.4em; }
.single-post-content ol, .legal-content ol { list-style: decimal; padding-inline-start: 1.4em; }
.single-post-content blockquote { border-inline-start: 4px solid var(--saffron); padding-inline-start: 20px; color: var(--text-main); }
.single-post-content img { border-radius: var(--radius-md); height: auto; }
.single-post-content pre, .single-post-content code { direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }
.single-post-content pre { background: var(--bg-card-inner); border: 1px solid var(--border-glass); padding: 18px; border-radius: var(--radius-md); overflow-x: auto; }
.single-post-content table { width: 100%; border-collapse: collapse; }
.single-post-content th, .single-post-content td { border: 1px solid var(--border-glass); padding: 10px 14px; text-align: right; }

.comments-area { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border-glass); }
.comments-title { font-size: 1.3rem; margin-bottom: 20px; }
.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-list .comment-body { background: var(--bg-card-inner); border-radius: var(--radius-md); padding: 18px; }

/* 11. Footer -------------------------------------------------------------- */
.site-footer { background: var(--lapis-950); color: #b6c1d8; padding: 84px 0 32px; margin-top: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; }
.site-footer .site-brand, .site-footer .brand-text { color: #fff; }
.footer-brand p { color: #9aa7c4; font-size: 0.95rem; line-height: 2; margin: 14px 0 18px; max-width: 42ch; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; color: #b6c1d8; }
.footer-contact a { color: #fff; font-weight: 800; }
.footer-contact a:hover { color: var(--saffron); }
.footer-contact .ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.footer-col h4 { font-size: 1rem; font-weight: 900; color: #fff; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #9aa7c4; font-size: 0.93rem; }
.footer-col a:hover { color: var(--saffron); }
.enamad-trust-box { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-md); }
.enamad-badge-wrapper { background: #fff; padding: 6px; border-radius: 10px; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.enamad-badge-wrapper img { max-width: 100%; max-height: 100%; object-fit: contain; }
.enamad-note { font-size: 0.82rem; line-height: 1.8; color: #9aa7c4; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; color: #7f8eb0; }

/* 12. Mobile drawer ------------------------------------------------------- */
.mobile-drawer-overlay { position: fixed; inset: 0; background: rgba(6, 14, 36, 0.6); z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s; }
.mobile-drawer-overlay.active { opacity: 1; visibility: visible; }
.mobile-drawer-content { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(330px, 88vw); background: var(--bg-dark); border-inline-end: 1px solid var(--border-glass); padding: 22px 20px; display: flex; flex-direction: column; transform: translateX(110%); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); overflow-y: auto; }
.mobile-drawer-overlay.active .mobile-drawer-content { transform: none; }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--border-glass); margin-bottom: 16px; }
.drawer-close-btn { width: 38px; height: 38px; border-radius: var(--radius-md); border: 1px solid var(--border-glass); background: transparent; color: var(--text-main); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-menu a { display: block; padding: 13px 14px; border-radius: var(--radius-md); color: var(--text-muted); font-weight: 800; }
.mobile-nav-menu a:hover, .mobile-nav-menu .current-menu-item > a { background: var(--bg-card-inner); color: var(--text-main); }
.drawer-quick-card { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; color: var(--text-muted); }
.drawer-phone-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.drawer-phone-row a { direction: ltr; font-weight: 800; color: var(--text-main); }
.drawer-theme-btn { width: 100%; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid var(--border-glass); background: transparent; color: var(--text-main); font-weight: 800; }
.drawer-footer { margin-top: 16px; }
.drawer-footer .btn { width: 100%; }

/* 13. Pricing tables / compare / calculator / faq (shared with landings) --- */
.tts-pricing-table, .tts-pricing-matrix-table { width: 100%; border-collapse: collapse; }
@media (min-width: 769px) {
  .tts-pricing-table, .tts-pricing-matrix-table { min-width: 640px; }
}
.tts-pricing-table th, .tts-pricing-matrix-table th { text-align: right; padding: 14px 18px; font-size: 0.86rem; font-weight: 800; color: var(--text-dim); border-bottom: 1px solid var(--border-hover); white-space: nowrap; }
.tts-pricing-table td, .tts-pricing-matrix-table td { padding: 18px; border-bottom: 1px solid var(--border-glass); vertical-align: top; font-size: 0.95rem; }
.tts-pricing-table tr:last-child td, .tts-pricing-matrix-table tr:last-child td { border-bottom: 0; }
.tts-table-engine-name { font-weight: 900; font-size: 1.05rem; color: var(--text-main); }
.tts-table-engine-desc { font-size: 0.84rem; color: var(--text-muted); margin-top: 4px; line-height: 1.8; }
.tts-table-price-1k, .tts-table-cost-post { font-weight: 900; color: var(--text-main) !important; }
.tts-table-badge { font-size: 0.84rem; font-weight: 800; color: var(--link); }

.pricing-cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.pricing-card-box { position: relative; display: flex; flex-direction: column; padding: 32px; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.pricing-card-box.featured { background: var(--lapis-900); border-color: var(--lapis-900); color: #eef2fa; transform: translateY(-8px); box-shadow: var(--shadow-luxury); }
html:not([data-theme="light"]) .pricing-card-box.featured { background: var(--lapis-800); border-color: var(--saffron); }
.pricing-card-box.featured h3, .pricing-card-box.featured .pricing-card-price { color: #fff; }
.pricing-card-box.featured .features-list li { color: #d3dbed; }
.pricing-card-box.featured .features-list li svg { color: var(--saffron); }
.pricing-top-pill, .pricing-card-badge { position: absolute; inset-block-start: -13px; inset-inline-start: 28px; background: var(--saffron); color: var(--accent-ink); font-size: 0.8rem; font-weight: 900; padding: 4px 14px; border-radius: var(--radius-full); }
.pricing-card-price { font-size: 2.6rem; font-weight: 900; line-height: 1.2; margin: 10px 0 8px; color: var(--text-main); }
.pricing-card-cta { margin-top: auto; padding-top: 12px; }
.pricing-card-cta .btn { width: 100%; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-card { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border-glass); background: var(--bg-card); }
.compare-card-pro { background: var(--lapis-900); border-color: var(--lapis-900); color: #eef2fa; }
html:not([data-theme="light"]) .compare-card-pro { background: var(--lapis-800); border-color: var(--saffron); }
.compare-con-title, .compare-pro-title { font-size: 1.3rem; font-weight: 900; margin-bottom: 18px; }
.compare-card-pro .compare-pro-title { color: #fff; }
.compare-con-icon, .compare-pro-icon { display: none; }
.compare-list { display: flex; flex-direction: column; gap: 14px; }
.compare-list li { padding-inline-start: 26px; position: relative; line-height: 1.9; font-size: 0.97rem; }
.compare-con-list li { color: var(--text-muted); }
.compare-con-list li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 0.85em; width: 12px; height: 2px; background: var(--text-dim); }
.compare-pro-list li { color: #d3dbed; }
.compare-pro-list li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--saffron); }

.calc-box-softgm, .calc-box-studio, .calc-box-gift { display: flex; flex-direction: column; justify-content: space-between; border-radius: var(--radius-lg); padding: 24px; min-height: 150px; border: 1px solid var(--border-glass); background: var(--bg-card-inner); }
.calc-box-softgm { background: var(--lapis-900); border-color: var(--lapis-900); color: #eef2fa; }
html:not([data-theme="light"]) .calc-box-softgm { background: var(--lapis-800); border-color: var(--saffron); }
.calc-box-title { font-size: 0.9rem; color: var(--text-muted); display: block; margin-bottom: 8px; font-weight: 800; }
.calc-box-softgm .calc-box-title { color: #b6c1d8; }
.calc-val-softgm, .calc-val-studio, .calc-val-gift { font-size: 2rem; font-weight: 900; line-height: 1.3; }
.calc-val-softgm { color: var(--saffron); }
.calc-val-studio { color: var(--text-main); text-decoration: line-through; text-decoration-color: var(--text-dim); text-decoration-thickness: 2px; }
.calc-val-gift { color: var(--text-main); }
.calc-box-badge { font-size: 0.82rem; margin-top: 8px; display: block; font-weight: 700; color: var(--text-dim); }
.calc-box-softgm .calc-box-badge { color: #b6c1d8; }

.faq-accordion { display: flex; flex-direction: column; border-top: 1px solid var(--border-hover); }
.faq-item { border-bottom: 1px solid var(--border-glass); }
.faq-item > summary, .faq-item > .faq-question { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; font-weight: 800; font-size: 1.05rem; line-height: 1.7; color: var(--text-main); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: ''; flex-shrink: 0; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center/100% 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 100% no-repeat; transition: transform 0.25s; }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item > summary .faq-question-icon, .faq-item .faq-question svg { display: none; }
.faq-answer { padding: 0 4px 24px; max-width: 72ch; color: var(--text-muted); line-height: 2.05; font-size: 0.98rem; }

/* 14. Real-estate mock window (kept for that landing) --------------------- */
.re-mockup-window { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-luxury); }
.re-window-bar { background: var(--bg-card-inner); padding: 12px 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border-glass); }
.re-dot { width: 11px; height: 11px; border-radius: 50%; }
.re-dot-red { background: #e5574f; } .re-dot-yellow { background: var(--saffron); } .re-dot-green { background: #3dbf8b; }

/* 15. Karaoke text box (shared) ------------------------------------------- */
.sandbox-card { background: var(--bg-card); border: 1px solid var(--border-glass); }
.karaoke-text-box { font-family: var(--font-read); font-weight: 400; font-size: 1.18rem; line-height: 2.3; color: var(--text-main); }

/* 16. Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .inquiry-box { grid-template-columns: 1fr; padding: 36px; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .pricing-card-box.featured { transform: none; }
}
@media (max-width: 860px) {
  .desktop-only { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
  .header-actions .header-account-btn { display: none; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .section-padding { padding-block: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .inquiry-box { padding: 24px 18px; border-radius: var(--radius-lg); }
  .inquiry-form { padding: 20px; }
  .header-actions .header-cta-btn { padding: 8px 12px; font-size: 0.82rem; }
  .site-brand { font-size: 1.1rem; gap: 8px; }
  .site-brand svg { width: 32px; height: 32px; }
  .header-inner { gap: 10px; }
  .btn-lg { padding: 14px 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
