/* Live Camera — livephotoandroid.com
   Palette and type lifted from the app itself (ui/theme/Color.kt), so the site and the
   product read as one thing. No webfonts on purpose: zero render-blocking requests keeps
   Largest Contentful Paint fast, which is the part of SEO that is actually under our control. */

:root {
  --black: #0a0a0c;
  --charcoal: #14141a;
  --surface: #1c1c22;
  --surface-high: #232329;
  --hairline: rgba(255, 255, 255, 0.09);
  --white: #f5f5f7;
  --grey: #9a9aa2;
  --grey-dim: #74747c;
  --amber: #f2a65a;
  --amber-dark: #c9822f;
  --teal: #4fcbc0;
  --on-amber: #1a1206;

  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber); color: var(--on-amber);
  padding: 10px 16px; font-weight: 700; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

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

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--white); text-decoration: none;
  font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px;
}
.brand img { width: 30px; height: 30px; }
.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex; flex-wrap: wrap; gap: 22px;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  color: var(--grey); text-decoration: none; font-size: 15px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white); }

/* Below this width the four links no longer fit beside the wordmark. Wrapping them made the
   nav overlap the brand, so the header becomes two rows instead: the wordmark, then the links
   on one line that scrolls sideways. No menu button, so every destination stays visible. */
@media (max-width: 760px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 0;
  }
  .brand { white-space: nowrap; letter-spacing: 0.12em; }
  .brand img { width: 26px; height: 26px; }
  .site-nav {
    margin-left: 0;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav ul {
    flex-wrap: nowrap;
    gap: 20px;
    padding: 12px 24px 12px 0;
  }
  .site-nav a { white-space: nowrap; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: #f7b876; color: var(--on-amber); transform: translateY(-1px); }
.btn-ghost { border-color: var(--hairline); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.24); color: var(--white); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; line-height: 1.1; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); margin: 0 0 20px; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 18px; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin: 0 0 10px; }
h1 em, h2 em { font-style: normal; color: var(--amber); }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--amber); flex: none; }

.lede { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--grey); max-width: 62ch; }
p { max-width: 70ch; }

section { padding: clamp(56px, 8vw, 104px) 0; }
section + section { border-top: 1px solid var(--hairline); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(56px, 9vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: -30% 40% 40% -30%;
  background: radial-gradient(closest-side, rgba(242,166,90,0.20), rgba(242,166,90,0) 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.08fr 0.92fr; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { margin-top: 22px; font-size: 14.5px; color: var(--grey-dim); }

/* ---------- phone frame ---------- */
.phone {
  width: min(300px, 78vw); margin: 0 auto; padding: 8px;
  border-radius: 40px;
  background: linear-gradient(160deg, #3a3a44, #26262e);
  box-shadow: 0 34px 70px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.05);
}
.phone img { border-radius: 33px; }
.phone-row { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.phone-row .phone { margin: 0; width: min(232px, 60vw); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-top: 0; }
.card p { color: var(--grey); margin-bottom: 0; font-size: 16px; }
.card-icon {
  width: 42px; height: 42px; margin-bottom: 16px;
  display: grid; place-items: center;
  border-radius: 12px; background: rgba(242,166,90,0.14); color: var(--amber);
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps > li {
  counter-increment: step;
  position: relative; padding: 22px 24px 22px 74px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(242,166,90,0.14); color: var(--amber);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  font-family: var(--sans);
}
.steps h3 { margin: 0 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--grey); font-size: 16px; }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 16px; }
caption { text-align: left; padding: 18px 20px 0; color: var(--grey); font-size: 15px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th { color: var(--amber); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
tbody th { font-weight: 600; color: var(--white); }
td { color: var(--grey); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 4px 24px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 15px;
  color: var(--amber); font-size: 24px; line-height: 1; font-weight: 400;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--grey); margin: 0 0 20px; font-size: 16px; }

/* ---------- callout ---------- */
.callout {
  background: linear-gradient(180deg, var(--surface-high), var(--surface));
  border: 1px solid var(--hairline); border-radius: 22px;
  padding: clamp(32px, 5vw, 52px); text-align: center;
}
.callout h2 { margin-bottom: 12px; }
.callout p { margin: 0 auto 26px; color: var(--grey); }

/* ---------- article ---------- */
.article-head { padding-bottom: 0; }
.article-body h2 { margin-top: 52px; }
.article-body h3 { margin-top: 32px; }
.article-body p, .article-body li { color: #c9c9d0; }
.article-body ul, .article-body ol { max-width: 70ch; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--white); }
.note {
  border-left: 2px solid var(--amber);
  padding: 4px 0 4px 20px; margin: 28px 0;
  color: var(--grey);
}
.updated { font-size: 14px; color: var(--grey-dim); margin: 0 0 28px; }

.breadcrumb { font-size: 14px; color: var(--grey-dim); padding: 22px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: 8px; color: var(--grey-dim); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- related ---------- */
.related a { text-decoration: none; }
.related .card:hover { border-color: rgba(242,166,90,0.4); }
.related .card span { display: block; color: var(--grey); font-size: 15px; margin-top: 6px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 40px; color: var(--grey-dim); font-size: 15px;
}
.footer-cols { display: grid; gap: 32px; margin-bottom: 40px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: var(--grey); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer p { color: var(--grey-dim); }
