/*
 * Asset Logging — marketing site.
 *
 * Tokens are lifted from the app's theme so the site and the product look
 * like the same thing. The App Store screenshots ARE the app, and a site in
 * different colours reads as a different company.
 *
 * Same priorities as the app: legible at any age (17px body, never below 14,
 * every text colour clears WCAG AA on its background), buttons that look like
 * buttons, and colour that carries meaning rather than decoration.
 */

:root {
  --bg: #F4F6F8;
  --surface: #FFFFFF;
  --surface-raised: #EEF2F7;
  --border: #D3DAE3;
  --border-strong: #B6C0CD;

  --text: #14213D;
  --text-muted: #4A5568;
  --text-faint: #5F6B7A;

  --primary: #1D4ED8;
  --primary-dark: #1E3A8A;
  --primary-tint: #E3EBFD;
  --on-primary: #FFFFFF;

  --accent: #03714E;
  --accent-tint: #DCF3EA;

  --radius: 12px;
  --radius-lg: 16px;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Keyboard users get the link; everyone else never sees it. */
.skip {
  position: absolute; left: -9999px;
  background: var(--primary); color: var(--on-primary);
  padding: 12px 20px; border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip:focus { left: 0; top: 0; }

a { color: var(--primary); }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.brand-name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 15px;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--surface-raised); color: var(--text); }
.nav a[aria-current="page"] { background: var(--primary-tint); color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--surface); border-color: var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary-tint); }
.btn.is-disabled { background: var(--surface-raised); border-color: var(--border-strong); color: var(--text-muted); cursor: default; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { font-size: 14px; color: var(--text-faint); margin: 10px 0 0; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-muted); max-width: 62ch; margin: 0 0 24px; }
.muted { color: var(--text-muted); }
.section-intro { max-width: 62ch; margin-bottom: 28px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary);
  background: var(--primary-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); margin: 0; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 12px;
  background: var(--primary-tint); color: var(--primary); font-weight: 700;
}

/* Pricing */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.plan.featured { border: 2px solid var(--primary); box-shadow: 0 8px 30px rgba(29, 78, 216, 0.10); }
.plan-name { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.plan-price { font-size: 42px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 2px; }
.plan-price small { font-size: 17px; font-weight: 600; color: var(--text-muted); }
.plan-sub { color: var(--accent); font-weight: 700; font-size: 15px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: var(--text-muted); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; top: 7px;
  color: var(--accent); font-weight: 700;
}
.plan li.off { color: var(--text-faint); }
.plan li.off::before { content: "—"; color: var(--text-faint); }
.badge {
  display: inline-block; background: var(--accent-tint); color: var(--accent);
  font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* FAQ */
.faq { max-width: 76ch; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 18px;
  padding: 16px 0; list-style: none; min-height: 44px; display: flex; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--primary); font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); margin: 0 0 18px; }

/* Long-form legal pages */
.prose { max-width: 74ch; }
.prose h2 { font-size: 22px; margin-top: 36px; }
.prose h3 { font-size: 18px; margin-top: 24px; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.updated { font-size: 15px; color: var(--text-faint); }
.callout {
  background: var(--primary-tint); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 24px 0;
}
.callout p { color: var(--text); margin: 0; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 40px; }
.footer-inner { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { max-width: 42ch; }
.footer-brand p { margin: 6px 0 0; font-size: 15px; }
.footer-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; align-content: flex-start; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 0; }
.footer-nav a:hover { color: var(--primary); }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-legal p { font-size: 14px; margin: 0; }

@media (max-width: 640px) {
  section { padding: 40px 0; }
  .hero { padding: 48px 0 40px; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
}
