/* ==========================================================================
   Be Equipped — product marketing + legal site
   Single stylesheet. No build step. System font stack. Light + dark mode.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";

  /* Spacing / layout */
  --maxw: 68rem;
  --maxw-prose: 44rem;
  --radius: 14px;
  --radius-sm: 9px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* Light theme (default) */
  --bg: #fbfaf7;
  --bg-alt: #f3f0e9;
  --surface: #ffffff;
  --text: #1c2529;
  --muted: #55636c;
  --border: #e6e1d7;
  --brand: #1a615d;
  --brand-strong: #124d49;
  --brand-contrast: #ffffff;
  --accent: #b4761f;
  --shadow: 0 1px 2px rgba(20, 30, 35, 0.04), 0 8px 24px rgba(20, 30, 35, 0.06);
  --focus: #1a615d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1417;
    --bg-alt: #141b1f;
    --surface: #171f23;
    --text: #e7ebed;
    --muted: #9aa7ad;
    --border: #29343a;
    --brand: #4fb8b1;
    --brand-strong: #6fc9c2;
    --brand-contrast: #06110f;
    --accent: #e0a44a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.35);
    --focus: #6fc9c2;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-strong);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--brand-contrast);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

section {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: var(--maxw-prose);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.6rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand);
}

@media (max-width: 34rem) {
  .nav-links .nav-hide-sm {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: var(--brand-contrast);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 9vw, 6rem);
}

.hero-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 52rem) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-copy h1 span {
  color: var(--brand);
}

.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
  opacity: 0.75;
  cursor: default;
}

.store-badge svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

.store-badge small {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge strong {
  font-size: 0.95rem;
  font-weight: 600;
}

/* Hero visual: a stylized phone reader */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(17rem, 80%);
  aspect-ratio: 9 / 18.5;
  border-radius: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.1rem 1rem;
  position: relative;
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--border);
}

.phone-screen {
  margin-top: 1.4rem;
}

.phone-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 700;
}

.phone-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.2rem 0 0.9rem;
}

.skeleton {
  height: 0.6rem;
  border-radius: 999px;
  background: var(--bg-alt);
  margin-bottom: 0.55rem;
}

.skeleton.w-90 { width: 90%; }
.skeleton.w-80 { width: 80%; }
.skeleton.w-70 { width: 70%; }
.skeleton.w-60 { width: 60%; }
.skeleton.img {
  height: 4.5rem;
  border-radius: var(--radius-sm);
  margin: 0.9rem 0;
}

.phone-listen {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.phone-listen svg { width: 0.9rem; height: 0.9rem; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.card .icon {
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  margin-bottom: 0.9rem;
}

.card .icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.card h3 {
  margin-bottom: 0.3rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.4rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--brand-contrast);
  background: var(--brand);
  border-radius: 50%;
}

.step h3 {
  margin-bottom: 0.25rem;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- CTA band ---------- */
.cta {
  text-align: center;
}

.cta .lead {
  margin-inline: auto;
}

/* ---------- Prose (legal / support pages) ---------- */
.prose {
  max-width: var(--maxw-prose);
}

.page-header {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: 0;
}

.prose h2 {
  margin-top: 2.2rem;
  font-size: 1.4rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Placeholder / legal-review notice */
.notice {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.97rem;
}

.notice strong {
  color: var(--accent);
}

/* FAQ */
.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.4rem 1.2rem;
  margin-bottom: 0.8rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.9rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  font-weight: 400;
  line-height: 1;
}

.faq[open] summary::after {
  content: "\2013"; /* en dash */
}

.faq summary:hover {
  color: var(--brand);
}

.faq-body {
  padding: 0 0 1rem;
  color: var(--muted);
}

.faq-body :last-child {
  margin-bottom: 0;
}

/* Contact callout */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.callout a {
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  margin-top: clamp(2rem, 6vw, 4rem);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 22rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.6rem 0 0;
}

.footer-nav {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-nav h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin: 0 0 0.7rem;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-legal p {
  margin: 0;
}
