:root {
  --sky: #5aa9e6;
  --sky-deep: #226fb0;
  --blush: #ffb5a7;
  --blush-deep: #ff9e8d;
  --leaf: #7fd1ae;
  --cream: #fffdfa;
  --surface: #ffffff;
  --ink: #2a3b47;
  --muted: #54636e;
  --line: #e2ebf2;
  --shadow: 0 18px 40px rgba(46, 124, 194, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: "Poppins", "SF Pro Rounded", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

a {
  color: var(--sky-deep);
  text-decoration: none;
}

/* Visible keyboard focus indicator (WCAG 2.4.7 / 2.4.11) */
:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid var(--sky-deep);
  outline-offset: 2px;
}

main:focus {
  outline: none;
}

/* Skip to content link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--sky-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.grad {
  background: linear-gradient(120deg, var(--sky-deep), #d94f38);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 250, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars {
  display: block;
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6.75px; }
.nav-toggle-bars span:nth-child(3) { top: 13.5px; }

.nav.open .nav-toggle-bars span:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
.nav.open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle-bars span:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }

.nav-links a:not(.btn) {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--sky);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--sky-deep);
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--sky-deep);
  color: #fff;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(90, 169, 230, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(90, 169, 230, 0.42);
}

.btn-small {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--sky-deep);
  box-shadow: none;
  border: 1.5px solid var(--sky);
}

.btn-ghost:hover {
  background: rgba(90, 169, 230, 0.08);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: clamp(40px, 7vw, 90px) clamp(18px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
}

.pill {
  display: inline-block;
  background: rgba(127, 209, 174, 0.22);
  color: #1f6e52;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  margin: 20px 0 28px;
  max-width: 30em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.fineprint {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* PHONE MOCKUP */
.hero-art {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(300px, 86vw);
  aspect-ratio: 300 / 610;
  background: linear-gradient(160deg, #eaf4fc, #fff3ef);
  border-radius: 42px;
  padding: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.dynamic-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #10161c;
  border-radius: 999px;
  z-index: 3;
  animation: islandBreathe 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.status-bar {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 2;
  color: #10161c;
  pointer-events: none;
}

.sb-time {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.sb-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sb-icons svg {
  fill: #10161c;
  height: 12px;
  width: auto;
}

.di-cam {
  position: absolute;
  top: 31px;
  left: calc(50% + 30px);
  z-index: 4;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a4a5a, #0a0e12);
}

@keyframes islandBreathe {
  0%, 88%, 100% { width: 96px; }
  44%, 56% { width: 112px; }
}

.phone-screen {
  position: relative;
  height: 100%;
  background: var(--cream);
  border-radius: 30px;
  padding: 58px 20px 22px;
  overflow: hidden;
}

.slides {
  position: relative;
  height: calc(100% - 20px);
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  animation: slideCycle 15s infinite;
}

.slide-today { animation-delay: 0s; }
.slide-community { animation-delay: 5s; }
.slide-insights { animation-delay: 10s; }

@keyframes slideCycle {
  0% { opacity: 0; transform: translateY(12px) scale(0.98); }
  4% { opacity: 1; transform: translateY(0) scale(1); }
  30% { opacity: 1; transform: translateY(0) scale(1); }
  34% { opacity: 0; transform: translateY(-12px) scale(0.98); }
  100% { opacity: 0; transform: translateY(-12px) scale(0.98); }
}

/* Slide navigation dots */
.slide-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.slide-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  animation: dotCycle 15s infinite;
}

.slide-dots .d-today { animation-delay: 0s; }
.slide-dots .d-community { animation-delay: 5s; }
.slide-dots .d-insights { animation-delay: 10s; }

@keyframes dotCycle {
  0%, 33%, 100% { background: var(--sky); width: 16px; border-radius: 4px; }
  34%, 99% { background: var(--line); width: 6px; border-radius: 50%; }
}

/* Community slide */
.p-screen-title {
  font-weight: 800;
  font-size: 20px;
}

.p-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
}

.p-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.p-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.av-sky {
  background: rgba(90, 169, 230, 0.2);
  color: var(--sky-deep);
}

.av-blush {
  background: rgba(255, 181, 167, 0.32);
  color: #b5503f;
}

.av-leaf {
  background: rgba(127, 209, 174, 0.32);
  color: #1f6e52;
}

.p-post-name {
  font-weight: 700;
  font-size: 13px;
}

.p-post-tag {
  font-size: 11px;
  color: var(--muted);
}

.p-post-body {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.4;
}

.p-support {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blush-deep);
}

.p-support svg {
  width: 15px;
  height: 15px;
}

/* Insights slide */
.p-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  margin-top: 10px;
}

