/* Fertility Buddy — fertilitybuddy.in. Phone first; teal (calm), coral (warmth), gold (the helper). */
:root {
  --teal: #0B7A6F; --teal-dark: #075A52; --teal-soft: #E3F4F1;
  --coral: #E0533D; --coral-dark: #B83F2C; --coral-soft: #FDE9E4;
  --gold: #F2A93B; --gold-soft: #FFF4D6;
  --ink: #1C2433; --body: #46506A; --muted: #6B7489; --line: #E6E9EF; --bg: #FFFFFF; --cream: #FFFBF3;
  --wa: #0F7A40; --wa-dark: #0B5E31;
  --radius: 22px; --shadow: 0 10px 30px rgba(28, 36, 51, .08);
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Nunito', 'Nunito Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-weight: 900; font-size: clamp(2rem, 6.5vw, 3.4rem); }
h2 { font-weight: 900; font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
h3 { font-weight: 800; font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--body); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.lead { font-size: 1.15rem; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); margin-bottom: .6rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--display); font-weight: 900; font-size: 1.25rem; }
.brand b span { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; padding: 10px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 16px; box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin-top: 8px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-book { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(11, 122, 111, .28); }
.btn-book:hover { background: var(--teal-dark); color: #fff; }
.btn-test { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(224, 83, 61, .25); }
.btn-test:hover { background: var(--coral-dark); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* hero */
.hero { background: linear-gradient(180deg, var(--cream), #fff); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 48px; }
.hero-art { position: relative; }
.hero-art img { border-radius: 28px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 896 / 1152; object-fit: cover; }
.hero-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 14px; max-width: 520px; }
.hero-ctas .btn { min-height: 60px; font-size: 1.08rem; }
.hero-note { font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-note span::before { content: '✓ '; color: var(--teal); font-weight: 900; }
.pill { display: inline-block; background: var(--gold-soft); color: #7A4B00; font-weight: 800; font-size: .88rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-bottom: 28px; }
  .hero-art { order: -1; margin: 0 -20px; }
  .hero-art img { border-radius: 0 0 28px 28px; box-shadow: none; aspect-ratio: 4 / 4.2; object-position: 50% 70%; }
  .hero-copy { margin-top: -96px; position: relative; background: #fff; border-radius: 26px; padding: 22px 18px 6px; box-shadow: var(--shadow); }
  .hero-ctas { grid-template-columns: 1fr; }
}
.tap-hint { position: absolute; right: 18px; bottom: 18px; background: #fff; border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: .92rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.tap-hint i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 83, 61, .6); } 70% { box-shadow: 0 0 0 12px rgba(224, 83, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 83, 61, 0); } }
@media (max-width: 860px) { .tap-hint { bottom: 112px; } }
@media (prefers-reduced-motion: reduce) { .tap-hint i { animation: none; } html { scroll-behavior: auto; } }

/* sections */
section { padding: 56px 0; }
.soft { background: var(--cream); }
.teal-band { background: var(--teal); color: #fff; }
.teal-band p { color: #D6F0EB; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } section { padding: 40px 0; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 800 / 584; object-fit: cover; width: 100%; }
.card .in { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card p { margin: 0; }
.card .tag { align-self: flex-start; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); }
.card .tag.soon { background: var(--gold-soft); color: #7A4B00; }
.card .go { margin-top: auto; padding-top: 6px; font-weight: 800; text-decoration: none; }
a.card { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.steps { counter-reset: s; }
.step { position: relative; }
.step .num { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 900; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; color: var(--body); }
.checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat; }
.quote { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }

/* tools */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { font: inherit; font-weight: 800; border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; cursor: pointer; color: var(--ink); min-height: 46px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tool { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }
label { font-weight: 800; display: flex; flex-direction: column; gap: 6px; font-size: .98rem; }
input, select { font: inherit; padding: 13px 14px; border-radius: 12px; border: 1.5px solid #CBD2DE; background: #fff; color: var(--ink); min-height: 50px; width: 100%; }
input:focus, select:focus { outline: 3px solid rgba(11, 122, 111, .25); border-color: var(--teal); }
.result { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 600px) { .result { grid-template-columns: 1fr; } }
.result div { background: var(--teal-soft); border-radius: 16px; padding: 14px 16px; }
.result div:nth-child(2) { background: var(--coral-soft); }
.result div:nth-child(3) { background: var(--gold-soft); }
.result small { display: block; font-weight: 700; color: var(--body); }
.result b { font-family: var(--display); font-size: 1.35rem; }
.fine { font-size: .92rem; color: var(--muted); }

/* learn */
.topics { display: grid; gap: 14px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-family: var(--display); font-weight: 900; font-size: 1.15rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--teal); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details .body { padding-bottom: 16px; }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose li { color: var(--body); margin-bottom: .4em; }

/* page head */
.page-head { background: var(--cream); padding: 40px 0 28px; }
.page-head p { max-width: 680px; }

/* footer */
.foot { background: var(--ink); color: #D9DEE8; padding: 44px 0 110px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
.foot h3 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot p { color: #C3C9D6; }
.foot .small { font-size: .85rem; color: #A9B1C2; border-top: 1px solid #343E52; margin-top: 26px; padding-top: 18px; }

/* sticky action bar on phones */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: none; gap: 10px; box-shadow: 0 -6px 20px rgba(28, 36, 51, .08); }
.bar .btn { flex: 1; min-height: 52px; font-size: 1rem; padding: 0 12px; }
@media (max-width: 860px) { .bar { display: flex; } }
@media (min-width: 861px) { .foot { padding-bottom: 44px; } }

/* welcome back */
.back { display: none; background: var(--gold-soft); border-bottom: 1px solid #F2DFAE; }
.back.show { display: block; }
.back .wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; padding-bottom: 10px; font-weight: 700; font-size: .95rem; }
.back button { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; }

/* ---------------------------------------------------------------- playful (owner: phone-first and playful) */
.wavy { position: relative; white-space: nowrap; color: var(--coral); }
.wavy::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.18em; height: .35em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8c10-8 18 6 28 0s18-8 28 0 18 6 28 0 18-8 30 0' fill='none' stroke='%23F2A93B' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left center / 100% 100% no-repeat; }
.bounce { animation: bounce 2.8s ease-in-out infinite; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 86% { transform: translateY(-6px); } 92% { transform: translateY(0); } 96% { transform: translateY(-3px); } }
.btn:hover { transform: translateY(-2px) rotate(-.5deg); }
.tilt:nth-child(odd):hover { transform: rotate(-1deg) translateY(-4px); }
.tilt:nth-child(even):hover { transform: rotate(1deg) translateY(-4px); }
.offer { background: var(--gold); color: var(--ink); font-size: .98rem; }
.offer .wrap { padding-top: 12px; padding-bottom: 12px; text-align: center; }
.offer a { color: var(--ink); font-weight: 900; white-space: nowrap; }
/* swipe row on phones, grid on larger screens */
.swipe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.swipe-hint { display: none; }
@media (max-width: 860px) {
  .swipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 18px -20px 0; padding: 4px 20px 14px; scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > .card { flex: 0 0 78%; scroll-snap-align: center; }
  .swipe-hint { display: block; text-align: right; font-weight: 800; color: var(--coral); margin: 4px 0 0; }
}
.blobs { position: relative; overflow: hidden; }
.blobs::before, .blobs::after { content: ''; position: absolute; border-radius: 50%; z-index: 0; opacity: .5; }
.blobs::before { width: 260px; height: 260px; background: var(--coral-soft); top: -80px; right: -60px; }
.blobs::after { width: 200px; height: 200px; background: var(--teal-soft); bottom: -70px; left: -50px; }
.blobs > .wrap { position: relative; z-index: 1; }
.timeline { counter-reset: t; }
.tl { background: #fff; border: 2px dashed #CFE9E4; border-radius: var(--radius); padding: 18px; position: relative; }
.tl b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: var(--teal); color: #fff; font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; transform: rotate(-6deg); }
.tl:nth-child(2) b { background: var(--coral); transform: rotate(5deg); }
.tl:nth-child(3) b { background: var(--gold); color: var(--ink); transform: rotate(-3deg); }
.tl:nth-child(4) b { background: var(--ink); transform: rotate(6deg); }
.tl p { margin: 0; }
.emoji-dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; font-size: 1.6rem; transform: rotate(-6deg); }
.tool-card:hover .emoji-dot { transform: rotate(6deg) scale(1.08); transition: transform .2s ease; }
@media (prefers-reduced-motion: reduce) { .bounce { animation: none; } .btn:hover, .tilt:hover { transform: none; } }

/* hero sits right under the header; on phones the picture is shorter so the buttons show sooner */
section.hero { padding: 0; }
@media (max-width: 860px) {
  .hero-art img { aspect-ratio: 1 / 0.92; object-position: 50% 62%; }
  .hero-copy { margin-top: -70px; }
  .hero-copy h1 { font-size: 2.05rem; }
  .hero-copy .lead { font-size: 1.02rem; }
  .tap-hint { bottom: 86px; right: 14px; font-size: .86rem; }
}
