/* Placie — placie.net shared stylesheet.
   Brand tokens from placie-android/STYLE.md. Mobile-first; breakpoints ~720px / ~1080px.
   One dark system across every page: navy background, raised navy surfaces,
   white text, blue-tinted chips; the brand gradient is reserved for primary
   actions and small accents. Never use --muted/--hint on navy — those are the
   light-surface neutrals; on navy use the --on-navy-* tokens or --blue-4. */

:root {
  --navy: #020C35;
  --blue-1: #184CFF;
  --blue-2: #3882FE;
  --blue-3: #40A7FC;
  --blue-4: #47CCFB;
  --cyan: #4EF1F9;
  --muted: #667085;
  --hint: #98A2B3;
  --hairline: #D7E3F0;
  --soft: #F5FAFF;
  --card: #FFFFFF;
  --success: #12B76A;
  --warn: #FFB84D;
  --error-rose: #FF5A7A;
  --grad: linear-gradient(90deg, #184CFF, #4EF1F9);
  /* Text-safe gradient: starts at blue-2 so glyphs stay ≥5:1 on navy. */
  --grad-text: linear-gradient(90deg, var(--blue-2), var(--cyan));
  --radius-card: 20px;
  --radius-btn: 14px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --surface: #0B1540;
  --surface-border: rgba(255, 255, 255, 0.12);
  --surface-border-strong: rgba(255, 255, 255, 0.22);
  --chip-bg: rgba(24, 76, 255, 0.28);
  --on-navy-body: rgba(255, 255, 255, 0.84);
  --on-navy-muted: rgba(255, 255, 255, 0.72);
  --on-navy-faint: rgba(255, 255, 255, 0.68);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  background: var(--navy);
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

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

a { color: var(--blue-4); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue-3);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-btn) 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 12, 53, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(2, 12, 53, 0.85); backdrop-filter: blur(8px); }
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.brand img { width: 24px; height: 29px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: 999px;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- Buttons, pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 160ms ease, box-shadow 160ms ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 6px 24px rgba(24, 76, 255, 0.35); }
.btn-primary:disabled { filter: grayscale(0.35) brightness(0.9); cursor: default; box-shadow: none; }
.btn-secondary {
  background: var(--soft);
  color: var(--navy);
  border: 1px solid var(--hairline);
}
.btn-secondary:hover { filter: brightness(0.98); }
.btn-block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* "Coming soon" store badges — plain styled text, deliberately not links. */
.store-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.store-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  padding: 10px 22px;
  min-width: 170px;
}
.store-pill .kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-4);
}
.store-pill .name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- Sections (navy landing) ---------- */

.section { padding: 64px 0; scroll-margin-top: 90px; }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-4);
  margin-bottom: 10px;
}

.section-title { font-size: 1.75rem; margin-bottom: 12px; }
.section-lede { color: var(--on-navy-body); max-width: 34em; }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 64px;
  text-align: center;
  background: radial-gradient(56rem 40rem at 50% 82%, rgba(24, 76, 255, 0.22), transparent 65%);
}
.hero h1 {
  font-size: 2.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero .sub {
  color: var(--on-navy-body);
  font-size: 1.125rem;
  max-width: 32em;
  margin: 0 auto 28px;
}
.hero .cta-note {
  color: var(--on-navy-faint);
  font-size: 0.875rem;
  margin: 14px 0 0;
}
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.trust-chips .pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--surface-border);
  color: var(--on-navy-body);
}
.trust-chips .tick { color: var(--blue-4); font-weight: 700; }
.hero-phone { margin: 44px auto 0; position: relative; }
/* Spotlight glow behind the hero device, and a light bezel, so the dark
   in-app screenshot silhouettes against the navy page instead of sinking in. */
.hero-phone::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(540px, 96vw);
  height: min(680px, 120%);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(56, 130, 254, 0.45), rgba(78, 241, 249, 0.12) 60%, transparent 78%);
  pointer-events: none;
}
.hero-phone .phone {
  position: relative;
  background: #E9EFF8;
  border-color: rgba(255, 255, 255, 0.65);
}

/* ---------- Phone frame ---------- */

