/* ==========================================================================
   AmzInsightly — Premium boutique theme (new homepage + pricing)
   Boutique Hayat Nest-style layout with the palette of the new wave-mark logo:
   emerald/teal/sky on mint-white. Distinct from the old navy theme.
   ========================================================================== */

:root {
  /* Palette drawn from the amzinsighly wave mark: emerald, teal, sky blue,
     deep pine wordmark. Premium, fresh, clearly distinct from the old navy. */
  --cream: #F4F8F6;        /* page background — soft mint-tinged off-white */
  --paper: #FFFFFF;        /* cards */
  --ink: #0B3A42;          /* primary text — deep pine from the wordmark */
  --espresso: #0C2F35;     /* dark section bg */
  --dim: #567376;          /* secondary text */
  --line: #DEE9E5;         /* borders */
  --clay: #0F8C80;         /* accent — logo teal */
  --clay-dark: #0B6E64;
  --clay-soft: #DDF0EB;    /* accent tint bg */
  --gold: #D9A441;         /* amber for "coming soon" notes */
  --olive: #2FAE8B;        /* emerald — checkmarks */
  --olive-soft: #E7F2EC;
  --sky: #3E8FD0;          /* logo blue, sparing secondary accent */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 2px 8px rgba(11, 58, 66, 0.06);
  --shadow-lg: 0 14px 40px rgba(11, 58, 66, 0.10);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
img { max-width: 100%; }
a { color: var(--clay); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: 'Inter', sans-serif;
}
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-ghost.on-dark { color: var(--cream); border-color: rgba(244,248,246,0.55); }
.btn-ghost.on-dark:hover { background: var(--cream); color: var(--ink); }

.btn-lg { padding: 1rem 2.1rem; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 248, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 28px; max-width: 1200px; margin: 0 auto; }
.nav-logo img { height: 30px; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a { color: var(--ink); text-decoration: none; font-size: 0.94rem; font-weight: 500; }
.nav-links a:hover { color: var(--clay); }
.nav-links a.active { color: var(--clay); font-weight: 600; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--ink); cursor: pointer; }
.nav-mobile { display: none; flex-direction: column; padding: 0.5rem 28px 1.2rem; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 0.6rem 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 6.5rem 0 5rem; }
.hero-eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); max-width: 830px; margin-bottom: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero .lead { font-size: 1.22rem; color: var(--dim); max-width: 660px; margin-bottom: 2.4rem; }
.hero-cta-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.1rem; font-size: 0.92rem; color: var(--dim); }

/* ---------- Section scaffolding ---------- */
section { padding: 5.5rem 0; }
.sec-eyebrow {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay); margin-bottom: 0.9rem;
}
.sec-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 1.1rem; max-width: 720px; }
.sec-sub { color: var(--dim); font-size: 1.08rem; max-width: 640px; margin-bottom: 3rem; }
.center { text-align: center; }
.center .sec-title, .center .sec-sub { margin-left: auto; margin-right: auto; }

/* ---------- Results strip ---------- */
.results-strip { background: var(--espresso); padding: 1.5rem 0; }
.results-strip .container { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; }
.result-item { text-align: center; color: #A9C6C0; font-size: 0.9rem; }
.result-item strong { display: block; font-family: 'Fraunces', serif; font-size: 1.7rem; color: var(--cream); font-weight: 600; }
.result-item a { color: inherit; text-decoration: none; }

/* ---------- How we work ---------- */
.how { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4.5rem; align-items: center; }
.how-quote {
  font-family: 'Fraunces', serif; font-size: clamp(1.5rem, 2.6vw, 2rem); font-style: italic;
  line-height: 1.4; color: var(--ink); padding-left: 1.6rem; border-left: 3px solid var(--clay);
  margin: 2rem 0;
}
.how p { color: var(--dim); margin-bottom: 1.2rem; }
.how-points { list-style: none; display: flex; flex-direction: column; gap: 1.3rem; }
.how-points li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; }
.how-points .t { font-weight: 600; font-family: 'Fraunces', serif; font-size: 1.08rem; margin-bottom: 0.25rem; }
.how-points .d { color: var(--dim); font-size: 0.95rem; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem 2rem; box-shadow: var(--shadow);
}
.svc-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; }
.svc-card p { color: var(--dim); font-size: 0.97rem; margin-bottom: 1.1rem; }
.svc-card ul { list-style: none; }
.svc-card li { padding: 0.32rem 0; font-size: 0.93rem; color: var(--ink); display: flex; gap: 0.6rem; }
.svc-card li::before { content: "—"; color: var(--clay); font-weight: 600; }
.svc-ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--clay-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem; color: var(--clay);
  margin-bottom: 1.2rem;
}

