/* Due North — night-sky theme. Pure static CSS, no external dependencies. */
:root {
  --bg: #0a0f1e;
  --bg-deep: #070b16;
  --surface: #121b32;
  --surface-2: #17223d;
  --line: rgba(148, 163, 190, 0.18);
  --line-soft: rgba(148, 163, 190, 0.10);
  --ink: #eef1f8;
  --body: #c2cadd;
  --muted: #94a0bc;
  --faint: #68738e;
  --gold: #f2b33d;
  --gold-bright: #ffd47a;
  --gold-wash: rgba(242, 179, 61, 0.10);
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 50% -140px, rgba(242, 179, 61, 0.10), rgba(242, 179, 61, 0) 70%);
  background-repeat: no-repeat;
  color: var(--body);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

/* Homepage gets a faint starfield in the top band, behind the hero. */
body.home {
  background-image:
    radial-gradient(900px 420px at 50% -140px, rgba(242, 179, 61, 0.13), rgba(242, 179, 61, 0) 70%),
    radial-gradient(1.6px 1.6px at 8% 12%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 22% 30%, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.8px 1.8px at 79% 16%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.1px 1.1px at 64% 40%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.4px 1.4px at 91% 44%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 100%),
    radial-gradient(1.2px 1.2px at 37% 7%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 100%),
    radial-gradient(1px 1px at 48% 52%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 100%);
  background-size: 100% 640px;
  background-repeat: no-repeat;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--gold);
  filter: drop-shadow(0 0 7px rgba(242, 179, 61, 0.45));
}
.brand-text {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}
.brand:hover .brand-text { color: #ffffff; }
.brand:hover { text-decoration: none; }

/* ---------- type ---------- */
h1, h2, h3 {
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 750; margin: 10px 0 12px; }
h2 { font-size: 22px; font-weight: 700; margin: 44px 0 12px; }
h3 { font-size: 18px; font-weight: 650; margin: 26px 0 8px; }
p { margin: 0 0 15px; }

.lede {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 62ch;
}

/* homepage hero */
.home main > h1 {
  font-size: clamp(44px, 7.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 64px 0 18px;
}
.home main > .lede {
  font-size: clamp(18px, 2.6vw, 21px);
  max-width: 58ch;
}
.home main > h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 56px 0 18px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: rgba(242, 179, 61, 0.35); color: #ffffff; }

/* ---------- breadcrumb ---------- */
nav.breadcrumb {
  font-size: 14px;
  color: var(--faint);
  margin: 28px 0 6px;
}
nav.breadcrumb a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
nav.breadcrumb a:hover { color: var(--gold); }

/* ---------- app cards ---------- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
@media (min-width: 620px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}
.app-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(242, 179, 61, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(242, 179, 61, 0.12);
}
.app-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(242, 179, 61, 0.7);
  border-radius: 1.5px;
}
.app-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.app-card .links { font-size: 14px; font-weight: 600; }
.app-card .links a { margin-right: 16px; }
.app-card .links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ accordion ---------- */
.faq { margin: 22px 0; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: rgba(242, 179, 61, 0.42); }
.faq summary {
  position: relative;
  padding: 16px 54px 16px 18px;
  font-weight: 650;
  font-size: 16.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq summary:hover { color: #ffffff; }
.faq .answer { padding: 2px 18px 18px; }
.faq .answer p:last-child { margin-bottom: 0; }
/* ---------- contact box ---------- */
.contact-box {
  background: linear-gradient(180deg, rgba(242, 179, 61, 0.10), rgba(242, 179, 61, 0.03));
  border: 1px solid rgba(242, 179, 61, 0.32);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
}
.contact-box p { margin: 0 0 6px; }
.contact-box p:last-child { margin-bottom: 0; }
.contact-box strong { color: var(--ink); }
.contact-box a { font-weight: 700; }

/* ---------- meta / policy long-form ---------- */
.meta {
  font-size: 14px;
  color: var(--faint);
  margin: 10px 0 28px;
}

.policy { max-width: 68ch; }
.policy p { color: var(--body); }
.policy h2 {
  font-size: 20px;
  border-top: 1px solid var(--line-soft);
  margin-top: 36px;
  padding-top: 30px;
}
.policy h2:first-of-type {
  border-top: none;
  margin-top: 26px;
  padding-top: 0;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 72px;
}
.site-footer .wrap {
  padding-top: 26px;
  padding-bottom: 44px;
  font-size: 14px;
  color: var(--faint);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .home main > h1 { margin-top: 44px; }
  .app-card { padding: 18px; }
}

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

/* Contact form */
.contact-form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.95rem; color: var(--body); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); padding: 0.7rem 0.9rem; font-size: 1rem; font-family: inherit; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,179,61,0.25);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  background: var(--gold); color: #1a1206; border: none; border-radius: 10px;
  padding: 0.8rem 1.4rem; font-size: 1rem; font-weight: 700; cursor: pointer; justify-self: start;
}
.contact-form button:hover { background: var(--gold-bright); }
.contact-form .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- header nav ---------- */
.site-header .wrap { justify-content: space-between; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a {
  color: var(--body); text-decoration: none; font-size: 0.95rem; font-weight: 600;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }

/* ---------- landing pages ---------- */
.landing-hero {
  display: grid; gap: 2rem; align-items: center;
  margin: 1.5rem 0 0.5rem;
}
@media (min-width: 640px) {
  .landing-hero { grid-template-columns: 1.2fr 0.8fr; }
}
.landing-hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 0 0 0.6rem; }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 0.6rem; }
.store-btn {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 18px; text-decoration: none; min-width: 150px;
  background: var(--surface);
}
.store-btn .store-name { color: var(--ink); font-weight: 700; font-size: 1rem; }
.store-btn .store-sub { color: var(--faint); font-size: 0.8rem; }
.store-btn.is-disabled { opacity: 0.55; cursor: default; }
.soon-note { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* CSS phone mockup (illustrative) */
.phone {
  width: 210px; margin: 0 auto; border-radius: 34px;
  border: 1px solid var(--line); background: var(--bg-deep);
  padding: 26px 18px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 6px rgba(18,27,50,0.6);
}
.phone-screen { position: relative; text-align: center; }
.ring { width: 150px; height: 150px; }
.ring-label {
  position: absolute; top: 0; left: 0; right: 0; height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ring-num { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.ring-sub { font-size: 0.75rem; color: var(--muted); }
.phone-stats { display: flex; justify-content: center; gap: 1.6rem; margin-top: 16px; }
.phone-stats div { display: flex; flex-direction: column; }
.phone-stats span { font-weight: 700; color: var(--gold); font-size: 1.05rem; }
.phone-stats small { color: var(--faint); font-size: 0.72rem; }
.illustration-note { text-align: center; color: var(--faint); font-size: 0.75rem; margin-top: 10px; }

/* features + pricing */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  position: relative; padding-left: 30px; color: var(--body);
}
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold); opacity: 0.9;
}
.price-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
}
.price-line { font-size: 1.25rem; color: var(--ink); margin: 0 0 0.5rem; }
.price-line strong { color: var(--gold); }
.price-card p:last-child { margin-bottom: 0; color: var(--body); }

.more-grid h3 a { color: var(--ink); text-decoration: none; }
.more-grid h3 a:hover { color: var(--gold); }

/* ---------- story page ---------- */
.story h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; color: var(--ink); }
.story p { max-width: 62ch; }
.cta-link { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.cta-link:hover { color: var(--gold-bright); }
.app-card h3 a { color: var(--ink); text-decoration: none; }
.app-card h3 a:hover { color: var(--gold); }

/* Homepage contact form: hidden until the visitor clicks a Contact link */
.contact-collapsible { display: none; }
.contact-collapsible:target { display: block; }
.contact-close { text-align: right; margin: 0 0 0.5rem; font-size: 0.9rem; }
.contact-close a { color: var(--muted); text-decoration: none; }
.contact-close a:hover { color: var(--gold); }
