:root {
  color-scheme: light;
  --ink: #1b1f26;
  --muted: #626a73;
  --line: #dce2e8;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --rose: #e94d72;
  --green: #1b8a69;
  --blue: #226fbd;
  --yellow: #f3bd35;
  --shadow: 0 24px 70px rgba(31, 39, 54, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(220, 226, 232, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(233, 77, 114, 0.22);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

nav a {
  padding: 10px 0;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(560px, 1.08fr);
  align-items: center;
  padding: 118px clamp(20px, 6vw, 88px) 84px;
  overflow: hidden;
  background: #f3f6f9;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: var(--paper);
  clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
}

.hero-scene {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 47%;
  overflow: hidden;
}

.scene-calendar {
  position: absolute;
  left: clamp(10px, 4vw, 76px);
  top: 14%;
  width: clamp(390px, 34vw, 620px);
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(220, 226, 232, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.month-row,
.week-row,
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.month-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 20px;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
}

.month-row span:last-child {
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.week-row {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.date-grid span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  background: var(--soft);
  color: #333a44;
  font-weight: 700;
}

.date-grid .today {
  color: #fff;
  background: var(--rose);
}

.date-grid .marked {
  color: #fff;
  background: var(--green);
}

.date-grid .marked.alt {
  background: var(--blue);
}

.phone-shell {
  position: absolute;
  right: clamp(28px, 6vw, 118px);
  top: 12%;
  width: min(310px, 34vw);
  min-width: 260px;
  padding: 20px 16px;
  background: #191d24;
  border: 10px solid #272d36;
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(25, 29, 36, 0.34);
  transform: rotate(4deg);
}

.phone-bar {
  width: 72px;
  height: 6px;
  margin: 0 auto 18px;
  border-radius: 99px;
  background: #3d4652;
}

.phone-title {
  margin-bottom: 18px;
  color: #fff;
  font-size: 19px;
  font-weight: 850;
}

.birthday-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  margin: 10px 0;
  padding: 14px;
  color: #fff;
  background: #252c35;
  border-radius: 8px;
}

.birthday-row strong {
  min-width: 0;
  font-size: 16px;
}

.birthday-row span {
  grid-column: 1;
  color: #aeb8c4;
  font-size: 13px;
}

.birthday-row b {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--yellow);
  font-size: 20px;
}

.birthday-row.active {
  background: #fef7f8;
  color: var(--ink);
}

.birthday-row.active span {
  color: #6d7580;
}

.push-note {
  margin: 18px 8px 0;
  padding: 13px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 15px;
  font-weight: 850;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(66px, 7.2vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 520px;
  color: #3d4652;
  font-size: clamp(20px, 2.15vw, 28px);
  line-height: 1.46;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 850;
}

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

.secondary-button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 88px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 38px;
  background: var(--paper);
}

.metric {
  padding: 18px 0;
  border-top: 2px solid var(--line);
}

.metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 34px);
}

.metric span {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-section {
  background: #fbfbfc;
}

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

.feature-grid article {
  min-height: 230px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  margin-bottom: 28px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 900;
}

.feature-grid article:nth-child(2) .feature-icon {
  background: var(--green);
}

.feature-grid article:nth-child(3) .feature-icon {
  background: var(--rose);
}

.feature-grid article:nth-child(4) .feature-icon {
  color: var(--ink);
  background: var(--yellow);
}

.feature-grid h3,
.timeline strong {
  margin-bottom: 10px;
  font-size: 21px;
}

.feature-grid p,
.calendar-copy p,
.testing-layout p,
.testing-layout li,
.timeline span,
.memory-card p {
  color: var(--muted);
  line-height: 1.72;
}

.calendar-section {
  background: #eef7f3;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.calendar-copy {
  max-width: 620px;
  font-size: 18px;
}

.calendar-sample {
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(27, 138, 105, 0.22);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(27, 138, 105, 0.12);
}

.sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sample-head strong {
  font-size: 28px;
}

.sample-head button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}

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

.sample-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.sample-grid .selected {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.cloud-section {
  background: var(--paper);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.timeline div {
  min-height: 180px;
  padding: 24px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.timeline div:last-child {
  border-right: 0;
}

.timeline strong,
.timeline span {
  display: block;
}

.testing-section {
  background: #f6f8fb;
}

.testing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.75fr);
  gap: clamp(22px, 5vw, 68px);
  align-items: start;
}

.testing-layout ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.memory-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(31, 39, 54, 0.08);
}

.memory-card span {
  width: fit-content;
  margin-bottom: 22px;
  padding: 6px 10px;
  color: #fff;
  background: var(--rose);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.memory-card strong {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span {
  color: var(--ink);
  font-weight: 850;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.policy-page {
  min-height: 100svh;
  padding-top: 68px;
  background: #f6f8fb;
}

.policy-hero {
  padding: clamp(64px, 9vw, 116px) clamp(20px, 6vw, 88px) clamp(34px, 5vw, 64px);
  background: #eef7f3;
}

.policy-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 88px);
}

.policy-hero p {
  max-width: 760px;
  color: #3d4652;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.55;
}

.policy-hero span {
  display: inline-flex;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.policy-content {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 44px) clamp(72px, 8vw, 108px);
}

.policy-content article {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.policy-content article:first-child {
  padding-top: 0;
}

.policy-content article:last-child {
  border-bottom: 0;
}

.policy-content h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
}

.policy-content p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.82;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .hero {
    min-height: 860px;
    align-items: start;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 34px;
  }

  .hero-scene {
    inset: 0;
  }

  .scene-calendar {
    right: auto;
    left: 20px;
    top: auto;
    bottom: 84px;
    width: min(440px, 78vw);
  }

  .phone-shell {
    right: 22px;
    top: auto;
    bottom: 100px;
    width: 270px;
    min-width: 248px;
  }

  .intro-band,
  .feature-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline div:last-child {
    border-bottom: 0;
  }

  .calendar-layout,
  .testing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 60px;
  }

  .hero {
    min-height: 790px;
    padding-top: 92px;
  }

  h1 {
    font-size: 62px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .hero-actions {
    width: 100%;
  }

  .primary-button,
  .secondary-button {
    flex: 1 1 150px;
  }

  .scene-calendar {
    left: 14px;
    bottom: 68px;
    width: 92vw;
    padding: 14px;
    transform: rotate(-3deg);
  }

  .phone-shell {
    right: 14px;
    bottom: 42px;
    width: 198px;
    min-width: 198px;
    padding: 12px 10px;
    border-width: 7px;
    transform: rotate(3deg);
  }

  .date-grid span {
    min-height: 34px;
    font-size: 13px;
  }

  .birthday-row {
    gap: 2px 8px;
    margin: 6px 0;
    padding: 9px;
  }

  .birthday-row strong {
    font-size: 14px;
  }

  .birthday-row span {
    font-size: 11px;
  }

  .birthday-row b {
    font-size: 15px;
  }

  .phone-title {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .phone-bar {
    margin-bottom: 12px;
  }

  .push-note {
    margin-top: 10px;
    padding: 10px;
    font-size: 12px;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}
