/* MangoReply marketing site. One stylesheet, no build step. */

:root {
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #1d1a16;
  --ink-soft: #5a5147;
  --line: #eadfce;
  --mango: #ff9f1c;
  --mango-deep: #e8590c;
  --mango-soft: #ffe8c7;
  --leaf: #1f7a4d;
  --leaf-soft: #dff2e7;
  --chat-bg: #efe7dc;
  --bubble-in: #ffffff;
  --bubble-out: #d9fdd3;
  --shadow: 0 1px 2px rgb(29 26 22 / 6%), 0 12px 32px rgb(29 26 22 / 8%);
  --radius: 18px;
  --max: 1160px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #14110d;
    --paper: #1d1914;
    --ink: #f6efe6;
    --ink-soft: #b9ad9e;
    --line: #342d24;
    --mango: #ffaa33;
    --mango-deep: #ff7a2e;
    --mango-soft: #3a2a14;
    --leaf: #4cc38a;
    --leaf-soft: #173325;
    --chat-bg: #0f1a15;
    --bubble-in: #1f2c26;
    --bubble-out: #0f5132;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; font-family: var(--font); letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--mango-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: var(--cream); box-shadow: var(--shadow); }
.btn-mango { background: var(--mango); color: #1d1a16; box-shadow: 0 8px 24px rgb(255 159 28 / 35%); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 18px; font-size: 15px; }
/* Six section links, the brand and two buttons need about 1,000px (measured in Arial Bold, narrower than the site's face): hide the links below 1100px so they don't wrap. */
@media (max-width: 1100px) { .nav-links { display: none; } }
@media (max-width: 860px) { .nav-cta .btn-ghost { display: none; } }

/* Hero */
.hero { padding: 64px 0 40px; overflow: hidden; }
/* The phone mockups' glow reaches 60px past the phone; clip it so narrow screens never scroll sideways. */
main { overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--mango-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 15px; }
.hero-points li::before { content: "✓"; color: var(--leaf); font-weight: 800; margin-right: 8px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 36px; } }

/* Phone and chat mockup (pure CSS; no screenshots) */
.phone {
  position: relative; width: min(380px, 100%); margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: 38px; padding: 12px;
  box-shadow: 0 30px 80px rgb(232 89 12 / 18%), var(--shadow);
}
.phone::before { content: ""; position: absolute; inset: -40px -60px auto auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgb(255 159 28 / 45%), transparent 70%); z-index: -1; }
.chat { border-radius: 28px; overflow: hidden; background: var(--chat-bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--leaf); color: #fff; }
.chat-head .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--mango); display: grid; place-items: center; font-weight: 800; color: #1d1a16; }
.chat-head small { display: block; opacity: .85; font-size: 12px; }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 18px; min-height: 420px; }
.bubble { max-width: 82%; padding: 9px 12px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.4; position: relative; box-shadow: 0 1px 1px rgb(0 0 0 / 8%); opacity: 0; transform: translateY(8px); animation: pop .4s ease forwards; }
.bubble time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--ink-soft); }
.bubble.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.bubble.note { align-self: center; background: var(--mango-soft); color: var(--ink); font-size: 13px; padding: 8px 12px; border-radius: 10px; text-align: center; }
.bubble:nth-child(1) { animation-delay: .2s; } .bubble:nth-child(2) { animation-delay: 1.1s; } .bubble:nth-child(3) { animation-delay: 2.1s; }
.bubble:nth-child(4) { animation-delay: 3.1s; } .bubble:nth-child(5) { animation-delay: 4.1s; } .bubble:nth-child(6) { animation-delay: 5.1s; }
@keyframes pop { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; opacity: 1; transform: none; } .btn { transition: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { margin: 12px 0 14px; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } section { padding: 64px 0; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.band .card { background: var(--cream); box-shadow: none; }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--ink-soft); }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--mango-soft); font-size: 22px; }
.icon.leaf { background: var(--leaf-soft); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 28px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 800; transform: translateY(18px); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--ink-soft); }
.ticks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; font-size: 13px; font-weight: 800; margin-top: 3px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

.digest { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); font-size: 15px; }
.digest header { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.digest ul { margin: 6px 0 14px; padding-left: 20px; color: var(--ink-soft); }
.digest strong { color: var(--ink); }

/* Pricing */
.billing-toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-top: 24px; }
.billing-toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 700 15px/1 var(--font); color: var(--ink-soft); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.save { color: var(--leaf); font-weight: 800; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.plan.featured { border: 2px solid var(--mango); box-shadow: 0 20px 50px rgb(255 159 28 / 20%); }
.plan .tag { position: absolute; top: -13px; left: 24px; background: var(--mango); color: #1d1a16; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.plan h3 { margin: 0; }
.plan .for { color: var(--ink-soft); font-size: 15px; min-height: 48px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.price .was { flex-basis: 100%; color: var(--ink-soft); font-size: 20px; }
.price .amount { font-family: var(--display); font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--ink-soft); font-size: 15px; }
.price-note { font-size: 14px; font-weight: 600; margin: -8px 0 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; flex: 1; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.plan li::before { content: "✓"; color: var(--leaf); font-weight: 800; }
.plan li.no { color: var(--ink-soft); }
.plan li.no::before { content: "–"; color: var(--ink-soft); }
.fine { margin-top: 22px; color: var(--ink-soft); font-size: 14px; text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--mango-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* Final CTA and footer */
.cta { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 56px 32px; text-align: center; }
.cta .lead { color: color-mix(in srgb, var(--cream) 75%, transparent); margin: 14px auto 28px; }
footer { padding: 48px 0 60px; color: var(--ink-soft); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.disclaimer { flex-basis: 100%; font-size: 13px; }

/* Legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; font-family: var(--font); font-weight: 800; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 19px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
