/* The public site. Colours, type, shape and motion come from tokens.css (generated from
 * config/design-tokens.mjs) — this file only lays pages out. Self-hosted font, no third-party
 * requests (see build.mjs). */

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/fonts/InstrumentSans.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

*,
*::before,
*::after {
  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(--font-brand);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg-elev);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

/* ── Brand devices ─────────────────────────────────────────────────────────── */

.mark {
  width: 1.3em;
  height: auto;
  flex: none;
}
.mark-big {
  fill: var(--ink);
}
.mark-sun {
  fill: var(--sun);
}

.lockup {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.35em;
  text-decoration: none;
  font-size: 24px;
}
.lockup.small {
  font-size: 19px;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.wm-i {
  position: relative;
}
.wm-i::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0.04em;
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--sun);
  transform: translateX(-50%);
}

/* ── Layout ────────────────────────────────────────────────────────────────── */

.top,
.foot,
main > section,
.doc {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: 22px;
  padding-bottom: 22px;
}

.top nav {
  display: flex;
  gap: var(--s-5);
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-2);
}
.top nav a {
  text-decoration: none;
}
.top nav a:hover {
  color: var(--ink);
}

@media (max-width: 620px) {
  .top nav a:first-child {
    display: none;
  }
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    transform var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--action);
  color: var(--action-ink);
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover {
  background: var(--action-press);
}
.btn-secondary {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--hair-strong);
}
.link {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.hero .lede {
  margin: 0 0 32px;
  max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero .note {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* The sky panel: the mark at scale, with a real product card resting on the horizon. */
.sky {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 36px;
  background: var(--mark-ground);
  overflow: hidden;
  isolation: isolate;
}
.sky-big,
.sky-sun {
  position: absolute;
  bottom: 34%;
  border-radius: 999px 999px 0 0;
}
.sky-big {
  left: 8%;
  width: 60%;
  aspect-ratio: 2 / 1;
  background: var(--mark-sky);
}
.sky-sun {
  left: 52%;
  width: 36%;
  aspect-ratio: 2 / 1;
  background: var(--mark-sun);
  animation: rise 1400ms var(--ease-out) both;
}
@keyframes rise {
  from {
    transform: translateY(40%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sky-sun {
    animation: none;
  }
}

.deal {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  background: var(--bg-elev);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 18px 20px;
  box-shadow: var(--shadow-float);
}
.deal .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.deal .dest {
  margin: 8px 0 2px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.deal .meta {
  font-size: 14px;
  color: var(--ink-2);
}
.deal .price {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.deal .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--good);
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.overline::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

/* GroupDots — the group on its horizon */
.dots {
  position: relative;
  display: inline-flex;
  gap: 6px;
  padding: 0 4px;
}
.dots::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--hair-strong);
}
.dots i {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-elev);
}
.dots i:nth-child(1) { background: var(--cat-1); }
.dots i:nth-child(2) { background: var(--cat-2); }
.dots i:nth-child(3) { background: var(--cat-3); }
.dots i:nth-child(4) { background: var(--cat-4); }
.dots i:nth-child(5) { background: var(--cat-5); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 16px;
  }
  .sky {
    max-width: 520px;
  }
}

/* ── Sections ──────────────────────────────────────────────────────────────── */

.section {
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 1px solid var(--hair);
}

.section h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.045em;
  max-width: 20ch;
}
.section .intro {
  margin: 0 0 40px;
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}
.steps h3,
.features h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.steps p,
.features p {
  margin: 0;
  color: var(--ink-2);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.features article {
  padding: 28px;
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  border: 1px solid var(--hair);
}
.features .tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.straight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.straight ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.straight li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 14px;
  align-items: baseline;
  color: var(--ink-2);
}
.straight li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
  transform: translateY(-1px);
}
.straight li strong {
  color: var(--ink);
  font-weight: 650;
}

.closing {
  text-align: center;
  padding-top: 88px;
  padding-bottom: 96px;
}
.closing h2 {
  margin-left: auto;
  margin-right: auto;
}
.closing .cta-row {
  justify-content: center;
}

@media (max-width: 860px) {
  .steps,
  .features,
  .straight {
    grid-template-columns: 1fr;
  }
}

/* ── Documents (privacy, terms…) ───────────────────────────────────────────── */

.doc {
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 80px;
}
.doc h1 {
  margin: 12px 0 8px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.doc .updated {
  margin: 0 0 32px;
  color: var(--ink-2);
  font-size: 15px;
}
.doc h2 {
  margin: 44px 0 10px;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-weight: 650;
}
.doc h3 {
  margin: 28px 0 6px;
  font-size: 17px;
  font-weight: 650;
}
.doc p,
.doc li {
  color: var(--ink);
  font-size: 16px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 6px 0;
}
.doc a {
  text-decoration-color: var(--sun);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.summary {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin: 0 0 12px;
}
.summary p {
  margin: 6px 0 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 12px 0;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--hair);
}
.doc th {
  font-weight: 650;
}
@media (max-width: 620px) {
  .doc table,
  .doc thead,
  .doc tbody,
  .doc tr,
  .doc th,
  .doc td {
    display: block;
  }
  .doc thead {
    display: none;
  }
  .doc td {
    border: none;
    padding: 2px 0;
  }
  .doc tr {
    border-bottom: 1px solid var(--hair);
    padding: 10px 0;
  }
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  padding-top: 40px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hair);
}
.foot-brand p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-content: start;
  font-size: 15px;
}
.foot nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.foot nav a:hover {
  color: var(--ink);
}
.foot .fine {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 80ch;
}
@media (max-width: 720px) {
  .foot {
    grid-template-columns: 1fr;
  }
}
.deal .end {
  text-align: right;
}
