/* OurSet public site — spec/marketing.md. Dark palette from spec/ui-palette.md. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --canvas: #0d0d0d;
  --panel: #1a1a1a;
  --raised: #2a2a2a;
  --text: #E5E7EB;
  --muted: #9CA3AF;
  --faint: #707070;
  --line: #333333;
  --teal: #2990B0;
  --appbar: #0A3548;
  --orange: #e75d23;
  --orange-deep: #bf430d;
  --green: #8fbf3e;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(13,13,13,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark { font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.w1 { color: var(--teal); }
.w2 { color: var(--orange); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange-deep);
  color: #fff;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 999px;
  transition: background .15s;
}
.btn:hover { background: var(--orange); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 32px; }
.actions.centre { justify-content: center; }
.hint { color: var(--muted); font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex; align-items: flex-end;
  background: var(--canvas) url("assets/hero.jpg") center 30% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--canvas) 0%, rgba(13,13,13,.85) 22%, rgba(13,13,13,0) 60%),
    linear-gradient(to right, rgba(13,13,13,.55), rgba(13,13,13,0) 55%);
}
.hero-copy {
  position: relative; z-index: 1;
  width: 100%; max-width: 1100px; margin: 0 auto;
  padding: 220px 24px 72px;
}
.hero-copy .lede { color: var(--text); opacity: .85; max-width: 520px; }
.hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,.6); }

/* ---------- screens ---------- */
.screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
  min-height: 70vh;
}
.flip .copy { order: 2; }
.screen > * { min-width: 0; }
.band {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.copy { max-width: 520px; }
.copy.centre { text-align: center; max-width: 720px; justify-self: center; grid-column: 1 / -1; }

.kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .35px;
}
h1, h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h1 { font-size: clamp(31px, 10vw, 84px); }
h2 { font-size: clamp(32px, 9vw, 60px); }
.lede { margin: 20px 0 0; font-size: 21px; color: var(--muted); }
.points { margin: 28px 0 0; padding: 0; list-style: none; }
.points li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
}

/* ---------- art: device mockups ---------- */
.art { display: flex; justify-content: center; }
.device {
  width: 270px;
  background: #000;
  border: 6px solid #2b2b2b;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  display: flex; flex-direction: column;
  aspect-ratio: 9 / 18.5;
}
.bar {
  background: var(--appbar);
  color: #fff;
  padding: 34px 16px 12px;
  font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.bar span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pill {
  flex-shrink: 0;
  background: var(--orange-deep);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}
.foot {
  margin-top: auto;
  padding: 10px 16px 18px;
  font-size: 12px; color: var(--faint);
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.foot.live { background: var(--orange-deep); color: #fff; border-top: 0; font-weight: 600; }

.chart { padding: 18px 16px; flex: 1; min-height: 0; overflow: hidden; }
.ch-title { font-size: 18px; font-weight: 700; }
.ch-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.ch-sec {
  margin: 12px 0 4px;
  font-size: 11px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .5px;
}
.ch-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border-left: 2px solid var(--faint);
  margin-bottom: 4px;
}
.ch-row b {
  padding: 6px 0 6px 8px;
  border-right: 1px solid var(--line);
  font-size: 15px; font-weight: 700;
}
.chart.small .ch-row b { font-size: 13px; padding: 5px 0 5px 6px; }

.list { flex: 1; padding: 6px 0; }
.sec {
  padding: 10px 16px 4px;
  font-size: 11px; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .5px;
}
.row {
  padding: 10px 16px 10px 36px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.row small { display: block; font-size: 11px; color: var(--muted); }
.row::before {
  content: ""; position: absolute; left: 16px; top: 15px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--faint);
}
.row.done::before { background: var(--green); border-color: var(--green); }
.row.busy::before { border-color: var(--orange); border-top-color: transparent; animation: spin 1s linear infinite; }
.list .row:not(.done):not(.busy)::before { border-color: var(--faint); }
.list:not(:has(.done)) .row::before { display: none; }
.list:not(:has(.done)) .row { padding-left: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* trio of tablets — a band reads charts off tablets, so these are 3:4, not 9:19 */
.trio { gap: 0; align-items: center; justify-content: center; width: 100%; }
.trio .device {
  width: min(210px, 38%);
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  border-width: 8px;
}
/* the leader sits in front — it is the one the section is about */
.trio .device:nth-child(1) { transform: rotate(-4deg) translateY(10px); z-index: 3; }
.trio .device:nth-child(2) { z-index: 2; margin: 0 -3%; }
.trio .device:nth-child(3) { transform: rotate(4deg) translateY(10px); z-index: 1; }
.trio .bar { padding: 14px 12px 10px; font-size: 11px; }
.trio .foot { padding: 8px 12px 12px; font-size: 11px; }
.trio .chart { padding: 12px; }
/* all four bars of the verse must fit, or the chart clips mid-row and reads broken */
.trio .ch-sec { margin-top: 8px; }
.trio .chart.small .ch-row { margin-bottom: 3px; }
.trio .chart.small .ch-row b { font-size: 12px; padding: 3px 0 3px 6px; }
.leader { border-color: var(--orange-deep); }

/* ---------- pricing ---------- */
.plans {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 40px auto 0; max-width: 620px;
}
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
}
.plan:last-child { border-color: var(--orange-deep); }
.plan-name { color: var(--teal); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .35px; }
.plan-price { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 6px 0 12px; }
.plan-price small { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.plan-line { color: var(--text); }
.pricing .actions { margin-top: 44px; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero { background-image: url("assets/hero-900.jpg"); background-position: 38% 30%; min-height: 78vh; }
  .hero-copy { padding: 200px 24px 56px; }
  .screen { grid-template-columns: 1fr; gap: 40px; padding: 72px 24px; min-height: 0; }
  .flip .copy { order: 0; }
  .copy { text-align: left; }
  /* one column, so the tablets can be bigger and overlap harder */
  .trio .device { width: 46%; }
  .trio .device:nth-child(2) { margin: 0 -19%; }
  .trio .bar { font-size: 9px; padding: 12px 8px 8px; }
  .trio .foot { padding: 6px 8px 10px; font-size: 10px; }
  .trio .chart.small .ch-row b { font-size: 10px; padding: 2px 0 2px 5px; }
  /* at this size the verse cannot fit, so fade it out rather than cut a row in half */
  .trio .chart {
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
  .plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row.busy::before { animation: none; }
}
