@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');

/* Shared palette and typography */
:root {
  color-scheme: dark;
  --bg: #203140;
  --surface: #344456;
  --text: #dde5ec;
  --muted: #afbcc7;
  --cream: #e6d8c8;
  --sand: #c5a88b;
  --brand-red: #b51c27;
  --red-highlight: #ef9298;
  --line: #e6d8c824;
  --button-border: #ef929880;
  --button-hover: #b51c2724;
  --font-heading: 'Manrope', sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: transparent;
  isolation: isolate;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--red-highlight); outline-offset: 6px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -2.5px;
  color: var(--cream);
}
.week-fit { font-size: 1.08em; }
.heading-ending { white-space: nowrap; }
.heading-ending-wide { --heading-dot-gap: .1em; }
.heading-dot {
  display: inline-block;
  width: .11em;
  height: .11em;
  margin-left: var(--heading-dot-gap, .04em);
  vertical-align: -.015em;
  border-radius: 50%;
  background: var(--brand-red);
  color: transparent;
  letter-spacing: 0;
  line-height: 1;
  overflow: hidden;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: var(--brand-red);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
main { overflow: clip; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; position: relative; }
.brand { width: 142px; flex-shrink: 0; }
.eyebrow {
  margin: 0 0 27px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.8;
  color: var(--cream);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red-highlight);
  vertical-align: 2px;
}

