/* FieldLog marketing site — tokens from app/ui/theme/Color.kt */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --secondary: #FF8F00;
  --bg: #FAF9FD;
  --surface: #FFFFFF;
  --ink: #1A1C1E;
  --ink-muted: #43474E;
  --outline: #C3C7CF;
  --primary-container: #D1E4FF;
  --status-draft: #9E9E9E;
  --status-sent: #1976D2;
  --status-accepted: #388E3C;
  --status-rejected: #D32F2F;
  --status-paid: #1B5E20;
  --status-cancelled: #616161;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 12px; }
p { margin: 0 0 16px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--outline); }

/* Header */
.header { background: var(--surface); border-bottom: 1px solid var(--outline); }
.header .container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--ink-muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-play { color: #fff; }
.nav-links .btn-play:hover { color: #fff; }
@media (max-width: 768px) {
  .header .container { min-height: 56px; }
  .nav-links a:not(.btn) { display: none; }  /* mobile: logo + Get App only, no hamburger */
}

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn-play { background: var(--primary); color: #fff; }
.btn-play:hover { background: var(--primary-dark); }
.btn-play .play-glyph { display: inline-block; margin-right: 8px; }

/* Hero */
.hero { padding: 80px 0 48px; }
.hero .hero-copy { max-width: 640px; }
.hero p.sub { font-size: clamp(1.1rem, 2.5vw, 1.35rem); color: var(--ink-muted); margin-bottom: 8px; }
.trust-line { color: #2E7D32; font-weight: 600; margin-bottom: 24px; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 16px 0; border-block: 1px solid var(--outline); color: var(--ink-muted); font-weight: 600; }
.trust-strip span::before { content: "✓ "; color: #2E7D32; font-weight: 700; }

/* Showcase: phone frame + floating card */
.showcase { position: relative; padding: 48px 0; }
.phone-frame { width: min(320px, 80vw); margin: 0 auto; border: 8px solid #1A1C1E; border-radius: 36px;
  overflow: hidden; box-shadow: 0 24px 60px rgba(13, 71, 161, 0.25); background: var(--surface); }
.phone-frame img { width: 100%; }
.float-card { position: absolute; width: min(240px, 60vw); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18); border: 1px solid var(--outline); background: var(--surface); }
.float-card img { width: 100%; }
.float-card-hero { right: 8%; bottom: 6%; transform: rotate(3deg); }
@media (max-width: 768px) { .float-card { position: static; margin: -24px auto 0; } }

/* Problem */
.problem h2 { max-width: 640px; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); }
.feature-body { padding: 24px 20px 20px; }
.feature-body h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-body p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }
.feature-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-container);
  align-items: center; justify-content: center; color: var(--primary); margin-bottom: 12px; }

/* Article prose (blog) */
.article { max-width: 720px; margin: 0 auto; padding: 48px 0 72px; }
.article h1 { margin-bottom: 8px; }
.article-meta { color: var(--ink-muted); font-size: 0.9rem; margin-bottom: 32px; }
.article h2 { margin-top: 36px; }
.article p, .article ul, .article ol { margin-bottom: 16px; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article img { border-radius: var(--radius); margin: 24px 0; }
.article-cta { margin-top: 48px; padding: 24px; background: var(--primary-container); border-radius: var(--radius); }
.article-cta p { margin: 0 0 12px; }
.article-cta .btn { margin-top: 4px; }

/* Guides list (blog index) */
.guide-card { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 16px; transition: border-color 0.15s ease; }
.guide-card:hover { border-color: var(--primary); }
.guide-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.guide-card h2 a { color: var(--ink); text-decoration: none; }
.guide-card h2 a:hover { color: var(--primary); }
.guide-card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }
.guide-card .guide-meta { font-size: 0.85rem; margin-bottom: 8px; }

/* Lifecycle chips (mirror StatusChip.kt) */
.lifecycle-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.status-chip { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-draft    { color: var(--status-draft);    background: rgba(158, 158, 158, 0.18); }
.status-sent     { color: var(--status-sent);     background: rgba(25, 118, 210, 0.18); }
.status-accepted { color: var(--status-accepted); background: rgba(56, 142, 60, 0.18); }
.status-rejected { color: var(--status-rejected); background: rgba(211, 47, 47, 0.18); }
.status-paid     { color: var(--status-paid);     background: rgba(27, 94, 32, 0.18); }
.status-cancelled{ color: var(--status-cancelled);background: rgba(97, 97, 97, 0.18); }

/* AA-safe variants at chip size — darker tones from the app's own palette */
.lifecycle-chips .status-draft    { color: #616161; }
.lifecycle-chips .status-sent     { color: #0D47A1; }
.lifecycle-chips .status-accepted { color: #1B5E20; }
.lifecycle-chips .status-paid     { color: #1B5E20; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step { text-align: center; }
.step .phone-frame { border-width: 6px; }
.step h3 { margin: 16px 0 8px; }
.step p { color: var(--ink-muted); }

/* Trade strip */
.trade-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-weight: 600; color: var(--ink-muted); }
.trade-strip span { white-space: nowrap; }

/* Pricing table */
.pricing-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); overflow: hidden; }
.pricing-table th, .pricing-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--outline); }
.pricing-table th { background: var(--primary-container); }
.pricing-table .price-row td { font-weight: 700; font-size: 1.15rem; }
.pricing-note { margin-top: 16px; color: var(--ink-muted); font-size: 0.9rem; }
@media (max-width: 480px) {
  .pricing-table { font-size: 0.9rem; }
  .pricing-table th, .pricing-table td { padding: 10px 8px; }
}

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius); margin-bottom: 12px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 12px 0 0; color: var(--ink-muted); }

/* Final CTA + footer */
.final-cta { text-align: center; }
.footer { background: var(--surface); border-top: 1px solid var(--outline); padding: 32px 0; color: var(--ink-muted); font-size: 0.9rem; }
.footer .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; }

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