/* ============================================================
   JustRow — go-apps.app/justrow
   Dark-first landing page. Tokens from the JustRow design handoff.
   ============================================================ */
:root {
  --accent: #ff5c00;
  --on-accent: #0b0b0c;
  --bg: #ffffff;
  --surface: #f4f4f2;
  --surface-2: #ececea;
  --hairline: #e3e3df;
  --inactive: #dcdcd8;
  --ink: #0b0b0c;
  --secondary: #6e6f75;
  --tertiary: #8a8b90;

  --figtree: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--figtree);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* mono micro-label */
.micro {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
}

/* ---- the "Puddles" mark ---- */
.mark { display: block; }
.tile {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 22%;
  display: grid;
  place-items: center;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
}
.nav__part { white-space: nowrap; }
.lockup { display: inline-flex; align-items: center; gap: 10px; }
.lockup .mark { width: 30px; height: 30px; }
.lockup__word { font-family: var(--figtree); font-weight: 800; font-size: 21px; letter-spacing: -0.035em; }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__part {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color 0.15s ease;
}
.nav__part:hover { color: var(--ink); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--figtree);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--accent); color: #ffffff; }
.btn--primary:hover { transform: translateY(-1px); background: #ff6d1a; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--inactive); transform: translateY(-1px); }
.btn .apple { width: 18px; height: 18px; fill: currentColor; }
.btn--small { padding: 9px 14px; font-size: 14px; border-radius: 11px; white-space: nowrap; }

/* Official Apple "Download on the App Store" badge */
.appstore-badge { display: inline-flex; align-items: center; transition: transform 0.15s ease, opacity 0.15s ease; }
.appstore-badge img { height: 50px; width: auto; display: block; }
.appstore-badge:hover { transform: translateY(-1px); opacity: 0.9; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 68px 0 40px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hero__title .accent { color: var(--accent); }
.hero__lede {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--secondary);
}
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__note { margin-top: 16px; }
.hero__note .micro { color: var(--tertiary); }

/* ---- Focus-view device mock ---- */
.screen {
  /* dark "black screenshot" mock — scoped dark tokens, stays dark on the white page */
  --bg: #0b0b0c;
  --surface: #17181b;
  --hairline: #2c2e34;
  --inactive: #0b0b0c;
  --ink: #fafaf9;
  --secondary: #8c8d93;
  --tertiary: #6e6f75;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 34px 70px -26px rgba(11, 11, 12, 0.45);
  max-width: 380px;
  margin-left: auto;
}
.screen__status { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); display: inline-block; }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec .micro { color: var(--ink); }
.elapsed { font-family: var(--mono); font-size: 13px; color: var(--secondary); }

.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--inactive);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 22px;
}
.switch span {
  text-align: center;
  padding: 7px 0;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}
.switch span.on { background: var(--accent); color: var(--on-accent); font-weight: 700; }

.split-label { margin-bottom: 4px; }
.split {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(72px, 12vw, 104px);
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
}
.split .tenths { font-size: 0.5em; color: var(--secondary); }

.pace { margin: 18px 0 6px; }
.pace__track { position: relative; height: 8px; border-radius: 999px; background: var(--inactive); overflow: visible; }
.pace__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 58%; background: var(--accent); border-radius: 999px; }
.pace__tick { position: absolute; top: -3px; bottom: -3px; left: 62%; width: 2px; background: var(--ink); border-radius: 2px; }
.pace__labels { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--secondary); }
.pace__labels .target { color: var(--accent); }

.metrics3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.metric__label { margin-bottom: 4px; }
.metric__val { font-family: var(--mono); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }

.force { margin-top: 22px; }
.force svg { display: block; width: 100%; height: 70px; margin-top: 8px; }

/* ============================================================
   Section shells
   ============================================================ */
.section { padding: 64px 0; }
.section__head { max-width: 640px; margin-bottom: 40px; }
.section__eyebrow { margin-bottom: 14px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.section__sub { margin-top: 14px; color: var(--secondary); font-size: 1.08rem; }

/* ---- feature grid ---- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  overflow: hidden;
}
.feature { background: var(--bg); padding: 30px 26px; }
.feature__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { color: var(--secondary); font-size: 0.98rem; }

/* ---- spec strip ---- */
.spec {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 8px;
}
.spec__cell { background: var(--bg); padding: 26px 22px; }
.spec__val { font-family: var(--mono); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.spec__val .u { font-size: 0.5em; color: var(--secondary); }
.spec__label { margin-top: 6px; }

/* ---- CTA band ---- */
.cta {
  margin: 8px 0 72px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
}
.cta h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.cta p { margin: 12px auto 26px; max-width: 46ch; font-weight: 500; }
.cta .btn--onaccent { background: #ffffff; color: #0b0b0c; }
.cta .btn--onaccent:hover { background: #f1f1ef; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.footer__links a { color: var(--secondary); transition: color 0.15s ease; }
.footer__links a:hover { color: var(--ink); }
.footer__copy {
  width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tertiary);
  border-top: 1px solid var(--hairline);
  margin-top: 22px;
  padding-top: 22px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .screen { margin: 0 auto; }
  .features { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .spec { grid-template-columns: 1fr 1fr; }
  .cta { padding: 44px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto; }
}
