/* Shared style for the SeeWhat public pages: the W1 layout
   (design/mockups/website.html) in palette 2 "Bulb blue" with the doodle
   motif (design/mockups/palette.html#p2, motif.html#m2). Brand values are
   copied from app/lib/src/theme/brand_colors.dart; change them together. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #f5f8ff;
  --ink: #13213c;
  --muted: #4e5d78;
  --soft: #5b6b86;
  --line: #dce5f5;
  --primary: #1a5fcc;
  --logo: #2377ef;
  --sun: #ffc93c;
  --danger: #b3261e;
  --leaf: #237a3b;
  /* Darkest behind the text (top left), lighter behind the pictures. */
  --band-fill: linear-gradient(160deg, #1450b5 0%, #1a5fcc 45%, #2f7fea 100%);
  --card-shadow: 0 10px 24px -18px rgba(15, 40, 90, 0.5);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 500 16px/1.6 var(--font);
}

img { max-width: 100%; }
a { color: var(--primary); font-weight: 700; }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; }
h2 { font-size: 1.3rem; font-weight: 900; margin: 2rem 0 0.5rem; }
.small, .or { color: var(--soft); font-size: 0.9rem; }

/* ---------- Header band (every page) ---------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--band-fill);
  color: #fff;
}
/* The doodle motif, as behind the app's blue headers: anchored right and
   fading out towards the text. */
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/img/doodles.svg") right -8px top -8px / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 75%);
}
.hero::before { background-size: auto 400px; }
.band-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem 1.75rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.site-nav a { color: inherit; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-size: 1.4rem;
  font-weight: 900;
}
.brand img {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  display: block;
}
.site-nav .pill {
  background: var(--sun);
  color: var(--ink);
  padding: 0.45rem 1rem;
  border-radius: 99px;
}
.band h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 900;
}

/* ---------- Text pages (privacy, delete account) ---------- */

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
main > h1:first-child { margin-top: 0.5rem; }

label { display: block; margin-bottom: 1rem; font-weight: 700; font-size: 0.95rem; }
input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
}
input:focus { outline: none; border-color: var(--logo); }

button {
  display: block;
  width: 100%;
  margin: 0.6rem 0;
  padding: 0.8rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
button.danger { background: var(--danger); border-color: var(--danger); }
button:disabled { opacity: 0.6; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--logo); outline-offset: 2px; }
.band a:focus-visible { outline-color: var(--sun); }

.warning {
  border: 2px solid #f6c2b5;
  background: #fff0ec;
  border-radius: 14px;
  padding: 0.25rem 1rem;
  margin: 1rem 0;
}
.warning h2 { margin-top: 0.75rem; color: var(--danger); font-size: 1.1rem; }

#message:empty { display: none; }
#message { font-weight: 700; }

/* ---------- Home page ---------- */

.hero .band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  padding-bottom: 0;
}
.hero .site-nav { grid-column: 1 / -1; }
.hero-copy { padding: 1.5rem 0 3rem; }
.hero h1 {
  margin: 0 0 0.9rem;
  max-width: 32rem;
  font-size: clamp(2.3rem, 7vw, 3.6rem);
  line-height: 1.02;
  font-weight: 900;
}
.hero-copy p { max-width: 28rem; font-size: 1.07rem; margin: 0 0 1.25rem; }
.play-badge { display: inline-block; margin-left: -12px; }
.play-badge img { height: 74px; width: auto; display: block; }
.meta { font-size: 0.85rem; opacity: 0.85; margin: 0.25rem 0 0; }

.phones {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  align-self: end;
  transform: rotate(-6deg);
  margin: 0 1rem -1.5rem 0;
}
.phones img {
  width: 200px;
  height: auto;
  border: 7px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 18px 40px -20px rgba(5, 20, 60, 0.7);
  background: #fff;
}
.phones img + img { margin-top: 3rem; }

.section {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 0;
}
.section h2 { font-size: 1.75rem; margin: 0 0 1.1rem; }

.challenges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.challenges li {
  background: #fff;
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--card-shadow);
}
.challenges img { width: 64px; height: 64px; border-radius: 14px; display: block; margin-bottom: 0.6rem; }
.challenges b { display: block; font-size: 1.1rem; font-weight: 800; }
.challenges span { display: block; font-size: 0.85rem; color: var(--muted); }
.challenges em {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.1rem 0.6rem;
  border-radius: 99px;
  background: #e6f6ea;
  color: var(--leaf);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
}
.challenges .soon em { background: #eef2f8; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li { display: flex; gap: 0.8rem; }
.steps i {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-size: 1.35rem;
  font-weight: 900;
}
.steps b { display: block; font-size: 1.05rem; font-weight: 800; }
.steps span { display: block; font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer (every page) ---------- */

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.85rem;
}
.site-footer .inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.1rem 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer .inner > :first-child { margin-right: auto; }
.site-footer a { color: inherit; font-weight: 700; }
.site-footer .legal { flex-basis: 100%; font-size: 0.75rem; margin: 0; }

/* ---------- Narrow screens ---------- */

@media (max-width: 760px) {
  .site-nav { gap: 1rem; }
  .site-nav .nav-extra { display: none; }
  .hero .band-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 1rem; }
  .phones { justify-content: center; margin: 0 0 -1rem; transform: rotate(-4deg); }
  .phones img { width: min(40vw, 170px); border-width: 5px; border-radius: 22px; }
  .challenges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
