/* Glint Studio website. Colors match the app: dark neutral, warm off-white text, one amber accent.
   A light version follows the visitor's system setting (the app's Light palette). */
:root {
  --bg: #141518;
  --surface: #1e2024;
  --border: #33363d;
  --divider: #272a30;
  --text: #f2efe9;
  --muted: #a5a39d;
  --accent: #e8a94b;
  --on-accent: #1a1405;
  --glow: rgba(232, 169, 75, 0.16);
  --radius: 18px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f3ec;
    --surface: #ffffff;
    --border: #d6d1c5;
    --divider: #e7e3d9;
    --text: #1b1a17;
    --muted: #6b6862;
    --accent: #b8700f;
    --on-accent: #ffffff;
    --glow: rgba(184, 112, 15, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.eyebrow {
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 12px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--divider);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 650; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); font-size: 0.95rem; }
.nav ul a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 720px) { .nav ul li:not(:last-child) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 1rem; border: 0; cursor: pointer;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
/* Apple's official App Store badge: shown unmodified (no hover change), at least 40px tall, with clear space (the .actions gap) around it. */
.store-badge { display: inline-flex; align-items: center; border-radius: 10px; }
.store-badge:hover { text-decoration: none; }
.store-badge img { width: auto; height: 52px; max-width: none; }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn.ghost:hover { border-color: var(--accent); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; }
.hero h1 span { color: var(--accent); }
.hero .lead { margin-top: 22px; }
.meta { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Phone frame with real app screenshots */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }
.phone {
  width: min(300px, 78vw); border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #2b2e35, #0c0d0f);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
}
.phone .screen { aspect-ratio: 660 / 1434; border-radius: 36px; overflow: hidden; background: #000; position: relative; }
.phone .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.phone .shot.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .phone .shot { transition: none; } }
.dots { display: flex; gap: 2px; }
.dots button {
  appearance: none; border: 0; background: none; padding: 0; cursor: pointer;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
}
.dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--border); transition: background 0.2s ease; }
.dots button[aria-current="true"]::before { background: var(--accent); }
.dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sections */
section { padding: 84px 0; }
.band { background: var(--surface); border-block: 1px solid var(--divider); }
.section-head { margin-bottom: 44px; }
.grid { display: grid; gap: 18px; }
.grid.f3 { grid-template-columns: repeat(3, 1fr); }
.grid.f2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.f3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.f3, .grid.f2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.band .card { background: var(--bg); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--glow); color: var(--accent); font-size: 1.3rem;
}
.card p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 800;
}
.step p { color: var(--muted); margin-top: 6px; }
.step p b { color: var(--text); font-weight: 600; }

/* Looks */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.92rem; color: var(--text); }
.gal-group { margin-top: 40px; }
.gal-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gal-head h3 { font-size: 1.3rem; }
.gal-count { font-size: 0.85rem; color: var(--muted); }
.gal-sent { color: var(--muted); margin: 6px 0 16px; max-width: 46em; }
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }
.gcard {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 8px 8px 12px; cursor: pointer;
}
.gcard:hover, .gcard:focus-visible { border-color: var(--accent); }
.gcard img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 9px; background: var(--divider); }
.gcard .gn { font-weight: 650; margin: 10px 4px 0; line-height: 1.25; }
.gcard .gnote { font-size: 0.85rem; color: var(--muted); margin: 4px 4px 10px; line-height: 1.4; flex: 1; }
.badge { margin: 0 4px; font-size: 0.75rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.badge.free { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.gal-foot { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
dialog#viewer { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); padding: 14px; max-width: min(92vw, 460px); max-height: 94vh; overflow: auto; }
dialog#viewer::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog#viewer img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; border-radius: 10px; }
dialog#viewer p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.vclose { float: right; margin: 0 0 8px 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.vclose:hover { border-color: var(--accent); }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding: 0 0 20px; }

/* Documents (privacy, support) */
.doc { padding: 56px 0 90px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.doc h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.callout p { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--divider); padding: 40px 0 56px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .card, .btn { transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease; }
  .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
}