.p-chart span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--sky), #9fd0f2);
  border-radius: 6px 6px 3px 3px;
  transform-origin: bottom;
  animation: barGrow 0.8s ease both;
}

.slide-insights .p-chart span:nth-child(1) { animation-delay: 10.1s; }
.slide-insights .p-chart span:nth-child(2) { animation-delay: 10.2s; }
.slide-insights .p-chart span:nth-child(3) { animation-delay: 10.3s; }
.slide-insights .p-chart span:nth-child(4) { animation-delay: 10.4s; }
.slide-insights .p-chart span:nth-child(5) { animation-delay: 10.5s; }
.slide-insights .p-chart span:nth-child(6) { animation-delay: 10.6s; }
.slide-insights .p-chart span:nth-child(7) { animation-delay: 10.7s; }

@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}

.p-greet {
  color: var(--muted);
  font-size: 14px;
}

.p-name {
  font-weight: 800;
  font-size: 22px;
  margin-top: -6px;
}

.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(46, 124, 194, 0.06);
}

.p-card-head {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sky);
  display: inline-block;
}

.p-muted {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 12px;
}

.p-btn {
  background: var(--sky-deep);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

.p-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(127, 209, 174, 0.28);
  color: #1f6e52;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
}

.p-badge svg {
  width: 13px;
  height: 13px;
}

.p-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 10px;
}

.chip-sky {
  background: rgba(90, 169, 230, 0.16);
  color: var(--sky-deep);
}

.chip-leaf {
  background: rgba(127, 209, 174, 0.22);
  color: #1f6e52;
}

.chip-blush {
  background: rgba(255, 181, 167, 0.28);
  color: #9c3f30;
}

/* BAND */
.band {
  background: linear-gradient(120deg, rgba(90, 169, 230, 0.09), rgba(255, 181, 167, 0.12));
  padding: clamp(30px, 5vw, 56px) clamp(18px, 5vw, 64px);
  text-align: center;
}

.band-text {
  max-width: 44em;
  margin: 0 auto;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--ink);
}

/* SECTIONS */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 5vw, 40px);
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin-top: 34px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feat-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feat-ico.sky {
  background: rgba(90, 169, 230, 0.16);
  color: var(--sky-deep);
}
.feat-ico.blush {
  background: rgba(255, 181, 167, 0.26);
  color: #b5503f;
}
.feat-ico.leaf {
  background: rgba(127, 209, 174, 0.24);
  color: #1f6e52;
}

.feat-ico svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
}

