:root {
  color-scheme: light;
  --ink: #1b2a23;
  --ink-2: #43504a;
  --muted: #6c766d;
  --bg: #f4f3ee;
  --bg-2: #fbfaf6;
  --surface: #ffffff;
  --line: #e8e5da;
  --line-soft: #f0eee6;
  --sage: #5e7d6e;
  --sage-deep: #36504540;
  --amber: #d3a052;
  --rose: #bd7c7c;
  --blue: #5780a7;
  --navy: #303c63;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 1px 2px rgba(27, 42, 35, 0.04), 0 18px 40px rgba(27, 42, 35, 0.07);
  --shadow-float: 0 30px 70px rgba(27, 42, 35, 0.16);
  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

p {
  margin-top: 0;
}

/* --- Fine grain ----------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Header --------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(251, 250, 246, 0.7);
  color: var(--ink);
  border-bottom: 1px solid rgba(27, 42, 35, 0.07);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(27, 42, 35, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.96rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.2s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-2);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(27, 42, 35, 0.22);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #d9d5c8;
  box-shadow: var(--shadow-soft);
}

/* --- Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 78% 28%, rgba(87, 128, 167, 0.16) 0%, rgba(87, 128, 167, 0) 60%),
    radial-gradient(55% 55% at 12% 14%, rgba(94, 125, 110, 0.16) 0%, rgba(94, 125, 110, 0) 58%),
    radial-gradient(70% 70% at 90% 92%, rgba(211, 160, 82, 0.12) 0%, rgba(211, 160, 82, 0) 55%),
    var(--bg);
}

/* soft blurred day-ring motif (echoes the app's insights donut) */
.hero-ring {
  position: absolute;
  z-index: 0;
  top: 4%;
  right: -6%;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: conic-gradient(from -95deg,
    var(--navy) 0deg 96deg,
    var(--blue) 96deg 150deg,
    var(--sage) 150deg 232deg,
    var(--amber) 232deg 278deg,
    var(--rose) 278deg 320deg,
    var(--navy) 320deg 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 41%, #000 42% 57%, transparent 58%);
  mask: radial-gradient(circle, transparent 0 41%, #000 42% 57%, transparent 58%);
  filter: blur(7px) saturate(115%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 124px;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(211, 160, 82, 0.22);
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-copy > p {
  max-width: 470px;
  margin: 0;
  color: var(--ink-2);
  font-size: 1.22rem;
  line-height: 1.5;
}

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

.hero-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  width: 17px;
  height: 17px;
  color: var(--sage);
}

/* device cluster */
.hero-devices {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  height: 560px;
}

.hero-devices .device {
  position: absolute;
}

.hero-devices .device:first-child {
  z-index: 2;
  width: 272px;
  right: 0;
  top: 18px;
  transform: rotate(2.5deg);
}

.hero-devices .device:last-child {
  z-index: 1;
  width: 244px;
  left: 0;
  top: 96px;
  transform: rotate(-4deg);
}

/* --- Device frame --------------------------------------------------- */
.device {
  padding: 9px;
  border-radius: 42px;
  background: linear-gradient(155deg, #f4f4f2 0%, #d9d8d2 100%);
  box-shadow: var(--shadow-float), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.device img {
  border-radius: 33px;
  display: block;
}

/* --- Section scaffolding -------------------------------------------- */
.section {
  position: relative;
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.section.tight {
  padding-top: 60px;
}

.section-header {
  max-width: 680px;
  margin-bottom: 46px;
}

.section-header h2,
.page-title h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.05;
}

.section-header p,
.page-title p,
.feature p,
.support-topic p,
.policy-content p,
.policy-content li {
  color: var(--muted);
}

.section-header p {
  font-size: 1.18rem;
  max-width: 620px;
}

.kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--sage);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.feature {
  position: relative;
  min-height: 204px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease;
}

/* soft color wash that blooms on hover */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 80% at 18% 0%, var(--glow, rgba(94, 125, 110, 0.16)) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(27, 42, 35, 0.05), 0 26px 52px rgba(27, 42, 35, 0.13);
}

.feature:hover::before {
  opacity: 1;
}

.feature-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 15px;
  color: var(--sage);
  background: rgba(94, 125, 110, 0.13);
}

.feature-mark svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.feature:nth-child(1) { --glow: rgba(94, 125, 110, 0.16); }
.feature:nth-child(2) { --glow: rgba(211, 160, 82, 0.18); }
.feature:nth-child(2) .feature-mark { color: var(--amber); background: rgba(211, 160, 82, 0.15); }
.feature:nth-child(3) { --glow: rgba(87, 128, 167, 0.16); }
.feature:nth-child(3) .feature-mark { color: var(--blue); background: rgba(87, 128, 167, 0.14); }
.feature:nth-child(4) { --glow: rgba(189, 124, 124, 0.16); }
.feature:nth-child(4) .feature-mark { color: var(--rose); background: rgba(189, 124, 124, 0.14); }
.feature:nth-child(5) { --glow: rgba(211, 160, 82, 0.18); }
.feature:nth-child(5) .feature-mark { color: var(--amber); background: rgba(211, 160, 82, 0.15); }
.feature:nth-child(6) { --glow: rgba(48, 60, 99, 0.15); }
.feature:nth-child(6) .feature-mark { color: var(--navy); background: rgba(48, 60, 99, 0.12); }

.feature h3,
.support-topic h2,
.policy-content h2 {
  position: relative;
  margin: 0 0 9px;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

.feature p {
  position: relative;
  margin: 0;
  font-size: 1rem;
}

/* --- Showcase ------------------------------------------------------- */
.showcase {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(87, 128, 167, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, #eef0ea 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: end;
}

.screenshots .device {
  border-radius: 38px;
}

.screenshots .device img {
  border-radius: 30px;
}

.screenshots .device.offset {
  margin-bottom: 56px;
}

/* --- Watch ---------------------------------------------------------- */
.watch-row {
  display: grid;
  grid-template-columns: minmax(200px, 0.5fr) minmax(0, 1fr);
  gap: 52px;
  align-items: center;
}

.watch-shot {
  border-radius: 46px;
  box-shadow: var(--shadow-float);
  justify-self: center;
}

.watch-row h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.06;
}

.watch-row p {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0;
}

/* --- Privacy band (soft light) -------------------------------------- */
.privacy-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 88% 10%, rgba(94, 125, 110, 0.16) 0%, transparent 58%),
    linear-gradient(180deg, #eef1ea 0%, #e9ede4 100%);
  border-top: 1px solid var(--line-soft);
}

.privacy-band .section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.privacy-band h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.05;
}

.privacy-band > .section > div > p {
  color: var(--ink-2);
  font-size: 1.15rem;
  margin: 0;
}

.privacy-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  font-size: 1rem;
  font-weight: 500;
}

.privacy-list li::before {
  content: "";
  flex: none;
  margin-top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4 4 10-10'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--sage);
}

/* --- Inner pages ---------------------------------------------------- */
.page-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 134px 0 96px;
}