/* ---------- DeepInsightly teaser ---------- */
.tool-teaser {
  margin-top: 2.5rem;
  background: var(--espresso); color: var(--cream);
  border-radius: var(--radius-lg); padding: 2.6rem 2.8rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
  box-shadow: var(--shadow-lg);
}
.tool-teaser .tag {
  display: inline-block; background: rgba(201, 155, 74, 0.18); color: var(--gold);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.tool-teaser h3 { font-size: 1.5rem; margin-bottom: 0.7rem; color: var(--cream); }
.tool-teaser p { color: #A9C6C0; font-size: 0.98rem; max-width: 560px; }

/* ---------- Case studies ---------- */
.cs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.cs-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; text-decoration: none; color: var(--ink); display: block;
  transition: all 0.22s ease; box-shadow: var(--shadow);
}
.cs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--clay); }
.cs-card .metric { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 600; color: var(--clay); margin-bottom: 0.4rem; }
.cs-card h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.cs-card p { color: var(--dim); font-size: 0.93rem; margin-bottom: 1rem; }
.cs-card .link { font-weight: 600; font-size: 0.92rem; color: var(--clay); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem 2.1rem; display: flex; flex-direction: column; box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured { border: 2px solid var(--clay); box-shadow: var(--shadow-lg); }
.price-card .flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--clay); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.28rem 1rem; border-radius: 999px;
  white-space: nowrap;
}
.price-card .stage { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.6rem; }
.price-card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.price-card .for { color: var(--dim); font-size: 0.9rem; margin-bottom: 1.2rem; min-height: 2.6em; }
.price-card .amount { font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 600; }
.price-card .amount span { font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--dim); font-weight: 500; }
.price-card ul { list-style: none; margin: 1.4rem 0 1.8rem; flex: 1; }
.price-card li { padding: 0.42rem 0; font-size: 0.93rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--olive); font-weight: 700; flex-shrink: 0; }
.price-card li.bonus::before { content: "★"; color: var(--gold); }
.price-card .btn { justify-content: center; }
.price-note { margin-top: 2.2rem; text-align: center; color: var(--dim); font-size: 0.95rem; }
.price-note a { color: var(--clay); font-weight: 600; }

.addon-band {
  margin-top: 2.4rem; background: var(--olive-soft); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.8rem 2.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.addon-band .t { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; }
.addon-list { display: flex; gap: 1.8rem; flex-wrap: wrap; font-size: 0.93rem; color: var(--ink); }
.addon-list strong { color: var(--clay); }

/* Guarantee callout */
.guarantee {
  background: var(--clay-soft); border: 1px solid #E4C7B8; border-radius: var(--radius-lg);
  padding: 1.7rem 2.1rem; margin-top: 2.4rem; display: flex; gap: 1.2rem; align-items: flex-start;
}
.guarantee .ic { font-size: 1.5rem; color: var(--clay); line-height: 1.4; }
.guarantee p { font-size: 0.97rem; color: var(--ink); }

/* Qualify-and-enroll block, sits between the tier cards and the guarantee */
.enroll-block {
  margin-top: 3rem; text-align: center; max-width: 720px; margin-left: auto; margin-right: auto;
}
.enroll-block .sub {
  color: var(--dim); font-size: 0.95rem; max-width: 56ch; margin: 0.6rem auto 1.6rem;
}
.enroll-block .sub strong { color: var(--cream); }
.enroll-form-wrap {
  margin-top: 2rem; border: 1.5px solid rgba(46, 155, 143, 0.4); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; max-width: 680px; margin-left: auto; margin-right: auto;
}
.enroll-form-wrap iframe { display: block; width: 100%; border: 0; }
.enroll-form-note {
  font-size: 0.78rem; color: var(--dim); margin-top: 0.9rem;
}

/* ---------- Final CTA ---------- */
.cta-final { background: var(--espresso); color: var(--cream); text-align: center; }
.cta-final .sec-title { color: var(--cream); }
.cta-final p { color: #A9C6C0; max-width: 620px; margin: 0 auto 2.2rem; font-size: 1.08rem; }
.cta-final .contact-row { margin-top: 1.6rem; display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap; font-size: 0.95rem; }
.cta-final .contact-row a { color: var(--cream); text-decoration: none; }
.cta-final .contact-row a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-logo img { height: 26px; margin-bottom: 0.8rem; }
.footer-tag { color: var(--dim); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.8rem; }
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.22rem 0; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: var(--clay); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; font-size: 0.85rem; color: var(--dim); }
.footer-bottom a { color: var(--dim); }

/* ---------- Pricing page extras ---------- */
.page-head { padding: 5rem 0 3.5rem; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
.page-head p { color: var(--dim); font-size: 1.12rem; max-width: 640px; margin: 0 auto; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.9rem; margin-bottom: 1rem; }
.faq-item h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--dim); font-size: 0.96rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .svc-grid, .cs-grid, .price-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tool-teaser { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 4rem 0 3.5rem; }
  section { padding: 3.8rem 0; }
  .results-strip .container { gap: 1.8rem; }
}