/* PROMISE */
.promise {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.promise-lead {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto 26px;
}

.promise-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.promise-list li {
  background: linear-gradient(120deg, rgba(90, 169, 230, 0.07), rgba(127, 209, 174, 0.09));
  border-radius: 14px;
  padding: 15px 18px;
  font-size: 15px;
  color: var(--ink);
}

.promise-list strong {
  color: var(--sky-deep);
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 30px auto 0;
  display: grid;
  gap: 12px;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

details:hover {
  border-color: var(--sky);
  box-shadow: 0 8px 20px rgba(46, 124, 194, 0.08);
}

details[open] {
  border-color: var(--sky);
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "\203A";
  font-size: 24px;
  line-height: 1;
  color: var(--sky);
  transition: transform 0.25s ease;
}

details[open] summary::after {
  transform: rotate(90deg);
}

details p {
  color: var(--muted);
  padding-bottom: 18px;
}

details[open] p {
  animation: faqOpen 0.3s ease both;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TRY / DOWNLOAD */
.try {
  text-align: center;
}

.try-lead {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin: 0 auto;
}

.try-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  margin: 34px 0 22px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dl-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.dl-card h3 {
  font-size: 19px;
}

.dl-card p {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.dl-card .btn {
  margin-top: 6px;
}

.store-badge {
  display: inline-block;
  margin-top: 6px;
  transition: transform 0.15s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  height: 42px;
  width: auto;
}

.dl-alt {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dl-alt:hover {
  color: var(--sky-deep);
}

.dl-note {
  text-decoration: none;
  cursor: default;
}

.dl-note:hover {
  color: var(--muted);
}

.try .fineprint {
  text-align: center;
}

/* PRESS */
.press {
  text-align: center;
}

.press-lead {
  text-align: center;
  color: var(--muted);
  max-width: 42em;
  margin: 0 auto 24px;
}

.press-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.press .fineprint {
  text-align: center;
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
}

/* CTA */
.cta {
  text-align: center;
}

.cta-box {
  background: linear-gradient(140deg, var(--sky), var(--blush-deep));
  border-radius: 28px;
  padding: clamp(34px, 6vw, 60px);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  color: var(--ink);
}

.cta-box p {
  max-width: 34em;
  margin: 10px auto 24px;
  opacity: 0.95;
}

.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-form input {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  min-width: 260px;
  font-size: 15px;
  font-family: inherit;
}

.cta-form .btn {
  background: #fff;
  color: var(--sky-deep);
}

.cta-msg {
  margin-top: 16px;
  font-weight: 600;
  min-height: 1.2em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 50px 20px 40px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
}

.foot-note {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 16px;
}

.foot-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}

.foot-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 2px;
}

.foot-social {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  color: var(--muted);
  transition: color 0.15s ease, transform 0.15s ease;
}

.foot-social a:hover {
  color: var(--sky);
  transform: translateY(-2px);
}

.foot-social svg {
  width: 20px;
  height: 20px;
}

.foot-made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f6e52;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.foot-made svg {
  width: 16px;
  height: 16px;
}

.foot-copy {
  color: var(--muted);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 820px) {
  /* Stack the hero and place the headline above the phone mockup */
  .hero {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .hero-copy {
    display: contents;
  }
  .hero .pill {
    order: 1;
    align-self: center;
  }
  .hero h1 {
    order: 2;
  }
  .hero-art {
    order: 3;
  }
  .hero .lead {
    order: 4;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    order: 5;
    justify-content: center;
  }
  .hero .fineprint {
    order: 6;
  }

  /* Mobile navigation */
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px clamp(18px, 5vw, 64px) 16px;
    background: var(--cream);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links {
    display: flex;
  }
  .nav-links a:not(.btn) {
    display: block;
    padding: 13px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:not(.btn)::after {
    display: none;
  }
  .nav-links .btn {
    margin-top: 12px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hero-actions .btn,
  .press-actions .btn {
    width: 100%;
  }
  .cta-form {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-form input {
    min-width: 0;
    width: 100%;
  }
  .cta-form .btn {
    width: 100%;
  }
  .foot-links {
    flex-wrap: wrap;
  }
}

/* Very narrow screens: hide the decorative phone mockup, which is designed
   for ~300px and cannot shrink further without its contents clashing. */
@media (max-width: 340px) {
  .hero-art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none !important;
    animation: none !important;
  }
  /* Keep the first preview slide visible when motion is reduced */
  .slide-today {
    opacity: 1;
    transform: none;
  }
  .p-chart span {
    transform: scaleY(1);
    opacity: 1;
  }
}
