/* ============================================================
   Peak — marketing site
   Layout: full-bleed black bands, 1100px measure, the logo's
   nested peak arcs anchor the hero and mark each section head.
   Single committed dark identity, taken from the Peak lockup.
   ============================================================ */

:root {
  color-scheme: dark;

  --ink:        #000000;   /* ground — exactly the logo lockup */
  --ink-raise:  #0A0B0C;   /* raised band, matches the app chrome */
  --ink-panel:  #101415;   /* card fill */
  --line:       #1C2325;   /* hairline, cooled toward the accent */
  --line-soft:  #141A1B;
  --fog:        #8A9A9D;   /* secondary text */
  --fog-dim:    #5C6A6C;   /* tertiary text */
  --snow:       #EDF6F7;   /* primary text, faintly cyan-cooled */
  --cyan:       #75FBFE;   /* the mark */
  --cyan-deep:  #2B7E82;
  --cyan-wash:  rgba(117, 251, 254, 0.08);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --measure: 1100px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--snow);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* paints the strip above the sticky header on phones */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--ink);
  z-index: 60;
}

a { color: inherit; }

::selection { background: var(--cyan); color: #000; }

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

/* ---------- shared shells ---------- */

.band { width: 100%; }
.band--raise { background: var(--ink-raise); border-block: 1px solid var(--line-soft); }

.wrap {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.wrap--section { padding-block: clamp(64px, 9vw, 112px); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 7.2vw, 4.35rem); font-weight: 900; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
h3 { font-size: 1.0625rem; font-weight: 700; font-stretch: 105%; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0; }

.lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.58;
  color: var(--fog);
  max-width: 54ch;
}

.body-text { color: var(--fog); max-width: 62ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 15px;
  height: 11px;
  flex: none;
  background: var(--cyan);
  clip-path: polygon(50% 0, 100% 100%, 76% 100%, 50% 42%, 24% 100%, 0 100%);
}

.eyebrow--plain::before { display: none; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.site-head__in {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 13px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}

.brand__mark { width: 25px; height: 25px; flex: none; }

.brand__word {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 118%;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--snow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fog);
  text-decoration: none;
  transition: color 0.16s ease;
}

.nav a:hover, .nav a[aria-current="page"] { color: var(--snow); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border-radius: 7px;
  font-family: var(--body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--cyan); color: #000; }
.btn--primary:hover { background: #A5FDFF; }

.btn--ghost { border-color: var(--line); color: var(--snow); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan-deep); background: var(--cyan-wash); }

.btn--sm { padding: 9px 15px; font-size: 0.875rem; }

/* store button, inert until the listing is live */
.btn--store {
  border-color: var(--line);
  color: var(--fog);
  background: transparent;
  cursor: default;
  padding-block: 9px;
  text-align: left;
  gap: 11px;
}

.btn--store svg { flex: none; opacity: 0.55; }

.btn--store b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 0.9375rem;
  color: var(--snow);
  line-height: 1.2;
}

.btn--store span {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.5;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero__in {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: clamp(52px, 8vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--fog-dim);
  letter-spacing: 0.02em;
}

.hero__art { position: relative; display: flex; justify-content: center; }

.hero__art svg { width: min(100%, 370px); height: auto; }

.hero__glow {
  position: absolute;
  inset: 12% 6%;
  background: radial-gradient(circle at 50% 46%, rgba(117,251,254,0.16), transparent 68%);
  filter: blur(26px);
  pointer-events: none;
}

/* nested arcs */
.pk-r {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 5.4;
  stroke-linejoin: round;
  opacity: calc(1 - var(--i) * 0.11);
  animation: pk-breathe 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.4s);
}

@keyframes pk-breathe {
  0%, 100% { opacity: calc(1 - var(--i) * 0.11); }
  50%      { opacity: calc(0.52 - var(--i) * 0.07); }
}

@media (prefers-reduced-motion: reduce) {
  .pk-r { animation: none; }
}

/* ---------- forecast strip (illustration) ---------- */

.fc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fc li {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.fc__day {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.fc__temp {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--snow);
}

.fc__cond { font-size: 0.75rem; color: var(--fog); line-height: 1.35; }

.fc__task {
  font-size: 0.75rem;
  color: var(--cyan);
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: auto;
  line-height: 1.35;
}

.caption {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin: 0;
}

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.cell {
  background: var(--ink);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.band--raise .cell { background: var(--ink-raise); }

.cell__ix {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--cyan-deep);
}

.cell p { font-size: 0.9375rem; color: var(--fog); }

/* ---------- section head ---------- */

.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }

/* ---------- split rows (features / about) ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 56px);
  padding-block: 40px;
  border-top: 1px solid var(--line-soft);
}

.split:first-of-type { border-top: 0; padding-top: 0; }

.split__body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.deflist { margin: 0; display: flex; flex-direction: column; gap: 15px; }

.deflist div { display: flex; flex-direction: column; gap: 3px; }

.deflist dt {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  font-size: 0.9375rem;
  color: var(--snow);
}

.deflist dd { margin: 0; font-size: 0.9375rem; color: var(--fog); }

/* ---------- prose (about) ---------- */

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.prose p { color: var(--fog); font-size: 1rem; }
.prose strong { color: var(--snow); font-weight: 600; }

/* ---------- info card ---------- */

.card {
  background: var(--ink-panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.card dl { margin: 0; display: flex; flex-direction: column; gap: 11px; }
.card dl div { display: flex; flex-direction: column; gap: 2px; }

.card dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.card dd { margin: 0; font-size: 0.9375rem; color: var(--snow); }
.card dd a { color: var(--cyan); text-decoration: none; }
.card dd a:hover { text-decoration: underline; }

/* ---------- closing cta ---------- */

.cta-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.cta-close h2 { max-width: 16ch; }
.cta-close .lede { text-align: center; }
.cta-close .hero__cta { justify-content: center; }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--line-soft); background: var(--ink-raise); }

.site-foot__in {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 44px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.site-foot h4 {
  margin: 0 0 13px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--fog-dim);
}

.foot-nav { display: flex; flex-direction: column; gap: 9px; }

.foot-nav a {
  font-size: 0.875rem;
  color: var(--fog);
  text-decoration: none;
  width: fit-content;
}

.foot-nav a:hover { color: var(--cyan); }

.legal { font-size: 0.8125rem; color: var(--fog-dim); line-height: 1.65; }
.legal strong { color: var(--fog); font-weight: 600; }

.site-foot__base {
  max-width: var(--measure);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  padding-block: 17px 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--fog-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art svg { width: min(72%, 260px); }
  .split { grid-template-columns: 1fr; }
  .site-foot__in { grid-template-columns: 1fr 1fr; }
  .site-foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .nav { gap: 16px; }
  .nav a.nav-hide { display: none; }
  .site-head__in { gap: 12px; }
  .btn { padding: 11px 17px; }
}