/* ---------- Pricing flip cards (pricing page) ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; perspective: 1600px; }
.flip { position: relative; min-height: 640px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.flip-inner {
  position: absolute; inset: 0;
  transition: transform 0.65s cubic-bezier(0.4, 0.1, 0.2, 1);
  transform-style: preserve-3d;
}
.flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.3rem 2rem 2rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow); overflow: hidden;
}
.flip-back { transform: rotateY(180deg); background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.flip.featured-tier .flip-face { border: 2px solid var(--clay); box-shadow: var(--shadow-lg); }
.flip.featured-tier .flip-back { border-color: var(--espresso); }

.flip .flag {
  position: absolute; top: 14px; right: 14px;
  background: var(--clay); color: #fff; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 999px;
}
.flip .stage { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); margin-bottom: 0.55rem; }
.flip h3 { font-size: 1.3rem; margin-bottom: 0.35rem; min-height: 2.6em; }
.flip .for { color: var(--dim); font-size: 0.88rem; margin-bottom: 1.1rem; min-height: 3.9em; }
.flip .amount { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 600; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; }
.flip .amount span { font-family: 'Inter', sans-serif; font-size: 0.9rem; color: var(--dim); font-weight: 500; }
.flip ul { list-style: none; flex: 1; margin: 0; }
.flip li { padding: 0.4rem 0; font-size: 0.92rem; display: flex; gap: 0.6rem; align-items: flex-start; line-height: 1.5; }
.flip li::before { content: "✓"; color: var(--olive); font-weight: 700; flex-shrink: 0; }
.flip .flip-hint {
  margin-top: 1.2rem; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--clay);
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
}
.flip .flip-hint::after { content: "⟳"; font-size: 1.05rem; transition: transform 0.4s ease; }
.flip:hover .flip-hint::after { transform: rotate(180deg); }

.flip-back .back-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem;
}
.flip-back h4 { font-size: 1.35rem; color: var(--cream); margin-bottom: 1rem; }
.flip-back p { color: #A9C6C0; font-size: 0.94rem; line-height: 1.65; margin-bottom: 0.9rem; }
.flip-back p strong { color: var(--cream); }
.flip-back .value-line {
  border-left: 2px solid var(--gold); padding-left: 0.95rem; margin: 1.1rem 0;
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.02rem; color: var(--cream); line-height: 1.55;
}
.flip-back .btn { justify-content: center; margin-top: auto; }
.flip-back .flip-hint { color: #A9C6C0; }

@media (max-width: 960px) {
  .flip-grid { grid-template-columns: 1fr; }
  .flip { min-height: 600px; }
}

/* ---- v6: consistent bordered blocks + palette alignment with the homepage ---- */
.flip-face { border: 1.5px solid rgba(46, 155, 143, 0.30); }
.guarantee, .addon-band { border: 1.5px solid rgba(46, 155, 143, 0.28); border-radius: 16px; }
:root { --clay: #2E9B8F; --clay-dark: #227B72; --espresso: #113A42; --ink: #0B3A42; }
