/* Fixly AI — static site styles (light/dark, responsive, no external assets) */
:root {
  --bg: #fbfbfd; --surface: #ffffff; --fg: #1d1d1f; --muted: #6e6e73; --line: #e5e5ea;
  --accent: #ef6b37; --accent-ink: #ffffff; --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0c0c0e; --surface: #17171a; --fg: #f5f5f7; --muted: #a1a1a6; --line: #2c2c31; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; font-size: 15px; }
.nav-links a { color: var(--muted); }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--fg); color: var(--bg);
  padding: 12px 20px; border-radius: 14px; font-weight: 600; }
.badge:hover { text-decoration: none; opacity: .9; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.phone { border-radius: 38px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0,0,0,.12); background: var(--surface); }
/* Phone screenshot ratio ≈ 0.46: cap width so the whole phone fits within ~80% of the viewport height. */
.hero .phone { width: min(330px, 37vh, 100%); justify-self: center; }

section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.01em; margin: 0 0 12px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 18px; font-weight: 700; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shots figure { margin: 0; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

.privacy-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.doc { max-width: 760px; padding: 32px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc li { margin: 6px 0; }
.doc details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.doc summary { cursor: pointer; font-weight: 600; }
.doc details p, .doc details ol, .doc details ul { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; text-align: left; }
  .grid, .privacy-band { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:last-child { display: none; }
}
@media (max-width: 540px) {
  .grid, .privacy-band, .shots { grid-template-columns: 1fr; }
  .shots figure:last-child { display: block; }
  .nav-links { gap: 14px; }
}
