/* SendTemps — the site's one stylesheet.
   Every colour here is the app's own: DarkPalette in
   app/src/main/java/com/eliteclimber/sendtemps/ui/theme/Theme.kt. */

:root {
  --ground:      #101318;
  --ground-lift: #161B23;
  --ground-deep: #0B0E12;
  --card:        #1A1F27;
  --track:       #262D38;
  --line:        #2E3642;
  --ink:         #E7EAF0;
  --muted:       #9AA3B2;
  --accent:      #5AA0F0;
  --accent-deep: #146EC8;
  --on-accent:   #0B1220;

  --prime:      #4CC27E;
  --good:       #A2CE5A;
  --acceptable: #F0B04A;
  --grease:     #F26B5F;
  --cold:       #6CA8F2;
  --sweat:      #3CC6D8;

  --wrap: 1140px;
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip:focus { left: 0; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ───────────────────────────  type  ─────────────────────────── */

h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 650; max-width: 20ch; }
h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 1em; }

.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 .9em;
}

.lede { font-size: 1.12rem; color: #C6CCD8; max-width: 62ch; }
.lede.narrow { max-width: 54ch; margin-left: auto; margin-right: auto; }

.centred { text-align: center; }
.centred h2 { margin-left: auto; margin-right: auto; }
.fine { font-size: .88rem; color: var(--muted); }

.ink-cold   { color: var(--cold); }
.ink-grease { color: var(--grease); }

section { padding: clamp(64px, 9vw, 116px) 0; }
section[id] { scroll-margin-top: 74px; }
.band-section { background: var(--ground-lift); border-block: 1px solid var(--line); }
.dark-section { background: var(--ground-deep); border-block: 1px solid var(--line); }

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

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,19,24,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; height: 62px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; letter-spacing: -.01em; font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; display: block; }

header nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
header nav a {
  color: var(--muted); font-size: .9rem; padding: 8px 12px; border-radius: 8px;
}
header nav a:hover { color: var(--ink); background: var(--card); text-decoration: none; }
header nav a.cta { margin-left: 8px; }

@media (max-width: 720px) {
  header nav a:not(.cta) { display: none; }
}

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

.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.actions.center { justify-content: center; }

.cta {
  display: inline-block;
  background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: 1rem;
  padding: 13px 26px; border-radius: 12px;
  border: 1px solid transparent;
}
.cta:hover { background: #7FB6F4; text-decoration: none; }
.cta.small { padding: 8px 16px; font-size: .9rem; }

.ghost {
  display: inline-block;
  color: var(--ink); font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card);
}
.ghost:hover { border-color: var(--muted); text-decoration: none; }

.soon { color: var(--muted); font-size: .9rem; }

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

