/* ============================================================
   Niblick — landing page styles
   Palette: Fairway #173404 · Sage #3B6D11 · Hickory #6B4423
            Persimmon #B5562A · Parchment #F4ECD8
   Type:   Fraunces (display serif) · Inter (humanist sans)
   ============================================================ */

:root {
  --fairway: #173404;
  --sage: #3B6D11;
  --hickory: #6B4423;
  --persimmon: #B5562A;
  --parchment: #F4ECD8;
  --paper: #FAF6EA;
  --card: #FBFAF5;
  --ink: #173404;
  --muted: #5a6b4a;

  --maxw: 1140px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 52, 4, .06), 0 4px 14px rgba(23, 52, 4, .06);
  --shadow-md: 0 10px 30px rgba(23, 52, 4, .12);
  --shadow-lg: 0 30px 70px rgba(23, 52, 4, .22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

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

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.eyebrow--light { color: #cdebb0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn--solid { background: var(--persimmon); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(181, 86, 42, .35); }
.btn--small { padding: .6rem 1.1rem; font-size: .92rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 236, 216, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: rgba(107, 68, 35, .18);
  box-shadow: 0 4px 20px rgba(23, 52, 4, .06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand__mark { display: block; }
.brand__monogram { font-family: var(--serif); letter-spacing: -.02em; fill: var(--fairway); }
.brand__word {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--fairway);
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink);
  opacity: .85;
  position: relative;
  transition: opacity .2s ease;
}
.nav__links a:hover { opacity: 1; color: var(--sage); }
.nav__cta { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--fairway); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -.03em;
  margin-bottom: 1.4rem;
}
.hero__title em { font-style: italic; color: var(--persimmon); }
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 2rem;
}
.hero__note { margin-top: 1.1rem; font-size: .85rem; color: var(--hickory); }

/* store badges */
.store-badges { display: flex; gap: .9rem; flex-wrap: wrap; }
.store-badges--center { justify-content: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--fairway);
  color: var(--parchment);
  padding: .6rem 1.15rem;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 1.05rem; }
.store-badge small { font-weight: 400; font-size: .68rem; opacity: .8; }
.store-badge--dark { background: var(--fairway); }

/* coming-soon state */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(181, 86, 42, .1);
  color: var(--persimmon);
  font-weight: 600;
  font-size: .82rem;
  padding: .42rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(181, 86, 42, .28);
  margin-bottom: 1.1rem;
}
.status-pill__dot {
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--persimmon);
  position: relative;
}
.status-pill__dot::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--persimmon);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .65; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}
.store-badge--soon {
  background: transparent;
  color: var(--fairway);
  border: 1.5px dashed rgba(23, 52, 4, .35);
  box-shadow: none;
  cursor: default;
}
.store-badge--soon:hover { transform: none; box-shadow: none; }
.store-badge--soon small { color: var(--persimmon); opacity: 1; font-weight: 600; }

/* phone mockup */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__blob {
  position: absolute;
  inset: -8% -12% -8% -12%;
  background: radial-gradient(60% 55% at 60% 40%, rgba(59, 109, 17, .22), transparent 70%),
              radial-gradient(50% 45% at 30% 75%, rgba(181, 86, 42, .16), transparent 70%);
  z-index: 0;
  filter: blur(8px);
}
.phone {
  position: relative;
  z-index: 1;
  width: min(310px, 78vw);
  aspect-ratio: 9 / 19.2;
  background: #0e0e10;
  border-radius: 42px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
  transform: rotate(-2deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(0deg) translateY(-4px); }
.phone__notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #0e0e10;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(180deg, #cfe3b8, #aacb85);
}
.phone__map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.phone__topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 38px 18px 14px;
  font-size: .8rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, rgba(14,20,4,.55), transparent);
  z-index: 2;
}
.phone__pin {
  background: rgba(23,52,4,.7);
  padding: .15rem .55rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hud {
  position: absolute;
  left: 14px; right: 14px; bottom: 16px;
  background: rgba(250, 246, 234, .92);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 14px 16px 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  z-index: 2;
}
.hud__center { text-align: center; padding: .35rem 0 .6rem; }
.hud__label { font-size: .68rem; font-weight: 700; letter-spacing: .16em; color: var(--sage); }
.hud__big {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--fairway);
  letter-spacing: -.02em;
}
.hud__big small { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: .25rem; }
.hud__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .85rem; color: var(--muted);
  padding: .25rem .35rem;
  border-top: 1px solid rgba(107,68,35,.14);
}
.hud__row strong { font-family: var(--serif); font-size: 1.15rem; color: var(--hickory); }
.hud__row--back { border-top: 0; }

