/* ─────────────────────────────────────────────────────────────
   Byeleigh — landing site
   Light, warm Apple-style palette + a floating glass "pill" topbar.
   ───────────────────────────────────────────────────────────── */

:root {
  --bg:          #f4f3f0;
  --bg-warm:     #eceae4;
  --bg-dark:     #0f1512;   /* for the download CTA band */
  --card:        #ffffff;
  --text:        #0f0f0f;
  --text-sec:    #5f5f5a;
  --text-ter:    #8b8b86;
  --green:       #2fbf5e;
  --green-dark:  #1f7a41;
  --green-bg:    #eaf7ee;
  --hairline:    #e6e4de;
  --line-soft:   #efeee9;
  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1120px;
  --readw:       720px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 3px rgba(15,20,18,0.05), 0 8px 30px rgba(15,20,18,0.04);
  --shadow-float:0 12px 40px rgba(15,20,18,0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.readw { max-width: var(--readw); }

/* Shared type helpers */
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-dark);
  margin: 0 0 14px;
}
.section { padding: 92px 0; }
.section--warm { background: var(--bg-warm); }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 44px); line-height: 1.06;
  letter-spacing: -0.03em; margin: 0 0 14px;
}
.section-head p { font-size: 18px; color: var(--text-sec); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 980px; font-weight: 600; font-size: 16px;
  line-height: 1; transition: background 0.2s var(--ease), color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(47,191,94,0.28); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47,191,94,0.32); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--hairline); }
