/*
 * PlantOS — the brand site.
 *
 * Near-white paper, deep navy ink, one electric blue. The light in the page
 * comes from blurred blue orbs sitting behind the product shots rather than
 * from blocks of background colour, so the ground stays white and the screen
 * itself is the brightest thing on the page — which is the point.
 *
 * Display type is Heebo, set heavy and tracked hard negative. Hebrew has no
 * equivalent of the flared grotesk this is modelled on, and a serif would
 * read as editorial rather than as software; weight and tracking carry it.
 *
 * Shares its palette with the product (plantos-frontend/src/index.css). A
 * change to one belongs in the other.
 */

:root {
  --paper: #fcfdff;
  --surface: #ffffff;
  --ink: #001c2e;
  --ink-700: #1b3a52;
  --ink-500: #4c6476;
  --ink-300: #8fa3b2;
  --blue: #0080fc;
  --blue-600: #0a63d6;
  --blue-700: #0b4fa8;
  --blue-050: #e6f2ff;
  --border: #e3e9f0;

  --page: min(1200px, 100% - 2.5rem);
  --sans: 'Assistant', system-ui, sans-serif;
  --display: 'Heebo', 'Assistant', system-ui, sans-serif;

  --lift:
    0 0.5px 1.7px -0.5px rgb(0 28 46 / 0.05),
    0 1.7px 5px -1px rgb(0 28 46 / 0.045),
    0 4.5px 13px -1.5px rgb(0 28 46 / 0.04),
    0 11px 31px -2px rgb(0 28 46 / 0.045);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0;
}
h3 { letter-spacing: -0.03em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: var(--page); margin-inline: auto; }

/* ── header ─────────────────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(252 253 255 / 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
header.scrolled { border-bottom-color: var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.8rem; }

.mark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
}
.mark i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); display: block; }

nav { display: flex; gap: 1.7rem; font-size: 0.93rem; }
nav a { text-decoration: none; color: var(--ink-500); transition: color 0.2s; }
nav a:hover { color: var(--ink); }

/* ── buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.25s, background 0.2s;
}
.btn-primary {
  /* Darkened from Billow's exact stops: white on their midpoint measures
     4.36:1, and the label on this button is real text, not decoration. */
  background: linear-gradient(180deg, #1e7bf0 0%, #0a5cc9 100%);
  color: #fff;
  box-shadow:
    0 0.7px 2.7px -1.2px rgb(0 64 255 / 0.22),
    0 2.3px 8.8px -2.3px rgb(0 64 255 / 0.2),
    0 7px 27px -3.5px rgb(0 64 255 / 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 3px -1px rgb(0 64 255 / 0.26),
    0 4px 14px -2px rgb(0 64 255 / 0.26),
    0 12px 34px -4px rgb(0 64 255 / 0.22);
}
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink-300); transform: translateY(-1px); }
.btn .arrow { font-size: 0.8em; opacity: 0.8; }

/* ── pill eyebrow ───────────────────────────────────────────────────── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--ink-500);
  box-shadow: 0 1px 2px rgb(0 28 46 / 0.04);
}
.pill b { color: var(--blue-700); font-weight: 700; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ── hero ───────────────────────────────────────────────────────────── */

.hero { position: relative; padding-top: clamp(3.5rem, 9vh, 6.5rem); text-align: center; }

/*
 * The orbs. Three blurred blue ellipses behind the product shot, which is
 * what gives the page its light — the ground itself stays white.
 */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orbs span { position: absolute; border-radius: 50%; filter: blur(70px); }
/*
 * Sized and placed against the product shot, not the viewport. They sit just
 * behind and above the top edge of the frame so the screen looks lit from
 * behind — at the earlier opacity they read as a printing fault instead.
 */
