/* ── FONT FALLBACKS (reduce layout shift) ── */
@font-face {
  font-family: 'Fraunces-fallback';
  src: local('Georgia');
  ascent-override: 94%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 102%;
}

/* ============================================================
   homepage.css — ToolsMingo Homepage Styles
   ============================================================ */

/* ── RESET & BASE ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* offset for sticky 58px nav */
}

body {
  background: #0d0f0e;
  color: #f1efe9;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity .2s;
}

::selection {
  background: rgba(200, 64, 26, .85);
  color: #fff;
}

a {
  text-decoration: none;
}


/* ── COFFEE LINK (nav) ── */
.coffee-link {
  font-size: 13px;
  color: #7e7c76;
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 5px 12px;
  border-radius: 20px;
  transition: all .15s;
  white-space: nowrap;
}

.coffee-link:hover {
  color: #f1efe9;
  border-color: rgba(255, 255, 255, .25);
}


/* ── HERO ── */
.hero {
  position: relative;
  background-image:
    radial-gradient(circle at 50% -8%, rgba(200, 64, 26, .14), transparent 42%),
    radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 34px 34px;
  text-align: center;
  padding: clamp(72px, 12vw, 130px) clamp(20px, 5vw, 32px) clamp(60px, 9vw, 110px);
}

.hero h1 {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 600;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 14ch;
  margin: 0 auto 20px;
  color: #f6f4ee;
}

.hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: #a4a29b;
  max-width: 52ch;
  margin: 0 auto 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: #c8401a;
  padding: 14px 28px;
  border-radius: 10px;
  transition: background .18s, transform .18s;
  box-shadow: 0 10px 30px -12px rgba(200, 64, 26, .6);
  display: inline-block;
}

.btn-primary:hover {
  background: #e04d24;
  transform: translateY(-2px);
}

.btn-secondary {
  font-size: 15px;
  font-weight: 500;
  color: #f1efe9;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .18s, background .18s;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .03);
}


/* ── SECTION BASE ── */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 110px) clamp(20px, 5vw, 32px);
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c8401a;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -.02em;
  color: #f6f4ee;
  margin-bottom: 44px;
}


/* ── TOOLS ── */
.tools-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.tools-header .section-title {
  margin-bottom: 0;
}

.tools-sub {
  font-size: 15px;
  color: #a4a29b;
  max-width: 36ch;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.tool-card {
  background: #141614;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, background .2s;
  position: relative;
}

.tool-card:hover {
  border-color: rgba(200, 64, 26, .5);
  transform: translateY(-3px);
  background: #181a17;
}

.tool-card.coming-soon {
  opacity: .6;
  pointer-events: none;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(200, 64, 26, .1);
  color: #c8401a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 64, 26, .2);
  margin-bottom: 20px;
}

.tool-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-free {
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, .25);
  background: rgba(134, 239, 172, .08);
}

.badge-soon {
  color: #b8b6b0;  /* was #a4a29b — bumped for contrast on dark card */
  border: 1px solid rgba(164, 162, 155, .2);
  background: rgba(164, 162, 155, .06);
}

.tool-name {
  font-family: 'DM Mono', monospace;
  font-weight: 500;
  font-size: 19px;
  color: #f6f4ee;
  margin-bottom: 8px;
}

.tool-name span {
  color: #c8401a;
}

.tool-desc {
  font-size: 14px;
  color: #a4a29b;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #f1efe9;
  transition: gap .18s, color .18s;
}

.tool-link:hover {
  gap: 10px;
  color: #c8401a;
}


/* ── HOW IT WORKS ── */
.hiw-section {
  padding: 80px clamp(16px, 5vw, 48px);
}

.hiw-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hiw-head {
  text-align: center;
  margin-bottom: 56px;
}

.hiw-eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7e7c76;  /* was #3a3835 — too dark, bumped to pass contrast */
  font-family: 'DM Mono', monospace;
  margin-bottom: 12px;
}

.hiw-title {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: #f6f4ee;
  margin-bottom: 12px;
}

.hiw-sub {
  font-size: 16px;
  color: #a4a29b;  /* was #6a6865 — too dark, bumped */
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, .04);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 56px;
}

.hiw-step {
  background: #0d0f0e;
  padding: 28px 24px;
}

