/* ============================================================
   SAVESMART USA — STYLE.CSS
   Design: Friendly/practical guide aesthetic
   Fonts: Instrument Serif (display) + Plus Jakarta Sans (body)
   Palette: Green-forward (money/savings) with warm accents
   ============================================================ */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* LIGHT MODE — Green/money palette */
  --color-bg:             #f5f7f5;
  --color-surface:        #f8faf8;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #edf1ed;
  --color-surface-offset-2: #e4ebe4;
  --color-surface-dynamic: #dce6dc;
  --color-divider:        #d0dcd0;
  --color-border:         #c4d4c4;

  --color-text:           #1a2b1a;
  --color-text-muted:     #5a7060;
  --color-text-faint:     #98b09a;
  --color-text-inverse:   #f5f7f5;

  --color-primary:        #2d6a2d;
  --color-primary-hover:  #1e5020;
  --color-primary-active: #143716;
  --color-primary-highlight: #d0e8d0;
  --color-primary-subtle: #e8f3e8;

  --color-gold:           #c98a00;
  --color-gold-highlight: #f5e9c8;

  --color-accent:         #1a7a6e;
  --color-accent-hover:   #125c52;
  --color-accent-highlight: #c8e8e4;

  --color-success:        #2e7d32;
  --color-success-highlight: #c8e6c9;

  --color-warning:        #b8620c;
  --color-warning-highlight: #ffe0b2;

  --color-error:          #c62828;
  --color-error-highlight: #ffcdd2;

  --shadow-sm: 0 1px 3px rgba(26, 43, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 43, 26, 0.09);
  --shadow-lg: 0 12px 32px rgba(26, 43, 26, 0.12);
  --shadow-xl: 0 24px 48px rgba(26, 43, 26, 0.14);
}

[data-theme="dark"] {
  --color-bg:             #131a13;
  --color-surface:        #182018;
  --color-surface-2:      #1d271d;
  --color-surface-offset: #1a231a;
  --color-surface-offset-2: #1f2a1f;
  --color-surface-dynamic: #283028;
  --color-divider:        #243024;
  --color-border:         #334433;

  --color-text:           #c8d8c8;
  --color-text-muted:     #6e8c6e;
  --color-text-faint:     #4a644a;
  --color-text-inverse:   #1a2b1a;

  --color-primary:        #5aab5a;
  --color-primary-hover:  #3d923d;
  --color-primary-active: #2a7a2a;
  --color-primary-highlight: #1e3c1e;
  --color-primary-subtle: #192619;

  --color-gold:           #f0a830;
  --color-gold-highlight: #3a2e14;

  --color-accent:         #3dbdb0;
  --color-accent-hover:   #2a9d92;
  --color-accent-highlight: #1a3532;

  --color-success:        #5aab5a;
  --color-success-highlight: #1e3c1e;

  --color-warning:        #e88c3a;
  --color-warning-highlight: #3c2414;

  --color-error:          #e85555;
  --color-error-highlight: #3c1414;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #131a13;
    --color-surface:        #182018;
    --color-surface-2:      #1d271d;
    --color-surface-offset: #1a231a;
    --color-surface-offset-2: #1f2a1f;
    --color-surface-dynamic: #283028;
    --color-divider:        #243024;
    --color-border:         #334433;
    --color-text:           #c8d8c8;
    --color-text-muted:     #6e8c6e;
    --color-text-faint:     #4a644a;
    --color-text-inverse:   #1a2b1a;
    --color-primary:        #5aab5a;
    --color-primary-hover:  #3d923d;
    --color-primary-active: #2a7a2a;
    --color-primary-highlight: #1e3c1e;
    --color-primary-subtle: #192619;
    --color-gold:           #f0a830;
    --color-gold-highlight: #3a2e14;
    --color-accent:         #3dbdb0;
    --color-accent-hover:   #2a9d92;
    --color-accent-highlight: #1a3532;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ---- BASE RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.15; }
p, li, figcaption { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }

::selection {
  background: color-mix(in srgb, var(--color-primary) 25%, transparent);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover { color: var(--color-primary-hover); }

a, button, [role="button"] {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              opacity var(--transition-interactive);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- LAYOUT UTILITIES ---- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
}
.container.narrow {
  max-width: var(--content-narrow);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.4rem var(--space-4);
  font-size: var(--text-xs);
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.2s ease, background 0.25s ease;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-3) clamp(var(--space-4), 5vw, var(--space-12));
  max-width: var(--content-wide);
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
  margin-left: var(--space-4);
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover {
  color: var(--color-primary);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset-2);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  background: none;
  border: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: var(--space-4) clamp(var(--space-4), 5vw, var(--space-12));
  border-top: 1px solid var(--color-divider);
  gap: var(--space-3);
  background: var(--color-bg);
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--color-primary); }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding-block: clamp(var(--space-16), 12vw, var(--space-32));
  background: linear-gradient(160deg,
    var(--color-primary-subtle) 0%,
    var(--color-bg) 50%,
    var(--color-accent-highlight) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 8%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 5vw, var(--space-12));
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-text);
  font-style: normal;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero-title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.hero-actions .btn { font-size: var(--text-base); padding: 0.75rem var(--space-6); }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-divider);
}

