:root {
  color-scheme: light;
  --ink: #543830;
  --muted: #7a6258;
  --teal: #1396af;
  --teal-soft: #8cecff;
  --leaf: #6fa679;
  --paper: rgba(255, 253, 248, 0.9);
  --line: rgba(211, 194, 174, 0.72);
  --shadow: 0 24px 72px rgba(36, 118, 142, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #d7f7ff;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 14px;
  left: 50%;
  width: min(1080px, calc(100% - 28px));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 40px rgba(69, 149, 172, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(104, 194, 194, 0.18);
  color: var(--leaf);
}

.nav-links {
  display: flex;
  gap: 4px;
  color: #816a5e;
  font-size: 14px;
  font-weight: 800;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 18px;
}

.nav-links a:hover {
  background: rgba(139, 228, 255, 0.26);
  color: var(--teal);
}

.hero-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  align-items: center;
  gap: 42px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 116px 0 56px;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(216, 248, 255, 0.56), rgba(215, 247, 255, 0.86)),
    url("/assets/breath-garden-soft-bg.png") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.54), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 22%, transparent 22% 72%, rgba(255, 255, 255, 0.4) 72%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.04;
  font-weight: 950;
  word-break: keep-all;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 950;
}

h3 {
  margin: 0 0 10px;
  color: #176f88;
  font-size: 22px;
  line-height: 1.28;
}

.hero-lead,
.garden-copy p,
.cta-section p,
.sound-card p,
.feature-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 28px;
  font-weight: 900;
}

.primary-button {
  color: #fff;
  background: #28a9c4;
  box-shadow: 0 14px 28px rgba(40, 169, 196, 0.28);
}

.secondary-button {
  color: #146f88;
  border: 2px solid rgba(40, 169, 196, 0.4);
  background: rgba(255, 255, 255, 0.7);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 36px 0 0;
}

.hero-stats div {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.hero-stats dt {
  color: #167b99;
  font-size: 28px;
  font-weight: 950;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.phone-wrap {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(100%, 390px);
  padding: 16px;
  border: 9px solid #1f1f24;
  border-radius: 58px;
  background: #0f1014;
  box-shadow: var(--shadow);
}

.phone-speaker {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 112px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 18px;
  background: #050506;
  z-index: 2;
}

.app-screen {
  overflow: hidden;
  min-height: 720px;
  padding: 72px 18px 24px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(225, 250, 255, 0.76), rgba(207, 243, 247, 0.92)),
    url("/assets/breath-garden-soft-bg.png") center / cover;
}

.app-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.app-title {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  word-break: keep-all;
}

.app-subtitle {
  margin: 4px 0 0;
  color: #7c584c;
  font-size: 18px;
  font-weight: 900;
}

.streak {
  align-self: start;
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid #f2bd48;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  color: #f06b26;
  font-size: 13px;
  font-weight: 950;
}

.breath-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 260px;
  height: 260px;
  margin: 38px auto 18px;
  border: 5px solid #7af5f3;
  border-radius: 50%;
  background: rgba(204, 248, 255, 0.28);
  animation: breathe 5.2s ease-in-out infinite;
}

.breath-ring img {
  width: 210px;
  height: 210px;
  object-fit: contain;
}

.session-heading {
  margin: 0 0 14px;
  color: #167b99;
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.session-grid span,
.start-pill,
.week-row {
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.88);
}

.session-grid span {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-radius: 18px;
  color: #246f89;
  font-weight: 950;
  text-align: center;
}

.session-grid .selected {
  border: 3px solid #50b9df;
  background: rgba(234, 252, 255, 0.94);
}

.start-pill {
  display: grid;
  place-items: center;
  min-height: 58px;
  margin-top: 16px;
  border: 3px solid #8be4ff;
  border-radius: 34px;
  color: #1784a1;
  font-size: 20px;
  font-weight: 950;
}

.week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 18px;
  padding: 12px;
  border-radius: 22px;
  color: #8aa96d;
  font-weight: 950;
  text-align: center;
}

.section,
.garden-section,
.cta-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.sound-card,
.cta-section,
.milestone-list div {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 16px 48px rgba(69, 149, 172, 0.12);
}

.feature-grid article {
  min-height: 270px;
  padding: 24px;
  border-radius: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(139, 228, 255, 0.34);
  color: var(--teal);
  font-size: 26px;
  font-weight: 950;
}

.garden-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 28px;
}

.milestone-list {
  display: grid;
  gap: 12px;
}

.milestone-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 18px 20px;
  border-radius: 22px;
}

.milestone-list strong {
  color: #167b99;
  font-size: 28px;
  font-weight: 950;
}

.milestone-list span {
  color: var(--muted);
  font-weight: 900;
}

.sound-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
}

.sound-card img {
  width: 100%;
  border-radius: 24px;
  background: rgba(215, 247, 255, 0.62);
}

.sound-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.sound-card li {
  color: #6f584f;
  font-weight: 850;
}

.sound-card li::before {
  content: "✦ ";
  color: #39b8d4;
}

.cta-section {
  margin-bottom: 42px;
  padding: 48px;
  border-radius: 30px;
  text-align: center;
}

.cta-section p {
  max-width: 760px;
  margin: 18px auto 0;
}

.cta-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: #7a6258;
  font-size: 14px;
  font-weight: 800;
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    min-height: 58px;
  }

  .nav-links {
    display: none;
  }

  .hero-section,
  .garden-section,
  .sound-card {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: 104px;
  }

  .hero-stats,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    width: min(100%, 360px);
  }

  .app-screen {
    min-height: 660px;
  }

  .sound-card img {
    width: min(220px, 100%);
    justify-self: center;
  }

  .cta-section {
    padding: 34px 20px;
  }
}

@media (max-width: 460px) {
  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .phone {
    border-width: 7px;
    border-radius: 44px;
  }

  .app-screen {
    min-height: 610px;
    padding: 62px 14px 20px;
    border-radius: 34px;
  }

  .breath-ring {
    width: 220px;
    height: 220px;
  }

  .breath-ring img {
    width: 180px;
    height: 180px;
  }

  .app-title {
    font-size: 22px;
  }

  .streak {
    font-size: 11px;
    padding: 8px 9px;
  }
}
