/* ============================================================
   SITM MOCKUP KIT - canonical brand design system for week-9 mockups
   Source of truth, extracted verbatim from the live dev theme:
     - assets/sitm-under-hero.css        (token :root, signature gradient, glass card, waves)
     - config/settings_data.json (current) (button/footer/header colors, fonts)
     - templates/index.json custom_css     (section type treatments)
   Every value below traces to one of those files. Do not invent values.
   Fonts: Poppins (body + headings, theme base) + Tilt Warp (theme custom heading).
   ============================================================ */

/* ---- Fonts ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500&display=swap');

@font-face {
  font-family: 'Tilt Warp';
  src: url('https://cdn.shopify.com/s/files/1/0616/2605/6960/files/TiltWarp-Regular-VariableFont_XROT_YROT.ttf?v=1735597463') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ---- Tokens (verbatim from sitm-under-hero.css + settings_data) ------ */
:root {
  /* brand palette */
  --sitm-navy: #201f55;
  --sitm-navy-soft: #303071;
  --sitm-footer-navy: #242253;   /* settings_data color_footer */
  --sitm-teal-deep: #1f7772;
  --sitm-teal: #4bbdb5;
  --sitm-teal-btn: #61bdb7;      /* settings_data color_button */
  --sitm-teal-mid: #53b1a9;      /* brand color, gradient stop */
  --sitm-teal-light: #d7f3f0;
  --sitm-mint: #ecfaf7;
  --sitm-gold: #f3b740;
  --sitm-pink: #f082b4;          /* founder-letter pulse-dot accent */
  --sitm-white: #ffffff;
  --sitm-ink: #1f2454;
  --sitm-body-ink: #3e4761;      /* settings_data color_body_text */
  --sitm-border: #e8e8e1;        /* settings_data color_borders */
  --sitm-price: #1c1d1d;
  --sitm-sale: #c20000;

  --sitm-muted: rgba(255,255,255,.72);
  --sitm-card: rgba(255,255,255,.12);
  --sitm-card-border: rgba(255,255,255,.22);
  --sitm-shadow: 0 24px 60px rgba(16, 49, 72, .18);
  --sitm-shadow-card: 0 20px 44px rgba(9, 49, 74, .18);
  --sitm-radius: 28px;
  --sitm-radius-sm: 16px;
  --sitm-radius-card: 24px;

  /* signature teal gradient (verbatim) */
  --sitm-gradient: linear-gradient(118deg, #1f7772 0%, #2c9b92 34%, #53b1a9 62%, #9fdcd2 100%);

  /* type */
  --sitm-font-body: 'Poppins', system-ui, sans-serif;
  --sitm-font-display: 'Tilt Warp', 'Poppins', sans-serif;

  /* layout */
  --sitm-maxw: 1200px;     /* index.json featured-product-custom: max-width 1200px */
  --sitm-maxw-wide: 1460px;/* sitm-band-inner width */
  --sitm-gutter: clamp(18px, 4vw, 48px);
}

/* ---- Base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body.sitm-page {
  margin: 0;
  font-family: var(--sitm-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sitm-body-ink);
  background: var(--sitm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--sitm-teal-deep); }

.sitm-container { width: min(var(--sitm-maxw), calc(100% - 2 * var(--sitm-gutter))); margin-inline: auto; }
.sitm-container--wide { width: min(var(--sitm-maxw-wide), calc(100% - 2 * var(--sitm-gutter))); margin-inline: auto; }

/* ---- Typography ----------------------------------------------------- */
.sitm-display {            /* big theme section titles, capitalized like the theme */
  font-family: var(--sitm-font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--sitm-ink);
  margin: 0;
}
.sitm-h1 { font-family: var(--sitm-font-body); font-weight: 800; line-height: 1.0;  font-size: clamp(34px, 5vw, 58px); letter-spacing: .01em; color: var(--sitm-ink); margin: 0; }
.sitm-h2 { font-family: var(--sitm-font-body); font-weight: 800; line-height: 1.06; font-size: clamp(26px, 3.2vw, 44px); letter-spacing: .01em; color: var(--sitm-ink); margin: 0; }
.sitm-h3 { font-family: var(--sitm-font-body); font-weight: 700; line-height: 1.18; font-size: clamp(19px, 2vw, 26px); color: var(--sitm-ink); margin: 0; }
.sitm-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.75; color: var(--sitm-body-ink); }

/* eyebrow with gold bar (verbatim sitm-eyebrow, recolored for light bg via .on-light) */
.sitm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-family: var(--sitm-font-body);
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sitm-teal-deep);
}
.sitm-eyebrow::after { content: ""; width: 46px; height: 2px; border-radius: 999px; background: var(--sitm-gold); }
.sitm-gradient-band .sitm-eyebrow { color: rgba(255,255,255,.9); }

