/* Easy By Design, LLC — site styles. No external resources: fonts are self-hosted. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand colors, sampled from the logo */
  --brand: #0175fd;
  --brand-strong: #005fd1;
  --navy: #0c1d34;
  --brand-soft: #e8f1ff;

  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --surface: #ffffff;
  --text: #0c1d34;
  --text-muted: #4a5a70;
  --border: #dde5f0;
  --shadow: 0 1px 2px rgba(12, 29, 52, 0.06), 0 8px 24px rgba(12, 29, 52, 0.06);
  --link: #0062d6;

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);

  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #3d95ff;
    --brand-strong: #6aaeff;
    --brand-soft: #10264a;
    --bg: #0a1220;
    --bg-alt: #0e1829;
    --surface: #111d31;
    --text: #e9eff8;
    --text-muted: #a3b1c6;
    --border: #1f2e47;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --link: #6aaeff;
  }
}

*, *::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;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 34px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-name span { color: var(--brand); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.97rem;
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: 10px;
  width: 44px; height: 44px; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
}

/* Light/dark logo swap */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 10vw, 112px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(60% 60% at 85% 10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, #6e41f2 12%, transparent), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-logo { justify-self: center; width: 100%; max-width: 420px; filter: drop-shadow(0 20px 40px rgba(1, 117, 253, 0.18)); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--brand), #6e41f2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--text-muted); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { max-width: 300px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: clamp(40px, 7vw, 72px) 0 clamp(28px, 5vw, 48px);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 40em; margin: 0; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card p { color: var(--text-muted); margin: 0; }
.card h3 { margin-bottom: 8px; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 3px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.cta {
  border-radius: 24px; padding: clamp(32px, 6vw, 56px);
  background: linear-gradient(120deg, var(--navy), #13325c 55%, var(--brand));
  color: #fff; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { color: rgba(255, 255, 255, 0.82); margin: 0; }
.cta .btn-primary { background: #fff; color: var(--navy); }
.cta .btn-primary:hover { background: #e8f1ff; color: var(--navy); }

/* ---------- Product cards (apps / games) ---------- */
.product { display: flex; flex-direction: column; gap: 14px; }
.product-head { display: flex; gap: 16px; align-items: center; }
.product-icon { width: 72px; height: 72px; border-radius: 18px; border: 1px solid var(--border); flex: none; }
.product-meta { font-size: 0.9rem; color: var(--text-muted); }
.store-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
}
.empty-state { text-align: center; padding: clamp(40px, 8vw, 72px) 24px; }
.empty-state .icon-badge { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 18px; }
.empty-state .icon-badge svg { width: 34px; height: 34px; }
.empty-state p { margin-left: auto; margin-right: auto; max-width: 34em; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon-badge { margin: 0; flex: none; }
.contact-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.contact-item a, .contact-item span { color: var(--text-muted); overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--brand); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-family: var(--font-display);
  font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--text-muted); }
.faq details > div p:last-child, .faq details > div ul:last-child { margin-bottom: 0; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; padding-top: 0.4em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose .meta { color: var(--text-muted); font-size: 0.95rem; }
.note {
  border: 1px solid var(--border); border-left: 4px solid var(--brand); background: var(--bg-alt);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 1.4em;
}
.note p:last-child { margin: 0; }

.toc {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin: 28px 0 8px;
}
.toc h2 { font-size: 1.05rem; margin: 0 0 10px; padding: 0; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--bg-alt); font-family: var(--font-display); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td { color: var(--text-muted); }
td strong { color: var(--text); }
.prose table { min-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }
.site-footer address { font-style: normal; color: var(--text-muted); }
.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); max-width: 26em; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--text-muted);
}
