/* Fixby — Marketing Website Styles
   Tokens ported from Fixby Design System */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

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

/* ── Tokens (Light) ── */
:root {
  --brand-50:  #FFF4ED;
  --brand-100: #FFE6D5;
  --brand-200: #FECDAA;
  --brand-300: #FDA974;
  --brand-400: #FB833C;
  --brand-500: #EA580C;
  --brand-600: #C2410C;
  --brand-700: #9A3412;
  --brand-800: #7C2D12;
  --brand-900: #431407;

  --stone-0:   #FFFFFF;
  --stone-50:  #FAFAF9;
  --stone-100: #F5F5F4;
  --stone-200: #E7E5E4;
  --stone-300: #D6D3D1;
  --stone-400: #A8A29E;
  --stone-500: #78716C;
  --stone-600: #57534E;
  --stone-700: #44403C;
  --stone-800: #292524;
  --stone-900: #1C1917;
  --stone-950: #0C0A09;

  --care-500: #0E9F6E;
  --care-600: #0B815A;
  --care-700: #086045;
  --fix-500:  #F59E0B;
  --fix-600:  #D97706;
  --fix-700:  #B45309;
  --safety-500: #DC2626;

  --bg:             var(--stone-50);
  --surface:        var(--stone-0);
  --surface-sunken: var(--stone-100);
  --border:         var(--stone-200);
  --border-strong:  var(--stone-300);
  --text:           var(--stone-900);
  --text-secondary: var(--stone-600);
  --text-tertiary:  var(--stone-500);
  --accent:         var(--brand-500);
  --accent-hover:   var(--brand-600);
  --accent-soft-bg: var(--brand-50);
  --accent-soft-fg: var(--brand-700);

  --care-fg: var(--care-700);
  --care-bg: #E8F6F0;
  --fix-fg:  var(--fix-700);
  --fix-bg:  #FEF5E7;

  --shadow-sm: 0 1px 2px rgba(28,25,23,0.06), 0 1px 3px rgba(28,25,23,0.05);
  --shadow-md: 0 2px 6px rgba(28,25,23,0.06), 0 10px 24px rgba(28,25,23,0.07);
  --shadow-lg: 0 8px 30px rgba(28,25,23,0.12);
  --shadow-xl: 0 20px 48px rgba(28,25,23,0.18);

  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 999px;

  --header-bg: rgba(250,250,249,0.82);
  --header-border: rgba(231,229,228,0.6);

  color-scheme: light;
}

/* ── Tokens (Dark) ── */
[data-theme="dark"] {
  --bg:             var(--stone-950);
  --surface:        var(--stone-900);
  --surface-sunken: #151210;
  --border:         #2C2825;
  --border-strong:  var(--stone-700);
  --text:           var(--stone-50);
  --text-secondary: var(--stone-400);
  --text-tertiary:  var(--stone-500);
  --accent-hover:   var(--brand-400);
  --accent-soft-bg: rgba(234,88,12,0.16);
  --accent-soft-fg: var(--brand-300);

  --care-fg: #4BD0A3;
  --care-bg: rgba(14,159,110,0.15);
  --fix-fg:  #F6BE5B;
  --fix-bg:  rgba(245,158,11,0.15);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 12px 28px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
  --shadow-xl: 0 24px 56px rgba(0,0,0,0.7);

  --header-bg: rgba(12,10,9,0.82);
  --header-border: rgba(44,40,37,0.6);

  color-scheme: dark;
}

/* ── Base ── */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }

/* ── Floating Header ── */
.header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1120px;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--header-border);
  border-radius: var(--r-2xl);
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-full);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--accent-soft-bg); color: var(--accent-soft-fg); }
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.15s;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--accent-soft-bg); }
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--r-md);
}
.mobile-menu a:hover { background: var(--accent-soft-bg); color: var(--accent-soft-fg); }

