/* Mantis Checkout — styles for the redesigned homepage (public/new.html).
 *
 * Kept separate from styles.css on purpose: the legal pages, FAQ and the
 * current homepage keep using styles.css untouched, so this file can be
 * tried, changed or deleted without affecting any live page.
 *
 * Colours match styles.css and lib/theme/brand.dart (teal + lime from the
 * logo). The two fonts are self-hosted in public/fonts/ (SIL Open Font
 * Licence, licence files alongside), so no request goes to Google.
 */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --teal: #1B2E36;          /* headings, header, dark panels */
  --teal-deep: #132127;     /* footer */
  --teal-line: #3A5260;     /* dividers on dark */
  --teal-text: #C4D0D3;     /* body text on dark */
  --lime: #A5C633;          /* buttons, highlights */
  --lime-hover: #B4D443;
  --lime-ink: #5E7413;      /* lime-coloured text on light (readable contrast) */
  --lime-wash: #F1F6DD;     /* pale lime panels */
  --lime-mark: #D6E89A;     /* highlighter behind headline words */
  --bg: #FAFBFB;
  --white: #FFFFFF;
  --panel: #F3F6F2;         /* soft grey-green tiles */
  --text: #2B2B2B;
  --text-soft: #46545A;
  --muted: #6A6A6A;
  --line: #E0E4E5;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  color: var(--teal);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--white); padding: 8px 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px; font-weight: 700; font-size: 16px;
  padding: 13px 22px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lime { background: var(--lime); color: var(--teal); }
.btn-lime:hover { background: var(--lime-hover); }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline-dark { border: 1.5px solid #4C6572; color: var(--white); }
.btn-outline-dark:hover { border-color: var(--white); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */

.hdr { background: var(--teal); position: sticky; top: 0; z-index: 20; }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 18px; text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav a { color: var(--teal-text); text-decoration: none; }
.nav a:hover { color: var(--white); }
.nav .sep { width: 1px; height: 20px; background: var(--teal-line); }
.nav .signin { color: var(--white); font-weight: 600; white-space: nowrap; }
.nav .btn { padding: 9px 16px; font-size: 15px; color: var(--teal); }
.nav .btn:hover { color: var(--teal); }
.menu-btn { display: none; background: none; border: 1px solid var(--teal-line); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { width: 18px; height: 2px; background: var(--white); display: block; position: relative; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--teal); flex-direction: column; align-items: stretch;
    gap: 0; padding: 4px 24px 18px; border-top: 1px solid var(--teal-line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--teal-line); font-size: 17px; }
  .nav .sep { display: none; }
  .nav .btn { margin-top: 14px; border-bottom: 0; padding: 13px; font-size: 16px; }
}

/* ---------- Hero ---------- */

.hero { padding-block: 64px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--lime-mark) 62%); }
.hero .lead { font-size: 19px; color: var(--text-soft); max-width: 31em; margin-bottom: 28px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.ticks li::before { content: "✓ "; color: var(--lime-ink); font-weight: 800; }

.hero-art { position: relative; }
.hero-art .photo { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 16 / 10.5; object-fit: cover; box-shadow: 0 24px 60px -30px rgba(19, 33, 39, .55); }
.float { position: absolute; background: var(--white); border-radius: 14px; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .4); font-size: 13.5px; }
.cart { right: -14px; top: -18px; width: 210px; padding: 14px; display: grid; gap: 7px; }
.cart .row { display: flex; justify-content: space-between; gap: 8px; }
.cart .total { border-top: 1px solid var(--line); padding-top: 7px; font-weight: 700; color: var(--teal); }
.cart .pays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.cart .pays span { text-align: center; border-radius: 6px; padding: 5px 0; font-weight: 700; font-size: 12px; background: #EEF1F1; color: var(--teal); }
.cart .pays span:first-child { background: var(--lime); }
.toast { left: -22px; bottom: 26px; padding: 11px 15px; display: flex; gap: 11px; align-items: center; }
.toast .ico { width: 34px; height: 34px; border-radius: 9px; background: var(--lime-wash); color: var(--lime-ink); display: grid; place-items: center; font-weight: 800; }
.toast b { display: block; color: var(--teal); }
.toast small { color: var(--muted); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: pop .5s 1s ease-out both; }
  @keyframes pop { from { transform: translateY(10px); opacity: .0; } to { transform: none; opacity: 1; } }
}

@media (max-width: 860px) {
  .hero { padding-block: 36px 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero .lead { font-size: 17.5px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .cart { right: 8px; top: -14px; width: 172px; padding: 11px; font-size: 12.5px; }
  .toast { left: 8px; bottom: 12px; }
}

/* ---------- Trust strip ---------- */

.trust { background: var(--white); border-block: 1px solid var(--line); }
.trust .container { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; justify-content: center; padding-block: 16px; font-size: 14.5px; color: var(--muted); }
.methods { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.methods span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 9px; font-weight: 700; font-size: 13px; color: var(--teal); background: var(--bg); }
.trust b { color: var(--teal); }

/* ---------- Sections ---------- */

.section { padding-block: 80px; }
.section.white { background: var(--white); }
.section-head { text-align: center; max-width: 38em; margin: 0 auto 44px; display: grid; gap: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17.5px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-ink); }
@media (max-width: 640px) { .section { padding-block: 56px; } .container { padding-inline: 16px; } }

/* ---------- Both sides (product screens) ---------- */

.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; max-width: 820px; margin: 0 auto; }
.side { display: grid; justify-items: center; gap: 18px; text-align: center; }
.side h3 { font-size: 1.25rem; }
.side p { color: var(--muted); font-size: 15.5px; max-width: 24em; }
.phone { width: 260px; max-width: 100%; border-radius: 34px; background: #111; padding: 9px; box-shadow: 0 26px 50px -24px rgba(0, 0, 0, .5); }
.phone .shot { border-radius: 25px; width: 100%; height: auto; }
.example-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }

