/* ---------------------------------------------------------------
   WipCount website
   Plain CSS, no framework, no build step. Edit and re-upload.

   Audience note: most visitors are 50+ and many find technology
   hard work. That drives the whole stylesheet — large text, high
   contrast, big tap targets, nothing that moves on its own.
   --------------------------------------------------------------- */

:root {
  --magenta: #E4187E;
  --magenta-dark: #C4106A;
  --pink: #F49AC6;
  --navy: #10243D;
  --teal: #7FD8C4;
  --teal-ink: #2F7F6D;
  --grey: #6B7378;
  --cream: #F7F0E4;
  --cream-deep: #EFE5D3;
  --line: #E0D6C4;
  --white: #FFFFFF;

  --wrap: 1080px;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(16, 36, 61, .07), 0 12px 28px rgba(16, 36, 61, .06);
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--white);
}

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

img, svg { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow { max-width: 760px; }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.15rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
a { color: var(--magenta-dark); }
a:hover { color: var(--magenta); }
strong { font-weight: 700; }

.lede { font-size: 1.2rem; color: #33465C; }
.muted { color: var(--grey); }
.small { font-size: .95rem; }

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

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

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
}

.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 28px; padding-top: 14px; padding-bottom: 14px;
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 190px; display: block; }

.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-left: auto; }
.nav a {
  color: var(--navy); text-decoration: none; font-weight: 600;
  padding: 8px 2px; border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--magenta-dark); border-bottom-color: var(--pink); }
.nav a[aria-current="page"] { color: var(--magenta-dark); border-bottom-color: var(--magenta); }

/* The three-line menu button. Hidden on wide screens, and hidden entirely
   if JavaScript is off — in that case the plain menu just stays visible. */
.nav-toggle { display: none; }

.nav-bars, .nav-bars::before, .nav-bars::after {
  display: block; width: 22px; height: 3px;
  background: currentColor; border-radius: 2px;
}
.nav-bars { position: relative; }
.nav-bars::before, .nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -7px; }
.nav-bars::after  { top: 7px; }

@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap {
    flex-direction: column; align-items: flex-start; position: relative;
  }
  .nav { margin-left: 0; width: 100%; }
  .brand img { width: 160px; }

  .has-js .nav-toggle {
    display: inline-flex; align-items: center; gap: 11px;
    position: absolute; top: 12px; right: 20px;
    font: inherit; font-weight: 700; font-size: .98rem;
    color: var(--navy); background: var(--white);
    border: 2px solid var(--navy); border-radius: 12px;
    padding: 11px 15px; cursor: pointer;
    /* comfortably bigger than the 44px minimum tap target */
  }
  .has-js .nav-toggle:hover { background: var(--navy); color: #fff; }

  .has-js .nav { display: none; }
  .has-js .nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    width: 100%; margin-top: 6px; padding-bottom: 6px;
  }
  .has-js .nav.is-open a {
    padding: 15px 0 15px 14px;
    border-bottom: 1px solid var(--line);
    border-left: 4px solid transparent;
    font-size: 1.08rem;
  }
  .has-js .nav.is-open a[aria-current="page"] {
    border-left-color: var(--magenta);
    border-bottom-color: var(--line);
    background: var(--cream);
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 12px; }

/* ---------- sections ---------- */

section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #EDF1F6; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: var(--teal); }

.section-head { max-width: 640px; margin-bottom: 40px; }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(244,154,198,.28), transparent 60%),
    var(--cream);
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center;
}
.hero-art { justify-self: center; width: 100%; max-width: 300px; }
/* width is set explicitly: a centred grid item shrinks to fit its contents,
   so anything without an intrinsic size would collapse to nothing */

/* the bezel drawn around a plain screen capture */
.phone {
  border: 8px solid var(--navy);
  border-radius: 36px;
  background: var(--navy);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 18px 40px rgba(16, 36, 61, .2);
}
.phone img { width: 100%; display: block; border-radius: 28px; }

