/* BirdFrame website. Dark, like the app: black surfaces and the yellow of the frame. */

:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --surface: #141417;
  --surface-2: #1c1c21;
  --line: #2a2a31;
  --fg: #f4f4f6;
  --muted: #a3a3ad;
  --accent: #ffd60a;
  --accent-ink: #1a1500;
  --radius: 14px;
  --page: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "PingFang TC",
    "Hiragino Sans", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; z-index: 100; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }

.nav { display: flex; gap: 20px; margin-left: 12px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--fg); }

.header-end { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 7px;
  min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--fg); cursor: pointer; list-style: none; white-space: nowrap; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: #4a4a55; }
.lang-menu .chev { color: var(--muted); transition: transform 0.15s; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 170px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.lang-list a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--fg); text-decoration: none; white-space: nowrap; font-size: 15px;
}
.lang-list a:hover { background: rgba(255, 255, 255, 0.08); }
.lang-list a[aria-current="true"] { color: var(--accent); font-weight: 700; }

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
}
.button.primary { background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { filter: brightness(1.06); }
.button.ghost { border-color: var(--line); color: var(--fg); }
.button.ghost:hover { border-color: #4a4a55; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 14px; }

/* Sections */

section { padding: 88px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding: 72px 0 64px; }

.kicker {
  color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 10px;
}
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; }
h1 .dim, h2 .dim { color: var(--muted); }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 720px; margin: 18px 0 0; }
.section-head { margin-bottom: 44px; }

/* Hero */

