/* ─────────────────────────────────────────────────────────────
   Session Tracker — Landing
   Phone-first (375px base). Scales up gracefully.
   ───────────────────────────────────────────────────────────── */

:root {
  --green:        #2d4a3e;
  --green-deep:   #223a30;
  --green-soft:   #4a6a5d;
  --gold:         #d4a574;
  --gold-soft:    #e6c9a4;
  --gold-deep:    #b88857;
  --bg:           #faf6f1;
  --bg-warm:      #f3ecdf;
  --surface:      #ffffff;
  --ink:          #1a1a1a;
  --muted:        #6b6b6b;
  --hair:         rgba(45, 74, 62, .12);
  --shadow-sm:    0 1px 2px rgba(34, 58, 48, .06), 0 4px 12px rgba(34, 58, 48, .05);
  --shadow-md:    0 4px 14px rgba(34, 58, 48, .08), 0 18px 36px -12px rgba(34, 58, 48, .14);
  --shadow-lg:    0 8px 22px rgba(34, 58, 48, .10), 0 32px 60px -16px rgba(34, 58, 48, .22);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
}

/* Reset-ish */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(212, 165, 116, .22), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(45, 74, 62, .08), transparent 60%);
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 22px 32px;
}

/* Hero */
.hero { padding-top: 6px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .01em;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 74, 62, .14);
  display: inline-block;
}

.hero-title {
  margin-top: 22px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(44px, 12.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  position: relative;
  display: inline-block;
  color: var(--green-deep);
}
.hero-title em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 6%;
  height: 14%;
  background: var(--gold);
  opacity: .55;
  z-index: -1;
  border-radius: 2px;
  transform: skewX(-4deg);
}

