/* Wataa — wataa.orectec.com
   Palette and type mirror the app (lib/theme.dart): Inter Tight for display,
   Inter for body, navy ground, orange for the alarm, blue for the water. */

:root {
  --navy: #17223a;
  --navy-mid: #1b2742;
  --navy-deep: #0e1626;
  --orange: #ff3900;
  --orange-light: #ff6a3d;
  --orange-deep: #d62e00;
  --water-pale: #eaf7ff;
  --water-light: #aae5ff;
  --water: #5cd1ff;
  --water-deep: #2fa8de;

  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-faint: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);

  --max: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing: the <img> tags carry width/height attributes
   for layout stability, and without it they render at their intrinsic
   2400px height instead of scaling with the column. */
img { max-width: 100%; height: auto; display: block; }

a { color: var(--water); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--water);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(2.9rem, 8.5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.028em; }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0 0 1.05em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--water);
  margin: 0 0 14px;
}

.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-soft); }

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 22, 38, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px var(--pad);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

.bar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.93rem;
}
.bar nav a { color: var(--ink-soft); }
.bar nav a:hover { color: var(--ink); text-decoration: none; }

/* The one nav item that leaves the site: styled as the call to action. */
.bar nav a.nav-cta {
  color: #fff;
  background: var(--orange);
  padding: 7px 15px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.bar nav a.nav-cta:hover { background: var(--orange-light); color: #fff; }

@media (max-width: 640px) {
  .bar nav { gap: 16px; font-size: 0.86rem; }
  .bar nav .hide-sm { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 9vw, 104px);
  background:
    radial-gradient(90rem 44rem at 78% -14%, rgba(255, 57, 0, 0.17), transparent 62%),
    radial-gradient(70rem 40rem at 6% 8%, rgba(92, 209, 255, 0.13), transparent 60%),
    linear-gradient(180deg, var(--navy-mid), var(--navy-deep));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
}

h1 .accent { color: var(--orange-light); display: block; }

.hero p.lede { max-width: 33rem; margin-top: 22px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 57, 0, 0.3);
}
.btn-primary:hover { background: var(--orange-light); }

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.34); }

.note {
  margin-top: 18px;
  font-size: 0.87rem;
  color: var(--ink-faint);
}

/* hero shot — a real capture of the alarm, in the store gradient */

.hero-shot {
  justify-self: center;
  width: min(360px, 82vw);
  height: auto;
  border-radius: 26px;
  filter: drop-shadow(0 38px 80px rgba(0, 0, 0, 0.5));
}

/* ---------- sections ---------- */

section { padding: clamp(60px, 9vw, 104px) 0; }

.section-head { max-width: 42rem; margin-bottom: clamp(34px, 5vw, 52px); }
.section-head p { color: var(--ink-soft); margin-top: 16px; margin-bottom: 0; }

.band { background: var(--navy-mid); border-block: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.22rem;
  margin-bottom: 16px;
  background: rgba(92, 209, 255, 0.14);
  border: 1px solid rgba(92, 209, 255, 0.3);
}
.card.hot .ico {
  background: rgba(255, 57, 0, 0.14);
  border-color: rgba(255, 57, 0, 0.34);
}

.card p {
  margin: 11px 0 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step;
}

.step { counter-increment: step; }

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: "Inter Tight", Inter, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy-deep);
  background: var(--water);
  margin-bottom: 18px;
}

.step p { color: var(--ink-soft); margin: 10px 0 0; font-size: 0.97rem; }

/* screenshots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(216px, 246px);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shots figure {
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--navy);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.shots figcaption {
  margin-top: 13px;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* privacy teaser */

.privacy-box {
  border: 1px solid rgba(92, 209, 255, 0.3);
  background: rgba(92, 209, 255, 0.07);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 44px);
}
.privacy-box h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.privacy-box p { color: var(--ink-soft); margin-top: 16px; }
.privacy-box ul { margin: 0 0 22px; padding-left: 20px; color: var(--ink-soft); }
.privacy-box li { margin-bottom: 7px; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  color: var(--ink-faint);
  font-size: 0.89rem;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
}
.foot-grid nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.foot-grid a { color: var(--ink-soft); }

/* ---------- legal pages ---------- */

.legal { padding: clamp(52px, 8vw, 88px) 0 clamp(60px, 9vw, 96px); }
.legal .doc { max-width: 46rem; }
.legal h1 { font-size: clamp(2.2rem, 5.6vw, 3.2rem); margin-bottom: 10px; }
.legal .stamp { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.65rem);
  margin: 42px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 21px; margin: 0 0 1.05em; }
.legal li { margin-bottom: 9px; }
.legal strong { color: var(--ink); font-weight: 600; }
