:root {
  color-scheme: dark;
  --ink: #090909;
  --surface: #141414;
  --text: #F3F0E8;
  --muted: #B7B1A6;
  --accent: #FF4D00;
  --track: #66625B;
  --hairline: #3C3A36;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

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

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

button {
  font: inherit;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

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

.container {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid rgba(60, 58, 54, 0.55);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--text);
}

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

.button-small {
  min-height: 40px;
  padding: 9px 17px;
  border-radius: 10px;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: 72px;
  padding-top: 88px;
  padding-bottom: 112px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 25px;
  font-size: clamp(68px, 8vw, 108px);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero-line {
  max-width: 480px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.story {
  max-width: 550px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.download-note {
  max-width: 530px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.download-note p {
  margin-bottom: 5px;
}

.download-url {
  display: inline-block;
  margin-top: 4px;
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
}

.download-url:hover {
  text-decoration-color: var(--accent);
}

.phone-column {
  width: 100%;
  max-width: 390px;
  margin-inline: auto;
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  padding: 10px;
  border: 1px solid #2C2B28;
  border-radius: 46px;
  background: #111111;
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.58), 0 3px 12px rgba(0, 0, 0, 0.45);
}

.phone::before {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 2;
  width: 54px;
  height: 5px;
  border-radius: 999px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid #262522;
  border-radius: 36px;
  background: var(--ink);
}

.screen-brand {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1;
}

.screen-brand-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.idle-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 70px 26px 38px;
  text-align: center;
}

.screen-kicker {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.idle-screen h2 {
  max-width: 250px;
  margin-bottom: 14px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.idle-screen > p:not(.screen-kicker) {
  max-width: 230px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.start-button {
  width: 148px;
  margin-top: 36px;
}

.ringing-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 27px 28px;
  text-align: center;
}

.alarm-title {
  max-width: 280px;
  min-height: 58px;
  margin-bottom: 0;
  color: var(--accent);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.alarm-title.is-paused {
  color: var(--text);
}

.step-display {
  margin-top: 54px;
  margin-bottom: 0;
  padding-top: 0;
}

.step-count {
  color: var(--text);
  font-size: clamp(76px, 8vw, 104px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.step-goal {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.step-progress {
  width: 100%;
  height: 7px;
  margin-top: 36px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--track);
}

.step-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 100ms linear;
}

.ringing-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.completion {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.completion strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.again-button {
  width: 132px;
  min-height: 46px;
  margin-top: 28px;
  padding-block: 10px;
}

.demo-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.demo-button {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  touch-action: manipulation;
  transition: border-color 140ms ease, background-color 140ms ease;
  user-select: none;
}

.demo-button:hover {
  border-color: var(--track);
}

.demo-button:active,
.demo-button[aria-pressed="true"] {
  border-color: var(--accent);
}

.hold-button {
  grid-column: 1 / -1;
  touch-action: none;
}

.demo-caption {
  margin: 19px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.motion-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.features-section {
  padding: 88px 0 96px;
  border-top: 1px solid rgba(60, 58, 54, 0.55);
  border-bottom: 1px solid rgba(60, 58, 54, 0.55);
  background: var(--surface);
}

.features-section h2,
.gallery-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  margin-top: 58px;
}

.feature {
  padding-left: 22px;
  border-left: 1px solid var(--hairline);
}

.feature-number {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery-section {
  padding-top: 104px;
  padding-bottom: 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading > p {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
  margin-top: 48px;
}

.shot {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(60, 58, 54, 0.7);
  border-radius: 18px;
  background: var(--surface);
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: var(--ink);
}

.shot figcaption {
  padding: 13px 3px 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.site-footer {
  border-top: 1px solid rgba(60, 58, 54, 0.55);
}

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner strong {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.footer-inner a {
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
}

.footer-inner a:hover {
  color: var(--text);
  text-decoration-color: var(--accent);
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 68px;
    padding-top: 68px;
  }

  .hero-copy {
    max-width: 670px;
  }

  .hero h1 {
    font-size: clamp(72px, 14vw, 108px);
  }

  .phone-column {
    width: min(100%, 390px);
  }
}

@media (max-width: 680px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    min-height: 70px;
  }

  .hero {
    gap: 54px;
    padding-top: 52px;
    padding-bottom: 76px;
  }

  .hero h1 {
    margin-bottom: 22px;
    font-size: clamp(62px, 20vw, 88px);
  }

  .hero-line {
    font-size: 22px;
  }

  .story {
    font-size: 15px;
  }

  .features-section {
    padding: 68px 0 74px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 44px;
  }

  .feature-number {
    margin-bottom: 13px;
  }

  .gallery-section {
    padding-top: 76px;
    padding-bottom: 84px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
  }

  .shot {
    padding: 7px;
    border-radius: 14px;
  }

  .shot figcaption {
    padding-top: 10px;
    font-size: 11px;
  }

  .footer-inner {
    min-height: 150px;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 24px;
    padding-block: 32px;
  }

  .footer-inner span {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .ringing-screen {
    padding-inline: 22px;
  }

  .alarm-title {
    font-size: 21px;
  }

  .step-count {
    font-size: 76px;
  }

  .demo-button {
    padding-inline: 8px;
    font-size: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