.steps { list-style: none; padding: 0; margin: 64px auto 0; max-width: 940px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { display: grid; gap: 6px; counter-increment: step; }
.steps li::before { content: counter(step); width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: var(--lime); font-family: var(--display); font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: 15.5px; }
.stripe-note { max-width: 46em; margin: 36px auto 0; text-align: center; font-size: 14.5px; color: var(--muted); }

@media (max-width: 760px) {
  .sides { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ---------- Rewards bento ---------- */

.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.tile { border-radius: 18px; padding: 26px; display: grid; gap: 10px; align-content: start; background: var(--panel); }
.tile h3 { font-size: 1.3rem; }
.tile p { font-size: 15.5px; color: var(--text-soft); }
.tile .tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lime-ink); }
.tile.dark { background: var(--teal); }
.tile.dark h3 { color: var(--white); }
.tile.dark p { color: var(--teal-text); }
.tile.dark .tag { color: var(--lime); }
.tile.wash { background: var(--lime-wash); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.chips span { border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: var(--white); border-radius: 99px; padding: 4px 12px; font-size: 13px; }
.ticket { margin-top: 6px; background: var(--white); border: 1.5px dashed #B9CF6A; border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; }
.ticket b { display: block; color: var(--teal); }
.ticket .val { font-family: var(--display); font-weight: 800; color: var(--lime-ink); font-size: 1.2rem; }
.vcard { margin-top: 6px; border-radius: 14px; background: linear-gradient(135deg, #1B2E36, #2F4A58); color: var(--white); padding: 16px 18px; display: grid; gap: 2px; max-width: 280px; }
.vcard small { color: #B8C6CB; letter-spacing: .12em; font-size: 11.5px; }
.vcard .amt { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--lime); line-height: 1.1; }
.vcard span:last-child { font-size: 13px; }
.posts { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.posts div { width: 86px; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; text-align: center; padding: 8px; font-family: var(--display); font-weight: 800; font-size: 12.5px; line-height: 1.15; background: var(--teal); color: var(--lime); }
.posts div:nth-child(2) { background: var(--lime); color: var(--teal); }
.posts div:nth-child(3) { background: var(--white); color: var(--teal); border: 1px solid var(--line); }
.included { text-align: center; margin-top: 26px; color: var(--muted); font-size: 15.5px; }
.included b { color: var(--teal); }
@media (max-width: 760px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile { padding: 22px; } }

/* ---------- Pricing ---------- */

.pricing { max-width: 560px; margin: 0 auto; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.pcard .big { font-family: var(--display); font-size: 3rem; font-weight: 800; color: var(--teal); line-height: 1; }
.pcard .big small { font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--muted); }
.pcard ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 15.5px; }
.pcard li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #EEF1F1; padding-bottom: 9px; }
.pcard li b { color: var(--teal); white-space: nowrap; }
.pcard .example { margin: 0; padding: 12px 14px; background: var(--lime-wash); border-radius: 12px; font-size: 15.5px; color: var(--teal); }
.pcard .example b { font-weight: 800; }
.pcard .fine { font-size: 13.5px; color: var(--muted); }
.pcard .fine a { color: var(--teal); }
.no-surcharge { max-width: 900px; margin: 22px auto 0; text-align: center; font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .pcard { padding: 22px; } }

/* ---------- Who it's for ---------- */

.made-for { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; padding: 0; list-style: none; }
.made-for li { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 8px 18px; font-weight: 600; color: var(--teal); font-size: 15.5px; }

/* ---------- FAQ preview ---------- */

.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 4px; font-weight: 700; color: var(--teal); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lime-ink); font-size: 22px; line-height: 1; font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 4px 18px; color: var(--text-soft); font-size: 16px; }
.faq-more { text-align: center; margin-top: 26px; }
.faq-more a { color: var(--teal); font-weight: 700; }

/* ---------- Closing band + footer ---------- */

.band { background: var(--teal); color: var(--white); text-align: center; padding-block: 72px; }
.band .container { display: grid; gap: 16px; justify-items: center; }
.band h2 { color: var(--white); font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 800; max-width: 18em; }
.band p { color: var(--teal-text); font-size: 17px; }

.ftr { background: var(--teal-deep); color: #8FA0A6; font-size: 14.5px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 36px; }
.ftr h4 { color: var(--white); font-size: 14px; margin: 0 0 12px; letter-spacing: .04em; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: #B5C2C6; text-decoration: none; }
.ftr a:hover { color: var(--white); }
.ftr .tagline { margin-top: 12px; }
.ftr .legal-line { border-top: 1px solid #23363E; padding-block: 18px 26px; font-size: 13px; }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-grid > div:first-child { grid-column: 1 / -1; } }
