/* ===== tokens/colors.css ===== */
/* CreateFiles+ — color tokens
   Source: website/public/styles.css + macOS app (SwiftUI, system accent blue) */

:root {
  /* ---- Base palette (website) ---- */
  --bg: #ffffff;
  --text: #0d1220;
  --text-strong: #111827;
  --text-nav: #222b39;
  --text-caption: #344054;
  --text-legal: #3f4652;
  --muted: #556070;
  --soft: #f7faff;
  --soft-blue: #eef6ff;
  --line: #dce4ee;
  --line-strong: #bdc8d6;
  --accent: #0866ff;
  --accent-dark: #0451d8;
  --accent-soft: #e8f1ff;
  --graphite: #15181d;

  /* ---- Semantic aliases (website) ---- */
  --surface-page: var(--bg);
  --surface-soft: var(--soft);
  --surface-tint: var(--soft-blue);
  --surface-toast: var(--graphite);
  --text-body: var(--text);
  --text-muted: var(--muted);
  --border-default: var(--line);
  --border-strong: var(--line-strong);
  --link-hover: var(--accent);
  --focus-ring: rgba(8, 102, 255, 0.25);

  /* ---- Gradients (only blue-tinted verticals are on-brand) ---- */
  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #ffffff 72%, #f5faff 100%); /* @kind color */
  --gradient-section: linear-gradient(180deg, var(--soft-blue), #f7fbff);
  --gradient-features: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); /* @kind color */
  --gradient-pricing: linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%); /* @kind color */
  --gradient-legal: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);

  /* ---- macOS app palette (native SwiftUI, light appearance) ---- */
  --mac-accent: #0a7cff;                       /* system blue tint */
  --mac-accent-soft: rgba(10, 124, 255, 0.12); /* file-type icon chip bg */
  --mac-window: #ffffff;
  --mac-panel: #ececec;                        /* .regularMaterial approximation */
  --mac-card: #e9e9e9;                         /* settings group boxes */
  --mac-control: #e3e3e3;                      /* secondary buttons, segmented track */
  --mac-tile: rgba(255, 255, 255, 0.78);       /* quick-create tiles */
  --mac-text: #1d1d1f;
  --mac-text-secondary: #6e6e73;
  --mac-text-tertiary: #9b9ba0;
  --mac-separator: rgba(0, 0, 0, 0.12);
  --mac-destructive: #e53935;                  /* uninstall trash red */
}

@media (max-width: 720px) {
  html,
  body,
  #root,
  main,
  section {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .ga-header {
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    padding: 12px !important;
  }

  .ga-header > a:first-child {
    flex: 1 1 100% !important;
    justify-content: center !important;
  }

  .ga-primary-nav {
    flex: 1 1 100% !important;
    gap: 18px !important;
    justify-content: center !important;
    max-width: 100% !important;
  }

  .ga-primary-nav .ga-nav-link {
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  .ga-header > .ga-btn {
    display: none !important;
  }

  .ga-hero-actions {
    align-items: center !important;
    flex-wrap: wrap !important;
  }

  .ga-hero-actions .ga-btn {
    flex: 0 0 auto !important;
    min-width: 220px !important;
    white-space: nowrap !important;
  }

  .rd-quick-create-demo {
    max-width: calc(100vw - 40px) !important;
  }
}


/* ===== tokens/typography.css ===== */
/* CreateFiles+ — typography tokens
   Primary face: Geist (variable 100–900, OFL — fonts/Geist-Variable.woff2), a close
   SF Pro analogue so the brand renders identically off-Apple. SF-style system faces
   remain in the fallback stack. Weights are variable-axis values (560, 620, 730, 820 …). */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  /* ---- Weights (Geist variable axis) ---- */
  --weight-regular: 400;
  --weight-medium: 560;
  --weight-semibold: 620;
  --weight-strong: 650;
  --weight-bold: 730;
  --weight-heavy: 770;
  --weight-display: 820;

  /* ---- Sizes ---- */
  --text-hero: clamp(54px, 6.4vw, 86px);        /* h1, weight 820, lh 1.02 */
  --text-section: clamp(34px, 4.2vw, 56px);     /* h2, weight 800, lh 1.06 */
  --text-legal-title: clamp(44px, 5vw, 72px);   /* legal h1, weight 820, lh 1 */
  --text-lede: clamp(18px, 1.55vw, 22px);       /* hero lede, lh 1.48 */
  --text-card-title: 20px;                      /* h3, weight 770, lh 1.2 */
  --text-body-size: 16px;                       /* body, lh 1.5 */
  --text-small: 15px;                           /* feature copy, buttons */
  --text-caption-size: 14px;                    /* nav links, footers */
  --text-kicker: 12px;                          /* uppercase kickers, weight 820 */

  /* ---- Details ---- */
  --tracking-kicker: 0.15em;   /* the only letter-spacing used; everywhere else 0 */
  --leading-hero: 1.02;
  --leading-section: 1.06;
  --leading-body: 1.5;
  --leading-lede: 1.48;
}


/* ===== tokens/spacing.css ===== */
/* CreateFiles+ — spacing, radii, shadows, motion */

:root {
  /* ---- Corner radii: tight, utilitarian. Never pill buttons. ---- */
  --radius-control: 6px;     /* small controls, toast close */
  --radius-button: 7px;      /* all buttons */
  --radius-card: 8px;        /* icon tiles, toast, brand icon img, mac tiles */
  --radius-mac-panel: 10px;  /* macOS group boxes / panels */

  /* ---- Spacing scale (px) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* ---- Page rhythm ---- */
  --page-pad-x: clamp(20px, 7vw, 118px);     /* every site section */
  --section-pad-y: clamp(72px, 9vw, 118px);

  /* ---- Shadows: large, soft, cool-tinted; no hard edges ---- */
  --shadow: 0 24px 70px rgba(22, 34, 54, 0.14);            /* hero/media */
  --shadow-media: 0 28px 70px rgba(22, 34, 54, 0.12);      /* screenshots */
  --shadow-card: 0 18px 54px rgba(22, 34, 54, 0.10);       /* screen figures */
  --shadow-icon: 0 10px 24px rgba(40, 72, 112, 0.08);      /* icon tiles */
  --shadow-button: 0 14px 28px rgba(8, 102, 255, 0.22);    /* primary CTA */
  --shadow-toast: 0 20px 50px rgba(0, 0, 0, 0.22);         /* graphite toast */
  --shadow-icon-glow: drop-shadow(0 24px 34px rgba(8, 102, 255, 0.18));

  /* ---- Motion: one duration, one curve. No bounces, no springs. ---- */
  --duration: 160ms; /* @kind other */
  --ease: ease; /* @kind other */
  --transition-color: color 160ms ease;
  --transition-button: transform 160ms ease, border-color 160ms ease,
    background 160ms ease, color 160ms ease, box-shadow 160ms ease; /* @kind other */

  /* ---- Control heights ---- */
  --button-height: 50px;
  --button-height-small: 42px;
  --mac-tile-height: 58px;
  --mac-input-height: 34px;
}
