/* Promo Ohs marketing site — styling tuned to the Flutter app's design system.
   Palette: slate-blue primary (#4F6FAE) from the app + teal accent from the logo. */

:root {
  --primary: #4f6fae;
  --primary-700: #3c5896;
  --secondary: #334155;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --surface: #f8fafc;
  --tint: #f1f5f9;
  --line: #e2e8f0;
  --white: #ffffff;
  --teal: #15c5c0;
  --teal-700: #0f9b97;
  --red: #e03a1a;

  --grad: linear-gradient(135deg, #18c7c1 0%, #4f6fae 100%);
  --grad-soft: linear-gradient(135deg, rgba(24, 199, 193, 0.12) 0%, rgba(79, 111, 174, 0.12) 100%);

  --radius-pill: 999px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);

  --maxw: 1120px;
  --header-h: 92px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--tint { background: var(--surface); }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-700); box-shadow: var(--shadow-md); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted-2); }
.btn--lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 84px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--primary); }
.header__cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 80px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 460px at 78% -8%, rgba(24, 199, 193, 0.14), transparent 60%),
    radial-gradient(760px 420px at 12% 8%, rgba(79, 111, 174, 0.12), transparent 60%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { color: var(--muted); font-size: 1.15rem; margin-top: 20px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badges img { height: 48px; width: auto; }
.hero__note { margin-top: 18px; font-size: 0.85rem; color: var(--muted-2); }

/* ---------- phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 300px;
  max-width: 80vw;
  aspect-ratio: 300 / 620;
  background: #0b1220;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 33px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #0b1220;
  border-radius: var(--radius-pill);
  z-index: 3;
}
.appbar {
  padding: 22px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.appbar__title { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.appbar__icons { display: flex; gap: 12px; color: var(--muted); }
.screen-body { padding: 4px 14px 16px; overflow: hidden; flex: 1; }

/* mini promo card used inside mockups */
.pcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.pcard__img {
  width: 52px; height: 52px;
  border-radius: 11px;
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex: none;
}
.pcard__body { min-width: 0; flex: 1; }
.pcard__name { font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__meta { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.pcard__price { display: flex; align-items: baseline; gap: 6px; margin-top: 5px; }
.pcard__now { font-size: 0.95rem; font-weight: 800; }
.pcard__was { font-size: 0.72rem; color: var(--muted-2); text-decoration: line-through; }
.score {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.85rem;
}
.score--a { background: #0b7d3b; }
.score--b { background: #77b62a; }
.score--c { background: #f3d000; color: #5a4a00; }
.score--d { background: #f08a00; }
.score--e { background: #e03a1a; }

.rpill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff;
}

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
}
.stat__num {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
}
.step__num {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: var(--grad-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* retailer logos */
.retailers {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 44px;
}
.retailers img {
  height: 30px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.retailers img:hover { filter: none; opacity: 1; }

/* ---------- features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature__icon {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

.app-cta {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* ---------- B2B ---------- */
.b2b__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.b2b__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.b2b__list li { display: flex; gap: 12px; align-items: flex-start; }
.b2b__list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  background: var(--grad-soft); color: var(--teal-700);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.b2b__list strong { display: block; font-size: 0.98rem; }
.b2b__list span { color: var(--muted); font-size: 0.92rem; }
.b2b__panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  position: relative;
  overflow: hidden;
}
.b2b__panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(440px 240px at 110% -10%, rgba(24, 199, 193, 0.28), transparent 60%);
}
.b2b__panel h3 { color: #fff; font-size: 1.3rem; position: relative; }
.b2b__panel p { color: #cbd5e1; margin-top: 12px; position: relative; }
.b2b__metrics { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 26px; }
.b2b__metric { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 16px; }
.b2b__metric b { font-size: 1.5rem; display: block; letter-spacing: -0.02em; }
.b2b__metric span { color: #94a3b8; font-size: 0.82rem; }
.b2b__panel .btn { position: relative; width: 100%; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact__aside h2 { margin-bottom: 14px; }
.contact__aside p { color: var(--muted); }
.contact__links { margin-top: 24px; display: grid; gap: 14px; }
.contact__links a, .contact__links span { display: flex; gap: 10px; align-items: center; font-weight: 600; color: var(--secondary); }
.contact__links .ico { color: var(--teal-700); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--secondary); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 111, 174, 0.15);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { width: 100%; margin-top: 6px; }
.form__status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.form__status.ok { color: var(--teal-700); }
.form__status.err { color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 52px 0 36px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__brand img { height: 80px; margin-bottom: 12px; }
.footer__brand p { color: var(--muted); font-size: 0.9rem; max-width: 280px; }
.footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin: 0 0 12px; }
.footer__col a { display: block; font-size: 0.92rem; color: var(--secondary); margin-bottom: 9px; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.85rem; color: var(--muted-2);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile nav drawer ---------- */
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 56px; }
  .b2b__grid, .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 80px; }
  .nav, .header__cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .brand img { height: 60px; }
  .nav.open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    z-index: 60;
  }
  .nav.open a { padding: 14px 24px; border-bottom: 1px solid var(--tint); }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .footer__cols { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
