/* ============================================================
   Hocam+  —  Landing page design system
   Brand: soft sky-blue (#CDE9F6, from logo) + ink + warm white
   Type:  Montserrat (logo wordmark family — display + text)
   ============================================================ */

:root {
  /* ink */
  --ink:        #0E1318;
  --ink-2:      #38454F;
  --muted:      #6A7884;
  --muted-2:    #93A0AB;

  /* surfaces */
  --bg:         #FFFFFF;
  --bg-tint:    color-mix(in oklab, var(--accent) 7%, #ffffff);
  --bg-tint-2:  color-mix(in oklab, var(--accent) 11%, #ffffff);
  --card:       #FFFFFF;

  /* brand — everything derives from a single tweakable --accent */
  --accent:       #5B5BD6;  /* brand purple */
  --brand:        var(--accent);
  --brand-press:  color-mix(in oklab, var(--accent), #07131d 30%);
  --brand-soft:   color-mix(in oklab, var(--accent) 22%, #ffffff);  /* ~logo blue */
  --brand-soft-2: color-mix(in oklab, var(--accent) 12%, #ffffff);
  --brand-ink:    color-mix(in oklab, var(--accent), #05121c 52%);
  --ring:         color-mix(in srgb, var(--accent) 32%, transparent);

  /* lines + shadow */
  --line:       #E5ECF1;
  --line-2:     #D6E1EA;

  --shadow-sm:  0 1px 2px rgba(14,19,24,.05), 0 2px 6px rgba(14,19,24,.04);
  --shadow-md:  0 8px 24px rgba(14,19,24,.08), 0 2px 8px rgba(14,19,24,.05);
  --shadow-lg:  0 30px 70px -20px rgba(11,58,94,.35), 0 12px 30px -12px rgba(14,19,24,.12);

  /* type */
  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-text:    "Montserrat", ui-sans-serif, system-ui, sans-serif;

  /* layout */
  --maxw: 1180px;
  --gut:  clamp(20px, 5vw, 48px);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--brand-soft); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.eyebrow {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--brand);
  display: inline-block;
}
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); line-height: 1.6; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--font-text);
  font-weight: 600; font-size: 16px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--brand { --bg: var(--brand); --fg: #fff; box-shadow: 0 6px 18px -6px var(--ring); }
.btn--brand:hover { --bg: var(--brand-press); }
.btn--ink { --bg: var(--ink); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-tint); border-color: var(--brand-soft); }

/* store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 18px 11px 16px;
  border-radius: 13px;
  background: var(--ink); color: #fff;
  transition: transform .15s ease, box-shadow .2s, background .2s;
  box-shadow: var(--shadow-sm);
}
.store:hover { transform: translateY(-2px); background: #1b242c; box-shadow: var(--shadow-md); }
.store svg { width: 26px; height: 26px; flex: none; }
.store .store__t { display: flex; flex-direction: column; line-height: 1.1; }
.store .store__t small { font-size: 11px; opacity: .72; font-weight: 600; letter-spacing: .02em; }
.store .store__t span { font-size: 17px; font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em; white-space: nowrap; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 1px 0 rgba(14,19,24,.02); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.brand__name b { color: var(--brand); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a.navlink {
  padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav__links a.navlink:hover { color: var(--ink); background: var(--bg-tint); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; background:
    radial-gradient(120% 90% at 85% -10%, var(--brand-soft-2) 0%, rgba(228,242,251,0) 55%),
    radial-gradient(80% 60% at 0% 0%, #F6FBFE 0%, rgba(246,251,254,0) 60%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px);
}
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); letter-spacing: -.035em; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { margin-top: 22px; max-width: 30ch; }
.hero__cta { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.hero__meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.hero__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 9px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.pill .tag { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }

/* phone */
.hero__art { position: relative; display: grid; place-items: center; }
.phone {
  position: relative;
  width: clamp(248px, 26vw, 318px);
  height: auto;
  background: #0E1318;
  border-radius: 44px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone::before { /* side buttons */
  content: ""; position: absolute; left: -3px; top: 120px; width: 3px; height: 64px;
  background: #cdd6dd; border-radius: 3px;
  box-shadow: 0 84px 0 #cdd6dd, 0 -44px 0 #cdd6dd;
}
.phone__screen { position: relative; width: 100%; height: auto; aspect-ratio: 744 / 1618;
  border-radius: 34px; overflow: hidden; background: #fff;
}
body.fit-contain .phone__screen { background: #fff; }
.phone__notch {
  display: none; /* removed to avoid double-notch with status bar in real screenshots */
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; background: #0E1318; border-radius: 999px; z-index: 3;
}
.phone image-slot { width: 100%; height: 100%; display: block; }
.phone--float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }
@media (prefers-reduced-motion: reduce){ .phone--float{ animation: none } }

/* floating chips around hero phone */
.chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line);
  padding: 12px 15px; border-radius: 15px; box-shadow: var(--shadow-md);
  max-width: 230px;
}
.chip .chip__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft-2); color: var(--brand); flex: none; }
.chip .chip__ic svg { width: 21px; height: 21px; }
.chip b { font-size: 14px; font-weight: 700; display: block; line-height: 1.25; white-space: nowrap; }
.chip span { font-size: 12.5px; color: var(--muted); }
.chip--a { top: 30%; left: -7%; }
.chip--b { bottom: 18%; right: -8%; }
.chip--c { bottom: -4%; left: 4%; }

/* ---------- logo / trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-tint); }
.trust__in { display: flex; align-items: center; justify-content: center; gap: clamp(20px,5vw,56px); flex-wrap: wrap; padding-block: 26px; }
.trust__item { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.trust__item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---------- section heading ---------- */
.shead { max-width: 640px; }
.shead.center { margin-inline: auto; text-align: center; }
.shead h2 { font-size: clamp(30px, 4.4vw, 50px); margin-top: 16px; }
.shead p { margin-top: 18px; font-size: clamp(16px,2vw,19px); color: var(--ink-2); }
.shead.center .eyebrow::before { display: none; }
.shead.center .eyebrow { gap: 0; }

