:root {
  --brand: #c40d0c;
  --brand-deep: #7a0302;
  --brand-soft: #f2c747;
  --ink: #1c0f0f;
  --ink-muted: #5c3d3d;
  --paper: #faf6f2;
  --white: #ffffff;
  --line: rgba(28, 15, 15, 0.1);
  --font: "Outfit", system-ui, sans-serif;
  --max: 68rem;
  --radius: 999px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--brand);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  width: 100%;
  left: 0;
  right: 0;
}

.site-header--nav-only {
  justify-content: flex-end;
}

.site-header--nav-only .site-header-actions {
  margin-left: auto;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header a:hover {
  color: var(--brand-soft);
}

.site-header nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.button-header-download {
  background: var(--white);
  color: var(--brand-deep) !important;
  border-color: transparent;
}

.button-header-download:hover {
  color: var(--brand-deep) !important;
  opacity: 0.95;
}

.site-header .button-header-download {
  cursor: default;
}

.brand-mark {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  --hero-fade: 7rem;
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow-x: clip;
  overflow-y: visible;
  color: var(--white);
  background: #a70403;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--hero-fade);
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 7rem 0 calc(var(--hero-fade) + 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2rem 4.5rem;
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.hero-mark-art {
  position: relative;
  width: min(100%, 22.5rem);
  overflow: visible;
}

.hero-mark-art img {
  width: 100%;
  height: auto;
}

.hero-mark-gauge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.hero-mark-ticks line {
  opacity: 0;
}

.hero-tagline {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.3125rem;
  width: max-content;
  max-width: 100%;
  margin: 1.25rem 0 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06875em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.hero-tagline-gold {
  color: #f2c747;
  opacity: 0;
}

.hero-tagline-white {
  color: rgba(255, 255, 255, 0.95);
  opacity: 0;
}

.hero-flare {
  display: block;
  width: 12.25rem;
  height: 1.125rem;
  margin: 0.875rem auto 0;
  overflow: visible;
}

.hero-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: max-content;
  max-width: 100%;
  margin: 2.75rem auto 0;
  gap: 0.75rem;
  align-items: stretch;
  justify-content: center;
}

.hero-cta .coming-soon,
.hero-cta .button {
  width: 100%;
}

.app-store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.app-store-badge:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: inherit;
}

.app-store-badge img {
  height: 50px;
  width: auto;
}

.hero-gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--hero-fade) + 1.5rem);
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4em;
  margin: 0;
  padding: 0 1.5rem 0.15rem;
  text-align: center;
  white-space: nowrap;
}

.hero-label-head,
.hero-label-sub {
  font-family: var(--font);
  font-size: clamp(1.7rem, 4.2vw, 3.15rem);
  font-weight: 900;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-label-head {
  color: var(--white);
}

.hero-label-sub {
  margin-top: 0;
  color: #f2c747;
}

.hero-devices {
  position: relative;
  isolation: isolate;
  margin-inline: auto;
  width: min(100%, 43.5rem);
  height: auto;
  padding-bottom: calc(2.05rem + 20px);
  overflow: visible;
}

.phone {
  position: absolute;
  margin: 0;
  width: 17.65rem;
  max-width: 46%;
  aspect-ratio: 1290 / 2796;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  transition: left 0.45s ease, top 0.45s ease, opacity 0.45s ease, width 0.45s ease;
}

.phone img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  -webkit-user-drag: none;
  transition: opacity 0.35s ease;
}

.phone-main {
  position: relative;
  left: 0;
  top: 0;
  z-index: 3;
  width: 19rem;
  max-width: 50%;
}

.phone-peek-near {
  left: 30%;
  top: 0.5rem;
  z-index: 2;
  opacity: 0.96;
}

.phone-peek-far {
  left: 54%;
  top: 1rem;
  z-index: 1;
  opacity: 0.9;
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.gallery-dot {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  flex: 0 0 0.7rem;
  width: 0.7rem;
  height: 0.7rem;
  min-width: 0.7rem;
  min-height: 0.7rem;
  max-width: 0.7rem;
  max-height: 0.7rem;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: transparent;
  aspect-ratio: 1 / 1;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.gallery-dot.is-active {
  background: var(--white);
  border-color: var(--white);
  transform: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--white);
  color: var(--brand-deep);
}

.button-primary:hover {
  color: var(--brand-deep);
  opacity: 0.95;
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  background: var(--white);
  color: var(--brand-deep) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: inherit;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  box-sizing: border-box;
  cursor: default;
}

.coming-soon:hover {
  color: var(--brand-deep) !important;
  opacity: 0.95;
  transform: none;
}

.coming-soon small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.72;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.feature-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-cards li {
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  border-top: 3px solid var(--brand);
}

.feature-cards strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.feature-cards span {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem 2.75rem;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.site-footer a {
  text-decoration: none;
  color: var(--ink-muted);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--brand-deep);
}

.site-footer p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: none;
}