/* ---- Buttons -------------------------------------------------------- */
.sitm-btn {                /* theme primary: round teal */
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--sitm-teal-btn); color: #fff;
  font-family: var(--sitm-font-body); font-size: 14px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 26px rgba(97,189,183,.34);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.sitm-btn:hover { transform: translateY(-2px); background: #56b1ab; box-shadow: 0 18px 32px rgba(97,189,183,.42); }

.sitm-btn--pill {          /* white pill on teal (verbatim sitm-story-link) */
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: #fff; color: var(--sitm-navy);
  font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(16,49,72,.18);
}
.sitm-btn--pill:hover { transform: translateY(-2px); background: #fff9ea; box-shadow: 0 18px 34px rgba(16,49,72,.25); }

.sitm-btn--ghost {
  background: transparent; color: var(--sitm-teal-deep);
  border: 1.5px solid var(--sitm-teal-btn); box-shadow: none;
}
.sitm-btn--ghost:hover { background: var(--sitm-mint); transform: translateY(-2px); }

/* ---- Pulse-trace divider (brand motif from founder-letter) ---------- */
.sitm-pulse-divider { display: block; width: min(280px, 60%); margin: 3rem auto; }
.sitm-pulse-divider svg { display: block; width: 100%; height: auto; }

/* ---- Signature gradient band (verbatim sitm-under-hero) ------------- */
.sitm-gradient-band {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 9% 18%, rgba(255,255,255,.16), transparent 18rem),
    radial-gradient(circle at 58% 12%, rgba(169,239,230,.34), transparent 30rem),
    radial-gradient(circle at 92% 30%, rgba(204,252,224,.38), transparent 26rem),
    radial-gradient(circle at 48% 88%, rgba(38,180,183,.32), transparent 28rem),
    var(--sitm-gradient);
}
.sitm-gradient-band::before {   /* top wave (verbatim clip-path) */
  content: ""; position: absolute; inset: -18% -10% auto -10%; height: 230px;
  background:
    radial-gradient(circle at 44% 64%, rgba(255,255,255,.22), transparent 22rem),
    linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  clip-path: polygon(0 40%, 11% 35%, 23% 44%, 36% 31%, 49% 42%, 61% 29%, 73% 39%, 86% 30%, 100% 42%, 100% 0, 0 0);
  opacity: .8; z-index: -1;
}
.sitm-gradient-band--wavecut::after {  /* bottom wave cut to white (verbatim) */
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 44px; background: #fff;
  clip-path: polygon(0 54%, 10% 63%, 22% 49%, 35% 62%, 47% 45%, 60% 56%, 74% 43%, 87% 59%, 100% 47%, 100% 100%, 0 100%);
  z-index: 2;
}
.sitm-gradient-band .sitm-h1,
.sitm-gradient-band .sitm-h2,
.sitm-gradient-band .sitm-h3 { color: #fff; }
.sitm-gradient-band p { color: rgba(255,255,255,.85); }

/* gold accent rail (verbatim sitm-story-panel::before) */
.sitm-rail { position: relative; padding-left: 22px; }
.sitm-rail::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(var(--sitm-gold), rgba(255,255,255,.35));
  box-shadow: 0 0 22px rgba(243,183,64,.44);
}

/* ---- Glass card (verbatim sitm-proof-card) -------------------------- */
.sitm-glass {
  position: relative; border-radius: var(--sitm-radius-card);
  padding: 24px 22px 22px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.23), rgba(255,255,255,.09) 52%, rgba(255,255,255,.14)),
    rgba(24, 117, 126, .18);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), var(--sitm-shadow-card);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.sitm-glass:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.52); box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 26px 52px rgba(9,49,74,.22); }

/* solid white card for light sections */
.sitm-card {
  background: #fff; border: 1px solid var(--sitm-border); border-radius: var(--sitm-radius-card);
  box-shadow: 0 10px 30px rgba(16,49,72,.07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.sitm-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16,49,72,.12); }

/* ---- Email-capture field (verbatim sitm-free-field) ----------------- */
.sitm-field { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.sitm-field input[type="email"] {
  flex: 1 1 200px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.92);
  color: var(--sitm-ink); font-family: var(--sitm-font-body); font-size: 15px;
}
.sitm-field input[type="email"]:focus { outline: none; border-color: var(--sitm-gold); box-shadow: 0 0 0 3px rgba(243,183,64,.4); }

