/* ═══════════════════════════════════════════════════════════
   MacroSnap — mock marketing site
   Tokens & nav sizing modelled on the Almondy reference build
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Brand palette (as specified) ── */
  --bg:        #1A1A1A;   /* main background          */
  --accent:    #3DD38A;   /* accent / secondary       */
  --text:      #FFFFFF;   /* primary text             */
  --subtext:   #505050;   /* subtext                  */
  --card:      #2E2E2E;   /* cards / elements         */
  --cta:       #3DD68C;   /* CTAs                     */

  /* ── Derived surfaces ── */
  --bg-alt:        #161616;
  --card-hover:    #363636;
  --accent-dim:    rgba(61, 211, 138, 0.12);
  --accent-line:   rgba(61, 211, 138, 0.28);
  --border:        rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.14);
  --divider:       rgba(255, 255, 255, 0.055);
  --grid-line:     rgba(255, 255, 255, 0.025);
  --hero-glow:     rgba(61, 211, 138, 0.10);
  --hover-glow:    rgba(255, 255, 255, 0.025);
  --nav-bg:        rgba(26, 26, 26, 0.92);
  --nav-bg-solid:  #1F1F1F;
  /* readable body grey — sits between --text and --subtext */
  --body:          #9A9A9A;

  /* ── Type ── */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "SF Pro Icons", "Helvetica Neue", "Segoe UI Variable Display",
          "Segoe UI", Roboto, sans-serif;
  
  --nav-h: 62px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* `hidden` must beat the display rules below (drawer, overlay, pages) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
}

* { scrollbar-width: thin; scrollbar-color: rgba(128,128,128,0.2) transparent; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(128,128,128,0.2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128,128,128,0.35); }

a { text-decoration: none; color: inherit; }

button {
  cursor: pointer;
  font-family: var(--font);
  background: none;
  border: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
button:active { opacity: 0.7; transform: scale(0.97); transition: opacity .1s, transform .1s; }

/* ── Titles: semibold ── */
h1, h2, h3 { font-weight: 600; color: var(--text); letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(38px, 4.6vw, 66px); letter-spacing: -2.4px; }
h2 { font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -1.2px; }
h3 { font-size: 17px; letter-spacing: -0.4px; }

p  { color: var(--body); }
.sub   { color: var(--subtext); }
.tiny  { font-size: 12px; }
.accent{ color: var(--accent); }
.center{ text-align: center; }

.lead { font-size: 15.5px; line-height: 1.75; color: var(--body); max-width: 460px; }
.lead.center { margin: 0 auto; }

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeUp    { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(32px) scale(.97); } to { opacity: 1; transform: none; } }

/* Page-switch entrance — staggered via inline --d */
.page.is-entering .fu { animation: fadeUp .55s var(--d, 0s) var(--ease) both; }
.page .fu { animation: fadeUp .55s var(--d, 0s) var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════ TOP BAR ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

/* shares .wrap's geometry so the logo sits on the site's left edge */
.nav-inner {
  height: 100%; max-width: 1180px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; gap: 9px; }
.mark { flex-shrink: 0; border-radius: 23%; display: block; }
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -0.5px; color: var(--text); }

.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: -0.1px;
  color: var(--body); transition: color .15s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }

.nav-cta {
  display: inline-flex; align-items: center;
  background: var(--cta); color: #0F1F17;
  padding: 8px 20px; font-size: 13px; font-weight: 700;
  border-radius: 7px; letter-spacing: -0.2px;
  transition: filter .15s, transform .15s;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-cta:active { transform: scale(.97); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ── Mobile drawer ── */
.mobile-overlay {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.drawer {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0; z-index: 200;
  width: 80vw; max-width: 320px;
  background: var(--nav-bg-solid);
  display: flex; flex-direction: column; overflow-y: auto;
  animation: fadeRight .25s both;
}
.drawer-list { flex: 1; }
.drawer-link {
  display: block; width: 100%; text-align: left;
  padding: 16px 24px; font-size: 15px; font-weight: 600;
  color: var(--body);
  transition: color .15s, background .15s;
}
.drawer-link.active { color: var(--text); background: var(--hover-glow); }
.drawer-foot { padding: 20px 24px; }

/* ═══════════════ LAYOUT ═══════════════ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 48px; }
.section { padding: 96px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.sec-head h2 { margin-bottom: 14px; }

.page[hidden] { display: none; }

/* ═══════════════ BUTTONS ═══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; font-size: 14px; font-weight: 700;
  border-radius: 8px; letter-spacing: -0.3px;
  transition: filter .15s, background .15s, border-color .15s;
}
.btn-cta   { background: var(--cta); color: #0F1F17; }
.btn-cta:hover { filter: brightness(1.08); }
.btn-soft { background: rgba(255,255,255,.08); color: var(--text); }
.btn-soft:hover { background: rgba(255,255,255,.13); }
.btn-block { width: 100%; }

/* ── App Store badge (official Apple artwork; sizing is inline in the markup) ── */
.appstore { transition: filter .15s, transform .15s; }
.appstore:hover { filter: brightness(1.12); }
.appstore:active { transform: scale(.97); }
.appstore img { display: block; }

/* ═══════════════ HERO ═══════════════ */
.hero { position: relative; overflow: hidden; }
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, var(--hero-glow) 0%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px;
  /* same geometry as .wrap so hero copy shares the site's left edge */
  max-width: 1180px; margin: 0 auto;
  padding: 48px 48px 72px;
  min-height: min(760px, calc(100vh - var(--nav-h)));
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding-right: 40px; }
.hero-copy h1 { margin-bottom: 15px; }
.hero-copy .lead { margin-bottom: 15px; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-btns.center { justify-content: center; }

/* ── Rating card (sits above the headline) ── */
.rating-card {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--card);
  border-radius: 999px; padding: 6px 18px 6px 8px;
  margin-bottom: 15px;
}
.rating-text { font-size: 13.5px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
/* Swap these spans for <img class="ph" src="…"> to use real photos */
.ph {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--card); object-fit: cover;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}
.ph + .ph { margin-left: -12px; }

.avatars { display: flex; }

/* ═══════════════ PHONE FRAME ═══════════════ */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; height: 610px;
  background: #0E0E0E;
  border-radius: 42px; padding: 10px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(61,211,138,.06);
  flex-shrink: 0;
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  background: var(--bg); border-radius: 33px;
}
.phone-img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: top center;
}

/* ═══════════════ WHAT'S INCLUDED (tabbed) ═══════════════ */
.include {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr;
  gap: 64px; align-items: center; justify-content: center;
}
.include-visual { display: flex; justify-content: center; }

/* Each .shot stacks in the same frame; only .is-active is visible */
.shot {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--bg);
  opacity: 0; transform: scale(1.015);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  pointer-events: none;
}
.shot.is-active { opacity: 1; transform: none; }
/* explicit size: an abs-positioned <img> with inset:0 alone falls back to
   its intrinsic width, which leaves object-fit doing nothing */
img.shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Locked "coming soon" panels */
.shot.is-locked { background: #202020; }
.shot.is-locked b { font-size: 15px; font-weight: 600; }
.shot.is-locked .sub { max-width: 190px; text-align: center; line-height: 1.5; }
.shot-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  margin-bottom: 10px; color: var(--body);
}
.shot-icon svg { width: 100%; height: 100%; display: block; }

.soon {
  display: inline-block; vertical-align: 2px; margin-left: 7px;
  background: rgba(255,255,255,.08);
  border-radius: 999px; padding: 2px 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .2px;
  color: var(--body); white-space: nowrap;
}
.inc-card.is-active .soon { color: var(--accent); }

