/* =========================================================
   Kalafin Official Website (kalafin.ir)
   Brand Tokens aligned with Android Theme.kt & Color.kt
   ========================================================= */

:root {
  --copper: #B85214;
  --copper-hover: #9C430E;
  --copper-light: #F0883E;
  --copper-soft: #FFEDE0;
  --teal: #0E7490;
  --teal-soft: #CFFAFE;
  --emerald: #15803D;
  --emerald-soft: #DCFCE7;
  --amber: #B45309;
  --amber-soft: #FEF3C7;
  --slate-dark: #0F172A;
  --slate-mid: #1E293B;

  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --surface-alt: #ECE8DF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #D6D0C4;
  --nav-bg: rgba(247, 245, 240, 0.88);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
}

html[data-theme="dark"] {
  --copper: #F0883E;
  --copper-hover: #FF9D59;
  --copper-soft: rgba(240, 136, 62, 0.16);
  --teal: #38BDF8;
  --teal-soft: rgba(56, 189, 248, 0.16);
  --emerald: #4ADE80;
  --emerald-soft: rgba(74, 222, 128, 0.15);
  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.14);

  --bg: #0D1117;
  --surface: #161B22;
  --surface-alt: #212833;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: #30363D;
  --nav-bg: rgba(13, 17, 23, 0.88);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.48);
}

html[data-theme="blueprint"] {
  --copper: #1D4ED8;
  --copper-hover: #1E40AF;
  --copper-soft: #DBEAFE;
  --teal: #0E7490;
  --teal-soft: #CFFAFE;
  --bg: #F3F6FC;
  --surface: #FFFFFF;
  --surface-alt: #E3EAF6;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #C4D1E6;
  --nav-bg: rgba(243, 246, 252, 0.9);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: "JetBrains Mono", monospace;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Announcement */
.announcement-bar {
  background: linear-gradient(90deg, var(--slate-dark), #7C2D12);
  color: #FEF3C7;
  font-size: 0.88rem;
  padding-block: 8px;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-bar p {
  margin: 0;
  font-weight: 600;
}

.announcement-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FBBF24;
  flex-shrink: 0;
}

.announcement-link {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
}

/* Sticky Navbar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-emblem {
  border-radius: 12px;
  border: 1px solid rgba(184, 82, 20, 0.45);
  background: #FFFFFF;
  object-fit: cover;
}

.brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-weight: 800;
  font-size: 1.08rem;
}

.brand-name small {
  font-weight: 600;
  color: var(--copper);
  font-size: 0.82rem;
}

.brand-domain {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--copper);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.84rem;
}

.icon-btn:hover {
  border-color: var(--copper);
}

.mobile-only {
  display: none;
}

.mobile-drawer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

@media (min-width: 981px) {
  .mobile-drawer {
    display: none !important;
  }
}

.mobile-drawer a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.mobile-drawer a:hover {
  background: var(--surface-alt);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.14s ease, background-color 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

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

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn-lg {
  min-height: 50px;
  padding: 12px 20px;
  font-size: 0.96rem;
}

.btn-block {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
}

.btn-primary {
  background: var(--copper);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--copper-hover);
}

.btn-secondary {
  background: var(--teal);
  color: #FFFFFF;
}

.btn-secondary:hover {
  filter: brightness(0.92);
}

.btn-emerald {
  background: var(--emerald);
  color: #FFFFFF;
}

.btn-emerald:hover {
  filter: brightness(0.92);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
}

/* Exact App Header Banner Card */
.hero-section {
  padding-block: 26px 48px;
}

.app-header-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(184, 82, 20, 0.65);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 28px;
}

.app-header-corner-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.studio-pill-copper {
  background: #FFEDE0;
  color: #9C430E;
  border: 1px solid rgba(184, 82, 20, 0.35);
}

.studio-pill-slate {
  background: #F1F5F9;
  color: #1E293B;
  font-family: "JetBrains Mono", monospace;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #15803D;
}

.app-header-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 16px 12px;
  background: #FFFFFF;
}

.app-header-banner-img {
  width: 100%;
  max-width: 720px;
  max-height: 290px;
  object-fit: contain;
}

.app-header-bottom-strip {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 18px;
  font-size: 0.88rem;
}

.app-header-bottom-strip strong {
  color: #FDE68A;
}

.strip-sep {
  color: #64748B;
}

/* Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

.eyebrow-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--copper-soft);
  color: var(--copper);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.eyebrow-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.eyebrow-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.35;
}

.hero-lead {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.metric-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-num {
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--copper);
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Phone Showcase */
.phone-showcase-card {
  background: var(--surface);
  border: 1.5px solid rgba(184, 82, 20, 0.45);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.phone-tab {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}

.phone-tab.active {
  background: var(--copper);
  color: #FFFFFF;
  border-color: var(--copper);
}

.phone-screen-body {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-banner {
  background: linear-gradient(135deg, #0F172A, #7C2D12);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 12px 14px;
}

.mock-banner strong {
  display: block;
  font-size: 0.96rem;
}

.mock-banner small {
  color: #FDE68A;
  font-size: 0.78rem;
}

.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.mock-kpi b {
  display: block;
  font-size: 1.15rem;
  color: var(--copper);
}

.mock-kpi span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.mock-list-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.mock-badge {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--emerald-soft);
  color: var(--emerald);
}

/* Sections */
.section {
  padding-block: 54px;
}

.tools-section, .pricing-section, .faq-section {
  background: color-mix(in srgb, var(--surface-alt) 48%, transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 900;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Online Calculators */
.calc-shell {
  background: var(--surface);
  border: 1.5px solid rgba(14, 116, 144, 0.45);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.calc-tab {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.calc-tab.active {
  background: var(--teal);
  color: #FFFFFF;
  border-color: var(--teal);
}

.calc-panel {
  padding: 22px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field-group label {
  font-size: 0.86rem;
  font-weight: 700;
}

.field-group input, .field-group select {
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.96rem;
}

.field-group input:focus, .field-group select:focus {
  outline: 2px solid var(--teal);
  border-color: var(--teal);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  cursor: pointer;
}

.chip-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.calc-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.res-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.res-box-highlight {
  grid-column: span 2;
  background: var(--copper-soft);
  border-color: rgba(184, 82, 20, 0.45);
}

.res-box small {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.res-box strong {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text);
}

.calc-footer-banner {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.feature-card-wide {
  grid-column: span 3;
}

.feature-wide-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  align-items: stretch;
}

.feature-media {
  position: relative;
  height: 210px;
  background: #0F172A;
  overflow: hidden;
}

.seal-side-media {
  height: auto;
  min-height: 260px;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.84);
  color: #FDE68A;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.diagram-preview-box {
  background: #0F172A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.diagram-controls {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.diagram-controls label {
  font-size: 0.72rem;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(30, 41, 59, 0.9);
  padding: 3px 6px;
  border-radius: 8px;
}

.diagram-controls select {
  background: transparent;
  color: #FDE68A;
  border: none;
  font-weight: 700;
  font-size: 0.74rem;
}

.stator-svg {
  width: 165px;
  height: 165px;
}

.feature-body {
  padding: 18px;
}

.feature-body h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  font-weight: 800;
}

.feature-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pill-inline {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.check-list {
  margin: 12px 0 0;
  padding-inline-start: 18px;
  color: var(--text);
  font-size: 0.9rem;
}

.check-list li + li {
  margin-top: 6px;
}

/* Pricing */
.pricing-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.cycle-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.cycle-btn {
  min-height: 42px;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.cycle-btn.active {
  background: var(--copper);
  color: #FFFFFF;
}

.referral-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.referral-box label {
  font-size: 0.88rem;
  font-weight: 700;
}

.referral-box input {
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1.2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-width: 220px;
}

.discount-banner {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(21, 128, 61, 0.45);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.plan-card-featured {
  border: 2px solid var(--copper);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.badge-neutral {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.badge-copper {
  background: var(--copper-soft);
  color: var(--copper);
}

.badge-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.plan-top h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 800;
}

.plan-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.plan-price {
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding-block: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.price-strike {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-main {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--copper);
}

.price-cycle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  flex: 1;
}

.activation-explain-card {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.activation-explain-card h3 {
  margin: 0 0 14px;
  font-size: 1.06rem;
  font-weight: 800;
}

.activation-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.act-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--copper);
  color: #FFFFFF;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.act-step p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Download Card */
.download-card {
  background: linear-gradient(135deg, #0F172A, #1E3A5F);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1.5px solid rgba(184, 82, 20, 0.55);
  box-shadow: var(--shadow-md);
}

.download-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.download-card p {
  color: #CBD5E1;
  max-width: 780px;
}

.download-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 16px 20px;
}

.meta-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
}

.meta-pill strong {
  color: #FDE68A;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.download-actions .btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.28);
}

.safe-update-note {
  margin: 0;
  font-size: 0.85rem;
  color: #A7F3D0 !important;
}

/* Guide Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 18px;
}

.guide-chapters-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-nav-btn {
  text-align: start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-nav-btn small {
  color: var(--copper);
  font-weight: 800;
}

.guide-nav-btn strong {
  font-size: 0.95rem;
}

.guide-nav-btn.active {
  border-color: var(--copper);
  background: var(--copper-soft);
}

.guide-chapter-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.guide-step-item {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.guide-step-item strong {
  display: block;
  margin-bottom: 4px;
}

.guide-step-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.guide-pro-tip {
  background: var(--amber-soft);
  color: var(--amber);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 840px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: start;
  padding: 16px 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-a {
  padding: 0 18px 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Support */
.support-card {
  background: var(--surface);
  border: 1.5px solid rgba(14, 116, 144, 0.45);
  border-radius: var(--radius-xl);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.support-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.support-emblem {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #FFFFFF;
}

.support-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.channel-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.channel-tile:hover {
  border-color: var(--copper);
}

.channel-icon {
  font-size: 1.4rem;
}

.channel-tile strong {
  display: block;
  font-size: 0.9rem;
}

.channel-tile span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 26px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  border-radius: 10px;
}

.footer-brand small {
  display: block;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.modal-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-summary-box {
  background: var(--copper-soft);
  border: 1px solid rgba(184, 82, 20, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bank-card-box {
  background: var(--emerald-soft);
  border: 1px solid rgba(21, 128, 61, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
}

.bank-card-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.bank-card-number-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bank-card-number-row .mono {
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-actions-grid button:last-child {
  grid-column: span 2;
}

.modal-helper-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Toast */
.toast-box {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 980px) {
  .nav-links, .nav-hide-sm {
    display: none;
  }
  .mobile-only {
    display: inline-flex;
  }
  .hero-grid,
  .calc-grid,
  .features-grid,
  .feature-wide-grid,
  .pricing-grid,
  .activation-steps,
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .feature-card-wide {
    grid-column: span 1;
  }
  .support-channels-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-metrics-bar,
  .calc-results,
  .field-row,
  .support-channels-grid,
  .modal-actions-grid {
    grid-template-columns: 1fr;
  }
  .res-box-highlight,
  .modal-actions-grid button:last-child {
    grid-column: span 1;
  }
  .theme-label, .strip-sep {
    display: none;
  }
  .app-header-bottom-strip {
    justify-content: flex-start;
    font-size: 0.8rem;
  }
  .support-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
