/* =========================================================
   Moment — Screen Time Guard
   Marketing + legal site styles
   Warm, calm palette pulled from the app icon:
   terracotta · gold · sage · cream · deep brown ink
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;

  /* surfaces */
  --bg: #f6efe2;
  --bg-deep: #f0e6d4;
  --surface: #fffdf8;
  --surface-2: #f3ece0;
  --surface-sage: #eaf0e6;

  /* ink */
  --ink: #2b2620;
  --ink-soft: #4a423a;
  --muted: #7a6f62;
  --line: #e3d8c6;
  --line-soft: #ece2d3;

  /* brand */
  --terracotta: #c85f46;
  --terracotta-deep: #a4452f;
  --gold: #d99a32;
  --gold-deep: #b27a1f;
  --sage: #5c7a63;
  --sage-deep: #3f5b46;

  /* effects */
  --shadow-sm: 0 2px 8px rgba(58, 42, 26, 0.06);
  --shadow-md: 0 14px 40px rgba(58, 42, 26, 0.1);
  --shadow-lg: 0 36px 90px rgba(58, 42, 26, 0.16);
  --ring: 0 0 0 4px rgba(200, 95, 70, 0.16);

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;

  --maxw: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(820px 540px at 88% -8%, rgba(217, 154, 50, 0.16), transparent 60%),
    radial-gradient(760px 600px at -6% 6%, rgba(92, 122, 99, 0.14), transparent 55%),
    radial-gradient(900px 720px at 50% 118%, rgba(200, 95, 70, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.6;
  font-size: 1.02rem;
}

a {
  color: var(--terracotta-deep);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

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

::selection {
  background: rgba(200, 95, 70, 0.22);
}

.wrap {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------- Typography ---------------- */

h1,
h2,
h3 {
  font-family: Fraunces, ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.7rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--terracotta-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--terracotta);
}

.lead {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.26rem);
  line-height: 1.6;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(227, 216, 198, 0.7);
  background: rgba(246, 239, 226, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(var(--maxw), calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 6px;
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
}

.nav-links a[aria-current="page"] {
  color: var(--terracotta-deep);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* ---------------- Buttons ---------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  box-shadow: var(--shadow-sm);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-deep));
  color: #fff8f1;
  box-shadow: 0 10px 26px rgba(164, 69, 47, 0.32);
}

.button.primary:hover {
  box-shadow: 0 16px 34px rgba(164, 69, 47, 0.4);
}

.button svg {
  width: 18px;
  height: 18px;
}

/* ---------------- Hero ---------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero h1 {
  margin: 0 0 4px;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--terracotta);
}

.hero .lead {
  margin-top: 22px;
}

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

.assurance {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: var(--sage-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.assurance svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------------- Phone mockup ---------------- */

.device {
  justify-self: center;
  position: relative;
  width: min(100%, 332px);
}

.device::before {
  /* soft glow halo behind the phone */
  content: "";
  position: absolute;
  inset: -8% -14% -12%;
  background: radial-gradient(
    closest-side,
    rgba(217, 154, 50, 0.35),
    rgba(200, 95, 70, 0.18) 55%,
    transparent 78%
  );
  filter: blur(8px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  padding: 12px;
  border-radius: 52px;
  background: linear-gradient(160deg, #3a342c, #211d18);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  background: linear-gradient(180deg, #fffdf8, #f5ecdd);
  padding: 30px 24px 26px;
  min-height: 610px;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  border-radius: 999px;
  background: #211d18;
  z-index: 3;
}

/* countdown ring */
.ring-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 68px auto 12px;
}

.ring-wrap svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: #ece1cf;
  stroke-width: 14;
}

.ring-progress {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.22s linear;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.ring-num {
  font-family: Fraunces, serif;
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.ring-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.screen-msg {
  text-align: center;
  margin: 14px auto 0;
  max-width: 24ch;
}

.screen-msg strong {
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: 1.18rem;
}

.screen-msg span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.screen-cta {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.screen-btn {
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
}

.screen-btn.solid {
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  color: #f3f7ef;
}

.screen-btn.ghost {
  background: var(--surface-2);
  color: var(--muted);
}

.screen-btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ---------------- Trust strip ---------------- */

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  padding: 6px 0 8px;
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust svg {
  width: 18px;
  height: 18px;
  color: var(--sage-deep);
}

/* ---------------- Sections ---------------- */

.section {
  padding: clamp(56px, 8vw, 100px) 0;
}

.section-head {
  max-width: 62ch;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head .lead {
  margin: 18px auto 0;
}

/* steps / how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--surface-sage);
  color: var(--sage-deep);
  font-family: Fraunces, serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.step h3 {
  margin-bottom: 7px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.feature .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--surface-2);
  color: var(--terracotta-deep);
}

.feature .icon svg {
  width: 26px;
  height: 26px;
}

.feature:nth-child(3n + 2) .icon {
  background: var(--surface-sage);
  color: var(--sage-deep);
}

.feature:nth-child(3n) .icon {
  background: #f6ead2;
  color: var(--gold-deep);
}

.feature h3 {
  margin-bottom: 9px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------------- Insights showcase ---------------- */

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-md);
}

.showcase h2 {
  margin-bottom: 16px;
}

.showcase .lead {
  font-size: 1.08rem;
}

.checklist {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500;
  color: var(--ink-soft);
}

.checklist svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--sage-deep);
}

/* analytics card */
.analytics {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.analytics-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.analytics-top h3 {
  font-family: Inter, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.analytics-total {
  font-family: Fraunces, serif;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.1;
}

.analytics-total small {
  font-family: Inter, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.pace {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 6px 0 18px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-sage);
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  height: 132px;
  margin-bottom: 8px;
}

.bars span {
  display: block;
  border-radius: 7px 7px 4px 4px;
  background: linear-gradient(180deg, var(--gold), var(--terracotta));
  opacity: 0.9;
  animation: grow 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.bars span:nth-child(1) { animation-delay: 0.04s; }
.bars span:nth-child(2) { animation-delay: 0.1s; }
.bars span:nth-child(3) { animation-delay: 0.16s; }
.bars span:nth-child(4) { animation-delay: 0.22s; }
.bars span:nth-child(5) { animation-delay: 0.28s; }
.bars span:nth-child(6) { animation-delay: 0.34s; }
.bars span:nth-child(7) { animation-delay: 0.4s; }

@keyframes grow {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }
}

.bar-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.cats {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 11px;
}

.cat {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  font-weight: 600;
}

.cat .track {
  height: 9px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.cat .fill {
  height: 100%;
  border-radius: 999px;
}

.cat .val {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------------- Privacy band ---------------- */

.band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--sage-deep), #2f4435);
  color: #eef3ea;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 300px at 80% -20%,
    rgba(217, 154, 50, 0.32),
    transparent 60%
  );
  pointer-events: none;
}

.band .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f0d9a8;
  position: relative;
  z-index: 1;
}

.band h2 {
  position: relative;
  z-index: 1;
  max-width: 20ch;
  margin: 0 auto 16px;
  color: #fff;
}

.band p {
  position: relative;
  z-index: 1;
  max-width: 56ch;
  margin: 0 auto;
  color: rgba(238, 243, 234, 0.86);
  font-size: 1.08rem;
}

.band-points {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  margin-top: 30px;
}

.band-points span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.96rem;
}

.band-points svg {
  width: 19px;
  height: 19px;
  color: #f0d9a8;
}

/* ---------------- CTA ---------------- */

.cta {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
}

.cta h2 {
  max-width: 18ch;
  margin: 0 auto 18px;
}

.cta .lead {
  margin: 0 auto 30px;
}

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

/* ---------------- Legal / content pages ---------------- */

.legal {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) 0 90px;
}

.legal .eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
}

.legal h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  margin-bottom: 10px;
}

.legal .lead {
  margin-bottom: 14px;
}

.legal h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal ul {
  padding-left: 1.3rem;
  display: grid;
  gap: 8px;
}

.legal a {
  font-weight: 600;
}

.contact-card {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.notice {
  display: flex;
  gap: 12px;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #e6c98c;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  background: #fcf3dc;
  color: #6a4f1d;
  font-size: 0.95rem;
}

.notice svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold-deep);
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
}

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

.footer-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-inner nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-inner nav a:hover {
  color: var(--terracotta-deep);
}

/* ---------------- Reveal animation ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .actions {
    justify-content: center;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
    min-height: 0;
    gap: 10px;
  }
  .nav-links {
    justify-content: center;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .button {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
