/* InstaDial website - shared styles.
   System fonts only, no JavaScript, no third-party requests. */

:root {
  --indigo: #3d5afe;
  --indigo-dk: #2c45d6;
  --navy: #0b1020;
  --amber: #ffb300;

  --bg: #f6f7fc;
  --surface: #ffffff;
  --tint: #eaeeff;
  --text: #0b1020;
  --muted: #4d5675;
  --line: #dde2f3;
  --link: #2f49e0;
  --shadow: 0 1px 2px rgba(11, 16, 32, .05), 0 12px 32px -14px rgba(11, 16, 32, .2);

  --r: 18px;
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --surface: #121936;
    --tint: #1a2350;
    --text: #edf0ff;
    --muted: #a8b1d6;
    --line: #232c57;
    --link: #9db0ff;
    --shadow: none;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { display: block; max-width: 100%; }
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  padding: .6rem 1rem; background: var(--amber); color: var(--navy);
  font-weight: 700; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  color: #fff; text-decoration: none; font-weight: 750; font-size: 1.15rem; letter-spacing: -.01em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav a:not(.btn) { color: #c9d1f5; text-decoration: none; font-size: .95rem; font-weight: 550; }
.nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: .3em; }
.nav-links { display: none; gap: 1.5rem; }
@media (min-width: 700px) { .nav-links { display: flex; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.45rem;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.btn-play { background: var(--amber); color: var(--navy); }
.btn-play:hover { background: #ffc233; transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(255, 179, 0, .7); text-decoration: none; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: #fff; text-decoration: none; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-dk); transform: translateY(-1px); text-decoration: none; }
.btn-sm { min-height: 40px; padding: .4rem 1.05rem; font-size: .92rem; }
.btn:focus-visible { outline-color: #fff; outline-offset: 3px; }
.btn-primary:focus-visible { outline-color: var(--link); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 7.4vw, 4rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }
.hl { color: var(--amber); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #b9c4ff;
}
.eyebrow::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 179, 0, .22);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(760px 460px at 84% 6%, rgba(61, 90, 254, .55), transparent 62%),
    radial-gradient(520px 360px at 4% 100%, rgba(61, 90, 254, .3), transparent 66%),
    linear-gradient(180deg, var(--navy) 0%, #10183a 100%);
}
.hero-grid { display: grid; gap: 3rem; align-items: center; padding-block: 2.75rem 4.25rem; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.12fr .88fr; gap: 2rem; padding-block: 4.5rem 5.5rem; }
}
.lead { margin: 1.15rem 0 1.85rem; max-width: 34rem; font-size: clamp(1.06rem, 2.4vw, 1.25rem); color: #cdd5fa; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.compat { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .88rem; color: #c3cbf0; }
.compat li { padding: .28rem .8rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; }

/* Illustration of the favourites screen (decorative) */
.phone {
  width: min(100%, 288px); margin-inline: auto; padding: 11px; border-radius: 46px;
  background: #060a1c; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 44px 80px -32px rgba(0, 0, 0, .75), 0 0 0 9px rgba(255, 255, 255, .04);
  transform: rotate(3deg);
}
.screen { padding: 18px 13px 14px; border-radius: 36px; background: #f4f6ff; color: var(--navy); }
.screen-top { display: flex; align-items: center; justify-content: space-between; margin: 2px 6px 12px; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }
.screen-top .ic { width: 20px; height: 20px; color: #4d5675; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tile {
  display: grid; justify-items: center; gap: 6px; padding: 12px 8px 10px;
  background: #fff; border-radius: 20px; box-shadow: 0 1px 2px rgba(11, 16, 32, .1);
}
.avatar {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  color: #fff; font-size: 1.45rem; font-weight: 800;
}
.a1 { background: #3d5afe; }
.a2 { background: #ffb300; color: var(--navy); }
.a3 { background: #e5484d; }
.a4 { background: #29b6f6; color: var(--navy); }
.a5 { background: #7c4dff; }
.a6 { background: #64748b; }
.tile b { font-size: .88rem; font-weight: 700; }
.acts { display: flex; gap: 6px; }
.acts i {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #e6ebff; color: #2f49e0;
}
.acts .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 5.75rem); }
.section-head { max-width: 40rem; margin: 0 0 2.3rem; }
.sub { margin: .8rem 0 0; font-size: 1.1rem; color: var(--muted); }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px) and (max-width: 959px) { .grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }

.card {
  padding: 1.45rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--link); }
.card h3 { margin: 1.05rem 0 .35rem; }
.card p { margin: 0; font-size: 1rem; color: var(--muted); }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--link); }

.band { background: var(--tint); }
.family { display: grid; gap: 2.2rem; align-items: center; }
@media (min-width: 880px) { .family { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.family p { margin: 1rem 0 0; font-size: 1.1rem; color: var(--muted); }
.steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li {
  position: relative; padding: 1.1rem 1.2rem 1.1rem 4.3rem; counter-increment: s;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.steps li::before {
  content: counter(s); position: absolute; left: 1.1rem; top: 1.05rem;
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--indigo); color: #fff; font-weight: 800;
}
.steps b { display: block; font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: .98rem; }

/* Privacy highlight + final call to action (always dark) */
.dark { color: #fff; background: linear-gradient(180deg, var(--navy), #10183a); }
.dark .eyebrow { color: #b9c4ff; }
.dark .lead { color: #cdd5fa; max-width: 38rem; margin-bottom: 0; }
.proof { display: grid; gap: 1rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(3, 1fr); } }
.proof li { padding: 1.45rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .13); border-radius: var(--r); }
.proof .ico { background: rgba(255, 179, 0, .15); color: var(--amber); }
.proof h3 { margin: 1rem 0 .3rem; font-size: 1.25rem; color: #fff; }
.proof p { margin: 0; color: #c3cbf0; font-size: 1rem; }
.dark .more { display: inline-block; margin-top: 1.6rem; color: #fff; font-weight: 650; }
.cta-band { text-align: center; }
.cta-band h2 { max-width: 30rem; margin-inline: auto; }
.cta-band .btn { margin-top: 1.7rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.6rem 2.2rem; background: var(--navy); color: #b3bde8; font-size: .95rem; }
.site-footer a { color: #e2e7ff; }
.foot { display: grid; gap: 1.6rem; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.3fr 1fr; } }
.foot p { margin: .7rem 0 0; max-width: 28rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .foot-links { justify-content: flex-end; align-content: flex-start; } }
.legal { margin-top: 1.9rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .85rem; color: #98a3d4; }
.legal p { margin: 0 0 .5rem; max-width: 62rem; }

/* ---------- Policy / document pages ---------- */
.doc { max-width: 46rem; margin-inline: auto; padding-block: 2.6rem 4.5rem; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); }
.meta { margin: .7rem 0 0; color: var(--muted); }
.doc h2 { margin: 2.6rem 0 .7rem; font-size: 1.45rem; letter-spacing: -.015em; scroll-margin-top: 1rem; }
.doc h3 { margin: 1.5rem 0 .3rem; }
.doc p { margin: .8rem 0; }
.doc ul { margin: .8rem 0; padding-left: 1.3rem; }
.doc li { margin: .4rem 0; }
.callout {
  margin: 1.8rem 0 0; padding: 1.15rem 1.3rem; background: var(--surface);
  border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: 14px;
}
.callout h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.callout ul { margin-bottom: 0; }
.toc { margin: 1.8rem 0 0; padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.toc h2 { margin: 0 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2 14rem; column-gap: 2rem; }
.toc li { margin: .25rem 0; break-inside: avoid; }
.perm { margin: 1rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.perm > div { display: grid; gap: .15rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.perm > div:last-child { border-bottom: 0; }
.perm dt { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.perm dd { margin: 0; }
@media (min-width: 600px) { .perm > div { grid-template-columns: 11rem 1fr; gap: 1rem; } }
code { padding: .08em .32em; border-radius: 6px; background: var(--tint); font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; }

/* ---------- 404 ---------- */
.nf { padding-block: clamp(3.5rem, 12vw, 8rem); text-align: center; }
.nf-code { margin: 0; font-size: clamp(5rem, 24vw, 10rem); line-height: 1; font-weight: 800; letter-spacing: -.05em; color: var(--indigo); }
.nf h1 { margin-top: .4rem; font-size: clamp(1.9rem, 6vw, 3rem); }
.nf p:not(.nf-code) { max-width: 30rem; margin: .9rem auto 1.8rem; color: var(--muted); }

@media (prefers-color-scheme: dark) { .nf-code { color: var(--link); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .phone { transform: none; }
}
@media print {
  .site-header, .toc, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .site-footer { padding: 1rem 0; background: none; color: #000; }
  .site-footer a, .legal { color: #000; }
}
