:root {
  color-scheme: light dark;
  --canvas: #f4ecdb;
  --surface: #faf4e8;
  --ink: #1a1815;
  --hairline: #1a1815;
  --orange: #e85c2c;
  --mint: #a8d8c2;
  --mint-soft: #d4ecdd;
  --mustard: #f0c95b;
  --danger: #d9462f;
  --precip: #4a7ab8;
  --success: #5ba873;
  --button-ink: #fff8ec;
  --shadow: #1a1815;
  --soft-glow: rgba(232, 92, 44, 0.1);
  --border: 2.5px solid var(--hairline);
  --hard-shadow: 3px 3px 0 var(--shadow);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --max: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1c1f26;
    --surface: #30343d;
    --ink: #ebe5da;
    --hairline: #80828d;
    --mint: #6fa58d;
    --mint-soft: #344d42;
    --mustard: #6b4d1a;
    --button-ink: #fff8ec;
    --shadow: rgba(0, 0, 0, 0.35);
    --soft-glow: rgba(232, 92, 44, 0.14);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, var(--soft-glow), transparent 34rem),
    var(--canvas);
  color: var(--ink);
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    "Arial Rounded MT Bold",
    Inter,
    Geist,
    system-ui,
    sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  text-rendering: geometricprecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(var(--ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 38rem);
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.section-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

section,
.premium-card {
  scroll-margin-top: 112px;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 28px), 1180px);
  transform: translateX(-50%);
  gap: 18px;
  padding: 10px 12px;
  border: var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--hard-shadow);
  backdrop-filter: blur(10px);
}

.mini-wordmark,
.wordmark {
  display: grid;
  justify-items: start;
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.mini-wordmark {
  font-size: 17px;
}

.top-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding: 0;
  border: var(--border);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 2px 2px 0 var(--shadow);
  color: var(--button-ink);
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-toggle:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--shadow);
}

.menu-toggle-icon {
  position: relative;
  width: 16px;
  height: 11px;
  border-top: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
}

.menu-toggle-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  border-top: 2.5px solid currentColor;
  transform: translateY(-50%);
}

