/* Tail ID — graphite base, Tail Red accent. Built to feel like the app:
   dark, sharp, camera-forward. */

:root {
  --c-bg: #0d1116;
  --c-bg-2: #11161d;
  --c-surface: #161b22;
  --c-border: #232c38;
  --c-text: #f0f5f9;
  --c-text-muted: #9aa6b1;
  --c-text-dim: #6b7785;
  --c-primary: #da1421;          /* Tail Red */
  --c-primary-deep: #a40e18;
  --c-glow: rgba(218, 20, 33, 0.20);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: var(--c-text); text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.02em; }

/* ===== nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(13, 17, 22, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; background: #fff url("/icon.png") center/contain no-repeat; border-radius: 7px; }
.brand-tail { color: var(--c-primary); }
.brand-id { color: var(--c-text); }
.nav-links { display: flex; align-items: center; gap: 26px; font-weight: 600; font-size: 14px; }
.nav-links a { color: var(--c-text-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--c-text); }
.nav-cta {
  background: var(--c-primary); color: #fff !important;
  padding: 8px 16px; border-radius: 9px; font-weight: 700;
}
.nav-cta:hover { background: var(--c-primary-deep); }

/* ===== hero ===== */
.hero { position: relative; padding: 56px 24px 72px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, var(--c-glow) 0%, transparent 60%);
  filter: blur(20px);
}
.hero-inner {
  position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 68px); line-height: 1.02; margin: 8px 0 18px;
  font-weight: 900;
}
.hero h1 .accent { color: var(--c-primary); }
.hero .lede {
  font-size: clamp(16px, 2.4vw, 20px); line-height: 1.5; color: var(--c-text-muted);
  margin: 0 0 36px; max-width: 520px;
}