/* Buttons share borders, feedback, and optional motion. */
:is(.sp-btn, .sp-navcta, .demo-toggle) {
  border: 1px solid var(--button-border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
:is(.sp-btn, .sp-navcta, .demo-toggle):is(:active, :focus-visible):not(:disabled) {
  background: var(--button-hover);
  border-color: var(--red-highlight);
}
:is(.sp-btn, .sp-navcta, .demo-toggle):focus-visible {
  outline: 2px solid var(--red-highlight);
  outline-offset: 4px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 18px 23px;
  border: 1px solid var(--button-border);
  border-radius: 7px;
  background: transparent;
  color: #dcc5af;
  font-size: 13px;
  font-weight: 650;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.button > span { color: var(--red-highlight); }
.button:hover { background: var(--button-hover); border-color: var(--red-highlight); }
.demo-toggle {
  display: block;
  margin: 12px auto 0;
  padding: 8px 14px;
  border-radius: 20px;
  font: inherit;
  font-size: 11px;
}

/* Product walkthrough */
.workflow { padding: 35px 0 42px; border-block: 1px solid var(--line); }
.workflow .eyebrow { margin-bottom: 22px; font-size: 9px; }
.workflow-steps { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.workflow-steps div { display: flex; align-items: center; gap: 15px; }
.workflow h2 { font-size: 19px; letter-spacing: -.5px; }
.step-arrow { color: var(--red-highlight); }
.feature, .week-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-block: 72px 16px;
}
.week-feature { padding-bottom: 110px; }
.feature-copy, .product-panel { min-width: 0; }
.feature-copy, .story-copy { background: #20314099; border-radius: 18px; padding: 24px; box-shadow: inset 0 0 0 1px transparent; transition: background .25s, box-shadow .25s, translate .25s; }
.feature-copy h2 { font-size: 47px; line-height: 1.18; margin-bottom: 27px; }
.feature-copy p:not(.eyebrow) { font-size: 15px; line-height: 1.9; color: var(--muted); max-width: 410px; margin: 0 0 18px; }
.detail { font-size: 11px; color: #dcc5af; border-top: 1px solid var(--line); margin-top: 30px; padding-top: 22px; line-height: 1.7; }
.detail span { color: var(--red-highlight); margin-right: 10px; }
.product-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 0 28px;
}
.phone {
  position: relative;
  width: min(340px, 100%);
  margin: 0;
  overflow: hidden;
  border: 2px solid #506274;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: 0 30px 75px #0007;
  transition: border-color .25s, box-shadow .25s;
}
.phone img { width: 100%; }
.app-demo { display: block; width: 100%; height: auto; background: var(--bg); pointer-events: none; }
.panel-label, .panel-caption { align-self: center; }
.panel-label { color: var(--cream); font-size: 9px; letter-spacing: 2px; }
.panel-label::before { content: ''; display: inline-block; width: 15px; height: 2px; background: var(--red-highlight); margin-right: 8px; vertical-align: 3px; }
.panel-caption { font-size: 11px; color: var(--text); }

/* Story, future plans, and closing */
.story { border-block: 1px solid var(--line); border-top-color: #ef929866; display: grid; grid-template-columns: 1fr 1fr; gap: 110px; padding-block: 65px; }
.story h2 { font-size: 40px; line-height: 1.2; }
.story h2::before { content: ''; display: block; width: 54px; height: 4px; margin-bottom: 22px; background: var(--red-highlight); border-radius: 2px; }
.story-copy p { font-size: 15px; line-height: 1.9; color: var(--muted); margin: 0 0 20px; }
.story-copy p:first-child { color: var(--text); }
.stage-pill { display: inline-block; background: #34445666; border: 1px solid #ef929855; border-radius: 30px; padding: 9px 13px; color: var(--text); font-size: 10px; }
.future { display: flex; gap: 60px; padding-block: 38px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.future .eyebrow { flex: 0 0 205px; font-size: 9px; margin-top: 5px; }
.future h3 { font-size: 19px; letter-spacing: -.5px; }
.future p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 550px; margin: 10px 0 0; }
.planned { margin-left: auto; font-size: 10px; border: 1px solid var(--line); border-radius: 30px; padding: 7px 12px; color: var(--muted); }
.closing { text-align: center; padding-block: 76px; background: radial-gradient(ellipse at 50% 100%, #c5a88b20, transparent 70%); }
.closing h2 { font-size: 48px; line-height: 1.2; }
.closing > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; color: var(--muted); margin: 24px 0 28px; }
.footer { border-top: 2px solid var(--red-highlight); display: flex; align-items: center; gap: 28px; padding-block: 30px; }
.footer p, .footer > span { font-size: 10px; color: var(--muted); }
.footer > span { margin-left: auto; }

/* Screens stay in the page, with native touch and trackpad scrolling. */
.day-showcase { padding-block: 60px 48px; }
.day-showcase > .feature-copy { max-width: 660px; margin-bottom: 38px; }
.day-showcase .feature-copy p:not(.eyebrow) { max-width: 540px; }
.screens-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
#screens-hint { font-size: 11px; color: var(--muted); }
#screens-hint span { margin-left: 8px; color: var(--red-highlight); }
.screens-gallery { position: relative; overflow-x: auto; overflow-y: hidden; height: 570px; margin-inline: -24px; cursor: grab; touch-action: auto; scrollbar-width: none; }
.screens-gallery:focus-visible { outline: 2px solid var(--red-highlight); outline-offset: 4px; border-radius: 12px; }
.screens-gallery.is-dragging { cursor: grabbing; user-select: none; }
.screens-gallery::-webkit-scrollbar { display: none; }
.screens-gallery.is-looping { overflow: hidden; }
.screens-track { display: flex; position: relative; width: max-content; align-items: flex-start; gap: 28px; padding: 30px 0 50px; }
.screen-card { flex: 0 0 220px; min-width: 0; margin: 0; }
.screen-visual { transform-origin: center center; will-change: transform; }
.screen-card .phone { width: 100%; box-shadow: 0 18px 32px #0005; }
.screen-card img { pointer-events: none; opacity: var(--screen-opacity, 1); }
.screen-card figcaption { opacity: var(--screen-opacity, 1); margin-top: 22px; color: var(--cream); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .screens-gallery.is-ready .phone {
    opacity: 0;
    transform: translateY(55px) scale(.94);
    transition: opacity .65s ease, transform .85s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .screens-gallery.is-ready.is-revealed .phone { opacity: 1; transform: none; }
}

/* Responsive product and gallery layouts */
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .feature, .week-feature, .story { gap: 60px; }
  .feature-copy h2 { font-size: 40px; }
  .workflow h2 { font-size: 16px; }
  .future { gap: 30px; }
  .future .eyebrow { flex-basis: 180px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .eyebrow { font-size: 9px; letter-spacing: 1.6px; margin-bottom: 22px; }
  .workflow { padding-block: 28px; }
  .workflow-steps { flex-direction: column; align-items: flex-start; gap: 19px; }
  .workflow h2 { font-size: 19px; }
  .workflow-steps div { gap: 20px; }
  .step-arrow { display: none; }
  .feature, .week-feature { grid-template-columns: 1fr; gap: 24px; padding-top: 48px; }
  .week-feature { padding-bottom: 65px; }
  .feature-copy { grid-row: 1; }
  .feature-copy h2 { font-size: 37px; letter-spacing: -1.6px; margin-bottom: 21px; }
  .feature-copy p:not(.eyebrow) { max-width: none; font-size: 14px; }
  .product-panel { padding-block: 12px 20px; }
  .detail { margin-top: 24px; }
  .story { grid-template-columns: 1fr; gap: 28px; padding-block: 45px; }
  .story h2 { font-size: 35px; letter-spacing: -1.5px; }
  .story-copy p { font-size: 14px; }
  .future { flex-wrap: wrap; gap: 12px; padding-block: 30px; }
  .future .eyebrow { flex-basis: 100%; margin: 0 0 8px; }
  .future > div { padding-right: 18px; }
  .planned { position: absolute; right: 0; top: 28px; }
  .future h3 { font-size: 18px; }
  .closing { padding-block: 65px; }
  .closing h2 { font-size: 33px; letter-spacing: -1.5px; }
  .closing > p:not(.eyebrow) { font-size: 12px; }
  .footer { flex-wrap: wrap; gap: 17px; }
  .footer p { width: 100%; order: 3; margin: 0; }
  .footer > span { font-size: 9px; }
}
@media (max-width: 760px) {
  .day-showcase { padding-block: 40px 36px; }
  .day-showcase > .feature-copy { margin-bottom: 24px; }
  .screens-gallery { height: 480px; margin-inline: -20px; }
  .screens-track { gap: 22px; }
  .screen-card { flex-basis: 180px; }
  .screens-heading { gap: 12px; }
  #screens-hint { font-size: 10px; }
}

/* Hover feedback and optional animation */
@media (hover: hover) {
  :is(.sp-btn, .sp-navcta, .demo-toggle, .button):hover:not(:disabled) {
    background: var(--button-hover);
    border-color: var(--red-highlight);
    box-shadow: 0 6px 20px #b51c2718;
  }
  :is(.feature-copy, .story-copy):hover {
    background: #203140dd;
    box-shadow: inset 0 0 0 1px #ef929833, 0 8px 24px #0002;
  }
  .phone:hover {
    border-color: #afbcc7;
    box-shadow: 0 18px 40px #0006, 0 0 0 1px #ef929833;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1), background .25s, box-shadow .25s, translate .25s; }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
  .feature .product-panel, .week-feature .product-panel { transition-delay: .08s; }
  :is(.sp-btn, .sp-navcta, .demo-toggle):active:not(:disabled) { transform: translateY(-2px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.sp-btn, .sp-navcta, .demo-toggle):hover:not(:disabled), .button:hover { transform: translateY(-2px); }
  :is(.feature-copy, .story-copy):hover { translate: 0 -2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :is(.sp-btn, .sp-navcta, .button, .demo-toggle, .feature-copy, .story-copy, .phone) { transition: none; }
}