.top-nav a,
.footer-links a,
.note-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 2px 2px 0 var(--shadow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100svh;
  align-items: center;
  gap: 44px;
  padding: 118px 0 52px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wordmark {
  max-width: 10ch;
  font-size: clamp(4rem, 8vw, 6rem);
}

.hero-subhead {
  max-width: 660px;
  margin-top: 22px;
  font-size: clamp(1.8rem, 4.2vw, 3.65rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hero-body {
  margin-top: 18px;
  font-size: clamp(1.25rem, 2.4vw, 2.1rem);
  font-weight: 900;
}

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

.neo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: var(--hard-shadow);
  color: var(--button-ink);
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.neo-button:active {
  transform: translate(3px, 3px) scale(0.94);
  box-shadow: 0 0 0 var(--shadow);
}

.neo-button small,
.neo-button strong {
  display: block;
  line-height: 1;
}

.neo-button small {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.neo-button strong {
  font-size: 19px;
  letter-spacing: 0;
}

.store-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2.5px solid #1a1815;
  border-radius: 12px;
  background: #fff8ec;
  color: #1a1815;
  font-size: 12px;
  font-weight: 900;
}

.hero-device-wrap {
  display: grid;
  place-items: center;
  transition: transform 160ms ease-out;
}

.phone {
  position: relative;
  width: min(318px, 86vw);
  padding: 14px;
  border: 4px solid #1a1815;
  border-radius: 42px;
  background: #1a1815;
  box-shadow: var(--hard-shadow);
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 50%;
  width: 74px;
  height: 20px;
  transform: translateX(-50%);
  border: 2px solid #1a1815;
  border-radius: 999px;
  background: #30343d;
}

.phone-screen {
  min-height: 575px;
  overflow: hidden;
  padding: 26px 18px 18px;
  border: 2.5px solid #1a1815;
  border-radius: 30px;
  background: #faf4e8;
  color: #1a1815;
}

.status-row,
.app-top,
.screen-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-row {
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 900;
}

.app-top {
  align-items: flex-start;
}

.app-icon-placeholder {
  display: grid;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2.5px solid #1a1815;
  border-radius: 16px;
  background: var(--orange);
  box-shadow: 3px 3px 0 #1a1815;
  color: #fff8ec;
  font-size: 13px;
  font-weight: 900;
}

.app-label,
.screen-title-row span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.app-top h2 {
  margin-top: 5px;
  font-size: 24px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.forecast-card,
.heckle-card,
.quote-card,
.widget,
.detail-copy,
.onboarding-screen button {
  border: 2.5px solid #1a1815;
  border-radius: 18px;
  box-shadow: 3px 3px 0 #1a1815;
}

.forecast-card {
  margin-top: 28px;
  padding: 18px;
}

.orange-card {
  background: linear-gradient(135deg, #ff9c4a, #e85c2c);
}

.temp {
  font-size: 76px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.forecast-card p:last-child,
.heckle-card p {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
}

.heckle-card {
  margin-top: 16px;
  padding: 18px;
  background: var(--mint-soft);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.mini-grid div {
  min-width: 0;
  padding: 12px 8px;
  border: 2.5px solid #1a1815;
  border-radius: 14px;
  background: #f0c95b;
  text-align: center;
}

.mini-grid span,
.mini-grid strong {
  display: block;
}

.mini-grid span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-grid strong {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 900;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.streak-copy h2,
.premium-card h2,
.privacy h2 {
  font-size: clamp(2rem, 5.6vw, 4.9rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.promise,
.screens,
.premium,
.privacy {
  padding: 76px 0;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.neo-card {
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--hard-shadow);
  color: var(--ink);
}

.promise-card {
  min-height: 290px;
  padding: 22px;
}

.mustard {
  background: var(--mustard);
}

.mint {
  background: var(--mint);
}

.surface {
  background: var(--surface);
}

.promise-card h3 {
  margin-top: 20px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.promise-card p,
.premium-card p,
.streak-copy p {
  margin-top: 16px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.symbol-tile {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--hard-shadow);
  color: #1a1815;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sun-tile {
  background: linear-gradient(135deg, #ffbd62, #e85c2c);
}

.storm-tile {
  background: linear-gradient(135deg, #8c78d8, #353f8f);
  color: #fff8ec;
}

.orange-tile {
  background: var(--orange);
  color: #fff8ec;
}

.device-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(248px, 300px);
  gap: 24px;
  overflow-x: auto;
  padding: 6px 6px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) transparent;
}

.screen-shot {
  scroll-snap-align: start;
}

.screen-shot p {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
}

.small-phone {
  width: 100%;
  border-radius: 34px;
}

.small-phone .phone-screen {
  min-height: 460px;
  padding: 22px 15px 16px;
  border-radius: 24px;
}

.screen-title-row {
  margin-bottom: 18px;
}

.screen-title-row strong {
  font-size: 32px;
  font-weight: 900;
}

.quote-card {
  min-height: 174px;
  padding: 18px;
  background: #f0c95b;
  font-size: 32px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.condition-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 2.5px solid #1a1815;
  border-radius: 14px;
  background: #fff8ec;
  font-size: 14px;
  font-weight: 900;
}

.dot {
  width: 12px;
  height: 12px;
  border: 2px solid #1a1815;
  border-radius: 999px;
}

.dot.orange {
  background: var(--orange);
}

.dot.blue {
  background: var(--precip);
}

.bar-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 9px;
  height: 230px;
  padding: 12px;
  border: 2.5px solid #1a1815;
  border-radius: 18px;
  background: #d4ecdd;
}

.bar-list span {
  display: flex;
  align-items: end;
  justify-content: center;
  height: var(--h);
  min-height: 46px;
  border: 2.5px solid #1a1815;
  border-radius: 12px 12px 6px 6px;
  background: var(--orange);
  padding-bottom: 7px;
  font-size: 11px;
  font-weight: 900;
}

.detail-copy {
  margin-top: 16px;
  padding: 16px;
  background: #f0c95b;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.onboarding-screen button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 15px 12px;
  background: #fff8ec;
  color: #1a1815;
  font: inherit;
  text-align: left;
}

.fake-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.fake-icons span {
  aspect-ratio: 1;
  border: 2.5px solid #1a1815;
  border-radius: 16px;
  background: linear-gradient(135deg, #a8d8c2, #4a7ab8);
  box-shadow: 2px 2px 0 #1a1815;
}

.widget {
  margin-top: 50px;
  padding: 16px;
  background: #f0c95b;
}

.widget span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.widget strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 44px;
  font-weight: 900;
  line-height: 0.9;
}

.widget p {
  margin: 0;
  font-size: 17px;
  line-height: 1.05;
}

.streak-band {
  margin: 58px 0;
  padding: 72px 0;
  border-block: var(--border);
  background: var(--mustard);
  box-shadow: 0 3px 0 var(--shadow), 0 -3px 0 var(--shadow);
  color: var(--ink);
}

.streak-inner {
  display: grid;
  gap: 28px;
}

.streak-number strong {
  display: block;
  font-size: clamp(9rem, 26vw, 19rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.premium-card {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.secondary-button {
  align-self: start;
  background: var(--surface);
  color: var(--ink);
}

.privacy {
  padding-bottom: 104px;
}

.privacy h2 {
  max-width: 1050px;
}

.legal-main {
  padding: 132px 0 96px;
}

.legal-hero {
  max-width: 980px;
  margin-bottom: 28px;
}

.legal-hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.legal-hero p:last-child {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 900;
}

.legal-card {
  max-width: 920px;
  padding: 24px;
  margin-top: 20px;
}

.legal-card:nth-child(even) {
  margin-left: auto;
}

.legal-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.legal-card p,
.legal-card li {
  margin-top: 14px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 800;
}

.legal-card ul {
  padding-left: 22px;
}

.legal-card a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  gap: 24px;
  padding: 30px 0 48px;
  border-top: var(--border);
}

.footer-brand p,
.made-with {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 900;
}

.footer-links {
  justify-content: flex-start;
}

.reveal {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition:
    opacity 450ms ease,
    transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }

  .secondary-button {
    background: #30343d;
  }

  .wordmark {
    position: relative;
  }

  .wordmark::after {
    content: "";
    position: absolute;
    inset: -18px -12px auto auto;
    width: 12px;
    height: 12px;
    border: 2px solid var(--ink);
    opacity: 0.26;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: dark-sparkle 4.6s ease-in-out infinite;
  }

  .surface,
  .note-pill,
  .top-nav a,
  .footer-links a {
    background: var(--surface);
  }
}

@keyframes dark-sparkle {
  0%,
  100% {
    opacity: 0.12;
    transform: translate(0, 0) scale(0.9);
  }
  45% {
    opacity: 0.34;
    transform: translate(-5px, 4px) scale(1.15);
  }
}

@media (min-width: 640px) {
  .section-shell {
    width: min(100% - 48px, var(--max));
  }

  .promise-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tilt-left {
    transform: rotate(-1.5deg);
  }

  .tilt-right {
    transform: rotate(1deg);
  }

  .tilt-soft {
    transform: rotate(-0.5deg);
  }

  .tilt-left.reveal,
  .tilt-right.reveal,
  .tilt-soft.reveal {
    transform: translateY(10px) scale(0.96) rotate(var(--card-rotate, 0deg));
  }

  .tilt-left {
    --card-rotate: -1.5deg;
  }

  .tilt-right {
    --card-rotate: 1deg;
  }

  .tilt-soft {
    --card-rotate: -0.5deg;
  }

  .tilt-left.reveal.is-visible,
  .tilt-right.reveal.is-visible,
  .tilt-soft.reveal.is-visible {
    transform: translateY(0) scale(1) rotate(var(--card-rotate, 0deg));
  }

  .streak-inner,
  .premium-card,
  .site-footer {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .made-with {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1.08fr 0.72fr;
    padding-top: 92px;
  }

  .hero-device-wrap {
    justify-self: end;
  }

  .hero-phone {
    width: min(354px, 32vw);
  }

  .promise,
  .screens,
  .premium,
  .privacy,
  .legal-main {
    padding: 96px 0;
  }

  .device-rail {
    grid-auto-columns: minmax(270px, 1fr);
    overflow-x: visible;
  }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .hero {
    align-items: start;
    gap: 38px;
    padding-top: 118px;
    padding-bottom: 28px;
  }

  .wordmark {
    font-size: 5.15rem;
  }

  .hero-subhead {
    margin-top: 14px;
    font-size: 2.75rem;
  }

  .hero-body {
    margin-top: 12px;
    font-size: 1.45rem;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-device-wrap {
    padding-top: 0;
  }

  .hero-phone {
    width: 296px;
  }

  .hero-phone .phone-screen {
    min-height: 500px;
  }
}

@media (min-width: 1280px) {
  .hero {
    gap: 76px;
  }

  .device-rail {
    gap: 30px;
  }
}

@media (max-width: 639px) {
  .site-header {
    align-items: center;
    border-radius: 24px;
    padding: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .top-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(210px, calc(100vw - 28px));
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: var(--border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: var(--hard-shadow);
    backdrop-filter: blur(10px);
  }

  .site-header.is-menu-open .top-nav {
    display: flex;
  }

  .top-nav a {
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .hero-actions {
    align-items: stretch;
  }

  .neo-button,
  .note-pill {
    width: 100%;
  }

  .phone-screen {
    min-height: 560px;
  }

  .promise-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none !important;
  }
}