.include-cards { display: flex; flex-direction: column; gap: 12px; }
.inc-card {
  display: flex; align-items: center; gap: 16px; text-align: left;
  background: var(--card);
  border-radius: 16px; padding: 20px 22px;
  transition: background .2s, transform .2s;
}
.inc-card:hover { background: var(--card-hover); transform: translateX(3px); }
/* no border to carry the active state, so lean harder on the fill */
.inc-card.is-active {
  background: linear-gradient(90deg, rgba(61,211,138,.24), rgba(61,211,138,.05) 70%), var(--card-hover);
}
.inc-card .icon { margin-bottom: 0; }
.inc-card:hover .icon { color: var(--text); }
.inc-card.is-active .icon { color: var(--accent); }
.inc-body { display: flex; flex-direction: column; gap: 4px; }
.inc-body b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); }
.inc-body span { font-size: 13.5px; line-height: 1.65; color: var(--body); }

/* ═══════════════ CARDS ═══════════════ */
.card {
  background: var(--card);
  border-radius: 16px; padding: 26px;
  transition: transform .2s, background .2s;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.7; }
.card.sm { padding: 22px; }
/* bare stroke icons — no tile, colour driven by currentColor */
.icon {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  margin-bottom: 16px; flex-shrink: 0;
  color: var(--body); transition: color .2s;
}
.icon svg { width: 100%; height: 100%; display: block; }
.contact-side .icon { color: var(--accent); }

/* ═══════════════ FAQ ═══════════════ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--card);
  border-radius: 14px; padding: 18px 22px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600; letter-spacing: -0.2px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--body); font-size: 20px; font-weight: 400;
  line-height: 1; transition: transform .2s var(--ease); flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { font-size: 14px; line-height: 1.7; margin-top: 14px; }
.faq ol, .faq ul {
  margin: 14px 0 2px; padding-left: 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.faq li { font-size: 14px; line-height: 1.7; color: var(--body); padding-left: 4px; }
.faq li::marker { color: var(--body); font-weight: 400; }
.faq b { color: var(--text); font-weight: 600; }
.faq-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.faq-btns .btn { font-size: 13.5px; padding: 11px 18px; }

/* ═══════════════ CTA BAND ═══════════════ */
.cta-band {
  background: var(--card);
  border-radius: 22px; padding: 56px 40px; text-align: center;
  background-image: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(61,211,138,.10), transparent 70%);
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin-bottom: 28px; }

/* ═══════════════ PAGE HEAD ═══════════════ */
.page-head {
  padding: 76px 0 60px;
  background-image: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(61,211,138,.07), transparent 70%);
}
.page-head h1 { margin-bottom: 18px; }

/* ═══════════════ CONTACT ═══════════════ */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--body); }
.form input, .form select, .form textarea {
  background: #232323; border: none; border-radius: 9px;
  padding: 12px 13px; color: var(--text); font-family: var(--font); font-size: 14px; font-weight: 400;
  transition: box-shadow .15s;
}
.form input::placeholder, .form textarea::placeholder { color: var(--subtext); }
/* focus ring via shadow — keeps the field visibly focusable without a border */
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; box-shadow: 0 0 0 2px var(--accent);
}
.form textarea { resize: vertical; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-side p { font-size: 13.5px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 32px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 16px; list-style: none; flex-wrap: wrap; }
.footer-links button, .footer-links a { font-size: 12.5px; font-weight: 500; color: var(--body); transition: color .15s; }
.footer-links button:hover, .footer-links a:hover { color: var(--text); }
.footer-links button.muted { color: var(--subtext); }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1000px) {
  .contact { grid-template-columns: 1fr; }
  .include { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .include-cards { width: 100%; max-width: 560px; }
}

@media (max-width: 767px) {
  .nav-inner { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }

  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .footer-inner { padding: 24px 20px; align-items: flex-start; flex-direction: column; }

  .hero-inner { grid-template-columns: 1fr; padding: 36px 20px 56px; min-height: auto; gap: 56px; }
  .hero-copy { padding-right: 0; }
  .hero-copy h1 { font-size: clamp(34px, 9.5vw, 50px); letter-spacing: -1.8px; }
  .hero-btns { width: 100%; }
  .phone { transform: scale(.94); }

  .page-head { padding: 48px 0 40px; }
  .cta-band { padding: 40px 24px; }
  .inc-card { padding: 16px 18px; gap: 13px; }
}