/* ---------- features ---------- */
.feat { display: grid; gap: clamp(56px, 8vw, 104px); margin-top: clamp(48px,6vw,80px); }
.feat__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.feat__row.rev .feat__media { order: -1; }
.feat__num {
  font-family: var(--font-display); font-weight: 500; font-size: 14px;
  color: var(--brand); letter-spacing: .04em;
  display: flex; align-items: center; gap: 10px;
}
.feat__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft-2); color: var(--brand); margin-bottom: 22px; }
.feat__ic svg { width: 27px; height: 27px; }
.feat h3 { font-size: clamp(26px, 3.4vw, 36px); }
.feat__row p.lead { margin-top: 16px; max-width: 42ch; }
.feat__list { margin-top: 22px; display: grid; gap: 11px; }
.feat__list li { list-style: none; display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.feat__list li svg { width: 19px; height: 19px; color: var(--brand); flex: none; margin-top: 2px; }

/* media block: phone or framed screen */
.feat__media { position: relative; display: grid; place-items: center; min-height: 420px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 80% at 50% 0%, var(--brand-soft-2) 0%, rgba(228,242,251,0) 70%),
    var(--bg-tint);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 40px;
}
.feat__media .phone { width: clamp(220px, 22vw, 270px); }
.feat__media .phone--float { animation-duration: 8s; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: clamp(44px,6vw,68px); counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: 15px; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.step h3 { font-size: 21px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.steps__line { display: none; }

/* ---------- testimonials (App Store) ---------- */
.rating { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.rating__stars { display: flex; gap: 4px; color: var(--brand); }
.rating__stars svg { width: 20px; height: 20px; }
.rating span { font-size: 14px; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: clamp(44px,6vw,64px); align-items: start; }
.quote { padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.quote__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin: 0 0 12px; letter-spacing: -.01em; }
.quote__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.quote__stars { display: inline-flex; gap: 3px; color: var(--brand); }
.quote__stars svg { width: 16px; height: 16px; }
.quote__sub { font-size: 14px; color: var(--muted); }
.quote p { font-size: 15.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.quote__dev { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote__dev-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.quote__dev-head b { font-size: 14px; color: var(--ink); }
.quote__dev-head span { font-size: 13px; color: var(--muted); }
.quote__dev p { font-size: 14.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-top: clamp(40px,5vw,56px); display: grid; gap: 12px; }
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .pm { width: 22px; height: 22px; flex: none; position: relative; transition: transform .25s; color: var(--brand); }
.qa[open] summary .pm { transform: rotate(45deg); }
.qa__body { padding: 0 22px 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 68ch; }

/* ---------- final CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 85% 10%, #1b86d9 0%, rgba(27,134,217,0) 55%),
    linear-gradient(160deg, #0E1318 0%, #122436 60%, #0c2538 100%);
  color: #fff; padding: clamp(44px, 6vw, 80px);
  text-align: center;
}
.cta::after { /* subtle dotted texture */
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(205,233,246,.14) 1px, transparent 1px);
  background-size: 22px 22px; opacity:.5; pointer-events:none;
}
.cta > * { position: relative; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.6vw, 52px); }
.cta p { color: #C7D6E2; margin: 18px auto 0; max-width: 52ch; font-size: clamp(16px,2vw,19px); }
.cta .stores { justify-content: center; margin-top: 34px; }
.cta .store { background: #fff; color: var(--ink); }
.cta .store:hover { background: var(--brand-soft); }
.cta .store .store__t small { opacity: .62; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 40px; background: var(--bg-tint); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot__brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.foot__col h4 { font-family: var(--font-text); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.foot__col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.foot__col a { color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .2s; }
.foot__col a:hover { color: var(--brand); }
.foot__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- reveal (visible by default; entrance handled live, never hides) ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile menu ---------- */
.mobile { position: fixed; inset: 0; z-index: 70; display: none; }
.mobile.open { display: block; }
.mobile__scrim { position: absolute; inset: 0; background: rgba(14,19,24,.4); backdrop-filter: blur(2px); }
.mobile__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 340px); background: #fff; box-shadow: var(--shadow-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.mobile__panel a.navlink { padding: 14px 12px; font-size: 18px; font-weight: 600; border-radius: 10px; }
.mobile__panel a.navlink:hover { background: var(--bg-tint); }
.mobile__close { align-self: flex-end; background: var(--bg-tint); border: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; margin-bottom: 6px; }
.mobile__stores { margin-top: auto; display: grid; gap: 10px; }
.mobile__stores .store { justify-content: flex-start; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 8px; padding-block: 40px 56px; }
  .hero__art { margin-top: 28px; }
  .chip--a { left: 0; }
  .chip--b { right: 0; }
  .feat__row { grid-template-columns: 1fr; gap: 28px; }
  .feat__row.rev .feat__media { order: 0; }
  .feat__media { min-height: 360px; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav__links, .nav__cta .btn, .nav__cta .store { display: none; }
  .nav__burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; }
  .nav__cta { gap: 0; }
  .hero h1 { font-size: clamp(36px, 11vw, 56px); }
  .chip { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  :root { --gut: 24px; }
  .feat__media { padding: 30px 22px; min-height: 0; }
  .feat__media .phone { width: min(56vw, 224px); }
  .hero__art .phone { width: min(60vw, 244px); }
  .phone { padding: 7px; border-radius: 32px; }
  .phone__screen { border-radius: 26px; }
}