/* ===================================================================== */
/* HEADER (faithful simplification of theme header + announcement bar)    */
/* ===================================================================== */
.sitm-announce {
  background: var(--sitm-footer-navy); color: #fff;
  text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 9px 16px;
}
.sitm-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff; border-bottom: 1px solid var(--sitm-border);
}
.sitm-header__inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.sitm-header__logo { font-family: var(--sitm-font-display); text-transform: uppercase; font-size: 18px; letter-spacing: .04em; color: var(--sitm-ink); text-decoration: none; line-height: 1; }
.sitm-header__logo small { display: block; font-family: var(--sitm-font-body); font-size: 9px; letter-spacing: .26em; color: var(--sitm-teal-deep); font-weight: 700; }
.sitm-nav { margin-left: auto; display: flex; gap: 24px; }
.sitm-nav a { color: var(--sitm-header-text, #3e4761); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.sitm-nav a:hover { color: var(--sitm-teal-deep); }
.sitm-header__icons { display: flex; gap: 16px; align-items: center; color: var(--sitm-ink); }
@media (max-width: 820px) { .sitm-nav { display: none; } }

/* ===================================================================== */
/* GRADIENT PRE-FOOTER (the "footer gradient carryover" deliverable)      */
/* Carries the homepage signature teal gradient + wave as a closing band  */
/* that sits above the navy Shopify footer, unifying every page.          */
/* ===================================================================== */
.sitm-prefooter {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(52px, 8vw, 96px) 0 clamp(60px, 9vw, 104px);
  background:
    radial-gradient(circle at 12% 16%, rgba(255,255,255,.16), transparent 20rem),
    radial-gradient(circle at 84% 24%, rgba(204,252,224,.34), transparent 26rem),
    radial-gradient(circle at 50% 96%, rgba(38,180,183,.30), transparent 30rem),
    var(--sitm-gradient);
}
.sitm-prefooter::before {  /* top wave edge (verbatim wave geometry) */
  content: ""; position: absolute; inset: -1px 0 auto 0; height: 46px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 46%, 87% 30%, 74% 44%, 60% 28%, 47% 46%, 35% 30%, 22% 50%, 10% 34%, 0 47%);
  z-index: 2;
}
.sitm-prefooter__inner { position: relative; z-index: 3; text-align: center; display: grid; gap: 18px; justify-items: center; }
.sitm-prefooter__inner .sitm-h2 { color: #fff; max-width: 18ch; }
.sitm-prefooter__inner p { color: rgba(255,255,255,.88); max-width: 52ch; margin: 0; }
.sitm-prefooter__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ===================================================================== */
/* NAVY FOOTER (faithful to theme footer: #242253 / white)               */
/* ===================================================================== */
.sitm-footer { background: var(--sitm-footer-navy); color: #fff; }
.sitm-footer__inner {
  display: grid; gap: 40px; padding: clamp(44px, 6vw, 72px) 0 28px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.sitm-footer h4 { font-family: var(--sitm-font-body); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; color: #fff; }
.sitm-footer a { color: rgba(255,255,255,.78); text-decoration: none; font-size: 14px; line-height: 2.0; }
.sitm-footer a:hover { color: #fff; }
.sitm-footer__brand-name { font-family: var(--sitm-font-display); text-transform: uppercase; font-size: 20px; letter-spacing: .04em; margin: 0 0 10px; }
.sitm-footer__social { display: flex; gap: 14px; margin-top: 14px; }
.sitm-footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.1); }
.sitm-footer__social a:hover { background: var(--sitm-teal-btn); }
.sitm-footer__bar { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; font-size: 12px; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 760px) { .sitm-footer__inner { grid-template-columns: 1fr 1fr; } .sitm-footer__brand { grid-column: 1 / -1; } }

/* ---- Section rhythm + helpers --------------------------------------- */
.sitm-section { padding: clamp(48px, 7vw, 96px) 0; }
.sitm-section--tight { padding: clamp(32px, 5vw, 64px) 0; }
.sitm-center { text-align: center; }
.sitm-stack { display: grid; gap: clamp(14px, 2vw, 22px); }
.sitm-grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.sitm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.sitm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.sitm-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .sitm-grid--3, .sitm-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sitm-grid--2, .sitm-grid--3, .sitm-grid--4 { grid-template-columns: 1fr; } }

.sitm-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 14px; border-radius: 999px; background: var(--sitm-mint); color: var(--sitm-teal-deep); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sitm-badge--gold { background: var(--sitm-gold); color: var(--sitm-ink); }

/* page-load stagger helper (frontend-design: one orchestrated reveal) */
@keyframes sitmRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.sitm-rise { animation: sitmRise .7s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) { .sitm-rise { animation: none; } }
