:root {
  --blue: #007AFF;
  --blue-dark: #0062cc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e8ec;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

/* Header */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.ig-link { color: var(--blue); text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }

/* Layout: mobile-first single column; two columns on wider screens */
.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 22px 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

/* Info column */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 800;
}
.tagline { font-size: 18px; color: var(--muted); margin: 0 0 22px; max-width: 30ch; }

.card-show {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 22px;
}
.card-show img { margin: 0 auto; border-radius: 12px; }

.points { list-style: none; padding: 0; margin: 0 0 28px; }
.points li {
  position: relative;
  padding-left: 21px;
  margin-bottom: 12px;
  color: #334155;
  font-size: 15.5px;
}
.points li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 800;
}

.social-title { font-weight: 700; font-size: 14px; color: var(--muted); margin: 28px 0 16px; }
.reels { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.reel { overflow: hidden; }
.reel-scale { transform-origin: top left; }
.instagram-media { margin: 0 !important; }
@media (min-width: 560px) {
  .reels { grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 559px) {
  .social-title { text-align: center; }
}

/* Checkout column */
.checkout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-sub { color: var(--muted); font-size: 14px; }
.ship-badge {
  margin-left: auto;
  background: rgba(0,122,255,0.1);
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 100px;
}
.ship-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 8px 0 0; line-height: 1.45; }
.terms-line { text-align: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; line-height: 1.45; }
.terms-line a { color: var(--muted); text-decoration: underline; }
.footer-links a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* Legal pages (terms / privacy) */
.legal { max-width: 760px; margin: 0 auto; padding: 36px 22px 80px; }
.legal .back { display: inline-block; margin-bottom: 18px; color: var(--blue); text-decoration: none; font-weight: 600; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { color: #334155; font-size: 15.5px; line-height: 1.65; }
.legal a { color: var(--blue); }

.qty { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qty label { font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 14px; }
.qty-control button {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--soft);
  font-size: 20px; cursor: pointer; color: var(--ink);
}
.qty-control button:active { transform: scale(0.96); }
#qty-display { min-width: 24px; text-align: center; font-weight: 700; font-size: 18px; }

#checkout-form input,
#checkout-form select {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
#checkout-form input:focus,
#checkout-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,0.12); }
#checkout-form select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.us-only-note { color: var(--muted); font-size: 12.5px; margin: 2px 0 14px; }
/* Visually-hidden labels (screen readers) without changing the layout */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.payment-area { margin: 8px 0 16px; }
#payment-element { margin-bottom: 6px; }
.payment-error { color: #d92d20; font-size: 13.5px; line-height: 1.4; margin: 4px 0 0; min-height: 1em; }

/* Lock the payment area (visible but not interactive) until shipping fields are filled */
.gate-note { display: none; text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.gate-note.show { display: block; }
#pay-gate { position: relative; transition: opacity 0.2s ease; }
#pay-gate.pay-locked { opacity: 0.45; user-select: none; }
#gate-cover { display: none; }
#pay-gate.pay-locked #gate-cover { display: block; position: absolute; inset: 0; z-index: 200; cursor: not-allowed; } /* above PayPal's iframe (z-index 100) */
#checkout-form input.field-missing { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217,45,32,0.12); }
.payment-placeholder {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--soft);
}
.payment-placeholder.paypal { color: #003087; }
.or { text-align: center; position: relative; margin: 14px 0; }
.or span { background: #fff; padding: 0 12px; color: var(--muted); font-size: 13px; position: relative; z-index: 1; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }

.pay-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 100px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.pay-btn:hover:not(:disabled) { background: var(--blue-dark); }
.pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.secure { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* Footer */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* Confirmation overlay */
.overlay {
  position: fixed; inset: 0; z-index: 1000; /* above PayPal's button iframe (z-index 100) so it can't punch through */
  background: rgba(15, 23, 42, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.overlay[hidden] { display: none; }
.overlay-card {
  background: #fff; border-radius: 22px; max-width: 440px; width: 100%;
  padding: 34px 28px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.overlay-card h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.overlay-sub { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 24px; }
.overlay-card .pay-btn { margin-bottom: 10px; }
.link-btn {
  display: inline-block; background: none; border: none;
  color: var(--muted); font-size: 15px; font-family: inherit; cursor: pointer;
  text-decoration: none; padding: 8px;
}
.check-big {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0, 122, 255, 0.12); color: var(--blue);
  font-size: 34px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}

/* Two columns + sticky checkout on wider screens */
@media (min-width: 880px) {
  .layout { grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; padding-top: 24px; }
  .checkout { position: sticky; top: 24px; }
}