.hero-scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-faint);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- SECTIONS ---- */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section:nth-of-type(even) {
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.65;
}

/* ---- HOW IT WORKS ---- */
.layers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.layer-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.layer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.layer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.layer-1::before { background: var(--color-primary); }
.layer-2::before { background: var(--color-accent); }
.layer-3::before { background: var(--color-gold); }

.layer-number {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-display);
  font-size: 4rem;
  font-style: italic;
  color: var(--color-text-faint);
  line-height: 1;
  opacity: 0.4;
}

.layer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.layer-2 .layer-icon { background: var(--color-accent-highlight); color: var(--color-accent); }
.layer-3 .layer-icon { background: var(--color-gold-highlight); color: var(--color-gold); }

.layer-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.layer-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.layer-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
}

.example-callout {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--color-gold-highlight), var(--color-primary-highlight));
  border: 1px solid color-mix(in srgb, var(--color-gold) 30%, transparent);
  border-radius: var(--radius-xl);
}

.example-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.example-content {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.example-content strong { color: var(--color-text); }

/* ---- APP CARDS ---- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.app-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-card.featured {
  border-color: var(--color-primary);
  border-width: 2px;
  background: linear-gradient(145deg, var(--color-primary-subtle), var(--color-surface-2));
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.app-logo-wrap {
  flex-shrink: 0;
}

.app-logo-wrap svg, .app-logo-wrap img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
}

.app-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.app-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.app-bonus {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-gold);
  background: var(--color-gold-highlight);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  white-space: normal;
  flex-shrink: 0;
  max-width: 140px;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.3;
}

.app-body {
  flex: 1;
}

.app-body > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.app-body > p strong { color: var(--color-text); }

.app-tips {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.tip-item svg {
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 2px;
}

.app-how {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.app-how h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.app-how ol {
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.app-how li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.app-how li strong { color: var(--color-text); }

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.referral-block {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.referral-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

.referral-code {
  font-family: 'Courier New', monospace;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: 2px var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.referral-code:hover {
  background: color-mix(in srgb, var(--color-primary) 15%, transparent);
  transform: scale(1.03);
}

.copy-hint {
  font-size: 0.68rem;
  color: var(--color-text-faint);
  font-style: italic;
}

.referral-url {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: monospace;
}

/* ---- GIFT CARD SECTION ---- */
.concept-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}

.concept-box h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.concept-box p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}
.concept-box p:last-child { margin-bottom: 0; }

.giftcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.giftcard-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.giftcard-card.featured {
  border-color: var(--color-accent);
  border-width: 2px;
  background: linear-gradient(145deg, var(--color-accent-highlight), var(--color-surface-2));
}

.giftcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.giftcard-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.giftcard-card > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.giftcard-examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.example-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-highlight);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in srgb, var(--color-accent) 20%, transparent);
}

