/* ============================================
   HERLOCAL — Editorial landing page
   Inspired by reference: calm, beige, serif,
   terracotta accents, quiet typography.
   ============================================ */

/* TOKENS */
:root {
  --bg:          #EDEAE3;       /* warm beige (matches reference) */
  --bg-soft:     #F5F2EB;
  --card:        #FAFAF8;
  --paper:       #FFFFFF;
  --ink:         #1F1D1A;
  --ink-soft:    #2A2A2A;
  --muted:       #9A958C;       /* the soft greige used for "Clubs/Findings/My Bio" in reference */
  --muted-2:     #B8B2A6;
  --line:        #DAD5CB;
  --terracotta:  #9C4F2E;
  --terracotta-d:#7D3E23;
  --bluegrey:    #D6DEE6;
  --bluegrey-cell:#E1E7EE;
  --shadow:      0 2px 24px rgba(31,29,26,0.06);
  --shadow-lg:   0 24px 60px -20px rgba(31,29,26,0.25);
  --radius:      18px;
  --radius-sm:   12px;
  --serif:       'DM Serif Display', 'Times New Roman', Georgia, serif;
  --sans:        'Inter', -apple-system, system-ui, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* CONTAINER */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

/* TYPOGRAPHY HELPERS */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow--center { text-align: center; }

em {
  font-style: italic;
  font-family: var(--serif);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237,234,227,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  background: var(--ink);
  color: var(--bg-soft);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  transition: background 0.25s;
}
.nav__cta:hover { background: var(--terracotta); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 64px 0 80px;
  overflow: hidden;
}
.hero__grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 28px;
}
.hero__title em {
  font-style: italic;
  color: var(--terracotta);
}
.hero__sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero__note {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================
   STORE BUTTONS (Apple / Google)
   ============================================ */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-buttons--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--bg-soft);
  border-radius: 14px;
  transition: transform 0.25s ease, background 0.25s ease;
  min-width: 180px;
}
.store-btn:hover {
  background: #000;
  transform: translateY(-2px);
}
.store-btn svg { flex-shrink: 0; }
.store-btn div { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn__small {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.85;
  text-transform: uppercase;
}
.store-btn__big {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* ============================================
   PHONE MOCKUP (matches reference image)
   ============================================ */
.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 18.5;
  background: #1B1B1F;
  border-radius: 46px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2A2A30,
    var(--shadow-lg);
}
.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 28px;
  background: #0A0A0C;
  border-radius: 100px;
  z-index: 2;
}
.phone__notch::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1A2530;
  box-shadow: inset 0 0 0 1px #2A3540;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  padding: 56px 22px 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* in-phone nav */
.phone__nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
}
.phone__nav-item:last-child { color: var(--ink); }

/* in-phone tabs (My Bio / Activity / My Vibe style) */
.phone__tabs {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: auto 0 16px;
  font-family: var(--serif);
}
.phone__tab {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}
.phone__tab--muted { color: var(--muted-2); font-size: 1.15rem; }
.phone__tab--active { color: var(--ink); font-weight: 400; }
.phone__tab sup {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.55rem;
  color: var(--muted);
  margin-left: 2px;
  vertical-align: super;
}

