:root {
  color-scheme: light;
  --ink: #05070a;
  --muted: #5b6674;
  --blue: #007aff;
  --cyan: #dff8ff;
  --pale: #f4fbff;
  --line: #dbe5ec;
  --green: #34c759;
  --red: #ff453a;
  --shadow: 0 26px 72px rgba(13, 32, 47, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 88px;
  padding: 16px clamp(24px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 28px;
  font-weight: 900;
}

.brand img {
  border-radius: 10px;
}

.nav {
  gap: clamp(28px, 4vw, 52px);
  font-size: 16px;
  font-weight: 700;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.25);
}

.header-cta.large {
  justify-self: center;
  min-width: 150px;
}

.hero {
  overflow: hidden;
  padding: 48px clamp(20px, 5vw, 64px) 0;
  text-align: center;
}

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

h1 {
  max-width: 1120px;
  margin: 0 auto 92px;
  font-size: clamp(50px, 5.8vw, 88px);
  font-weight: 500;
  line-height: 1.08;
}

h1 span {
  display: inline-block;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  align-items: end;
  gap: clamp(18px, 3vw, 46px);
  max-width: 1160px;
  min-height: 510px;
  margin: 0 auto;
  padding: 0 clamp(10px, 3vw, 38px);
}

.hero-stage::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 280px;
  border-radius: 34px 34px 0 0;
  background: var(--cyan);
  content: "";
}

.device,
.alarm-card {
  position: relative;
  z-index: 1;
  margin: 0;
}

.device {
  overflow: hidden;
  border: 8px solid #0a0d12;
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--shadow);
}

.device img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
}

.hero-device {
  align-self: end;
}

.hero-device.one,
.hero-device.two,
.hero-device.four {
  width: min(240px, 21vw);
}

.hero-device.three {
  width: min(250px, 22vw);
}

.hero-device.one,
.hero-device.four {
  transform: translateY(32px);
}

.hero-device.two {
  transform: translateY(8px);
}

.device figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.alarm-card {
  display: grid;
  place-content: center;
  aspect-ratio: 0.48;
  border: 8px solid #07090d;
  border-radius: 38px;
  background: #020204;
  color: #fff;
  box-shadow: var(--shadow);
}

.alarm-card span {
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 500;
}

.alarm-card strong {
  margin-top: 24px;
  font-size: 18px;
}

.alarm-card small {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.52);
}

.premium {
  margin: 58px 0 0;
  padding-bottom: 88px;
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 700;
}

.section {
  padding: 96px clamp(22px, 5vw, 72px);
}

h2 {
  margin-bottom: 38px;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 1.05;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.instead {
  max-width: 1180px;
  margin: 0 auto;
}

.problem-grid,
.benefit-grid,
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-grid article,
.benefit-grid article,
.plan-grid article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.easy {
  overflow: hidden;
  padding-top: 72px;
  text-align: center;
}

.center-copy {
  max-width: 860px;
  margin: 0 auto;
}

.center-copy h2 {
  margin-bottom: 22px;
}

.store-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.store-button {
  display: grid;
  min-width: 206px;
  padding: 10px 24px 11px;
  border-radius: 10px;
  background: #05070a;
  color: #fff;
  text-align: left;
}

.store-button small {
  font-size: 12px;
  line-height: 1.1;
}

.store-button strong {
  font-size: 28px;
  line-height: 1.1;
}

.paired-phones {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 760px;
  margin: 58px auto 0;
  padding: 48px 40px 0;
}

.paired-phones::before {
  position: absolute;
  inset: 150px 0 0;
  border-radius: 34px 34px 0 0;
  background: var(--cyan);
  content: "";
}

.paired-phones .device {
  width: min(270px, 38vw);
}

.paired-phones .raised {
  transform: translateY(-36px);
}

.logic {
  background: #f8fbfd;
  text-align: center;
}

.kicker {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.logic-intro {
  max-width: 760px;
  margin: -16px auto 32px;
}

.logic-intro p {
  margin-bottom: 4px;
}

.demo {
  display: grid;
  grid-template-columns: repeat(2, 170px) 1fr;
  gap: 16px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(19, 42, 62, 0.08);
}

.demo label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: left;
}

.demo input {
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}

.demo-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dose-chip {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 20px;
  background: var(--pale);
  font-weight: 900;
}

.dose-chip span {
  display: block;
  color: var(--blue);
  font-size: 24px;
}

.outcomes {
  max-width: 1180px;
  margin: 0 auto;
}

.outcome-copy {
  max-width: 900px;
}

.wide-image {
  max-width: 620px;
  max-height: 520px;
  margin: 32px auto 36px;
  overflow: hidden;
  border: 8px solid #0a0d12;
  border-radius: 36px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wide-image img {
  width: 100%;
  transform: translateY(-8%);
}

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

.records {
  background: var(--pale);
}

.records > p,
.records .kicker,
.records h2 {
  max-width: 860px;
}

.record-steps {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  max-width: 1080px;
  margin-top: 42px;
}

.record-steps article {
  padding: 30px;
  border-radius: 8px;
  background: #fff;
}

.record-steps img {
  width: min(320px, 100%);
  justify-self: center;
  border: 7px solid #0a0d12;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.plans {
  max-width: 1180px;
  margin: 0 auto;
}

.plans-lead {
  margin-top: -20px;
  margin-bottom: 30px;
}

.plan-grid {
  grid-template-columns: repeat(2, 1fr);
}

.plan-grid article {
  display: grid;
  gap: 16px;
  min-height: 300px;
}

.plan-grid span {
  color: var(--blue);
  font-weight: 900;
}

.plan-grid strong {
  font-size: 32px;
}

.plan-grid a {
  align-self: end;
  display: inline-flex;
  justify-content: center;
  max-width: 170px;
  padding: 15px 22px;
  border-radius: 999px;
  background: #05070a;
  color: #fff;
  font-weight: 900;
}

.connect {
  display: grid;
  justify-items: center;
  padding: 104px 22px;
  background: #05070a;
  color: #fff;
  text-align: center;
}

.connect h2 {
  margin-bottom: 18px;
}

.connect p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 30px 22px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 18px;
  }

  h1 {
    margin-bottom: 48px;
  }

  .hero-stage {
    grid-template-columns: repeat(4, 42vw);
    justify-content: start;
    overflow-x: auto;
    min-height: 430px;
    padding-bottom: 22px;
    scroll-snap-type: x mandatory;
  }

  .hero-stage::before {
    height: 240px;
  }

  .hero-device.one,
  .hero-device.two,
  .hero-device.four,
  .hero-device.three {
    width: 42vw;
    min-width: 176px;
    scroll-snap-align: center;
  }

  .problem-grid,
  .benefit-grid,
  .plan-grid,
  .demo,
  .record-steps {
    grid-template-columns: 1fr;
  }

  .demo-track {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 72px;
    padding: 12px 20px;
  }

  .brand span {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cta {
    min-height: 44px;
    padding: 0 18px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 42px;
  }

  .premium {
    padding-bottom: 60px;
    font-size: 22px;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .paired-phones {
    gap: 12px;
    padding: 36px 0 0;
  }

  .paired-phones .device {
    width: 46vw;
  }

  .problem-grid article,
  .benefit-grid article,
  .plan-grid article {
    min-height: auto;
  }
}
