:root {
    /* Brand + accent */
    --brand: #C75B12;
    --brand-surface: #F4E6C8;
    --brand-contrast: #1F1308;
    --tint: #C75B12;
  
    /* Base surfaces */
    --bg: #FAF7F0;
    --surface: #FFFFFF;
    --surface-muted: #F4E6C8;
    --surface-elevated: #F8EFE0;
  
    /* Text */
    --text: #201D19;
    --text-muted: #6B6F76;
    --text-subtle: #868B92;
    --text-on-brand: #1F1308;
  
    /* Borders */
    --border: rgba(46, 40, 35, 0.12);
    --border-strong: rgba(46, 40, 35, 0.2);
  
    /* Feedback */
    --success: #0F9D58;
    --warning: #B45309;
    --error: #C92A2A;
    --info: #0A7EA4;
    --positive-text: #047857;
    --negative-text: #B91C1C;
  
    /* Buttons */
    --btn-primary-bg: #C75B12;
    --btn-primary-text: #1F1308;
    --btn-primary-bg-pressed: #AD4C0F;
    --btn-secondary-bg: #F4E6C8;
    --btn-secondary-text: #C75B12;
    --btn-secondary-bg-pressed: #E8D7B5;
    --btn-danger-bg: #C92A2A;
    --btn-danger-bg-pressed: #A61B1B;
    --btn-danger-text: #FFFFFF;
  
    /* Inputs */
    --input-bg: #FFFFFF;
    --input-border: rgba(46, 40, 35, 0.16);
    --input-placeholder: #9CA3AF;
  
    /* Charts */
    --chart-line: #C75B12;
    --chart-fill-1: rgba(199, 91, 18, 0.25);
    --chart-fill-2: rgba(199, 91, 18, 0.12);
    --chart-fill-3: rgba(199, 91, 18, 0.04);
  
    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-xxl: 32px;
  
    /* Radii */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
  
    /* Typography */
    --font-display: "Shonen", sans-serif;
    --font-heading: "Shonen", sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body-bold: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-md: 16px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-display: 34px;
    --font-size-hero: 40px;
    --line-height-xs: 16px;
    --line-height-sm: 20px;
    --line-height-md: 24px;
    --line-height-lg: 28px;
    --line-height-xl: 32px;
    --line-height-display: 40px;
    --line-height-hero: 44px;
  }
  
  [data-theme="dark"] {
    --brand: #FF9240;
    --brand-surface: #3C2C20;
    --brand-contrast: #FCEEDB;
    --tint: #FF9240;
  
    --bg: #14100D;
    --surface: #1D1814;
    --surface-muted: #3C2C20;
    --surface-elevated: #26201B;
  
    --text: #F5F1EA;
    --text-muted: #C3B8AD;
    --text-subtle: #A69788;
    --text-on-brand: #200C03;
  
    --border: rgba(245, 241, 234, 0.12);
    --border-strong: rgba(245, 241, 234, 0.22);
  
    --success: #34D399;
    --warning: #FBBF24;
    --error: #F87171;
    --info: #4CC7EB;
    --positive-text: #34D399;
    --negative-text: #F87171;
  
    --btn-primary-bg: #FF9240;
    --btn-primary-text: #1C0A02;
    --btn-primary-bg-pressed: #F47C26;
    --btn-secondary-bg: #2F241B;
    --btn-secondary-text: #FF9240;
    --btn-secondary-bg-pressed: #3A2D21;
    --btn-danger-bg: #EF4444;
    --btn-danger-bg-pressed: #DC2626;
    --btn-danger-text: #1F0A0A;
  
    --input-bg: #26201B;
    --input-border: rgba(245, 241, 234, 0.18);
    --input-placeholder: #9CA3AF;
  
    --chart-line: #FF9240;
    --chart-fill-1: rgba(255, 146, 64, 0.28);
    --chart-fill-2: rgba(255, 146, 64, 0.18);
    --chart-fill-3: rgba(255, 146, 64, 0.08);
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }
  
  html {
    font-size: 100%;
  }
  
  body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: var(--line-height-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 200ms ease, color 200ms ease;
    padding: clamp(var(--space-md), 3vw, var(--space-xl)) 0;
  }
  
  body::selection {
    background: var(--brand-surface);
    color: var(--brand-contrast);
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
    padding-bottom: clamp(48px, 8vw, 128px);
    width: 100%;
  }
  
  footer {
    flex-shrink: 0;
  }
  
  .page {
    width: min(1080px, calc(100% - clamp(24px, 6vw, 96px)));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(48px, 6vw, 96px);
    flex: 1 0 auto;
  }
  
  .header {
    width: min(980px, 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(var(--space-md), 4vw, var(--space-xxl));
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  
  .brand img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 24px rgba(31, 19, 8, 0.14);
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(var(--space-md), 3vw, var(--space-xl));
    font-size: var(--font-size-sm);
  }
  
  .nav a {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid transparent;
  }
  
  .nav a:hover {
    background: var(--surface);
    border-color: var(--border);
    text-decoration: none;
  }
  
 .hero {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 96px);
    align-items: center;
  }
  
  .hero__content {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3.5vw, 36px);
  }
  
  .hero__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(199, 91, 18, 0.16);
    color: var(--brand);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    width: fit-content;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  
  .hero__title {
    font-family: var(--font-display);
    font-size: clamp(42px, 4.8vw + 1rem, 68px);
    line-height: clamp(46px, 5vw + 1rem, 74px);
    color: var(--brand-contrast);
    margin: 0;
  }
  
  .hero__description {
    margin: 0;
    font-size: clamp(var(--font-size-md), 1.5vw, 21px);
    color: var(--text);
    max-width: 500px;
  }
  
  .hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(var(--space-md), 2.5vw, var(--space-xl));
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
    text-decoration: none;
  }
  
  .btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: 0 20px 36px rgba(199, 91, 18, 0.32);
  }
  
  .btn-primary:hover {
    background: var(--btn-primary-bg-pressed);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border-color: rgba(199, 91, 18, 0.16);
  }
  
  .btn-secondary:hover {
    background: var(--btn-secondary-bg-pressed);
    transform: translateY(-2px);
  }
  
  .hero__media {
    display: flex;
    justify-content: center;
  }
  
  .app-mock {
    width: min(360px, 100%);
    border-radius: calc(var(--radius-xl) * 1.4);
    padding: clamp(var(--space-xxl), 5vw, 64px);
    background: linear-gradient(180deg, rgba(244, 230, 200, 0.16), rgba(255, 188, 124, 0.12));
    border: 1px solid rgba(199, 91, 18, 0.18);
    box-shadow: 0 32px 60px rgba(15, 8, 4, 0.42);
    display: flex;
    flex-direction: column;
    gap: clamp(var(--space-lg), 3vw, 36px);
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .app-mock.squared {
    width: min(360px, 100%);
    aspect-ratio: 1 / 1;
    padding: clamp(var(--space-xl), 6vw, 56px);
    justify-content: center;
    gap: clamp(var(--space-lg), 4vw, 48px);
  }
  
  .app-mock img {
    width: clamp(200px, 30vw, 240px);
    height: clamp(200px, 30vw, 240px);
    border-radius: 24%;
    box-shadow: 0 28px 52px rgba(31, 19, 8, 0.48);
  }
  
  .store-links {
    display: flex;
    flex-direction: row;
    gap: clamp(var(--space-xs), 1vw, 12px);
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 340px; /* Limit width to ensure side by side on small screens */
    margin-left: auto;
    margin-right: auto;
  }

  .store-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-xxs, 2px);
    padding: 0.65rem 1.05rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(31, 19, 8, 0.24);
    color: var(--text);
    font-size: calc(var(--font-size-sm) * 0.93);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
    min-width: 110px;
    max-width: 140px;
    flex: 1 1 45%;
    box-sizing: border-box;
  }
  
  .store-links a span {
    opacity: 0.64;
    font-weight: var(--font-weight-regular);
  }
  
  .store-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 146, 64, 0.42);
    background: rgba(199, 91, 18, 0.28);
    text-decoration: none;
  }
  
  .app-mock span {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
    text-align: center;
  }
  
  .screens {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 56px);
    margin: 0 auto;
  }
  
