/* =========================================================================
   Ark Parental Control — marketing site styles
   White theme with a blue -> teal gradient accent (matches the app UI).
   Single shared stylesheet for every page.
   ========================================================================= */

:root {
  /* Brand */
  --blue: #2e7dd1;
  --teal: #1fb6a6;
  --grad: linear-gradient(135deg, #5E9AE0 0%, #4AA39C 100%);
  --grad-soft: linear-gradient(135deg, #eaf3fc 0%, #e6f7f4 100%);

  /* Ink + surfaces */
  --ink: #15233b;
  --ink-2: #3a4a63;
  --muted: #64748b;
  --line: #e7eef5;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --white: #ffffff;

  /* Icon chip tints */
  --chip-blue-bg: #e6f0fb;   --chip-blue: #2f86d4;
  --chip-teal-bg: #e3f6f3;   --chip-teal: #15a594;
  --chip-green-bg: #e6f6ec;  --chip-green: #1f9d57;
  --chip-purple-bg: #efeafc; --chip-purple: #7c5cd6;
  --chip-orange-bg: #fdeede; --chip-orange: #e3892f;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(18, 45, 84, 0.07);
  --shadow-lg: 0 24px 60px rgba(18, 45, 84, 0.12);
  --maxw: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(31, 134, 166, 0.28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(31, 134, 166, 0.36); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: #cfe0f2; }
.btn-outline:hover { border-color: var(--blue); }
.btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: inline-grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 6px 14px rgba(31, 134, 166, 0.35);
}
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-soft);
  overflow: hidden;
  padding: 84px 0 72px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px; top: -160px;
  width: 460px; height: 460px;
  background: var(--grad);
  opacity: 0.10;
  border-radius: 50%;
  filter: blur(8px);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

/* phone mock */
.phone {
  justify-self: center;
  width: 290px;
  max-width: 80vw;
  background: #0f1b2d;
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--grad);
  border-radius: 28px;
  min-height: 540px;
  padding: 30px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.phone-screen .pname { font-weight: 800; font-size: 1.4rem; }
.phone-screen .ptag { opacity: 0.9; font-size: 0.92rem; margin-bottom: 22px; }
.phone-card {
  background: #fff; color: var(--ink); border-radius: 16px; padding: 16px;
  margin-top: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: flex; align-items: center; gap: 12px;
}
.phone-card .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; flex: none; }
.phone-card small { color: var(--muted); display: block; font-size: 0.82rem; }
.phone-card .t { font-weight: 700; font-size: 0.96rem; }

/* ---------- Sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 70ch; margin: 0 auto 46px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); margin-bottom: 0; }

.icon-chip {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 24px; margin-bottom: 16px;
}
.chip-blue { background: var(--chip-blue-bg); color: var(--chip-blue); }
.chip-teal { background: var(--chip-teal-bg); color: var(--chip-teal); }
.chip-green { background: var(--chip-green-bg); color: var(--chip-green); }
.chip-purple { background: var(--chip-purple-bg); color: var(--chip-purple); }
.chip-orange { background: var(--chip-orange-bg); color: var(--chip-orange); }

/* ---------- Problem / solution split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.split .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 9px 0 9px 34px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--chip-teal-bg);
  color: var(--chip-teal); font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.painlist li::before { content: "!"; background: var(--chip-orange-bg); color: var(--chip-orange); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff;
  font-weight: 700; display: grid; place-items: center; margin-bottom: 14px;
}

/* ---------- Platform table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.platform { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
table.platform th, table.platform td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.platform thead th { background: var(--bg-alt); font-size: 0.95rem; }
table.platform tbody tr:last-child td { border-bottom: 0; }
table.platform td.center, table.platform th.center { text-align: center; }
.yes { color: var(--chip-green); font-weight: 700; }
.partial { color: var(--chip-orange); font-weight: 700; }
.no { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--grad); color: #fff; border-radius: 24px; padding: 52px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); max-width: 56ch; margin: 0 auto 24px; }

/* ---------- Callout / note ---------- */
.note {
  background: var(--grad-soft);
  border: 1px solid #dbeafe;
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--ink-2);
  margin: 22px 0;
}
.note strong { color: var(--ink); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--grad-soft); padding: 64px 0 50px; text-align: center; }
.page-hero .lead { margin-left: auto; margin-right: auto; }
.page-hero .eyebrow { display: inline-block; }

/* ---------- Legal / prose ---------- */
.legal { padding: 56px 0 80px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal h2 { margin-top: 2.2em; padding-top: 0.4em; }
.legal h2:first-of-type { margin-top: 0.5em; }
.legal h3 { margin-top: 1.6em; color: var(--ink); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1rem; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.96rem; }
.legal table th, .legal table td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
.legal table th { background: var(--bg-alt); }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 36px; }
.toc h3 { margin-top: 0; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; }
.toc a { color: var(--ink-2); }
.updated { color: var(--muted); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--teal); font-weight: 400; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 24px 22px; color: var(--ink-2); }
.faq-item .answer p:last-child { margin-bottom: 0; }
.faq-cat { font-size: 1.3rem; margin: 40px 0 16px; }
.faq-cat:first-child { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-card:last-child { border-bottom: 0; }
.contact-card .icon-chip { margin-bottom: 0; flex: none; }
.contact-card a { font-weight: 600; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; color: var(--ink); font-size: 0.96rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff; transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }

/* ---------- Stat / value rows ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .n { font-size: 2.4rem; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0f1b2d; color: #c3cfde; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .brand { color: #fff; }
.site-footer .brand b { -webkit-text-fill-color: #fff; }
.footer-about { max-width: 38ch; color: #9fb0c4; margin-top: 14px; font-size: 0.96rem; }
.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b9c6d6; font-size: 0.96rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between; padding-top: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 0; align-items: center; }
.footer-links a { color: #b9c6d6; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-links .sep { color: rgba(255, 255, 255, 0.3); margin: 0 12px; }
.footer-copy { color: #7f93aa; font-size: 0.88rem; }
.footer-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; color: #cdd9e7;
  font-size: 0.9rem; margin-top: 16px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.tag-pill { display: inline-block; background: var(--chip-teal-bg); color: var(--chip-teal); font-weight: 700; font-size: 0.78rem; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.03em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .phone { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 14px; }
  .toc ol { columns: 1; }
  .cta-band { padding: 38px 24px; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 6px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn { width: 100%; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .btn-row .btn { width: 100%; }
}