/* ── Hero ── */
.hero {
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-text h1 .accent { color: var(--accent); }
.hero-text .subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-visual { flex-shrink: 0; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store-badge-link { display: inline-flex; transition: opacity 0.15s; }
.store-badge-link:hover { opacity: 0.85; }
.store-badge-img { height: 44px; width: auto; display: block; }

/* ── Phone Mockup ── */
.phone {
  width: 280px;
  height: 572px;
  border-radius: 36px;
  border: 5px solid var(--stone-800);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-xl);
  flex-shrink: 0;
}
[data-theme="dark"] .phone { border-color: var(--stone-600); }
.phone-notch {
  width: 120px;
  height: 28px;
  background: var(--stone-800);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
[data-theme="dark"] .phone-notch { background: var(--stone-600); }
.phone-screen { padding: 8px 16px; height: calc(100% - 28px); overflow: hidden; display: flex; flex-direction: column; }
.phone-topbar {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.phone-topbar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Ask mockup */
.mock-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
  max-width: 88%;
}
.mock-bubble-user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.mock-bubble-ai {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.mock-cite {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--accent-soft-bg);
  color: var(--accent-soft-fg);
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-top: 4px;
}
.mock-mic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  margin: auto auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(234,88,12,0.3);
}
.mock-input {
  height: 36px;
  border-radius: var(--r-full);
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Care mockup */
.mock-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.mock-list-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.mock-list-text { flex: 1; min-width: 0; }
.mock-list-title { font-weight: 600; font-size: 14px; }
.mock-list-sub { font-size: 11px; color: var(--text-tertiary); }
.mock-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
}
.mock-keynums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.mock-keynum {
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px;
  font-size: 11px;
}
.mock-keynum-val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.mock-keynum-label { color: var(--text-tertiary); font-size: 10px; }

/* Fix mockup */
.mock-progress {
  height: 6px;
  background: var(--surface-sunken);
  border-radius: 3px;
  margin: 8px 0;
  overflow: hidden;
}
.mock-progress-bar {
  height: 100%;
  border-radius: 3px;
  width: 40%;
}
.mock-step-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 16px 0;
  flex: 1;
}
.mock-step-meta {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-tertiary);
}
.mock-btn {
  padding: 10px 0;
  border-radius: var(--r-md);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.mock-safety {
  background: #FDECEC;
  border: 1px solid #F6C9C9;
  border-radius: var(--r-md);
  padding: 10px;
  font-size: 12px;
  color: #991B1B;
  margin-top: 8px;
}
[data-theme="dark"] .mock-safety {
  background: rgba(220,38,38,0.16);
  border-color: rgba(220,38,38,0.36);
  color: #F6817F;
}

/* Manual mockup */
.mock-page-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}
.mock-page-line {
  height: 8px;
  background: var(--surface-sunken);
  border-radius: 4px;
}

/* Tab bar mockup */
.mock-tabbar {
  display: flex;
  gap: 2px;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.mock-tab {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 0;
  color: var(--text-tertiary);
}
.mock-tab.active { color: var(--accent); }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  text-align: center;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft-bg);
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step-card p { color: var(--text-secondary); font-size: 15px; }
.step-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

/* ── Feature Sections ── */
.feature {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 80px 0;
}
.feature.reverse { flex-direction: row-reverse; }
.feature-text { flex: 1; min-width: 0; }
.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}
.feature-text h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.feature-text p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
}
.feature-text ul {
  list-style: none;
  margin-top: 20px;
}
.feature-text ul li {
  font-size: 16px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
}
.feature-text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* ── Privacy Banner ── */
.privacy-banner {
  text-align: center;
  padding: 80px 0;
}
.privacy-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--care-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 36px;
}
.privacy-banner h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.privacy-banner p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}
.privacy-chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.privacy-chip {
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ── Pricing ── */
.pricing {
  text-align: center;
  padding: 80px 0;
}
.pricing h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.pricing .price-highlight {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.pricing p { color: var(--text-secondary); font-size: 18px; }
.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  width: 280px;
  text-align: center;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}
.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-amount {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pricing-period { font-size: 15px; color: var(--text-tertiary); margin-top: 4px; }
.pricing-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
  line-height: 1.5;
}

/* ── CTA ── */
.cta {
  text-align: center;
  padding: 80px 0 100px;
}
.cta h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}
.cta .store-badges { justify-content: center; }

/* ── Section Headings ── */
.section-heading {
  text-align: center;
  margin-bottom: 16px;
}
.section-heading h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-heading p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 12px auto 0;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .wordmark { font-size: 20px; margin-bottom: 8px; display: block; }
.footer-brand p { max-width: 280px; font-size: 14px; line-height: 1.5; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Legal Pages ── */
.legal-page {
  padding: 120px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.legal-page .last-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 40px;
}
.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-page h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-page p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.legal-page ul {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  padding-left: 24px;
}
.legal-page li { margin-bottom: 8px; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a { text-decoration: underline; }
.callout-box {
  background: var(--accent-soft-bg);
  border: 1px solid var(--brand-200);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 24px 0;
}
[data-theme="dark"] .callout-box { border-color: rgba(234,88,12,0.3); }
.callout-box p { color: var(--text); margin-bottom: 0; }
.callout-box strong { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero { gap: 40px; }
  .hero-text h1 { font-size: 40px; }
  .feature { gap: 40px; }
  .feature-text h2 { font-size: 30px; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero {
    flex-direction: column;
    padding: 120px 0 60px;
    text-align: center;
  }
  .hero-text h1 { font-size: 34px; }
  .hero-text .subtitle { margin: 0 auto 28px; }
  .store-badges { justify-content: center; }
  .hero-visual { order: -1; }
  .phone { width: 240px; height: 490px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 32px auto 0; }
  .feature { flex-direction: column; padding: 48px 0; text-align: center; }
  .feature.reverse { flex-direction: column; }
  .feature-text p { margin: 0 auto; }
  .feature-text h2 { font-size: 28px; }
  .section { padding: 48px 0; }
  .section-heading h2, .privacy-banner h2, .pricing h2, .cta h2 { font-size: 28px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .pricing-cards { flex-direction: column; align-items: center; }
  .legal-page { padding: 100px 24px 60px; }
  .legal-page h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header { width: calc(100% - 16px); top: 8px; padding: 10px 16px; }
  .phone { width: 220px; height: 450px; }
  .mock-step-text { font-size: 16px; }
}
