/* Lax App — marketing site styles */

:root {
  --bg: #0a0d0b;
  --bg-2: #0e1310;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f3f6f3;
  --muted: #9aa49c;
  --accent: #34c759;
  --accent-press: #2bb14e;
  --maxw: 1080px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.lead { color: var(--muted); font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; padding: 0.85rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: #04150a; }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }

.app-store-badge {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.app-store-badge:hover { opacity: 0.88; }
.app-store-badge:active { transform: translateY(1px) scale(0.99); }
.app-store-badge img { height: 44px; width: auto; }
.app-store-badge.lg img { height: 54px; }
.nav .app-store-badge img { height: 34px; }
.plan .app-store-badge { margin-top: auto; align-self: center; }
.cta .app-store-badge { margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 13, 11, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-icon { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a:not(.btn):not(.app-store-badge) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 80px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/turf.jpg") center/cover no-repeat;
  opacity: 0.28; filter: saturate(115%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(52,199,89,0.18), transparent 55%),
              linear-gradient(180deg, rgba(10,13,11,0.55), var(--bg) 92%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.hero .lead { margin: 1.25rem 0 2rem; max-width: 30ch; font-size: 1.25rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .phone-stage { order: -1; }
}

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; }
.hero-phone {
  width: 100%; max-width: 300px; height: auto;
  border-radius: 48px;
  filter: drop-shadow(0 36px 64px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 46px rgba(52, 199, 89, 0.22));
}

/* ---------- Showcase (alternating image + copy) ---------- */
.showcase { display: flex; flex-direction: column; gap: clamp(54px, 9vw, 104px); }
.show-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.show-row.reverse .show-phone { order: 2; }
.show-phone { display: flex; justify-content: center; }
.show-phone img {
  width: 100%; max-width: 268px; height: auto;
  filter: drop-shadow(0 30px 56px rgba(0,0,0,0.5)) drop-shadow(0 0 40px rgba(52,199,89,0.16));
}
.show-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0.5rem 0 0.7rem; }
.show-copy .lead { max-width: 42ch; }
@media (max-width: 760px) {
  .show-row, .show-row.reverse { grid-template-columns: 1fr; text-align: center; }
  .show-row.reverse .show-phone { order: 0; }
  .show-copy .lead { margin-inline: auto; }
}

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 110px) 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0.6rem 0 0.8rem; }
.alt { background: var(--bg-2); border-block: 1px solid var(--border); }

/* Features grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s;
}
.card:hover { border-color: rgba(52,199,89,0.5); transform: translateY(-3px); background: var(--surface-2); }
.card .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(52,199,89,0.14); color: var(--accent); margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: 8px; }
.step .n {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: var(--accent); border: 1.5px solid rgba(52,199,89,0.5); margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px;
  position: relative; display: flex; flex-direction: column;
}
.plan.pro { border-color: rgba(52,199,89,0.55); background: linear-gradient(180deg, rgba(52,199,89,0.08), var(--surface)); }
.plan .tag { font-weight: 700; font-size: 0.95rem; color: var(--muted); }
.plan.pro .tag { color: var(--accent); }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 0.4rem 0; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan-sub { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* Pro billing options (monthly / yearly) */
.bill { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 4px; }
.bill-opt { position: relative; border: 1px solid var(--border); border-radius: 14px; padding: 16px 12px 14px; text-align: center; }
.bill-opt.featured { border-color: var(--accent); background: rgba(52,199,89,0.10); }
.bill-name { font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.bill-price { font-weight: 800; font-size: 1.45rem; margin-top: 2px; }
.bill-price span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.bill-sub { font-size: 0.76rem; color: var(--accent); font-weight: 700; margin-top: 3px; }
.save-pill { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #04150a; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.02em; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.trial-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 12px; }
.plan ul { list-style: none; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: 0.97rem; }
.plan li b { color: var(--text); font-weight: 700; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta .lead { margin: 1rem auto 2rem; max-width: 40ch; }

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.4rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 8px; }
.legal .note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 0.92rem; margin: 22px 0 34px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { color: #c9d2cb; margin-bottom: 12px; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer a { color: var(--muted); font-weight: 600; }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 22px; }