.site-footer p.site-footer-note {
  grid-column: 1 / -1;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.site-footer p.site-footer-note a {
  display: block;
  margin-top: 0.35rem;
}

@media (max-width: 720px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
  }
}

.site-footer p a,
.footer-store-link {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer p a:hover,
.footer-store-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* Interior pages */
.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--white);
  padding: 1.25rem 1.5rem 3rem;
}

.page-header-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.page-header .brand-mark {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.035em;
}

.page-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.page-body {
  flex: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-body h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p,
.page-body li {
  color: var(--ink-muted);
}

.page-body ul {
  padding-left: 1.2rem;
}

.page-body li + li {
  margin-top: 0.4rem;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.page-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.page-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0 2rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--white);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.42rem;
  height: 0.42rem;
  margin-top: -0.15rem;
  border-right: 2px solid var(--brand-deep);
  border-bottom: 2px solid var(--brand-deep);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  margin-top: 0.2rem;
  transform: rotate(-135deg);
}

.faq details p {
  margin: 0;
  padding: 0 1rem 1rem;
  color: var(--ink-muted);
}

.faq details a {
  color: var(--brand-deep);
  font-weight: 600;
}

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

  .button,
  .phone,
  .phone img {
    animation: none !important;
    transition: none !important;
  }

  .hero-tagline-gold,
  .hero-tagline-white,
  .hero-mark-ticks line {
    opacity: 1;
  }

  .faq summary::after,
  .faq details[open] summary::after {
    transition: none;
  }
}

/* Stack feature cards when narrow (any orientation) */
@media (max-width: 900px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

/* Portrait only: copy-first declutter */
@media (max-width: 900px) and (orientation: portrait) {
  .hero {
    min-height: 0;
    align-items: start;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding: 5.5rem 0 calc(var(--hero-fade) + 3.75rem);
    gap: 2rem;
  }

  .hero-welcome {
    margin-inline: auto;
  }

  .hero-gallery {
    order: 0;
  }

  .hero-devices {
    height: auto;
    width: min(100%, 33rem);
    margin-inline: auto;
    padding-bottom: calc(2.05rem + 20px);
  }

  .phone {
    width: 13.95rem;
    max-width: 48%;
  }

  .phone-main {
    width: 14.75rem;
    max-width: 48%;
  }
}

/* Portrait phone: compact nav + single centered phone */
@media (max-width: 640px) and (orientation: portrait) {
  .site-header {
    align-items: center;
    padding: 1rem 1.25rem;
  }

  .site-header-actions {
    width: 100%;
    gap: 0.75rem;
  }

  .site-header nav {
    gap: 0.85rem;
  }

  .nav-secondary {
    display: none;
  }

  .hero-layout {
    padding: 4.75rem 0 calc(var(--hero-fade) + 3.25rem);
    gap: 1.75rem;
  }

  .hero-welcome {
    margin-inline: auto;
  }

  .hero-mark-art {
    width: min(100%, 20rem);
  }

  .hero-devices {
    height: auto;
    width: min(100%, 17.5rem);
    padding-bottom: calc(1.1rem + 20px);
  }

  .phone-peek,
  .phone-peek-far,
  .phone-peek-near {
    display: none;
  }

  .phone-main {
    left: 50%;
    top: 0;
    width: 13rem;
    max-width: none;
    transform: translateX(-50%);
  }
}

/* Phone landscape: desktop-style two-column + full nav + fan */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 100svh;
    align-items: center;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    padding: 4.5rem 0 calc(var(--hero-fade) + 3rem);
    gap: 1.25rem 3rem;
    align-items: center;
  }

  .hero-welcome {
    margin-bottom: 0;
  }

  .hero-mark-art {
    width: min(100%, 16.5rem);
  }

  .hero-tagline {
    font-size: 0.875rem;
    margin-top: 0.85rem;
  }

  .hero-cta {
    gap: 0.55rem;
    margin-top: 1.75rem;
  }

  .app-store-badge img {
    height: 42px;
  }

  .hero-devices {
    height: auto;
    width: min(100%, 28.5rem);
    padding-bottom: calc(2.05rem + 20px);
  }

  .phone {
    width: 10.15rem;
    max-width: 42%;
  }

  .phone-main {
    left: 0;
    width: 11rem;
    max-width: 46%;
    transform: none;
  }

  .phone-peek,
  .phone-peek-far,
  .phone-peek-near {
    display: block;
  }

  .nav-secondary {
    display: revert;
  }
}