.hero-copy { max-width: 820px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* The animated comparison: without the app, and with it. */
/* The hero pictures: one for each kind of subject, side by side in a strip that shows
   one at a time. */
.shots { margin-top: 52px; }
.shots-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 22px; background: #0b0a09;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 110px rgba(255, 160, 40, 0.10);
}
.shots-track::-webkit-scrollbar { display: none; }
.shots-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shot { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.shot img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 56% 50%; }
.shot figcaption {
  position: absolute; left: 18px; bottom: 18px; padding: 6px 14px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; font-weight: 700;
}
.shots-tabs { display: none; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.shots.is-interactive .shots-tabs { display: flex; }
.shots.is-interactive .shot figcaption { display: none; }
.shots-tabs button {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  min-height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.10);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.shots-tabs button:hover { color: var(--fg); border-color: rgba(255, 255, 255, 0.24); }
.shots-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.shots-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shots .caption { margin-top: 12px; font-size: 13px; opacity: 0.8; }
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.demo-panel {
  margin: 0; padding: 22px 22px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
}
.demo-panel.on { border-color: #4a4010; background: linear-gradient(180deg, #1b1a12, var(--surface) 55%); }
.demo-panel figcaption { min-height: 104px; }
.demo-panel figcaption p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.demo-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px;
}
.demo-tag.off { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.demo-art { width: 100%; height: auto; margin-top: 8px; }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* Stats */

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.stat b { display: block; white-space: nowrap; font-size: clamp(34px, 5vw, 52px); line-height: 1; color: var(--accent); font-weight: 800; }
.stat span { display: block; color: var(--muted); margin-top: 10px; font-size: 15px; }

/* Steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 16px;
}
.steps p, .card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

/* Cards */

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 16px; }

/* Lenses */

.brands { display: flex; flex-wrap: wrap; gap: 10px; }
.brands button {
  font: inherit; font-weight: 600; color: var(--fg); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  min-height: 46px; padding: 0 18px; white-space: nowrap;
}
.brands button:hover { border-color: #4a4a55; }
.brands button span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.brands button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.brands button[aria-selected="true"] span { color: var(--accent-ink); opacity: 0.7; }
.brands button:focus-visible, .lang-menu summary:focus-visible, .button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Without script the tabs do nothing, so they are hidden and each list keeps its heading. */
.lens-picker:not(.is-interactive) .brands { display: none; }
.lens-picker.is-interactive .lens-brand { display: none; }
.lens-brand { margin: 28px 0 12px; }
.lens-panels { margin-top: 22px; }
.lens-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.lens-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px;
}
.lens-name { font-weight: 600; }
.lens-range { color: var(--accent); font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { color: var(--muted); margin: 24px 0 0; max-width: 720px; }

/* Mount */

.mount { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 30px; margin: 12px 0; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg);
}
.tag { display: inline-block; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.shop { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Pricing */

.price-card {
  background: linear-gradient(180deg, #1b1a12, var(--surface));
  border: 1px solid #4a4010; border-radius: 20px; padding: 36px; max-width: 760px;
}
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.price b { font-size: clamp(44px, 7vw, 68px); line-height: 1; font-weight: 800; }
.price span { color: var(--muted); }

/* FAQ */

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 22px; }
.more { margin-top: 28px; }
.more a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Footer */

footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--muted); font-size: 14px; }
footer .brand { color: var(--fg); margin-bottom: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0; }
footer .links a { text-decoration: none; }
footer .links a:hover { color: var(--fg); }
footer p { margin: 8px 0; max-width: 760px; }

/* Atmosphere: warm light behind the hero, soft edges between sections, cards that
   catch a little light and lift when pointed at. */

body {
  background:
    radial-gradient(1100px 620px at 82% -160px, rgba(255, 160, 40, 0.16), transparent 62%),
    radial-gradient(900px 560px at -8% 4%, rgba(70, 110, 255, 0.10), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
}
h1 .dim {
  background: linear-gradient(92deg, #ffd60a 0%, #ffab1a 55%, #ff7a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
section { border-top: 0; position: relative; }
section:not(.hero)::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--page), 92%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.kicker::before {
  content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 10px;
  vertical-align: middle; background: var(--accent); border-radius: 2px;
}
.button.primary { box-shadow: 0 10px 34px rgba(255, 214, 10, 0.24); }

.card, .steps li, .stat, .lens-list li, .demo-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.050), rgba(255, 255, 255, 0.016));
  border-color: rgba(255, 255, 255, 0.09);
}
.demo-panel.on { background: linear-gradient(180deg, rgba(255, 214, 10, 0.09), rgba(255, 255, 255, 0.016) 55%); border-color: rgba(255, 214, 10, 0.28); }
.card, .steps li, .stat { transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.card:hover, .steps li:hover, .stat:hover {
  transform: translateY(-3px); border-color: rgba(255, 214, 10, 0.34);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.card .icon {
  width: 48px; height: 48px; padding: 10px; border-radius: 13px;
  background: rgba(255, 214, 10, 0.10); border: 1px solid rgba(255, 214, 10, 0.22);
}
.stat b {
  background: linear-gradient(180deg, #ffe566, #ffae00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.steps li::before { box-shadow: 0 0 0 6px rgba(255, 214, 10, 0.12); }
.price-card {
  background: linear-gradient(160deg, rgba(255, 214, 10, 0.13), rgba(255, 255, 255, 0.02) 46%);
  border-color: rgba(255, 214, 10, 0.30);
  box-shadow: 0 30px 90px rgba(255, 170, 0, 0.10);
}
.price b {
  background: linear-gradient(180deg, #ffffff, #ffd98a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover, .steps li.reveal.in:hover, .stat.reveal.in:hover { transform: translateY(-3px); }

/* Smaller screens */

@media (max-width: 900px) {
  .nav { display: none; }
  .grid, .steps, .stats { grid-template-columns: 1fr 1fr; }
  .mount { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  section.hero { padding: 44px 0 48px; }
  .wrap { padding: 0 16px; }
  .grid, .grid.two, .steps, .stats { grid-template-columns: 1fr; }
  .lens-list { grid-template-columns: 1fr; }
  .lens-list li { padding: 12px 14px; }
  .lens-name { font-size: 15px; }
  .demo-panel { padding: 16px 16px 8px; }
  .demo-panel figcaption { min-height: 0; }
  .header-end .button { display: none; }
  .cta-row .button { flex: 1 1 auto; }
  .price-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 640px) {
  /* A wide picture would be a thin strip on a phone, so it is cropped taller. */
  .shot img { aspect-ratio: 4 / 3; }
  .shots-track { border-radius: 16px; }
  .shots-tabs button { padding: 0 14px; }
}