.phone {
  width: min(300px, 78vw);
  margin: 0 auto;
  background: #0A1230;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 24px;
  color: #fff;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.card h3 { color: #fff; margin-bottom: 6px; }
.card p { color: var(--on-navy-muted); margin: 0; font-size: 0.9375rem; }
.card-grid .card:hover {
  border-color: var(--surface-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--blue-4);
  margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; display: block; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 28px;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  counter-increment: step;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--chip-bg);
  border: 1px solid rgba(71, 204, 251, 0.35);
  color: var(--blue-4);
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-num::before { content: counter(step); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--on-navy-muted); margin: 0; font-size: 0.9375rem; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 36px;
}
.gallery figure { margin: 0; }
.gallery .phone {
  width: min(260px, 72vw);
  /* Brand-gradient ring: gradient paints the border-box, dark bezel fills the padding-box. */
  border: 2px solid transparent;
  background: linear-gradient(#0A1230, #0A1230) padding-box, var(--grad) border-box;
}
/* The member-detail capture dims the map behind its sheet; lift the exposure
   so it doesn't read as the dark sibling between two bright frames. */
.gallery figure:nth-child(2) img { filter: brightness(1.22) contrast(1.04); }
.gallery figcaption {
  text-align: center;
  color: var(--on-navy-muted);
  font-size: 0.875rem;
  max-width: 22em;
  margin: 16px auto 0;
}

/* ---------- Privacy strip ---------- */

.privacy-strip .card {
  padding: 32px 24px;
}
.privacy-strip .card p {
  font-size: 1rem;
  max-width: 44em;
  color: var(--on-navy-body);
  margin-bottom: 1em;
}
.privacy-strip .btn { margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy);
  color: #fff;
  padding: 44px 0 36px;
  margin-top: 24px;
}
.site-footer .tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 20px;
}
.site-footer .tagline img { width: 20px; height: 24px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 20px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { color: var(--on-navy-faint); font-size: 0.8125rem; margin: 0 0 4px; }

/* ---------- Sub-pages (long-form, same dark system) ---------- */

.page-main { padding: 40px 0 64px; }

.content-col {
  max-width: 760px;
  margin: 0 auto;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  color: var(--on-navy-body);
}
.article-card h1, .article-card h2, .article-card h3 { color: #fff; }
.article-card strong { color: #fff; }

.content-col h1 { font-size: 1.875rem; margin-bottom: 8px; }
.content-col h2 { font-size: 1.25rem; margin-top: 1.8em; }
.content-col h3 { font-size: 1.0625rem; margin-top: 1.6em; }
.content-col .meta { color: var(--on-navy-muted); font-size: 0.875rem; font-weight: 700; }
.content-col ul, .content-col ol { padding-left: 1.4em; margin: 0 0 1em; }
.content-col li { margin-bottom: 0.4em; }

.callout {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-btn);
  padding: 18px 20px;
  margin: 0 0 1.2em;
}
.callout > :last-child { margin-bottom: 0; }
.callout-note { border-left: 4px solid var(--blue-3); }
.callout-warn { border-left: 4px solid var(--warn); }

.table-scroll { overflow-x: auto; margin: 0 0 1em; }
.content-col table {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  font-size: 0.9375rem;
}
.content-col th, .content-col td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  vertical-align: top;
}
.content-col th { background: rgba(255, 255, 255, 0.07); color: #fff; }

/* ---------- Forms (reset page) ---------- */

.form-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  color: var(--on-navy-body);
}
.form-card h1, .form-card h2 { color: #fff; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-btn);
  padding: 15px 16px;
  font-family: var(--font);
  font-size: 1rem;
  color: #fff;
}
.field input:focus-visible { outline: 3px solid var(--blue-3); outline-offset: 0; border-color: var(--blue-3); }
.field .hint-text { color: var(--on-navy-muted); font-size: 0.8125rem; margin: 6px 0 0; }

.form-msg { min-height: 1.4em; font-size: 0.9375rem; font-weight: 700; margin: 0 0 14px; }
.form-msg.error { color: var(--error-rose); }

.success-card { text-align: center; }
.success-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- 404 ---------- */

.oops {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 20px;
}
.oops img { width: 72px; height: 87px; margin-bottom: 24px; }
.oops p { color: var(--on-navy-body); max-width: 26em; }
.oops a { color: var(--blue-4); font-weight: 700; text-decoration: none; }
.oops a:hover { text-decoration: underline; }

/* ---------- Breakpoints ---------- */

@media (min-width: 720px) {
  .hero h1 { font-size: 3rem; }
  .section { padding: 80px 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .gallery .phone { width: 100%; max-width: 240px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .article-card { padding: 40px 44px; }
  .form-card { padding: 36px 36px; }
}

@media (min-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .hero {
    text-align: left;
    padding: 72px 0 48px;
    background: radial-gradient(56rem 40rem at 74% 46%, rgba(24, 76, 255, 0.22), transparent 65%);
  }
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }
  .hero .sub { margin-left: 0; }
  .hero .store-pills { justify-content: flex-start; }
  .hero .trust-chips { justify-content: flex-start; }
  .hero-phone { margin: 0; }
  .hero h1 { font-size: 3.375rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
