/* DinkNSync site styles.
   Palette matches the app (src/theme.ts): navy #12294C, teal #0C7C93,
   lime #8CC63F. One stylesheet for the landing page and the legal pages. */

:root {
  --bg: #F1F5F8;
  --surface: #FFFFFF;
  --surface-alt: #E7EEF3;
  --navy: #12294C;
  --navy-deep: #0C1D38;
  --teal: #0C7C93;
  --teal-dark: #095F72;
  --lime: #8CC63F;
  --lime-dark: #5E9A17;
  --text: #12294C;
  --muted: #5E7284;
  --border: #DBE4EA;
  --danger: #C62828;
  --wrap: 68rem;
  --measure: 44rem;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 41, 76, .06), 0 12px 32px rgba(18, 41, 76, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- Header ---------------------------------------------------- */

.site { background: var(--navy); color: #fff; }
.site__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem;
  letter-spacing: -.01em;
}
.brand img { border-radius: 8px; }
.brand em { color: var(--lime); font-style: normal; }
.site__nav { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .95rem; }
.site__nav a { color: #C9D6E4; text-decoration: none; }
.site__nav a:hover, .site__nav a[aria-current] { color: #fff; }

/* ---------- Hero ------------------------------------------------------ */

.hero {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero__eyebrow {
  display: inline-block; background: rgba(140, 198, 63, .15);
  color: var(--lime); border: 1px solid rgba(140, 198, 63, .35);
  border-radius: 999px; padding: .3rem .85rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.08;
  letter-spacing: -.03em; margin: 0 0 1rem;
}
.hero h1 em { color: var(--lime); font-style: normal; }
.hero__lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #C9D6E4; margin: 0 0 2rem; max-width: 34rem; }
.hero__note { margin-top: 1.25rem; color: #93A8BC; font-size: .9rem; }

/* ---------- Store badges ---------------------------------------------- */

.badges { display: flex; gap: .85rem; flex-wrap: wrap; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 10.5rem; min-height: 52px; padding: .45rem 1.25rem;
  background: #000; color: #fff; border: 1px solid #3A4A5E;
  border-radius: 10px; text-decoration: none; line-height: 1.25;
}
.badge:hover { border-color: var(--lime); }
.badge img { display: block; }
.badge-kicker { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: #B9C6D4; }
.badge-store { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.badge--soon { opacity: .6; cursor: default; }
.badge--soon:hover { border-color: #3A4A5E; }

/* ---------- Phone mock ------------------------------------------------ */

.phone {
  width: min(19rem, 100%); margin-inline: auto;
  background: #0A1730; border: 10px solid #0A1730;
  border-radius: 38px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.phone__screen { background: var(--bg); border-radius: 28px; overflow: hidden; }
.phone__bar {
  background: var(--navy); color: #fff; padding: .7rem 1rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; font-weight: 700;
}
.phone__body { padding: 1rem; display: grid; gap: .75rem; }
.score {
  background: var(--surface); border-radius: 14px; padding: 1rem;
  display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center;
  box-shadow: 0 1px 2px rgba(18, 41, 76, .08);
}
.score--a { border-left: 5px solid var(--lime-dark); }
.score--b { border-left: 5px solid var(--teal); }
.score__team { font-weight: 700; font-size: .95rem; color: var(--text); }
.score__meta { font-size: .72rem; color: var(--muted); }
.score__num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.score__call {
  text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}
.phone__cta {
  background: var(--teal); color: #fff; text-align: center;
  border-radius: 999px; padding: .8rem; font-weight: 700; font-size: .9rem;
}

/* ---------- Sections -------------------------------------------------- */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { max-width: var(--measure); margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section__head h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -.02em; margin: 0 0 .75rem; }
.section__head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.section--alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin: .75rem 0 .5rem; font-size: 1.1rem; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--surface-alt); color: var(--teal);
  display: grid; place-items: center;
}
.section--alt .card__icon { background: var(--surface); }
.card__icon svg { width: 22px; height: 22px; }

/* ---------- CTA ------------------------------------------------------- */

.cta { background: var(--navy); color: #fff; padding-block: clamp(3rem, 7vw, 4.5rem); text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.02em; margin: 0 0 .75rem; }
.cta p { color: #C9D6E4; max-width: 34rem; margin: 0 auto 2rem; }
.cta .badges { justify-content: center; }

/* ---------- Article (legal pages) ------------------------------------- */

.article { padding-block: clamp(2.5rem, 5vw, 4rem); }
.article__inner { max-width: var(--measure); margin: 0 auto; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5rem; }
.article h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; letter-spacing: -.01em; }
.article h3 { font-size: 1rem; margin: 1.75rem 0 .5rem; }
.article .updated { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin: .4rem 0; }
.article table {
  min-width: 100%; border-collapse: collapse; margin: 1rem 0;
  font-size: .95rem; display: block; overflow-x: auto;
}
.article th, .article td {
  text-align: left; padding: .6rem .75rem;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.article th { background: var(--surface); font-weight: 700; }

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--lime); border-radius: 12px;
  padding: 1.25rem 1.25rem .5rem; margin: 0 0 2rem;
}
.callout h2 {
  margin-top: 0; font-size: 1rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
}
.warn {
  background: #FDF2F2; border: 1px solid #F3C6C6; border-left: 4px solid var(--danger);
  border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.warn strong { color: var(--danger); }
.option {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem 1.5rem .75rem; margin: 0 0 1.25rem;
}
.option h2 { margin-top: 0; }
.pill {
  display: inline-block; background: var(--lime); color: var(--navy);
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; border-radius: 999px; padding: .2rem .6rem;
  vertical-align: middle; margin-left: .5rem;
}
.btn-mail {
  display: inline-block; background: var(--teal); color: #fff !important;
  text-decoration: none; font-weight: 700; border-radius: 999px;
  padding: .7rem 1.4rem; margin: .5rem 0 1rem;
}
.btn-mail:hover { background: var(--teal-dark); }
.disclaimer {
  font-size: .85rem; color: var(--muted); font-style: italic;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}

/* ---------- Footer ---------------------------------------------------- */

.foot { background: var(--navy-deep); color: #93A8BC; padding-block: 2.5rem 2rem; font-size: .9rem; }
.foot a { color: #C9D6E4; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__inner {
  display: flex; justify-content: space-between; gap: 2rem;
  flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.foot__brand { display: flex; gap: .85rem; align-items: center; }
.foot__brand img { border-radius: 10px; }
.foot__brand strong { display: block; color: #fff; font-size: 1.05rem; }
.foot__brand span { display: block; }
.foot__nav { display: flex; flex-direction: column; gap: .5rem; }
.foot__legal { padding-top: 1.5rem; }
.foot__legal p { margin: 0 0 .75rem; }
.foot__disclaimer { font-size: .8rem; line-height: 1.6; color: #6F8399; }

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .phone { width: min(16rem, 100%); }
  .foot__nav { flex-flow: row wrap; gap: .5rem 1.25rem; }
}

@media (max-width: 480px) {
  .site__nav { gap: .9rem; font-size: .88rem; }
  .badge { min-width: 0; flex: 1 1 9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