.page-title {
  margin-bottom: 48px;
}

.page-title p {
  font-size: 1.18rem;
  color: var(--ink-2);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.support-topic,
.policy-content {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.policy-content {
  display: grid;
  gap: 26px;
}

.support-topic p,
.policy-content p {
  font-size: 1rem;
  margin-bottom: 0;
}

.policy-content section > :last-child,
.support-topic > :last-child {
  margin-bottom: 0;
}

/* --- Footer --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-inner {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner nav {
  display: flex;
  gap: 22px;
}

.footer-inner a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-inner a:hover {
  opacity: 0.55;
}

/* --- Entrance animation --------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-devices {
    animation: rise 0.8s var(--ease) both;
  }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.19s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.26s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.33s; }
  .hero-devices { animation-delay: 0.18s; }

  .hero-ring {
    animation: ringIn 1.2s var(--ease) 0.1s both;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes ringIn {
    from { opacity: 0; transform: rotate(-18deg) scale(0.92); }
    to { opacity: 0.5; transform: none; }
  }
}

/* --- Responsive ----------------------------------------------------- */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 128px 0 108px;
  }

  .hero-devices {
    justify-self: start;
    width: 100%;
    max-width: 400px;
    height: 420px;
    margin-top: 22px;
  }

  .hero-ring {
    width: 380px;
    height: 380px;
    top: auto;
    bottom: -40px;
    right: -10%;
    opacity: 0.4;
  }

  .privacy-band .section {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 840px) {
  .nav {
    height: auto;
    min-height: 62px;
    padding: 10px 0;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

  .nav-links a:not(.button) {
    display: none;
  }

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

  .support-grid {
    grid-template-columns: 1fr;
  }

  .watch-row {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .watch-shot {
    width: min(240px, 70vw);
  }

  .screenshots .device.offset {
    margin-bottom: 0;
  }

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

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .brand span {
    display: none;
  }

  .hero-actions .button {
    flex: 1 1 auto;
  }

  .hero-devices {
    height: 360px;
    max-width: 340px;
  }

  .hero-devices .device:first-child { width: 222px; }
  .hero-devices .device:last-child { width: 198px; }

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

  .screenshots {
    max-width: 320px;
    margin: 0 auto;
  }

  .section {
    padding: 72px 0;
  }

  .feature,
  .support-topic,
  .policy-content {
    padding: 24px;
  }
}