.btn--ghost:hover { border-color: var(--text-ter); background: rgba(0,0,0,0.02); }
.btn--light { background: #fff; color: #0f1512; }
.btn--light:hover { background: #f0f0ee; transform: translateY(-1px); }

/* App Store badge button */
.appstore {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 18px; border-radius: 14px;
  background: #111; color: #fff; transition: transform 0.2s var(--ease), box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.appstore:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.24); }
/* Non-functional "coming soon" variant */
.appstore--soon { background: #efeee9; color: var(--text-ter); box-shadow: none; cursor: default; border: 1px solid var(--hairline); }
.appstore--soon:hover { transform: none; box-shadow: none; }
.appstore--soon .as-txt strong { color: var(--text-sec); }
.appstore svg { width: 26px; height: 26px; flex-shrink: 0; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .as-txt small { font-size: 11px; font-weight: 500; opacity: 0.8; letter-spacing: 0.01em; }
.appstore .as-txt strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

/* ── Floating glass pill topbar ── */
.header-wrap {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: center; pointer-events: none;
  padding: 0 14px; transition: top 0.3s var(--ease);
}
.header {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; height: 54px;
  width: 100%; max-width: var(--maxw);
  border-radius: 100px; padding: 0 8px 0 8px;
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 100px;
  background: color-mix(in srgb, #fff 74%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(15,20,18,0.07);
  box-shadow: 0 4px 20px rgba(15,20,18,0.06);
  transition: background 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.header.is-scrolled::before {
  background: color-mix(in srgb, #fff 88%, transparent);
  box-shadow: 0 8px 30px rgba(15,20,18,0.10);
}
.header__logo { display: flex; align-items: center; gap: 9px; padding: 0 14px 0 12px; flex-shrink: 0; color: var(--text); font-weight: 700; letter-spacing: -0.03em; font-size: 16px; }
.header__logo:hover { text-decoration: none; }
.header__logo svg { width: 26px; height: 26px; display: block; border-radius: 7px; }
.header__sep { width: 1px; height: 22px; background: var(--hairline); flex-shrink: 0; }
.header__nav { display: flex; align-items: center; margin-left: 4px; }
.header__nav a {
  display: flex; align-items: center; height: 54px; padding: 0 15px;
  font-size: 14px; font-weight: 550; letter-spacing: -0.01em;
  color: var(--text-sec); white-space: nowrap; transition: color 0.2s;
}
.header__nav a:hover { color: var(--text); text-decoration: none; }
.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; padding-right: 4px; }
.header__cta { padding: 9px 18px; font-size: 14px; }
.header__burger { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--text); background: none; border: none; cursor: pointer; }
.header__burger svg { width: 22px; height: 22px; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1500;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), visibility 0.28s;
  display: flex; flex-direction: column; padding: 20px 22px 40px;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: 54px; }
.mobile-menu__head .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.mobile-menu__head .brand svg { width: 26px; height: 26px; border-radius: 7px; }
.mobile-menu__close { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text); cursor: pointer; }
.mobile-menu__list { display: flex; flex-direction: column; margin-top: 28px; gap: 4px; }
.mobile-menu__list a { font-size: 24px; font-weight: 640; letter-spacing: -0.02em; color: var(--text); padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu__list a:hover { text-decoration: none; color: var(--green-dark); }
.mobile-menu__cta { margin-top: 28px; }

/* ── Hero ── */
.hero { padding: 150px 0 60px; text-align: center; overflow: hidden; }
.hero .eyebrow { animation: rise 0.7s var(--ease) both; }
.hero h1 {
  font-size: clamp(40px, 7vw, 74px); line-height: 1.02; letter-spacing: -0.045em;
  margin: 0 auto 20px; max-width: 15ch; animation: rise 0.7s var(--ease) 0.05s both;
}
.hero .lead {
  font-size: clamp(18px, 2.4vw, 22px); color: var(--text-sec);
  max-width: 42ch; margin: 0 auto; animation: rise 0.7s var(--ease) 0.1s both;
}
.hero__cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; animation: rise 0.7s var(--ease) 0.15s both; }
.hero__meta { margin-top: 16px; font-size: 13.5px; color: var(--text-ter); animation: rise 0.7s var(--ease) 0.2s both; }
.hero__stage {
  margin: 56px auto 0; max-width: 940px; position: relative;
  animation: rise 0.9s var(--ease) 0.25s both;
}

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

/* Real device screenshot (bezel baked into the PNG) */
.hero__shot {
  display: block; width: auto; height: auto;
  max-width: 300px; max-height: 640px; margin: 0 auto;
  filter: drop-shadow(0 22px 44px rgba(15,20,18,0.22));
}

/* Phone frame */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.phone {
  position: relative; width: 268px; border-radius: 42px; padding: 11px;
  background: linear-gradient(160deg, #2a2a2a, #050505);
  box-shadow: var(--shadow-float);
}
.phone__screen { border-radius: 32px; overflow: hidden; display: block; background: var(--bg); aspect-ratio: 9 / 19.5; }
.phone__screen img, .phone__screen svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.phone--side { width: 232px; transform: translateY(26px) scale(0.96); z-index: 1; opacity: 0.97; }
.phone--left { margin-right: -46px; rotate: -5deg; }
.phone--right { margin-left: -46px; rotate: 5deg; }
.phone--main { z-index: 2; width: 300px; }

/* ── Trust band ── */
.trust { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--bg); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; justify-content: center; padding-top: 26px; padding-bottom: 26px; }
.trust__item { display: flex; align-items: center; gap: 10px; color: var(--text-sec); font-size: 14.5px; font-weight: 500; }
.trust__item svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

/* ── Feature grid ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.feature {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.feature__ic {
  width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--green-bg); color: var(--green-dark); margin-bottom: 16px;
}
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--text-sec); font-size: 15px; line-height: 1.55; }

/* ── How it works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; counter-reset: step; }
.step { position: relative; }
.step__num {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--text-sec); font-size: 16px; }

/* ── Showcase (alternating photo rows) ── */
.showcase { display: flex; flex-direction: column; gap: 96px; margin-top: 64px; }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show-row:nth-child(even) .show-row__media { order: 2; }
.show-row__body h3 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; margin: 12px 0 14px; line-height: 1.1; }
.show-row__body p { color: var(--text-sec); font-size: 17px; margin: 0 0 20px; }
.show-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.show-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15.5px; color: var(--text-sec); }
.show-list li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 1px; }
.show-list li strong { color: var(--text); font-weight: 600; }
.show-row__media {
  border-radius: 24px; overflow: hidden; background: var(--bg-warm);
  border: 1px solid var(--hairline); box-shadow: var(--shadow-card); aspect-ratio: 4 / 3;
}
.show-row__media img, .show-row__media svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Placeholder look for images to be swapped later */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 100%; color: var(--text-ter);
  background:
    linear-gradient(135deg, var(--bg-warm), #f6f5f1),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.015) 0 12px, transparent 12px 24px);
  font-size: 13px; font-weight: 550; letter-spacing: 0.02em; text-align: center; padding: 20px;
}
.ph svg { width: 34px; height: 34px; opacity: 0.5; }
.ph small { font-size: 11.5px; opacity: 0.7; font-weight: 500; }

/* ── Privacy band ── */
.privacy-band { text-align: center; }
.privacy-band .lockic { width: 56px; height: 56px; margin: 0 auto 22px; color: var(--green); }
.privacy-band h2 { font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -0.03em; margin: 0 auto 16px; max-width: 20ch; }
.privacy-band p { font-size: 18px; color: var(--text-sec); max-width: 52ch; margin: 0 auto; }

/* ── Download CTA band ── */
.cta-band { background: var(--bg-dark); color: #fff; text-align: center; border-radius: 28px; margin: 0 24px; padding: 76px 24px; overflow: hidden; position: relative; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(1000px 400px at 50% -10%, rgba(47,191,94,0.22), transparent 70%); pointer-events: none; }
.cta-band .mark { width: 78px; height: 78px; margin: 0 auto 24px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(30px, 5vw, 50px); letter-spacing: -0.035em; line-height: 1.04; margin: 0 auto 16px; max-width: 16ch; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,0.66); font-size: 18px; max-width: 46ch; margin: 0 auto 30px; position: relative; z-index: 1; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Content pages (privacy / terms / contact) ── */
.doc { padding: 128px 0 60px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.03em; margin: 0 0 8px; }
.doc .updated { color: var(--text-ter); font-size: 14px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 38px 0 8px; }
.doc p, .doc li { color: var(--text-sec); }
.doc strong { color: var(--text); font-weight: 620; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.callout { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; font-size: 15px; box-shadow: var(--shadow-card); }
.callout strong { color: var(--text); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--hairline); padding: 52px 0 56px; background: var(--bg); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.site-footer__brand svg { width: 30px; height: 30px; border-radius: 8px; }
.footer-links { display: flex; gap: 20px 28px; flex-wrap: wrap; }
.footer-links a { color: var(--text-sec); font-size: 14.5px; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.site-footer__bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; color: var(--text-ter); font-size: 13.5px; }
.site-footer__bottom .spacer { flex: 1; }
.disclaimer { color: var(--text-ter); font-size: 12.5px; line-height: 1.55; margin: 16px 0 0; max-width: 760px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .show-row { grid-template-columns: 1fr; gap: 28px; }
  .show-row:nth-child(even) .show-row__media { order: 0; }
  .section { padding: 72px 0; }
}
@media (max-width: 760px) {
  .header__nav, .header__sep { display: none; }
  .header__cta { display: none; }
  .header__burger { display: inline-flex; }
  .hero { padding: 128px 0 48px; }
  .phone--side { display: none; }
  .phone--main { width: 240px; }
}
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
  .trust .wrap { gap: 14px 24px; }
  .cta-band { margin: 0 14px; padding: 60px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
