/* =========================================================================
   Pricing First-Aid Kit by Valueships
   Pink + white + black/graphite only. Monospace eyebrows, plain headings,
   flat hairline layout. Built to embed in the Valueships site via <iframe>.
   Light theme only.
   ========================================================================= */

:root{
  --pink:#FF005E; --pink-600:#F0004B; --pink-100:#FFCCDF; --pink-wash:#FFF0F5;
  --ink:#101010; --body:#303030; --muted:#6b6b6b; --line:#D9D9D9; --white:#fff;
  --soft:#f6f6f6;
  --font-display:'Montserrat',system-ui,sans-serif;
  --font-body:'Lato',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;
  --ease:cubic-bezier(.22,.61,.36,1);
  --shadow:0 20px 50px -24px rgba(16,16,16,.28);

  --maxw: 1144px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

p { margin: 0 0 1rem; }
a { color: var(--pink); text-decoration: none; }
a:hover { color: var(--pink-600); }
strong, b { color: var(--ink); font-weight: 700; }
img, svg { max-width: 100%; display: block; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 32px; }
.section { padding: 76px 0; position: relative; }
.section--line { border-top: 1px solid var(--line); }

/* Monospace eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- Buttons (mono, near-square, pink primary) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 15px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary { background: var(--pink); color: var(--white); }
.btn--primary:hover { background: var(--pink-600); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   INTRO
   ========================================================================= */
.intro .eyebrow .cross { width: 14px; height: 14px; color: var(--pink); flex-shrink: 0; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .wrap { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* =========================================================================
   TOP-DOWN OPEN BAG - zippered kit that opens on hover
   ========================================================================= */
.accent { color: var(--pink); }

.intro { text-align: center; max-width: 640px; margin: clamp(24px,5vw,48px) auto clamp(24px,4vw,40px); }
.intro .eyebrow { justify-content: center; }
.intro h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem,5vw,3rem); letter-spacing: -0.02em; text-wrap: balance; }
.intro h1 .accent { display: block; }
.intro p { color: var(--body); max-width: 46ch; margin: 14px auto 0; }

.bag-wrap { display: flex; justify-content: center; padding-bottom: clamp(24px,5vw,48px); }

.bag {
  position: relative;
  width: min(860px, 100%);
  aspect-ratio: 3 / 2.05;
  background: linear-gradient(160deg, #f3f4f6, #e3e5e9);
  border-radius: 30px;
  padding: 22px;
  box-shadow: 0 34px 70px -34px rgba(16,16,16,.4), inset 0 1px 0 rgba(255,255,255,.8);
}

.bag__window {
  position: relative; width: 100%; height: 100%;
  border-radius: 16px; overflow: hidden;
  background: #d8dbde;
  border: 3px solid var(--pink);
  box-shadow: inset 0 3px 14px rgba(16,16,16,.16);
}
.bag__interior { position: absolute; inset: 0; background: radial-gradient(130% 110% at 50% 0%, #eceef0, #cfd3d6); }

/* the four objects, revealed when the lid opens */
.obj {
  position: absolute; width: 42%; max-width: 270px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  text-decoration: none; color: var(--ink);
  opacity: 0; transform: translate(-50%, calc(-50% + 14px));
  transition: opacity .4s var(--ease) .58s, transform .4s var(--ease) .58s;
  z-index: 1;
}
.obj--1 { left: 27%; top: 32%; }
.obj--2 { left: 70%; top: 28%; }
.obj--3 { left: 31%; top: 68%; }
.obj--4 { left: 72%; top: 70%; }
.obj__art { width: clamp(66px,12vw,104px); aspect-ratio: 1; }
.obj__art svg { width: 100%; height: 100%; transition: transform .25s var(--ease); }
.obj__label { display: flex; flex-direction: column; gap: 2px; }
.obj__step { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.obj__step b { color: var(--pink); font-weight: 700; }
.obj__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.02rem,2.6vw,1.22rem); color: var(--ink); letter-spacing: -0.01em; }
.obj__line { max-height: 0; opacity: 0; overflow: hidden; font-size: .92rem; line-height: 1.45; color: var(--body); max-width: 26ch; transition: max-height .3s var(--ease), opacity .25s var(--ease); }
.obj:hover .obj__art svg, .obj:focus-visible .obj__art svg { transform: translateY(-7px) scale(1.07); }
.obj:hover .obj__name, .obj:focus-visible .obj__name { color: var(--pink); }
.obj:hover .obj__line, .obj:focus-visible .obj__line { max-height: 96px; opacity: 1; }
.obj:focus-visible { outline: none; }
.obj:focus-visible .obj__art { outline: 2px solid var(--pink); outline-offset: 5px; border-radius: 10px; }

/* the two zippered lid flaps (cream, matching the lid) */
.flap {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2;
  background: linear-gradient(160deg, #f4f5f7, #e4e6ea);
  transition: transform .9s cubic-bezier(.55,0,.4,1) .05s;
}
.flap--l { left: 0; border-radius: 14px 0 0 14px; box-shadow: inset -2px 0 0 var(--pink), inset 0 2px 0 rgba(255,255,255,.6); }
.flap--r { right: 0; border-radius: 0 14px 14px 0; box-shadow: inset 2px 0 0 var(--pink), inset 0 2px 0 rgba(255,255,255,.6); }

/* zipper seam + pull */
.zip {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 12px; transform: translateX(-50%);
  z-index: 3; border-radius: 6px;
  background: repeating-linear-gradient(180deg, var(--pink) 0 4px, #c1004a 4px 8px);
  transition: opacity .35s var(--ease) .75s;
}
.zip__pull {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 32px; background: var(--white); border: 2.5px solid var(--ink); border-radius: 7px;
  box-shadow: 0 4px 10px rgba(16,16,16,.3);
  transition: top .9s cubic-bezier(.55,0,.4,1);
}
.zip__pull::after { content: ""; position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }

.bag__hint {
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); z-index: 5;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: opacity .3s var(--ease); pointer-events: none;
}

/* ---- open state: hover, or keyboard focus inside the bag ---- */
.bag:hover .flap--l, .bag:focus-within .flap--l { transform: translateX(-102%); }
.bag:hover .flap--r, .bag:focus-within .flap--r { transform: translateX(102%); }
.bag:hover .zip, .bag:focus-within .zip { opacity: 0; }
.bag:hover .zip__pull, .bag:focus-within .zip__pull { top: calc(100% - 40px); }
.bag:hover .obj, .bag:focus-within .obj { opacity: 1; transform: translate(-50%, -50%); }
.bag:hover .bag__hint, .bag:focus-within .bag__hint { opacity: 0; }

/* ---- touch (no hover): keep it open so items are tappable ---- */
@media (hover: none) {
  .flap--l { transform: translateX(-102%); }
  .flap--r { transform: translateX(102%); }
  .zip { opacity: 0; }
  .obj { opacity: 1; transform: translate(-50%, -50%); }
  .bag__hint { display: none; }
}

/* ---- reduced motion: show it open, no animation ---- */
@media (prefers-reduced-motion: reduce) {
  .flap, .zip, .zip__pull, .obj, .obj__art svg, .obj__line { transition: none; }
  .flap--l { transform: translateX(-102%); }
  .flap--r { transform: translateX(102%); }
  .zip { opacity: 0; }
  .obj { opacity: 1; transform: translate(-50%, -50%); }
  .bag__hint { display: none; }
}

/* ---- mobile: drop the absolute scatter + zip, reflow into a clean grid ---- */
@media (max-width: 700px) {
  .bag { aspect-ratio: auto; padding: 16px; }
  .bag__window { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; padding: 28px 16px; }
  .flap, .zip, .bag__hint { display: none; }
  .obj {
    position: static; width: auto; max-width: none; left: auto; top: auto;
    transform: none; opacity: 1; gap: 8px;
  }
  .obj__art { width: 62px; }
  .obj__name { font-size: .95rem; }
  .obj__line { display: none; }
  /* kill every hover/focus/open-state motion on mobile so tapping never shifts the grid */
  .obj:hover .obj__art svg, .obj:focus-visible .obj__art svg { transform: none; }
  .bag:hover .obj, .bag:focus-within .obj { transform: none; opacity: 1; }
  .bag:hover .flap--l, .bag:focus-within .flap--l,
  .bag:hover .flap--r, .bag:focus-within .flap--r { transform: none; }
  .obj:hover .obj__line, .obj:focus-visible .obj__line { max-height: 0; opacity: 0; }
}
@media (max-width: 420px) {
  .bag__window { grid-template-columns: 1fr; gap: 20px; }
}
