/* Itsy Deals website. Warm cream, the itsy leaf green and a sunny yellow, as in the app. */
:root {
  --bg: #f8f6ec;
  --ink: #14321b;
  --muted: #556455;
  --soft: #8a958a;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(20, 50, 27, 0.09);
  --indigo: #1f7a2e;
  --violet: #2f9a3f;
  --peach: #f5b81c;
  --tint: #e5f2df;
  --radius: 24px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(245, 184, 28, 0.20), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(47, 154, 63, 0.12), transparent 60%),
    var(--bg);
  font: 17px/1.6 "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); }
h1, h2, h3 { font-family: "Nunito", -apple-system, sans-serif; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--indigo); }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 10px; }

/* Header */
header.nav { position: sticky; top: 0; z-index: 20; background: rgba(248, 246, 236, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; height: 66px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; white-space: nowrap; }
.brand img { height: 30px; width: auto; }
#site-menu { display: flex; gap: 22px; margin-left: auto; }
#site-menu a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
#site-menu a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--violet), var(--indigo)); color: #fff; font: 800 16px "Nunito", sans-serif; text-decoration: none;
  box-shadow: 0 10px 26px rgba(31, 122, 46, 0.28); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(31, 122, 46, 0.36); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { background: #fff; color: var(--indigo); box-shadow: inset 0 0 0 1.5px rgba(31, 122, 46, .35); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 11px 10px; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 64px 0 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; background: var(--tint); color: var(--indigo); font-weight: 800; font-size: 14px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(47, 154, 63, .25); }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); margin: 20px 0 18px; }
.hero h1 span { background: linear-gradient(90deg, var(--indigo), var(--violet) 55%, var(--peach)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 20px; color: var(--muted); max-width: 540px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.facts b { color: var(--ink); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(47, 154, 63, .35), rgba(245, 184, 28, .2) 55%, transparent 72%); filter: blur(10px); }

/* Phones */
.phone { position: relative; width: min(290px, 70%); border-radius: 44px; padding: 9px; background: #18213a; box-shadow: 0 40px 80px -30px rgba(24, 33, 58, .55); }
.phone img { border-radius: 36px; }
.phones { display: flex; justify-content: center; gap: 22px; }
.phones .phone { width: min(250px, 45%); }
.phones .phone.lower { margin-top: 56px; }

/* Sign-up */
.notify-wrap { margin-top: 28px; max-width: 480px; }
.notify { display: flex; gap: 8px; }
.notify input[type=email] { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1.5px solid rgba(31, 122, 46, .2); background: #fff; color: var(--ink); font: 600 16px "Nunito", sans-serif; }
.notify input[type=email]:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(47, 154, 63, .18); }
.notify .btn { min-height: 52px; }
.notify .hp { display: none; }
.notify-msg { min-height: 1.4em; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--indigo); }
.notify-msg.bad { color: #c2410c; }
.notify-note { font-size: 14px; color: var(--soft); }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: rgba(255, 255, 255, .5); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 19px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--indigo); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--indigo); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%236558d9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.ticks b { color: var(--ink); }

.promise { text-align: center; max-width: 760px; margin: 0 auto; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.pills span { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 15px; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigo); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 12px; }

.final { text-align: center; padding: 90px 0 100px; }
.final img { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 18px 36px -12px rgba(31, 122, 46, .5); }
.final h2 { font-size: clamp(30px, 4.4vw, 50px); margin-bottom: 12px; }
.final .notify-wrap { margin: 28px auto 0; }

.care { max-width: 780px; margin: 0 auto 70px; padding: 20px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 15px; text-align: center; }
.care b { color: var(--ink); }

footer.footer { border-top: 1px solid var(--line); padding: 38px 0 48px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: grid; gap: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--ink); font-weight: 700; text-decoration: none; }
.footer .fine { font-size: 13px; color: var(--soft); max-width: 860px; }

/* Support and privacy pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 90px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 10px; }
.doc .updated { color: var(--soft); font-size: 15px; margin-bottom: 28px; }
.doc h2 { font-size: 22px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }

@media (max-width: 960px) {
  .hero, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-inner > .btn-small { display: none; }
  #site-menu { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 20px 16px; background: #f8f6ec; border-bottom: 1px solid var(--line); box-shadow: 0 24px 30px -20px rgba(24, 33, 58, .25); }
  header.nav.open #site-menu { display: flex; }
  #site-menu a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .notify { flex-direction: column; }
  .notify .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Itsy: the logo is the wordmark, so the brand link shows it on its own. */
.brand.logo-only span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.business { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; }
.business h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 12px; }
@media (max-width: 760px) { .business { grid-template-columns: 1fr; padding: 28px 22px; } }

