/* Groundglass — trunghieuvn.github.io/groundglass
   Its own sheet on purpose. Groundglass ships under a different developer
   account from the FilCam pages at /filmode-camera/, and the two listings must
   not read as re-skins of each other (docs/DSLR_MARKET_RESEARCH.md 6.3), so
   nothing here is copied from that site: the palette is the app's own —
   ink, frosted paper and the amber of the bright-line frame. */

:root {
  color-scheme: dark;
  --ink:    #141210;
  --ink-2:  #100e0d;
  --panel:  #1b1917;
  --panel-2:#221f1c;
  --paper:  #EEEAE2;
  --body:   #DCD6CC;
  --muted:  #A9A296;
  --amber:  #E8A33D;
  --amber-d:#c0821f;
  --rule:   #2c2926;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--body);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }  /* height:auto is load-bearing: every <img> carries width/height attributes, and without it the attribute height wins and a 720x1600 shot renders 262x1600 — stretched */
a { color: var(--amber); text-decoration: none; }
a:hover { color: #f3b45a; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---------- type ---------- */
h1, h2, h3 { color: var(--paper); letter-spacing: -.4px; line-height: 1.14; margin: 0; }
h1 { font-size: clamp(38px, 6.2vw, 62px); }
h2 { font-size: clamp(27px, 3.6vw, 38px); }
h3 { font-size: 18px; letter-spacing: -.1px; }
.accent { color: var(--amber); }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font: 600 12px/1 var(--mono); letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--amber); margin: 0 0 18px;
}
code, .mono { font-family: var(--mono); font-size: .88em; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(20,18,16,.88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
nav .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--paper); font-weight: 600; }
.brand svg { display: block; flex: none; }
nav .links { margin-left: auto; display: flex; align-items: center; gap: 24px; }
nav .links a { color: var(--muted); font-size: 15px; }
nav .links a:hover { color: var(--paper); }
@media (max-width: 720px) { nav .links a.hide-sm { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 9px; font-weight: 600; font-size: 15.5px;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #171410; }
.btn-primary:hover { background: #f3b45a; color: #171410; }
.btn-ghost { border-color: var(--rule); color: var(--paper); background: var(--panel); }
.btn-ghost:hover { border-color: #4a453f; color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% 20% -25%;
  background: radial-gradient(closest-side, rgba(232,163,61,.16), transparent 72%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 54px; align-items: center; padding-top: 60px; padding-bottom: 62px;
}
.hero p.lede { margin: 20px 0 30px; }
.hero .btn-row { margin-bottom: 22px; }
.hero .fineprint { color: var(--muted); font-size: 14.5px; margin: 0; }
.shot-hero {
  border: 1px solid var(--rule); border-radius: 22px; overflow: hidden;
  box-shadow: 0 34px 70px rgba(0,0,0,.55); background: var(--panel);
  max-width: 264px; margin: 0 auto;   /* a 720x1600 phone shot is 587px tall here;
                                         wider and the hero grows past one screen */
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 54px; padding-bottom: 58px; }
  .shot-hero { max-width: 260px; }
}

/* ---------- sections ---------- */
section { padding: 86px 0; }
.bordered { border-bottom: 1px solid var(--rule); }
.section-head { max-width: 66ch; margin-bottom: 44px; }
.section-head p { margin: 14px 0 0; }
@media (max-width: 720px) { section { padding: 60px 0; } }

/* ---------- screenshot rail ---------- */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rail figure { margin: 0; }
.rail img {
  border: 1px solid var(--rule); border-radius: 16px; cursor: zoom-in;
  background: var(--panel); transition: transform .25s ease, border-color .25s ease;
}
.rail img:hover { transform: translateY(-4px); border-color: #4a453f; }
.rail figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 860px) { .rail { grid-template-columns: repeat(2, 1fr); } }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 14px;
  padding: 24px 22px 26px;
}
.card h3 { margin-bottom: 9px; }
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }
.card ul { margin: 10px 0 0; padding-left: 18px; font-size: 15.5px; color: var(--muted); }
.card li { margin: 5px 0; }
.card .num { font: 600 12px/1 var(--mono); color: var(--amber); letter-spacing: 1.6px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- spec table ---------- */
.spec { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec th, .spec td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec th { color: var(--paper); font-weight: 600; width: 34%; }
.spec td { color: var(--muted); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec-wrap { border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: var(--panel); }

/* ---------- privacy band ---------- */
.band { background: var(--panel-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.band .cols div { border-left: 2px solid var(--amber); padding-left: 16px; }
.band .cols strong { display: block; color: var(--paper); margin-bottom: 4px; }
.band .cols p { margin: 0; font-size: 15.5px; color: var(--muted); }
@media (max-width: 720px) { .band .cols { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  color: var(--paper); font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--amber); font-weight: 400; font-size: 21px;
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta .lede { margin: 16px auto 28px; }
.cta .btn-row { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--rule); background: var(--ink-2); padding: 40px 0 52px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: baseline; }
footer .links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { color: var(--muted); font-size: 15px; }
footer a:hover { color: var(--paper); }
footer .fine { color: #7d776e; font-size: 13.5px; margin: 26px 0 0; line-height: 1.6; }
footer .pkg { color: #7d776e; font-family: var(--mono); font-size: 13px; }

/* ---------- legal pages ---------- */
.doc { max-width: 760px; padding-top: 46px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc .upd { color: var(--muted); font-size: 14.5px; margin: 8px 0 26px; }
.doc p, .doc li { font-size: 16.5px; }
.doc strong { color: var(--paper); }
.doc ul { padding-left: 20px; }
.doc li { margin: 9px 0; }
.doc code {
  background: var(--panel); border: 1px solid var(--rule);
  border-radius: 4px; padding: 1px 5px; font-size: 13.5px;
}
.doc .callout {
  background: var(--panel); border: 1px solid var(--rule);
  border-left: 3px solid var(--amber); border-radius: 8px; padding: 15px 18px;
}

/* ---------- reveal + lightbox ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
#lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(10,9,8,.94); align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-height: 92vh; width: auto; border-radius: 14px; border: 1px solid var(--rule); }
