/* Harmovi marketing site. Colours, radii and the typeface are the app's
   direction D tokens (docs/25-design-system.md); the site adds larger,
   fluid display sizes because a landing page is read differently from
   an app screen. */

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  color-scheme: light;

  --surface: #F7F3F1;
  --raised: #FFFDFC;
  --sunken: #F0E8E4;
  --ink: #2A2320;
  --ink-muted: #6F635E;
  --ink-faint: #786D69;
  --line: #EDE4DF;
  --line-strong: #DDD0CA;
  --primary: #A84D6E;
  --primary-hover: #8F3F5C;
  --on-primary: #FFFFFF;
  --primary-soft: #F9EEF1;
  --positive: #4F6F60;
  --positive-soft: #E6EFEA;

  --font-sans: 'Plus Jakarta Sans Variable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(42, 35, 32, 0.06);
  --shadow-2: 0 4px 12px rgba(42, 35, 32, 0.10);
  --shadow-3: 0 30px 70px -18px rgba(42, 35, 32, 0.32);

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 11vw, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.025em; line-height: 1.08; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: var(--radius-pill); z-index: 100; }
.skip:focus { top: 12px; color: #fff; }

.eyebrow {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-muted); max-width: 34em; }
.fine { font-size: 14px; color: var(--ink-faint); }
.center { text-align: center; }

/* Buttons: the app's pill system */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 18px -6px rgba(168, 77, 110, .55); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); transform: translateY(-1px); }
.btn-quiet { color: var(--primary); padding: 0 12px; }
.btn-quiet:hover { background: var(--sunken); }
.btn-compact { height: 40px; padding: 0 18px; font-size: 14px; }
.nav .btn { gap: 0.28em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 241, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; }
.logo-img { height: 26px; width: auto; display: block; }
.footer .logo-img { height: 22px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--ink-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav-inner { gap: 12px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .nav .logo-img { height: 22px; }
}
@media (max-width: 440px) {
  .hide-sm { display: none; }
}

/* Hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 var(--section); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 20px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; }
}

.hero-visual { position: relative; }
.glow {
  position: absolute; inset: -12% -20%;
  background:
    radial-gradient(40% 45% at 30% 35%, rgba(168, 77, 110, .20), transparent 70%),
    radial-gradient(40% 40% at 75% 70%, rgba(79, 111, 96, .16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(330px, 86vw);
  padding: 12px;
  border-radius: 46px;
  background: #1f1a18;
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-2deg);
}
.phone-screen {
  border-radius: 36px;
  background: var(--surface);
  padding: 30px 16px 18px;
  display: grid; gap: 10px;
}
.ph-meta { font-size: 12px; color: var(--ink-faint); }
.ph-hello { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.ph-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; box-shadow: var(--shadow-1); }
.ph-label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 6px; }
.ph-label svg { width: 13px; height: 13px; fill: var(--primary); }
.ph-big { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.ph-big span { font-size: 13px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; }
.ph-bar { height: 6px; border-radius: 6px; background: var(--sunken); margin: 10px 0; overflow: hidden; }
.ph-bar span { display: block; width: 94%; height: 100%; border-radius: inherit; background: var(--positive); }
.ph-note { font-size: 13px; }
.positive { color: var(--positive); font-weight: 600; }
.ph-coach { background: var(--primary-soft); border-color: #F1DCE3; }
.ph-coach .ph-label { color: var(--primary); }
.ph-text { font-size: 14px; font-weight: 600; line-height: 1.45; }
.ph-impact { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.ph-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ph-btn { background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: var(--radius-pill); }
.ph-link { font-size: 12px; color: var(--primary); font-weight: 500; }
.ph-row { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; }
.ph-row span:not(.ph-avatar) { color: var(--ink-faint); }
.ph-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--positive-soft); color: var(--positive); font-weight: 700; }

/* Statement */
.statement { padding: var(--section) 0; background: var(--raised); border-block: 1px solid var(--line); }
.statement p {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 650; letter-spacing: -0.025em; line-height: 1.2;
  text-align: center; color: var(--ink-faint);
  text-wrap: balance;
}
.statement em { font-style: normal; color: var(--ink); }

/* Section heads */
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }

/* Values */
.values { padding: var(--section) 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 24px 30px; transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.value h3 { margin: 22px 0 8px; }
.value p { color: var(--ink-muted); font-size: 15.5px; }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

/* Dream Week */
.dream { padding: var(--section) 0; background: linear-gradient(180deg, var(--surface), #F3ECE9); }
.dream-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.dream-copy h2 { margin-bottom: 20px; }
.dream-copy .fine { margin-top: 24px; max-width: 30em; }
@media (max-width: 900px) { .dream-grid { grid-template-columns: 1fr; } }

.planner {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-3);
  display: grid; gap: 28px;
}
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend, .field label { font-size: 15px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 12px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.field output { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day {
  aspect-ratio: 1; max-height: 52px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink-muted);
  font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.day:hover { border-color: var(--primary); }
.day:active { transform: scale(.94); }
.day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 28px; background: transparent; cursor: pointer;
  --fill: 50%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 6px;
  background: linear-gradient(to right, var(--primary) var(--fill), var(--sunken) var(--fill));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--sunken); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--primary); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-2);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-2);
}

.result { border-top: 1px solid var(--line); padding-top: 24px; }
.result-big { font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.025em; color: var(--positive); font-variant-numeric: tabular-nums; }
.result-sub { color: var(--ink-muted); margin-top: 4px; }

/* Features */
.features { padding: var(--section) 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.feature-list li { padding: 26px 0; border-top: 1px solid var(--line-strong); display: grid; gap: 6px; }
.feature-list strong { font-size: 18px; font-weight: 650; }
.feature-list span { color: var(--ink-muted); font-size: 15.5px; }
@media (max-width: 900px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; } }

/* Founder Circle */
.founders { padding: var(--section) 0; }
.founders-inner {
  max-width: 860px; text-align: center;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(168, 77, 110, .12), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(79, 111, 96, .12), transparent 70%),
    var(--raised);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 6vw, 72px);
}
.founders h2 { margin-bottom: 18px; }
.founders .lede { margin: 0 auto; }
.signup { display: flex; gap: 10px; max-width: 480px; margin: 36px auto 0; }
.signup input {
  flex: 1; min-width: 0; height: 52px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--raised); color: var(--ink); font: inherit; font-size: 16px;
}
.signup input::placeholder { color: var(--ink-faint); }
.signup input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.form-msg { min-height: 24px; margin-top: 14px; font-size: 15px; color: var(--positive); font-weight: 600; }
.form-msg.error { color: #B3261E; }
@media (max-width: 520px) { .signup { flex-direction: column; } }

/* Clients teaser */
.clients { padding: 0 0 var(--section); }
.clients-inner { text-align: center; max-width: 760px; }
.clients-line { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; color: var(--ink-muted); font-size: 15px; }
.footer-meta { margin-left: auto; color: var(--ink-faint); }
@media (max-width: 700px) { .footer-meta { margin-left: 0; width: 100%; } }

/* Scroll reveal: content is visible by default and only hidden once the
   script has confirmed it can reveal it again. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .value, .day { transition: none; }
}

/* 404 */
.notfound { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 24px; }
.notfound h1 { font-size: clamp(32px, 5vw, 52px); }