.hiw-num {
  width: 32px;
  height: 32px;
  background: rgba(200, 64, 26, .15);
  border: 1px solid rgba(200, 64, 26, .3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #e8724e;  /* was #c8401a — bumped for contrast on dark bg */
  margin-bottom: 16px;
}

.hiw-step-title {
  font-size: 15px;
  font-weight: 600;
  color: #f1efe9;
  margin-bottom: 8px;
}

.hiw-step-desc {
  font-size: 13px;
  color: #a4a29b;  /* was #6a6865 — too dark, bumped */
  line-height: 1.6;
}

.hiw-cta {
  text-align: center;
  margin-top: 48px;
}

.hiw-cta a {
  display: inline-block;
  background: #c8401a;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: .05em;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background .15s;
}

.hiw-cta a:hover {
  background: #d94d24;
}


/* ── FEATURES ── */
.feat-section {
  padding: 64px clamp(16px, 5vw, 48px);
}

.feat-inner {
  max-width: 900px;
  margin: 0 auto;
}

.feat-head {
  text-align: center;
  margin-bottom: 40px;
}

.feat-eyebrow {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7e7c76;  /* was #3a3835 — too dark, bumped */
  font-family: 'DM Mono', monospace;
  margin-bottom: 10px;
}

.feat-title {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 600;
  color: #f6f4ee;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feat-icon {
  width: 40px;
  height: 40px;
  background: rgba(200, 64, 26, .08);
  border: 1px solid rgba(200, 64, 26, .18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-name {
  font-size: 14px;
  font-weight: 500;
  color: #f1efe9;
  margin-bottom: 4px;
}

.feat-desc {
  font-size: 13px;
  color: #a4a29b;  /* was #6a6865 — too dark, bumped */
  line-height: 1.5;
}


/* ── WHY ── */
.why-section {
  background: #101210;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8401a;
  margin-bottom: 16px;
}

.why-title {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 600;
  font-size: 19px;
  color: #f6f4ee;
  margin-bottom: 8px;
}

.why-desc {
  font-size: 14px;
  color: #a4a29b;
  line-height: 1.65;
}


/* ── INVOICE FEATURES GRID ── */
.invfeat-section {
  padding: 80px 0;
}

.invfeat-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}

.invfeat-head {
  text-align: center;
  margin-bottom: 52px;
}

.invfeat-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #7e7c76;
  margin-bottom: 14px;
}

.invfeat-title {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 600;
  font-size: clamp(28px, 3.5vw, 38px);
  color: #f6f4ee;
  line-height: 1.2;
}

.invfeat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, .05);
  border-radius: 14px;
  overflow: hidden;
}

.invfeat-item {
  background: #0d0f0e;
  padding: 28px 30px;
}

.invfeat-name {
  font-size: 15px;
  font-weight: 600;
  color: #f1efe9;
  margin-bottom: 8px;
}

.invfeat-desc {
  font-size: 13px;
  color: #7e7c76;
  line-height: 1.7;
}

.invfeat-cta {
  text-align: center;
  margin-top: 36px;
}


/* ── COFFEE ── */
.coffee-section {
  text-align: center;
  padding: clamp(60px, 10vw, 110px) clamp(20px, 5vw, 32px);
}

.coffee-box {
  max-width: 560px;
  margin: 0 auto;
  background: #141614;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: clamp(36px, 6vw, 52px);
}

.coffee-emoji {
  font-size: 48px;
  margin-bottom: 20px;
}

.coffee-title {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-weight: 600;
  font-size: clamp(24px, 3.5vw, 32px);
  color: #f6f4ee;
  margin-bottom: 12px;
}

.coffee-desc {
  font-size: 15px;
  color: #a4a29b;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.coffee-btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #c8401a;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background .18s, transform .18s;
  box-shadow: 0 10px 30px -12px rgba(200, 64, 26, .5);
}

.coffee-btn:hover {
  background: #e04d24;
  transform: translateY(-2px);
}


/* ── FAQ TEASER ── */
.faq-teaser {
  padding: 60px clamp(16px, 5vw, 48px);
  text-align: center;
}

.faq-teaser-inner {
  max-width: 600px;
  margin: 0 auto;
}

.faq-teaser-title {
  font-family: 'Fraunces', 'Fraunces-fallback', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: #f6f4ee;
  margin-bottom: 10px;
}

.faq-teaser-sub {
  font-size: 15px;
  color: #a4a29b;  /* was #6a6865 — too dark, bumped */
  margin-bottom: 24px;
  line-height: 1.6;
}

.faq-teaser-link {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .15);
  color: #f1efe9;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .05em;
  padding: 11px 26px;
  border-radius: 8px;
  transition: all .15s;
}

.faq-teaser-link:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .04);
}


/* ── FOOTER ── */
footer {
  background: #101210;
}


/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* invfeat grid: horizontal scroll on mobile so it doesn't stack infinitely */
  .invfeat-grid {
    grid-template-columns: repeat(3, 80vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    border-radius: 14px;
  }
  .invfeat-grid::-webkit-scrollbar { display: none; }
  .invfeat-item {
    scroll-snap-align: start;
    min-width: 80vw;
  }
  .invfeat-section::after {
    content: '← swipe →';
    display: block;
    text-align: center;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    color: #4a4845;
    margin-top: 10px;
    letter-spacing: .1em;
  }
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── H3 resets — semantic tags replacing divs, must look identical ── */
h2.section-title, h2.faq-teaser-title, h2.coffee-title {
  font-weight: 600;
  margin: 0;
}
h3.hiw-step-title, h3.feat-name, h3.why-title,
h3.tool-name, h3.invfeat-name {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  color: inherit;
  margin: 0;
  line-height: inherit;
}