.hero { padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.hero-grid {
  display: grid; gap: clamp(40px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { justify-self: center; }
}

.hero-facts {
  list-style: none; margin: 44px 0 0; padding: 26px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--accent); }
.hero-facts span { font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* ─────────────────────  the phone, drawn  ───────────────────── */

.phone {
  width: 340px; max-width: 100%;
  background: #05070A;
  border: 9px solid #05070A;
  border-radius: 40px;
  box-shadow: 0 0 0 1.5px #333B48, 0 34px 80px rgba(0,0,0,.6);
  overflow: hidden;
}
.phone-screen {
  background: var(--ground);
  border-radius: 31px;
  height: 660px;
  overflow: hidden;
  position: relative;
  font-size: 13px; line-height: 1.35;
  -webkit-mask-image: linear-gradient(#000 84%, transparent 100%);
          mask-image: linear-gradient(#000 84%, transparent 100%);
}

.app-bar { padding: 14px 14px 0; }
.app-city {
  display: flex; align-items: baseline; justify-content: space-between;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.app-refresh { font-size: 11px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.app-tabs { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.app-tabs .on { color: var(--accent); }
.app-load { height: 2px; background: var(--track); margin-top: 8px; border-radius: 1px; }

.app-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; }

.phone .card { background: var(--card); border-radius: 14px; padding: 13px; }
.phone .card.tight { padding: 7px 10px; }
.phone .sub { color: var(--muted); font-size: 11.5px; }
.phone .sub.tiny { font-size: 10.5px; margin-top: 3px; }

.hero-read { display: flex; align-items: flex-start; gap: 10px; }
.temp { font-size: 52px; font-weight: 300; line-height: .95; letter-spacing: -.03em; }
.temp .deg { font-weight: 300; }
.temp .unit { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 3px; vertical-align: 26px; }
.hero-right { margin-left: auto; text-align: right; padding-top: 4px; }
.hero-right .sky { font-weight: 600; font-size: 14px; }

.verdict { margin-top: 9px; font-weight: 700; font-size: 14px; letter-spacing: .01em; }
.verdict.prime      { color: var(--prime); }
.verdict.good       { color: var(--good); }
.verdict.acceptable { color: var(--acceptable); }
.verdict.grease     { color: var(--grease); }

.band-card {
  display: flex; align-items: center; gap: 11px;
  border-radius: 14px; padding: 12px;
}
.band-card i { width: 4px; align-self: stretch; min-height: 38px; border-radius: 2px; flex: none; }
.band-title { font-weight: 700; font-size: 13px; }
.band-detail { font-size: 11px; color: var(--ink); opacity: .82; }
.sweat-card { background: rgba(60,198,216,.14); }
.sweat-card i { background: var(--sweat); }
.sweat-card .band-title { color: var(--sweat); }

.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.row-title { font-weight: 700; font-size: 12.5px; letter-spacing: .03em; }
.hilo { font-size: 14px; }
.figure { font-weight: 700; font-size: 13.5px; text-align: right; min-width: 40px; font-variant-numeric: tabular-nums; }
.figure.prime { color: var(--prime); }
.figure.good { color: var(--good); }
.figure.acceptable { color: var(--acceptable); }
.figure.grease { color: var(--grease); }

.section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  color: var(--muted); padding: 6px 4px 0;
}

.hour { display: flex; align-items: center; gap: 6px; height: 33px; font-variant-numeric: tabular-nums; }
.hour s { width: 3px; height: 21px; border-radius: 2px; background: transparent; flex: none; text-decoration: none; }
.hour s.sw { background: var(--sweat); }
.hour .h { width: 50px; font-size: 12px; }
.hour .tr { width: 74px; color: var(--muted); font-size: 11.5px; }
.hour .bar { flex: 1; height: 7px; border-radius: 4px; background: var(--track); overflow: hidden; }
.hour .bar i { display: block; height: 100%; border-radius: 4px; }

.link-card { padding: 0 !important; }
.link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border-bottom: 1px solid var(--line);
}
.link:last-child { border-bottom: 0; }
.link b { display: block; font-size: 12.5px; letter-spacing: .04em; }
.link .sub { display: block; }
.link em { margin-left: auto; color: var(--muted); font-style: normal; font-size: 17px; }

/* ──────────────────────────  pimpness  ──────────────────────── */

.formula {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 2.4vw, 22px); flex-wrap: wrap;
  margin: 48px 0 44px;
  font-variant-numeric: tabular-nums;
}
.f-part {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 24px; font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 300;
}
.f-part small { font-size: .42em; color: var(--muted); margin-left: 4px; font-weight: 500; }
.f-op { font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--muted); font-weight: 300; }
.f-out {
  border-radius: 14px; padding: 14px 26px;
  font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 300;
  display: flex; align-items: baseline; gap: 12px;
}
.f-out b { font-size: .42em; font-weight: 700; letter-spacing: .1em; }
.f-out.prime { color: var(--prime); background: rgba(76,194,126,.13); border: 1px solid rgba(76,194,126,.3); }

.bands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .bands { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bands { grid-template-columns: 1fr; } }

.band {
  background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.band.prime      { border-top-color: var(--prime); }
.band.good       { border-top-color: var(--good); }
.band.acceptable { border-top-color: var(--acceptable); }
.band.grease     { border-top-color: var(--grease); }
.band-key { font-weight: 700; font-size: .95rem; letter-spacing: .09em; }
.band.prime      .band-key { color: var(--prime); }
.band.good       .band-key { color: var(--good); }
.band.acceptable .band-key { color: var(--acceptable); }
.band.grease     .band-key { color: var(--grease); }
.band-num { font-size: 1.5rem; font-weight: 300; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.band p { font-size: .9rem; color: var(--muted); margin: 0; }

.aside {
  margin-top: 40px; padding: 28px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 4px 40px; grid-template-columns: 1fr 1fr;
}
.aside h3 { grid-column: 1 / -1; color: var(--accent); }
.aside p { margin: 0; color: var(--muted); font-size: .95rem; }
.aside b { color: var(--ink); }
@media (max-width: 760px) { .aside { grid-template-columns: 1fr; gap: 14px; } }

/* ─────────────────────────  two columns  ────────────────────── */

.two-col {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
@media (max-width: 880px) {
  /* minmax(0, ...), not 1fr: a column may shrink below its widest line, so an equation too long for
     a phone scrolls inside its box instead of pushing the card past the screen. body's overflow-x
     hides that spill rather than showing a scrollbar, so it has to be caught here. */
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .two-col.flip > *:first-child { order: 2; }
}

.band-card.wide { margin-top: 14px; }
.band-card.wide .band-title { font-size: .95rem; }
.band-card.wide .band-detail { font-size: .86rem; }

.rule-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.rule-card h3 { color: var(--sweat); letter-spacing: .06em; }
.rule-card dl { margin: 18px 0; }
.rule-card dt {
  font-weight: 700; font-size: .82rem; letter-spacing: .1em;
  color: var(--sweat); margin-top: 18px;
}
.rule-card dt:first-child { margin-top: 0; }
.rule-card dd { margin: 5px 0 0; color: var(--muted); font-size: .95rem; }
.rule-card dd b { color: var(--ink); }
.rule-card .fine { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* ──────────────────────────  16-day  ────────────────────────── */

.days-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  font-variant-numeric: tabular-nums;
}
.days-head {
  font-size: .72rem; font-weight: 700; letter-spacing: .11em;
  color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.best-line {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 14px 2px; font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  color: var(--muted);
}
.best-line b { color: var(--prime); font-size: 1.15rem; letter-spacing: 0; }
.best-line span { margin-left: auto; font-weight: 400; letter-spacing: 0; font-size: .8rem; text-transform: none; }

.day {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 2px; border-top: 1px solid var(--line);
  font-size: .9rem;
}
.day .d { width: 62px; font-weight: 600; font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }
.day .pop { width: 40px; font-size: .78rem; color: var(--muted); text-align: right; }
.day .pop.rain { color: var(--cold); }
.day .hl { flex: 1; min-width: 60px; height: 7px; border-radius: 4px; background: var(--track); position: relative; }
.day .hl i {
  position: absolute; top: 0; height: 100%; border-radius: 4px;
}
.day .n { width: 62px; color: var(--muted); font-size: .84rem; text-align: right; }
.day .figure { min-width: 44px; font-size: .95rem; }
.day s { width: 3px; align-self: stretch; min-height: 20px; border-radius: 2px;
  background: transparent; flex: none; text-decoration: none; margin-right: -4px; }
.day s.sw { background: var(--sweat); }
.days-foot {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--muted);
}

/* ────────────────────────────  grid  ────────────────────────── */

.grid {
  display: grid; gap: 16px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.grid article {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.grid h3 {
  font-size: .8rem; font-weight: 700; letter-spacing: .11em;
  color: var(--accent); margin-bottom: 8px;
}
.grid p { margin: 0; font-size: .92rem; color: var(--muted); }

/* ──────────────────────────  privacy  ───────────────────────── */

.nevers {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.nevers li {
  background: var(--card); padding: 15px 18px 15px 46px;
  font-size: .95rem; position: relative;
}
.nevers li::before {
  content: "✕"; position: absolute; left: 18px; top: 15px;
  color: var(--prime); font-size: .9rem; font-weight: 700;
}

/* ──────────────────────────  sources  ───────────────────────── */

.sources {
  display: grid; gap: 16px; margin-top: 36px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.sources div {
  border-left: 3px solid var(--accent-deep);
  padding: 4px 0 4px 18px;
}
.sources b { display: block; font-size: .95rem; margin-bottom: 4px; }
.sources span { font-size: .88rem; color: var(--muted); }

/* ────────────────────────────  get  ─────────────────────────── */

.get {
  background:
    radial-gradient(900px 340px at 50% 0%, rgba(20,110,200,.30), transparent 70%),
    var(--ground-deep);
  border-top: 1px solid var(--line);
  text-align: center;
}
.get-inner { display: flex; flex-direction: column; align-items: center; }
.get-inner img { border-radius: 16px; margin-bottom: 22px; }
.get h2 { max-width: none; }

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

footer.site {
  background: var(--ground-deep);
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
}
.foot p { margin: 0 0 10px; font-size: .9rem; color: var(--muted); max-width: 78ch; }
.foot b { color: var(--ink); }

/* ────────────────────────  narrow screens  ──────────────────── */

/* ─────────────────  the bands as ink, and the wall  ──────────── */

/* Temperature and humidity in their own bands' colours, as the app draws them (DESIGN 24). */
.ink-prime      { color: var(--prime); }
.ink-good       { color: var(--good); }
.ink-acceptable { color: var(--acceptable); }

.verdict-sub { font-weight: 700; font-size: 12px; margin-top: 2px; color: var(--muted); }

/* 16-DAY's bars now run through the bands (DESIGN 24); each row sets its own stops. */
.day .hl i { background: var(--prime); }

/* The wall's equations, set as the SUN page sets them. A line too long for a phone scrolls inside
   its card rather than widening the page. */
.eq-card h3 { color: var(--accent); }
.eq-label {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  margin: 18px 0 6px;
}
.eq-card h3 + .eq-label { margin-top: 12px; }
.eq {
  margin: 0; padding: 12px 14px;
  background: var(--ground-deep); border: 1px solid var(--line); border-radius: 10px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .86rem; line-height: 1.55; color: var(--ink);
  white-space: pre; overflow-x: auto;
}
.eq-card .fine b { color: var(--ink); }

@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .day { gap: 8px; font-size: .84rem; }
  .day .d { width: 56px; font-size: .74rem; letter-spacing: .02em; }
  .day .pop { width: 34px; font-size: .72rem; }
  .day .hl { min-width: 26px; }
  .day .n { width: 50px; font-size: .78rem; }
  .day .figure { min-width: 36px; font-size: .88rem; }
  .days-card { padding: 14px; }
  .best-line span { margin-left: 0; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:last-child { grid-column: 1 / -1; }
}


/* ─────────────  the mock's bar sizes, as classes  ─────────────
   The Content-Security-Policy on both sites is `style-src 'self'`, which blocks
   inline style attributes as well as inline <style> blocks. These carry the widths
   the hour and day bars would otherwise have set inline, so the page needs no
   'unsafe-inline' to draw correctly. An hour's width is (pimpness - 60) / 100, as
   in NowScreen.kt, so a worse hour draws a longer bar. */

.hour .bar i.prime      { background: var(--prime); }
.hour .bar i.good       { background: var(--good); }
.hour .bar i.acceptable { background: var(--acceptable); }
.hour .bar i.grease     { background: var(--grease); }

.hour .bar i.w25 { width: 25%; }
.hour .bar i.w26 { width: 26%; }
.hour .bar i.w29 { width: 29%; }
.hour .bar i.w34 { width: 34%; }
.hour .bar i.w39 { width: 39%; }
.hour .bar i.w47 { width: 47%; }
.hour .bar i.w56 { width: 56%; }

/* the 16-DAY high-low bars, on a shared 25-70 F scale.
   Each bar also runs through the temperature bands' own colours, split where TOO COLD
   gives way to PIMP (35.5) and PIMP to ACCEPTABLE (60.5) - so a bar shows not just how
   far the day swings but which bands it swings through. Percentages are within the bar,
   not the track. As classes, because style-src 'self' blocks an inline style attribute. */
.day .hl i.b13-42 { left: 13%; width: 42%; background: linear-gradient(90deg, var(--cold) 21%, var(--prime) 21%); }
.day .hl i.b18-47 { left: 18%; width: 47%; background: linear-gradient(90deg, var(--cold) 10%, var(--prime) 10%); }
.day .hl i.b20-47 { left: 20%; width: 47%; background: linear-gradient(90deg, var(--cold) 5%, var(--prime) 5%); }
.day .hl i.b29-44 { left: 29%; width: 44%; background: var(--prime); }
.day .hl i.b33-27 { left: 33%; width: 27%; background: var(--prime); }
.day .hl i.b49-33 { left: 49%; width: 33%; background: linear-gradient(90deg, var(--prime) 87%, var(--good) 87%); }
.day .hl i.b60-16 { left: 60%; width: 16%; background: var(--prime); }

/* the line that says where this came from */
.creds {
  margin-top: 22px; padding: 15px 18px;
  border-left: 3px solid var(--sweat);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem; color: var(--muted);
}
.creds b { color: var(--sweat); }