/* ---------- Trust strip ---------- */
.strip { background: var(--fairway); color: var(--parchment); }
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2.2rem 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: #fff;
}
.stat span { font-size: .85rem; letter-spacing: .04em; color: #cdebb0; }

/* ---------- Section heads ---------- */
.section-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head p { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.section-head--light p { color: #d9ecc6; }
.section-head--light h2 { color: #fff; }

/* ---------- Features ---------- */
.features { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--paper); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: var(--card);
  border: 1px solid rgba(107, 68, 35, .12);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(59,109,17,.4); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(59, 109, 17, .1);
  color: var(--sage);
  margin-bottom: 1.2rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; color: var(--fairway); }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- How it works ---------- */
.how { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.how__media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.how__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.how__tag {
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(244,236,216,.92);
  color: var(--fairway);
  font-weight: 600;
  font-size: .85rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.steps { list-style: none; margin: 1.8rem 0 2rem; padding: 0; display: grid; gap: 1.5rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps__num {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--persimmon);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: .25rem; color: var(--fairway); }
.steps p { color: var(--muted); font-size: .98rem; }

/* ---------- Showcase ---------- */
.showcase { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem); background: var(--fairway); color: var(--parchment); overflow: hidden; }
.showcase__band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  width: 100%;
  max-width: calc(var(--maxw) + 80px);
  margin-inline: auto;
  padding-inline: 24px;
}
.showcase__card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.showcase__card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s ease; }
.showcase__card:hover img { transform: scale(1.05); }
.showcase__card figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  font-weight: 600;
  font-size: .92rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.showcase__card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14,20,4,.55));
  pointer-events: none;
}

/* ---------- Ethos ---------- */
.ethos { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--paper); text-align: center; }
.ethos__inner { max-width: 44rem; margin-inline: auto; }
.ethos__mark { margin: 0 auto 1.4rem; }
.ethos blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--fairway);
}
.ethos__by { margin-top: 1.4rem; font-style: italic; color: var(--hickory); }

/* ---------- CTA ---------- */
.cta { padding: clamp(4rem, 8vw, 6.5rem) 0; background:
  radial-gradient(80% 120% at 50% 0%, rgba(59,109,17,.18), transparent 60%), var(--parchment); }
.cta__inner { text-align: center; max-width: 38rem; margin-inline: auto; }
.cta__icon { width: 88px; height: 88px; margin: 0 auto 1.4rem; border-radius: 20px; box-shadow: var(--shadow-md); }
.cta h2 { margin-bottom: .8rem; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--fairway); color: var(--parchment); padding: 3.5rem 0 2rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244,236,216,.15);
}
.footer .brand__word { color: #fff; }
.footer .brand__monogram { fill: #fff; }
.footer__brand p { margin-top: .8rem; font-style: italic; color: #cdebb0; font-family: var(--serif); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer__cols h4 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #9fc47a; margin-bottom: .9rem; }
.footer__cols a { display: block; font-size: .95rem; color: var(--parchment); opacity: .82; padding: .25rem 0; transition: opacity .2s ease; }
.footer__cols a:hover { opacity: 1; color: #fff; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.6rem;
  font-size: .82rem;
  color: #9fc47a;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__visual { order: 1; }
  .hero__lede { margin-inline: auto; }
  .store-badges { justify-content: center; }
  .how__grid { grid-template-columns: 1fr; }
  .how__media { order: 2; max-width: 480px; margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--parchment);
    padding: .5rem 24px 1.2rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(107,68,35,.18);
  }
  .nav__links.is-open a { padding: .85rem 0; border-bottom: 1px solid rgba(107,68,35,.1); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .cards { grid-template-columns: 1fr; }
  .showcase__band { grid-template-columns: 1fr; max-width: 420px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__base { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { transform: none; }
  .status-pill__dot::after { animation: none; }
}