.orbs .o1 { width: 42vw; height: 26vw; inset-inline-start: -4vw; top: 52%; background: #2a8afc; opacity: 0.62; }
.orbs .o2 { width: 38vw; height: 24vw; inset-inline-end: -3vw; top: 56%; background: #56c2ff; opacity: 0.6; }
.orbs .o3 { width: 40vw; height: 20vw; inset-inline-start: 30vw; top: 64%; background: #0080fc; opacity: 0.4; }
.orbs .o4 { width: 26vw; height: 14vw; inset-inline-start: 22vw; top: 46%; background: #8fd6ff; opacity: 0.5; }

/*
 * Everything except the orb layer. `.hero > *` and `.orbs` have the same
 * specificity, so this rule was winning and turning the absolutely-positioned
 * orb layer relative — which collapsed it to zero height and put every orb
 * off the top of the page. The effect vanished with no error anywhere.
 */
.hero > *:not(.orbs) { position: relative; z-index: 1; }

.hero h1 { margin-top: 1.6rem; font-size: clamp(2.6rem, 7vw, 5.4rem); }
.hero p.lede {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  color: var(--ink-500);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}
.hero p.lede b { color: var(--ink); font-weight: 700; }
.hero .cta { margin-top: 2rem; display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.hero .fine { margin-top: 0.9rem; font-size: 0.83rem; color: var(--ink-300); }

/* ── product frames ─────────────────────────────────────────────────── */

.frame { border-radius: 13px; overflow: hidden; background: var(--surface); box-shadow: var(--lift); }
.frame img { display: block; width: 100%; height: auto; }
.hero-shot { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 8vw, 6rem); position: relative; z-index: 1; }

/* ── sections ───────────────────────────────────────────────────────── */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }

.statement { text-align: center; }
.statement h2 { font-size: clamp(2rem, 4.8vw, 3.6rem); }
.statement p { margin: 1.2rem auto 0; max-width: 38rem; color: var(--ink-500); }

/* A soft blue wash marking a section break. */
.wash::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: -6rem;
  height: 26rem;
  background: radial-gradient(50% 50% at 50% 50%, rgb(0 128 252 / 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* ── three-up cards ─────────────────────────────────────────────────── */

.cards { display: grid; gap: 1rem; }
@media (min-width: 860px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgb(0 28 46 / 0.03);
}
.card h3 { font-size: 1.22rem; }
.card p { margin-top: 0.6rem; font-size: 0.95rem; color: var(--ink-500); }

/* ── feature blocks ─────────────────────────────────────────────────── */

.feature-head { display: grid; gap: 1.2rem; align-items: end; margin-bottom: 2.2rem; }
@media (min-width: 900px) { .feature-head { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.feature-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.feature-head p { color: var(--ink-500); font-size: 1rem; }
.feature-head ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.feature-head li { display: flex; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-500); }
.feature-head li::before { content: '→'; color: var(--blue); flex-shrink: 0; }

/* ── numbers ────────────────────────────────────────────────────────── */

.numbers { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 13px; overflow: hidden; }
@media (min-width: 720px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.numbers div { background: var(--surface); padding: 1.7rem 1.4rem; text-align: center; }
.numbers b { display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.numbers span { display: block; margin-top: 0.45rem; font-size: 0.86rem; color: var(--ink-500); }

/* ── phones ─────────────────────────────────────────────────────────── */

.phones { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.phone { width: 232px; border-radius: 32px; border: 8px solid var(--ink); overflow: hidden; background: var(--ink); box-shadow: var(--lift); }
.phone img { display: block; width: 100%; height: auto; }

/* ── footer ─────────────────────────────────────────────────────────── */

footer { background: var(--ink); color: #b9cbd9; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
footer .mark { color: #fff; }
footer .grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { footer .grid { grid-template-columns: 1.5fr 1fr 1fr; } }
footer h4 { margin: 0 0 0.85rem; font-size: 0.78rem; letter-spacing: 0.09em; color: #6d8698; font-weight: 700; }
footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; font-size: 0.93rem; }
footer a { text-decoration: none; opacity: 0.88; transition: opacity 0.2s; }
footer a:hover { opacity: 1; }
footer .fine { margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid rgb(255 255 255 / 0.1); font-size: 0.83rem; color: #6d8698; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ── scroll reveal ──────────────────────────────────────────────────── */

/*
 * Hidden only once JavaScript has said it is there to bring them back. A page
 * whose content starts at opacity 0 is a blank page to anything that does not
 * run the observer — a crawler, a reader mode, a blocked script.
 */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s ease, transform 0.65s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

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

/* ── small screens ──────────────────────────────────────────────────── */

@media (max-width: 760px) {
  /* The nav goes; at 390px the CTA was pushed clean off the end of the page. */
  nav { display: none; }
  header .wrap { padding-block: 0.65rem; }
  .btn { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
  body { font-size: 16px; }
  .orbs span { filter: blur(55px); }
}