.hero-sub {
  margin-top: 18px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 30ch;
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .005em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  touch-action: manipulation;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #fefcf7;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.btn-primary:hover { background: var(--green-deep); }

.btn-secondary {
  background: transparent;
  color: var(--green-deep);
  border: 1.5px solid var(--green);
}
.btn-secondary:hover { background: rgba(45, 74, 62, .06); }

.btn-block { width: 100%; }
.btn-arrow {
  display: inline-block;
  transition: transform .25s ease;
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.hero-foot {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Phone fan */
.strip {
  margin-top: 44px;
  position: relative;
}
.phones {
  position: relative;
  height: 380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone {
  position: absolute;
  margin: 0;
  width: 162px;
  transition: transform .35s ease;
}
.phone figcaption {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-soft);
}
.phone--center {
  z-index: 3;
  width: 184px;
  transform: translateY(-4px);
}
.phone--left {
  z-index: 2;
  transform: translateX(-92px) translateY(22px) rotate(-9deg);
  opacity: .96;
}
.phone--right {
  z-index: 2;
  transform: translateX(92px) translateY(22px) rotate(9deg);
  opacity: .96;
}

.phone-frame {
  position: relative;
  background: linear-gradient(180deg, #1f1f23, #0f0f13);
  border-radius: 28px;
  padding: 8px;
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone--center .phone-frame {
  border-radius: 32px;
  padding: 9px;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 14px;
  background: #0a0a0d;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  border-radius: 20px;
  aspect-ratio: 9 / 19;
  overflow: hidden;
  padding: 28px 12px 12px;
}
.phone--center .phone-screen { border-radius: 24px; }
.tone-cream { background: linear-gradient(180deg, var(--bg) 0%, #f6efe2 100%); }
.tone-white { background: var(--surface); }

.mk-bar {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  color: var(--green-deep);
  margin: 2px 4px 12px;
  letter-spacing: -.01em;
}
.mk-bar--back {
  display: flex; align-items: center; gap: 6px;
}
.mk-back {
  font-family: "Bricolage Grotesque", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  color: var(--gold-deep);
  line-height: 1;
}

.mk-list { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.mk-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 8px 10px;
}
.av {
  width: 18px; height: 18px; border-radius: 50%;
  flex-shrink: 0;
}
.av-1 { background: linear-gradient(135deg, #d4a574, #b88857); }
.av-2 { background: linear-gradient(135deg, #4a6a5d, #2d4a3e); }
.av-3 { background: linear-gradient(135deg, #e6c9a4, #d4a574); }
.av-4 { background: linear-gradient(135deg, #6b6b6b, #3a3a3a); }
.av-5 { background: linear-gradient(135deg, #2d4a3e, #4a6a5d); }
.mk-line {
  flex: 1; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(45,74,62,.25), rgba(45,74,62,.08));
}
.mk-line.short { flex: 0 0 60%; }

.mk-card {
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 6px 4px 8px;
}
.mk-card--muted { opacity: .65; }
.mk-card-lbl {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mk-card-val {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--green-deep);
  line-height: 1;
  margin-top: 4px;
}
.mk-card-meta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-deep);
}
.mk-fab {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fefcf7;
  font-size: 22px;
  line-height: 36px;
  font-weight: 400;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(45, 74, 62, .25);
}

.mk-invoice {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 4px;
  font-size: 11px;
}
.mk-invoice-row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  color: var(--muted);
}
.mk-invoice-rule {
  height: 1px;
  background: var(--hair);
  margin: 4px 0;
}
.mk-invoice-total {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  color: var(--green-deep);
}
.mk-wa {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 4px 0;
  background: var(--green);
  color: #fefcf7;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 600;
  justify-content: center;
}
.mk-wa-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
}

/* Features */
.features { margin-top: 56px; }

.features-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(28px, 8vw, 36px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--green-deep);
  text-wrap: balance;
}
.features-title span { display: block; }
.features-title-em { color: var(--gold-deep); }

.feat-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feat {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 14px 4px 14px 0;
  border-top: 1px solid var(--hair);
  align-items: start;
}
.feat:first-child { border-top: 0; padding-top: 4px; }
.feat-mark {
  position: relative;
  margin-top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1.5px solid var(--gold);
}
.feat-mark::after {
  content: "";
  position: absolute;
  left: 4px; top: 7px;
  width: 8px; height: 4px;
  border-left: 1.8px solid var(--green);
  border-bottom: 1.8px solid var(--green);
  transform: rotate(-45deg);
}
.feat h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
.feat p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.bottom-cta {
  margin-top: 40px;
  padding: 24px 22px;
  background: linear-gradient(160deg, rgba(212, 165, 116, .18), rgba(45, 74, 62, .06));
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  text-align: center;
}
.bottom-cta .btn-primary { min-height: 52px; font-size: 16px; }
.bottom-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Footer */
.foot {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}
.foot-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--green-deep);
}
.foot-mark .brand-dot { width: 8px; height: 8px; }

/* iOS install sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet[hidden] { display: none; }
.sheet-scrim {
  position: absolute; inset: 0;
  background: rgba(15, 22, 18, .42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeIn .25s ease both;
}
.sheet-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 12px 22px 28px;
  box-shadow: 0 -20px 50px rgba(0,0,0,.25);
  animation: sheetUp .35s cubic-bezier(.2,.8,.2,1) both;
}
.sheet-handle {
  width: 44px; height: 4px;
  border-radius: 999px;
  background: rgba(45, 74, 62, .25);
  margin: 0 auto 16px;
}
.sheet-title {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  color: var(--green-deep);
  letter-spacing: -.02em;
}
.sheet-sub {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
}
.sheet-steps {
  margin: 22px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sheet-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
}
.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #fefcf7;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 14px;
}
.ios-share {
  width: 18px; height: 18px;
  display: inline-block;
  vertical-align: -4px;
  color: var(--gold-deep);
  margin: 0 2px;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise .7s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .sheet-scrim, .sheet-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .btn, .btn-arrow { transition: none; }
}

/* ─────────────────────────────────────────────────────────────
   Responsive scale-up
   • <640px   : phone-first stack (default styles above)
   • 640–1023 : wider centered column, same stack, bigger type
   • ≥1024px  : two-column hero, features in a 2-col grid
   ───────────────────────────────────────────────────────────── */

/* Small tablets / large phones */
@media (min-width: 640px) {
  .page { padding: 40px 32px 48px; max-width: 640px; }
  .hero-title { font-size: clamp(52px, 8vw, 64px); }
  .hero-sub { font-size: 18px; max-width: 36ch; }
  .phones { height: 460px; }
  .phone { width: 200px; }
  .phone--center { width: 224px; }
  .phone--left  { transform: translateX(-118px) translateY(28px) rotate(-9deg); }
  .phone--right { transform: translateX( 118px) translateY(28px) rotate( 9deg); }
  .features-title { font-size: clamp(34px, 5.6vw, 44px); }
  .bottom-cta { padding: 32px 28px; max-width: 520px; margin-inline: auto; }
}

/* Desktop — split hero + grid features */
@media (min-width: 1024px) {
  .page {
    max-width: 1200px;
    padding: 64px 56px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 72px;
    row-gap: 96px;
    align-items: center;
  }

  /* Hero left column */
  .hero {
    grid-column: 1;
    padding-top: 0;
    align-self: center;
  }
  .hero-title { font-size: clamp(64px, 6.4vw, 84px); }
  .hero-sub   { font-size: 19px; max-width: 38ch; margin-top: 22px; }
  .cta-row    { margin-top: 32px; }
  .btn        { min-height: 52px; font-size: 16px; padding: 0 24px; }

  /* Phones right column */
  .strip {
    grid-column: 2;
    margin-top: 0;
    align-self: center;
  }
  .phones { height: 540px; }
  .phone { width: 220px; }
  .phone--center { width: 248px; transform: translateY(-6px); }
  .phone--left  { transform: translateX(-132px) translateY(34px) rotate(-9deg); }
  .phone--right { transform: translateX( 132px) translateY(34px) rotate( 9deg); }
  .phone figcaption { margin-top: 32px; font-size: 13px; }

  /* Features span full width, two columns */
  .features {
    grid-column: 1 / -1;
    margin-top: 0;
    max-width: 1040px;
    margin-inline: auto;
    width: 100%;
  }
  .features-title {
    text-align: center;
    font-size: clamp(40px, 4vw, 54px);
  }
  .features-title span { display: inline; }
  .features-title span + span { margin-left: .35em; }
  .feat-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
    row-gap: 4px;
  }
  .feat { padding: 18px 0; }
  .feat:nth-child(2) { border-top: 0; padding-top: 4px; }
  .feat h3 { font-size: 18px; }
  .feat p  { font-size: 15px; }

  .bottom-cta { max-width: 560px; margin: 56px auto 0; padding: 36px 32px; }

  /* Footer full width */
  .foot { grid-column: 1 / -1; margin-top: 0; }
}

/* Extra wide */
@media (min-width: 1280px) {
  .page { column-gap: 96px; padding: 80px 64px 64px; }
  .hero-title { font-size: 92px; }
}
