/* ============================================================
   Fyrgo — shared styles for the landing page and privacy page
   Page-specific rules are scoped with body.page-landing /
   body.page-doc so generic selectors don't leak across pages.
   ============================================================ */

/* ===== Design tokens ===== */
:root {
  --teal-900: #09272F; --teal-700: #155462; --teal-600: #1B6B7D;
  --teal-500: #24849A; --deep: #145B6E; --cyan: #5BC6DF;
  --gold: #D4A24C; --gold-soft: #F0BF54;
  --ink: #16211F; --muted: #5a6b68; --line: #e5eae8;
  --bg: #ffffff; --bg-soft: #f4f7f6; --positive: #2E8B57;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
  overflow-x: hidden;
}
body.page-landing { line-height: 1.6; }
body.page-doc { line-height: 1.65; font-size: 17px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; margin: 0 auto; padding: 0 24px; }
.page-landing .wrap { max-width: 1120px; }
.page-doc .wrap { max-width: 820px; }
.page-doc .navwrap { max-width: 1120px; }

/* ===== Header (shared) ===== */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--teal-600); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: -8px; border: none; background: transparent; color: var(--ink); cursor: pointer; border-radius: 8px; }
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle svg { width: 24px; height: 24px; }
.back { color: var(--muted); font-weight: 500; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--teal-600); }

/* ===== Footer (shared) ===== */
footer { background: #0d1615; color: rgba(255,255,255,0.7); padding: 48px 0; font-size: 0.92rem; margin-top: auto; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.foot .brand { color: #fff; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot .fine { width: 100%; color: rgba(255,255,255,0.45); font-size: 0.82rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; margin-top: 8px; }

/* ===== Phone frame (shared) ===== */
.phone { width: 270px; max-width: 72vw; container-type: inline-size; }
.phone-frame {
  background: #0d1615; border-radius: 15.5cqw; padding: 3cqw; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(9,39,47,0.55), 0 8px 24px rgba(0,0,0,0.25);
}
.phone-frame img { border-radius: 12.5cqw; width: 100%; display: block; }

/* ============================================================
   Landing page
   ============================================================ */

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--cyan) 0%, var(--teal-500) 42%, var(--deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 20px; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,0.92); max-width: 30ch; margin-bottom: 28px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.28);
  color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 0.9rem;
}
.badge .store { display: flex; flex-direction: column; font-weight: 600; line-height: 1.15; }
.badge .store small { font-weight: 400; font-size: 0.72rem; opacity: 0.8; }
.soon-note { font-size: 0.82rem; color: rgba(255,255,255,0.72); margin-top: 14px; }
.hero-visual { display: flex; justify-content: center; }

/* Sections & features */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.eyebrow { color: var(--teal-500); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.08rem; }
.features { background: var(--bg-soft); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(20,91,110,0.35); }
.ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--cyan), var(--teal-500)); margin-bottom: 18px;
}
.ico svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.14rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.98rem; }

/* Gallery */
.gallery-scroll { position: relative; }
.gallery-row {
  display: flex; gap: 2rem; overflow-x: auto;
  padding: 3rem clamp(1.5rem, 8%, 8rem) 3.5rem;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-row .shot { scroll-snap-align: center; flex: 0 0 auto; text-align: center; }
.gallery-row .phone { width: 15rem; }
.shot .caption { margin-top: 1rem; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
/* edge fades signal that the row scrolls and mask the shadow at the edges */
.gallery-scroll::before, .gallery-scroll::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 9%; pointer-events: none; z-index: 2;
}
.gallery-scroll::before { left: 0; background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.gallery-scroll::after { right: 0; background: linear-gradient(to left, #fff, rgba(255,255,255,0)); }
.swipe-hint {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  margin-top: 0.5rem;
}
.swipe-hint svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy band */
.privacy-band { background: linear-gradient(155deg, var(--teal-700), var(--teal-900)); color: #fff; }
.privacy-inner { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.privacy-inner .shield {
  width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); flex-shrink: 0;
}
.privacy-inner .shield svg { width: 42px; height: 42px; stroke: var(--gold-soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.privacy-inner h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.privacy-inner p { color: rgba(255,255,255,0.85); max-width: 62ch; }
.privacy-inner a.link { color: var(--gold-soft); font-weight: 600; border-bottom: 1px solid rgba(240,191,84,0.4); }

/* ============================================================
   Privacy policy page
   ============================================================ */
.page-doc .page-head {
  background: linear-gradient(160deg, var(--cyan) 0%, var(--teal-500) 45%, var(--deep) 100%);
  color: #fff; padding: 56px 0;
}
.page-doc .page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.page-doc .page-head .meta { color: rgba(255,255,255,0.85); margin-top: 8px; font-size: 0.95rem; }
.page-doc main { padding-top: 20px; padding-bottom: 80px; }
.page-doc main h2 { font-size: 1.35rem; margin: 44px 0 12px; letter-spacing: -0.01em; }
.page-doc main h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.page-doc main p, .page-doc main li { color: var(--ink); }
.page-doc main ul { margin: 8px 0 8px 22px; }
.page-doc main li { margin: 4px 0; }
.page-doc main a { color: var(--teal-600); text-decoration: underline; }
.page-doc .summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 28px 0 8px; }
.page-doc .summary h2 { margin-top: 0; }
.page-doc main table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.page-doc main th, .page-doc main td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.page-doc main th { background: var(--bg-soft); }

/* FAQ accordion (pure HTML <details>) */
.page-doc .faq { margin-top: 8px; }
.page-doc details { border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; background: #fff; }
.page-doc summary {
  cursor: pointer; list-style: none; padding: 18px 20px;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.page-doc summary::-webkit-details-marker { display: none; }
.page-doc summary::after {
  content: ""; width: 9px; height: 9px; flex-shrink: 0; margin-right: 3px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg); transition: transform .2s ease;
}
.page-doc details[open] summary::after { transform: rotate(45deg); }
.page-doc .faq-answer { padding: 0 20px 18px; }
.page-doc .faq-answer p { color: var(--muted); margin-bottom: 10px; }
.page-doc .faq-answer p:last-child { margin-bottom: 0; }
.page-doc .faq-answer ul { margin: 8px 0 8px 20px; }
.page-doc .faq-answer li { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; padding-bottom: 64px; gap: 44px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .privacy-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .page-landing .nav-toggle { display: inline-flex; }
  .page-landing .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -16px rgba(0,0,0,0.3);
    padding: 4px 24px 12px;
  }
  .page-landing .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .page-landing .nav-links a { padding: 13px 2px; font-size: 1rem; border-top: 1px solid var(--line); }
  .page-landing .nav-links a:first-child { border-top: none; }
  .foot { flex-direction: column; align-items: center; text-align: center; }
  .foot-links { justify-content: center; }
}