/* in-phone card */
.phone__card {
  background: var(--paper);
  border-radius: 14px;
  padding: 18px 14px 14px;
  flex-grow: 1;
  min-height: 320px;
}
.phone__card-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
  margin-bottom: 10px;
}
.phone__card-title {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.phone__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.phone__week span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.7rem;
  text-align: center;
  color: var(--muted);
}
.phone__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cell {
  aspect-ratio: 1 / 1;
  background: var(--bluegrey-cell);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dot {
  display: block;
  background: var(--terracotta);
  border-radius: 50%;
}
.dot--xs { width: 18%;  height: 18%; }
.dot--sm { width: 28%;  height: 28%; }
.dot--md { width: 50%;  height: 50%; }
.dot--lg { width: 68%;  height: 68%; }

/* ============================================
   VALUES STRIP
   ============================================ */
.values {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.values__item p:last-child {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.feature {
  padding: 120px 0;
}
.feature--alt { background: var(--bg-soft); }
.feature__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature__row--reverse .feature__visual { order: -1; }

.feature__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.feature__title em { color: var(--terracotta); }
.feature__desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 460px;
  font-weight: 300;
}
.feature__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature__list li {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
  line-height: 1.4;
}
.feature__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 1px;
  background: var(--terracotta);
}

/* CHECKLIST visual */
.checklist {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.checklist__item:last-child { border-bottom: none; }
.checklist__item div { display: flex; flex-direction: column; gap: 2px; }
.checklist__item strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
}
.checklist__item span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.checklist__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--muted-2);
  background: transparent;
  flex-shrink: 0;
  margin-top: 7px;
}
.checklist__item--done .checklist__dot {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.checklist__item--done strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--muted-2); }
.checklist__item--active .checklist__dot {
  border-color: var(--terracotta);
  background: var(--bg);
  box-shadow: inset 0 0 0 3px var(--terracotta);
}

/* LISTINGS visual */
.listings {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.listing {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  box-shadow: var(--shadow);
}
.listing__img {
  background: linear-gradient(135deg, #C9B8A8 0%, #B8A595 100%);
  min-height: 130px;
}
.listing__img--two { background: linear-gradient(135deg, #B7BFC9 0%, #A0AAB6 100%); }
.listing__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.listing__verified {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  text-transform: uppercase;
}
.listing__body strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
}
.listing__meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
}

/* FORUM threads visual */
.threads {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thread {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.thread header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.thread__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}
.thread header strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
}
.thread header span {
  font-size: 0.78rem;
  color: var(--muted);
}
.thread p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.forum-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.forum-tags span {
  font-family: var(--serif);
  font-size: 0.95rem;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  background: var(--paper);
}

/* ============================================
   AUDIENCE
   ============================================ */
.audience {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.audience__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 56px;
}
.audience__title em { color: var(--terracotta); }
.audience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
}
.audience__card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.audience__card--accent {
  background: var(--terracotta);
  color: #F5EDE7;
}
.audience__card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--ink);
}
.audience__card--accent h3 { color: #F5EDE7; }
.audience__card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-weight: 300;
}
.audience__card--accent p { color: rgba(245,237,231,0.85); }

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 24px;
  letter-spacing: -0.01em;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================
   DOWNLOAD CTA
   ============================================ */
.download {
  padding: 140px 0;
  background: var(--ink);
  color: var(--bg-soft);
  text-align: center;
}
.download__inner {
  max-width: 720px;
  margin: 0 auto;
}
.download .eyebrow { color: var(--muted-2); }
.download__title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bg-soft);
  margin-bottom: 18px;
}
.download__title em { color: var(--terracotta); font-style: italic; }
.download__sub {
  font-size: 1rem;
  color: rgba(245,242,235,0.75);
  margin-bottom: 36px;
  font-weight: 300;
}
.download__note {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
}
.download .store-btn {
  background: var(--bg-soft);
  color: var(--ink);
}
.download .store-btn:hover {
  background: var(--paper);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 72px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer__brand .nav__logo { display: block; margin-bottom: 14px; }
.footer__brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}
.footer__cols { display: contents; }
.footer__cols > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__cols strong {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer__cols a {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 300;
  transition: color 0.2s;
}
.footer__cols a:hover { color: var(--ink); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 64px;
    text-align: left;
  }
  .hero__right { order: -1; }
  .feature__row {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .feature__row--reverse .feature__visual { order: 0; }
  .values__grid { grid-template-columns: 1fr; gap: 32px; }
  .audience__grid { grid-template-columns: 1fr; }
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container, .nav__inner, .hero__grid { padding-left: 24px; padding-right: 24px; }
  .feature, .audience, .testimonial, .download { padding: 80px 0; }
  .hero { padding: 32px 0 64px; }
  .phone { width: 280px; }
  .values { padding: 40px 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .store-btn { min-width: 0; flex: 1; }
  .audience__card { padding: 32px 28px; }
}

/* ============================================
   FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}