.eyebrow {
  display: inline-block;
  background: var(--white); border: 1px solid var(--line);
  color: var(--teal-ink); font-weight: 700; font-size: .92rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 250px; }
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.card-icon {
  width: 44px; height: 44px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--cream); border-radius: 12px;
}
.card-icon svg { width: 24px; height: 24px; display: block; }

/* numbered steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 32px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--magenta); color: #fff;
  font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center;
}

/* ---------- price ---------- */

.price-box {
  background: var(--white); border: 2px solid var(--magenta);
  border-radius: var(--radius); padding: 34px;
  max-width: 520px; box-shadow: var(--shadow);
}
.price-tag { font-size: 2.4rem; font-weight: 800; color: var(--magenta); line-height: 1.1; }
.tick-list { list-style: none; padding: 0; margin: 20px 0 0; }
.tick-list li {
  padding-left: 34px; margin-bottom: 12px; position: relative;
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E4187E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- faq ---------- */

.faq { max-width: 780px; }
.faq details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 12px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.08rem;
  padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.7rem; font-weight: 400;
  color: var(--magenta); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > *:not(summary) { margin-top: 14px; }
.faq details p:last-child { padding-bottom: 8px; }

/* ---------- forms ---------- */

.form { max-width: 620px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; }
.field .hint { font-size: .95rem; color: var(--grey); margin: 0 0 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--navy);
  padding: 13px 15px;
  border: 2px solid #C9C0B1; border-radius: 10px;
  background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--magenta); outline: none;
  box-shadow: 0 0 0 3px rgba(228,24,126,.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.required { color: var(--magenta); }

.notice {
  border-left: 5px solid var(--teal);
  background: #F1FAF7;
  padding: 18px 22px; border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.notice.warn { border-left-color: var(--magenta); background: #FDF0F6; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- legal pages ---------- */

.legal { padding: 48px 0 72px; }
.legal h2 { margin-top: 2em; font-size: 1.5rem; }
.legal h3 { margin-top: 1.6em; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal th, .legal td {
  text-align: left; padding: 12px 14px;
  border: 1px solid var(--line); vertical-align: top;
}
.legal th { background: var(--cream); font-weight: 700; }

/* On a phone a three-column table is what pushes a page sideways. Tighten the
   padding first — that keeps every column readable — and let it scroll inside
   its own box as a last resort, so the page itself never moves. */
@media (max-width: 640px) {
  .legal table { display: block; overflow-x: auto; font-size: .95rem; }
  .legal th, .legal td { padding: 10px 9px; }
}
.legal .updated {
  display: inline-block; background: var(--cream);
  padding: 6px 14px; border-radius: 999px;
  font-size: .95rem; color: var(--grey); margin-bottom: 12px;
}

.toc {
  background: var(--cream); border-radius: var(--radius);
  padding: 22px 26px; margin: 28px 0 40px;
}
.toc ul { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 6px; }

/* something we still have to fill in before the site goes live */
.todo {
  background: #FFF6D6; border: 1px dashed #C9A227;
  border-radius: 6px; padding: 1px 7px; font-weight: 700;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy); color: #C6D2E0;
  padding: 52px 0 34px; margin-top: 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px; padding-bottom: 32px;
}
.site-footer img.footer-logo { width: 200px; margin-bottom: 14px; }
.site-footer h4 {
  color: #fff; font-size: 1rem; text-transform: uppercase;
  letter-spacing: .07em; margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 22px; font-size: .93rem;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- odds and ends ---------- */

.stitch-rule {
  height: 12px; margin: 0;
  border: 0;
  background: repeating-linear-gradient(90deg,
    var(--pink) 0 14px, transparent 14px 26px);
  opacity: .7;
}

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  border-radius: 12px; padding: 12px 20px;
  text-decoration: none; font-weight: 600;
}
.store-badge span { display: block; font-size: .78rem; opacity: .75; line-height: 1.2; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-badge[aria-disabled="true"] { opacity: .55; cursor: default; }