/* ---------- Partner pages (coupons, business sign-up) ---------- */
.partner-page [hidden] { display: none !important; }
.partner-page { padding: 48px 0 72px; }
.partner-page h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.08; margin: 6px 0 12px; }
.coupon-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 12px; font-weight: 700; }
.coupon-toolbar select, .partner-form input:not([type=radio]):not([type=checkbox]), .partner-form select { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; width: 100%; }
.coupon-toolbar select { width: auto; min-width: 220px; }
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.coupon { background: #fff; border: 1.5px dashed rgba(31, 122, 46, 0.35); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.coupon.local { border-style: solid; border-color: var(--line); }
.coupon h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.coupon-partner { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); }
.coupon-desc, .coupon-meta { margin: 0; color: var(--muted); font-size: 15px; }
.coupon-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.coupon-code { font: 800 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--indigo); background: var(--tint); border: 1.5px dashed rgba(31, 122, 46, 0.45); border-radius: 999px; padding: 10px 14px; cursor: pointer; min-height: 44px; }
.coupon-code span { font: 700 12px Nunito, sans-serif; margin-left: 6px; }
.fine-note { color: var(--soft); font-size: 13px; margin-top: 22px; }
.partner-page .pills { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.partner-page .pills li { background: var(--tint); color: var(--indigo); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 8px 14px; }
.partner-form { max-width: 720px; display: grid; gap: 18px; }
.partner-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.partner-form legend { font-weight: 900; font-size: 18px; padding: 0 6px; }
.partner-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.partner-form .form-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 10px; }
.partner-form .radio-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-weight: 700; font-size: 14px; }
.partner-form .radio-row > span { width: 100%; }
.partner-form .radio-row label, .partner-form .agree { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.partner-form input[type=radio], .partner-form input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--indigo); flex: none; }
.partner-form .small { font-size: 14px; margin: 0; }
.partner-form .hp { position: absolute; left: -9999px; }
.partner-form .btn { justify-self: start; }
.notify-msg.err { color: #b42318; }
.partner-done { max-width: 720px; background: var(--tint); border-radius: var(--radius); padding: 24px; }
.partner-done h2 { margin-top: 0; }
@media (max-width: 640px) {
  .partner-form .form-row { grid-template-columns: 1fr; }
  .coupon-toolbar select { width: 100%; }
}

/* Feed a neighbor */
.meal-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.meal-choices label { position: relative; display: block; }
.meal-choices input { position: absolute; opacity: 0; }
.meal-choices span { display: grid; place-items: center; min-height: 56px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); font-weight: 900; font-size: 16px; cursor: pointer; }
.meal-choices input:checked + span { background: var(--tint); border-color: var(--indigo); color: var(--indigo); }
.meal-choices input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.give-total { font-size: 24px; font-weight: 900; margin: 4px 0 0; }
.give-faq { max-width: 720px; margin-top: 40px; }
.give-faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.give-faq summary { font-weight: 800; cursor: pointer; }
.give-faq p { color: var(--muted); margin: 8px 0 0; }
@media (max-width: 520px) { .meal-choices { grid-template-columns: repeat(2, 1fr); } }