.tip-banner {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: var(--color-accent-highlight);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: var(--radius-xl);
  color: var(--color-text-muted);
}

.tip-banner svg { flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.tip-banner p { font-size: var(--text-sm); line-height: 1.65; }
.tip-banner strong { color: var(--color-text); }

/* ---- CREDIT CARDS ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.credit-card-item {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.credit-card-item.featured {
  border-color: var(--color-primary);
  border-width: 2px;
}

.cc-top {
  display: flex;
  justify-content: center;
}

.cc-visual {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1.586 / 1;
  background: linear-gradient(135deg, #1a5c1a, #2d8a2d, #1a7a6e);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cc-visual::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cc-visual.chase {
  background: linear-gradient(135deg, #12437a, #1a6bb5, #0d4d94);
}

.cc-chip {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg, #d4a843, #f0c060);
  border-radius: var(--radius-sm);
}

.cc-brand {
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-end;
}

.cc-number {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.12em;
  font-family: 'Courier New', monospace;
}

.cc-body {
  flex: 1;
}

.cc-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.cc-highlight {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: var(--space-4);
}

.cc-body > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.cc-body > p strong { color: var(--color-text); }

.cc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.cc-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.cc-features li svg {
  flex-shrink: 0;
  color: var(--color-success);
  margin-top: 3px;
}

.cc-advice {
  font-size: var(--text-xs);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.cc-advice strong { color: var(--color-text); }

.credit-warning {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5) var(--space-6);
  background: var(--color-warning-highlight);
  border: 1px solid color-mix(in srgb, var(--color-warning) 30%, transparent);
  border-radius: var(--radius-xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.credit-warning svg { flex-shrink: 0; color: var(--color-warning); margin-top: 2px; }
.credit-warning strong { color: var(--color-text); }

/* ---- CELL SECTION ---- */
.cell-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 680px) {
  .cell-card {
    grid-template-columns: 1fr;
  }
}

.cell-logo {
  margin-bottom: var(--space-4);
}

.cell-card-left h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.cell-card-left .app-badge {
  margin-bottom: var(--space-4);
  display: inline-block;
}

.cell-card-left p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-3);
}

.cell-how {
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.cell-how h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.cell-how ol {
  padding-left: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cell-how li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

.cell-referral {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cell-referral > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.referral-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  font-family: monospace;
}

/* ---- STRATEGY SECTION ---- */
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-10);
  align-items: flex-start;
}

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

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.workflow-step {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: box-shadow 0.2s ease;
}

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

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: 50%;
}

.step-body h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.strategy-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--space-20) + var(--space-4));
}

.savings-card {
  background: var(--color-surface-2);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.savings-card h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.savings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}

.savings-row:last-of-type { border-bottom: none; }

.savings-num {
  font-weight: 700;
  color: var(--color-primary);
}

.savings-divider {
  height: 2px;
  background: var(--color-border);
  margin-block: var(--space-3);
}

.savings-row.total {
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  padding-top: var(--space-3);
}

.savings-row.total .savings-num {
  font-size: var(--text-lg);
}

.savings-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
  line-height: 1.5;
}

.priority-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
}

.priority-box h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-5);
  list-style: decimal;
}

.priority-list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.priority-list li strong { color: var(--color-text); }

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question:hover {
  background: var(--color-surface-offset);
  color: var(--color-primary);
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--color-text-muted);
}

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  border-top: 1px solid var(--color-divider);
}

.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-top: var(--space-4);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 38ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.footer-links a:hover { color: var(--color-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a:hover { color: var(--color-primary); }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--color-text);
  color: var(--color-bg);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- LANGUAGE TOGGLE ---- */
.header-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background var(--transition-interactive), color var(--transition-interactive), border-color var(--transition-interactive);
  white-space: nowrap;
}

.lang-toggle:hover {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
}

.lang-toggle.active-ru {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border-color: var(--color-primary);
}

/* Lang transition — fade on language switch */
body.lang-switching * {
  transition: opacity 0.15s ease !important;
  opacity: 0.5;
}