.screen-card {
   background: rgba(36, 27, 20, 0.78);
   border-radius: calc(var(--radius-xl) * 1.1);
   border: 1px solid rgba(255, 255, 255, 0.05);
   box-shadow: 0 28px 52px rgba(10, 6, 3, 0.42);
   overflow: hidden;
   display: flex;
   flex-direction: column;
    gap: clamp(var(--space-md), 2vw, var(--space-lg));
   padding: clamp(20px, 2.5vw, 32px);
   align-items: center;
 }
 
 .screen-card__title {
    margin: 0;
    font-size: clamp(var(--font-size-lg), 1.6vw, 24px);
    color: var(--brand-contrast);
  }

  .screen-card__media {
    border-radius: calc(var(--radius-lg) * 1.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 32px rgba(10, 6, 3, 0.38);
    aspect-ratio: 9 / 18;
    display: flex;
    width: clamp(180px, 80%, 260px);
  }
  
  .screen-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translateY(-4px); /* Move image up a couple pixels */
  }
  
  .features {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 64px);
    margin: 0 auto;
  }
  
  .feature-card {
    background: rgba(36, 27, 20, 0.72);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 3vw, 48px);
    box-shadow: 0 24px 42px rgba(10, 6, 3, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .feature-card h3 {
    margin: 0;
    font-size: clamp(var(--font-size-lg), 1.8vw, 26px);
    color: var(--brand-contrast);
  }
  
  .feature-card p {
    margin: 0;
    font-size: clamp(var(--font-size-sm), 1.5vw, 18px);
    color: rgba(245, 241, 234, 0.72);
  }
  
  .footer {
    width: 100%;
    background: rgba(20, 16, 13, 0.92);
    padding: var(--space-xl) clamp(var(--space-lg), 6vw, 120px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .footer__inner {
    width: min(980px, 100%);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: rgba(245, 241, 234, 0.64);
  }
  
  .section {
    width: min(820px, 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(var(--space-lg), 3vw, var(--space-xxl));
    margin: 0 auto;
  }
  
  .section h1,
  .section h2,
  .section h3 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--brand-contrast);
  }
  
  .section h1 {
    font-size: clamp(40px, 3vw + 1rem, 56px);
    line-height: clamp(44px, 3vw + 1.2rem, 64px);
  }
  
  .section h2 {
    font-size: var(--font-size-xl);
  }
  
  .section p {
    margin: 0;
    font-size: clamp(var(--font-size-md), 1.5vw, 20px);
    color: rgba(245, 241, 234, 0.72);
  }
  
  .section ul {
    margin: 0;
    padding-left: 1.2rem;
    color: rgba(245, 241, 234, 0.72);
    font-size: clamp(var(--font-size-md), 1.4vw, 18px);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .section a {
    color: var(--brand);
    font-weight: var(--font-weight-semibold);
  }
  
  .card {
    background: rgba(36, 27, 20, 0.78);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(32px, 4vw, 56px);
    box-shadow: 0 26px 48px rgba(10, 6, 3, 0.45);
    display: flex;
    flex-direction: column;
    gap: clamp(var(--space-md), 3vw, var(--space-xl));
    width: 100%;
  }
  
  .card--center {
    align-items: center;
    text-align: center;
    gap: clamp(var(--space-lg), 3vw, 36px);
  }
  
  .card--center .btn {
    align-self: center;
    min-width: min(240px, 100%);
  }
  
  .pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    background: var(--surface-muted);
    color: var(--brand-contrast);
    font-size: var(--font-size-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
  }
  
  .legal-list {
    display: flex;
    flex-direction: column;
    gap: clamp(var(--space-md), 3vw, var(--space-xl));
  }

  .legal-list strong {
    color: var(--brand-contrast);
  }

  .legal {
    width: min(900px, calc(100% - clamp(32px, 8vw, 160px)));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(var(--space-lg), 4vw, 56px);
  }

  .legal__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(var(--space-sm), 2vw, var(--space-lg));
  }

  .legal__intro h1 {
    font-size: clamp(32px, 3vw + 1rem, 52px);
    line-height: clamp(36px, 3vw + 1.1rem, 60px);
  }

  .legal__muted {
    color: rgba(245, 241, 234, 0.6);
    font-size: clamp(var(--font-size-sm), 1.2vw, 16px);
  }

  .legal__section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(var(--space-sm), 2vw, var(--space-lg));
    padding: clamp(var(--space-md), 2.2vw, 32px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .legal__section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }

  .legal__section h2 {
    font-size: clamp(22px, 1.8vw, 28px);
    color: var(--brand-contrast);
    margin: 0;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-indent: 0;
    align-self: flex-start;
  }

  .legal__section p,
  .legal__section li {
    color: rgba(245, 241, 234, 0.74);
    font-size: clamp(var(--font-size-sm), 1.35vw, 18px);
    line-height: 1.6;
    margin: 0;
  }

  .legal__section ul,
  .legal__section ol {
    margin: 0;
    padding-left: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .legal__footer {
    margin-top: clamp(var(--space-md), 3vw, 40px);
    font-size: clamp(var(--font-size-xs), 1vw, 14px);
    color: rgba(245, 241, 234, 0.6);
  }
  
  @media (max-width: 960px) {
    body {
      padding: var(--space-xl) 0;
    }
  
    .page {
      width: calc(100% - clamp(24px, 8vw, 64px));
      gap: clamp(var(--space-xl), 8vw, 96px);
    }
  
    .header {
      flex-direction: column;
      gap: var(--space-md);
      text-align: center;
    }
  
    .nav {
      flex-wrap: wrap;
      justify-content: center;
      gap: var(--space-sm);
    }
  
    .hero {
      grid-template-columns: 1fr;
      text-align: center;
      gap: clamp(36px, 7vw, 64px);
    }
  
    .hero__content {
      align-items: center;
    }
  
    .hero__tag {
      margin-left: auto;
      margin-right: auto;
    }
  
    .hero__description {
      max-width: 100%;
    }
  
    .hero__cta {
      justify-content: center;
    }
  
    .app-mock {
      padding: clamp(var(--space-xl), 10vw, 60px);
    }
  
    .store-links {
      flex-direction: column;
    }
  
    .screens {
      grid-template-columns: 1fr;
      width: 100%;
    }
  
    .features {
      width: 100%;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
  }
  
  @media (max-width: 540px) {
    .store-links a {
      width: 100%;
    }
  }
  
  .support-page main {
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
  }
  
  .support-page .section {
    gap: clamp(var(--space-sm), 2vw, var(--space-lg));
    text-align: center;
  }

  .support-contact-btn {
    align-self: center;
    min-width: min(220px, 100%);
  }

  .social-cta {
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .social-cta h2 {
    color: var(--brand-contrast);
    margin: 0;
  }

  .social-cta p {
    margin: 0;
    color: rgba(245, 241, 234, 0.8);
  }

  /* Ensure social CTA button text is solid black and stays visible */
  .social-cta .btn {
    color: #000;
  }

  .social-cta .btn:hover {
    color: #000;
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      color-scheme: dark;
    }
  
    body {
      background: var(--bg);
      color: var(--text);
    }
  
    .feature-card,
    .card {
      box-shadow: 0 32px 60px rgba(6, 3, 2, 0.6);
    }
  }
  