/* phone device */
.device { position: relative; margin: 0 0 34px; }
.device-frame {
  position: relative;
  width: clamp(260px, 78vw, 330px); aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #2b3441, #11151b);
  border-radius: 42px; padding: 11px;
  box-shadow:
    0 40px 90px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.05),
    inset 0 0 0 2px rgba(0,0,0,0.4);
}
.device-island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #05070a; border-radius: 14px; z-index: 4;
}
.device-video {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 32px; display: block; background: #05070a;
}
.device-ui { position: absolute; inset: 11px; border-radius: 32px; overflow: hidden; pointer-events: none; }
.ui-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 7px;
  padding: 16px 16px 0; font-size: 12px; font-weight: 800;
}
.ui-logo { width: 18px; height: 18px; background: #fff url("/icon.png") center/contain no-repeat; border-radius: 4px; }
.ui-name .brand-id { color: #fff; }
.ui-chip {
  margin-left: auto; font-size: 9px; font-weight: 700; color: var(--c-text);
  background: rgba(13,17,22,0.7); padding: 4px 9px; border-radius: 999px; letter-spacing: 0.3px;
}
.ui-chip { color: #34d399; }
.ui-target { position: absolute; left: 14%; right: 14%; top: 34%; aspect-ratio: 4/3; }
.ui-target .b { position: absolute; width: 16px; height: 16px; border: 2px solid #fff; opacity: 0.92; }
.ui-target .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.ui-target .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.ui-target .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.ui-target .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.ui-result {
  position: absolute; left: 12px; right: 12px; bottom: 84px;
  background: rgba(13,17,22,0.82); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 10px 14px; backdrop-filter: blur(6px);
}
.ui-reg { color: var(--c-primary); font-weight: 900; font-size: 19px; letter-spacing: 1px; }
.ui-sub { color: var(--c-text); font-weight: 600; font-size: 11px; margin-top: 1px; }
.ui-shutter {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 52px; height: 52px; border-radius: 50%; background: #f0f5f9;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.22);
}

/* store badges — styled like the official Apple / Google download badges:
   solid black rounded "pills" with the platform logo + two-line label. Sized
   up so they read clearly as the primary call-to-action. */
.stores { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 13px;
  background: #000; border: 1px solid #2c333d;
  border-radius: 14px; padding: 13px 22px; min-width: 200px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.store:hover { transform: translateY(-3px); border-color: #4a5566; box-shadow: 0 12px 30px rgba(0,0,0,0.55); }
.store:active { transform: translateY(-1px); }
.store svg { flex: none; }
.store-txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-txt small { font-size: 11px; color: #cfd6de; letter-spacing: 0.3px; }
.store-txt strong { font-size: 21px; font-weight: 700; color: #fff; margin-top: 1px; letter-spacing: -0.2px; }
/* Larger pair under the final call-to-action band. */
.stores-lg .store { padding: 15px 26px; min-width: 220px; }
.stores-lg .store-txt strong { font-size: 23px; }
.hero-fine { color: var(--c-text-dim); font-size: 13px; margin-top: 20px; }
.hero-fine a { color: var(--c-primary); }

/* ===== section scaffolding ===== */
section { position: relative; }
.how, .features, .faq { max-width: var(--maxw); margin: 0 auto; padding: 92px 24px; }
/* "How it works" sits closer to the hero so it pulls up into view sooner. */
.how { padding-top: 60px; }
.how h2, .features h2, .faq h2 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 850; margin: 0 0 48px; text-align: center;
}
.faq h2 { margin-bottom: 32px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== how it works ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: linear-gradient(180deg, var(--c-surface), var(--c-bg-2));
  border: 1px solid var(--c-border); border-radius: 18px; padding: 30px 26px;
}
.step-n { font-size: 13px; font-weight: 800; color: var(--c-primary); letter-spacing: 2px; }
.step h3 { font-size: 22px; margin: 12px 0 8px; }
.step p { margin: 0; color: var(--c-text-muted); line-height: 1.55; font-size: 14.5px; }

/* ===== features ===== */
.features { border-top: 1px solid var(--c-border); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.feature {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 16px; padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: #364152; transform: translateY(-2px); }
.feature h3 { font-size: 17px; margin: 0 0 10px; }
.feature p { margin: 0; color: var(--c-text-muted); line-height: 1.55; font-size: 14px; }

/* ===== tail family ===== */
.family { border-top: 1px solid var(--c-border); background: var(--c-bg-2); }
.family-inner { max-width: 760px; margin: 0 auto; padding: 92px 24px; }
.family h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 850; margin: 0 0 16px; text-align: center; }
.family-lede { color: var(--c-text-muted); font-size: 17px; line-height: 1.6; text-align: center; margin: 0 auto 40px; max-width: 620px; }
.family-lede strong { color: var(--c-text); }
.family-photo { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 30px 30px 26px; }
.family-photo h3 { font-size: 19px; margin: 0 0 6px; }
.family-photo > p { color: var(--c-text-muted); margin: 0 0 16px; font-size: 14.5px; }
.family-photo ul { margin: 0; padding-left: 20px; }
.family-photo li { color: var(--c-text-muted); line-height: 1.7; font-size: 14.5px; margin-bottom: 8px; }
.family-photo li strong { color: var(--c-text); }
.family-fine { font-size: 13px; color: var(--c-text-dim); margin: 18px 0 0; }
.family-fine a { color: var(--c-primary); }

/* ===== faq ===== */
.faq { border-top: 1px solid var(--c-border); }
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 13px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 15.5px; padding: 16px 0;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-primary); font-size: 22px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--c-text-muted); line-height: 1.6; font-size: 14.5px; }

/* ===== final cta ===== */
.get-band { text-align: center; padding: 96px 24px 104px; border-top: 1px solid var(--c-border); position: relative; overflow: hidden; }
.get-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, var(--c-glow), transparent 55%);
}
.get-band h2 { font-size: clamp(28px, 5vw, 46px); font-weight: 900; margin: 0 0 30px; position: relative; }
.stores-lg { position: relative; }

/* ===== footer ===== */
footer { border-top: 1px solid var(--c-border); padding: 30px 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--c-text-muted); }
.footer-links a:hover { color: var(--c-text); }
.footer-fine { width: 100%; text-align: center; color: var(--c-text-dim); font-size: 12px; margin: 0; }

/* ===== legal & support sub-pages ===== */
.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; line-height: 1.65; }
.page h1 { font-size: 36px; font-weight: 900; margin: 0 0 8px; }
.page h2 { font-size: 22px; font-weight: 800; margin: 38px 0 14px; }
.page h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.page p, .page li { color: var(--c-text-muted); font-size: 15px; }
.page strong { color: var(--c-text); }
.page table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.page th, .page td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--c-border); }
.page th { font-size: 12px; text-transform: uppercase; color: var(--c-text-muted); }
.page a { color: var(--c-primary); }
.page .updated { color: var(--c-text-dim); font-size: 13px; font-style: italic; margin: -4px 0 24px; }
.page .callout { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 3px solid var(--c-primary); border-radius: 10px; padding: 18px 20px; margin: 22px 0; }
.page .callout p { margin: 0; }

/* ===== responsive ===== */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .how, .features, .faq, .family-inner { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 420px) {
  .stores { width: 100%; }
  .store { flex: 1; justify-content: center; min-width: 0; }
}
