/* ==========================================================================
   Euphor — myeuphorai.com

   Who this is really for: an underwriter at CCBill, Segpay or Verotel who has
   thirty seconds to decide whether this looks like a business or like a
   liability. That audience makes legitimacy the aesthetic constraint, not a
   compromise on it — so this deliberately isn't the moody, dark-patterned
   look the category defaults to, and it isn't the iOS clone the app itself
   is either.

   The direction is the app's own: iOS blue on a cool near-black. It used to
   be warm ink and amber, which read well alone and read as a different
   company the moment you opened the app beside it. Fraunces is an optical
   serif with real character at display sizes; IBM Plex Sans is a workhorse
   with no Silicon Valley accent. The memorable thing is meant to be that
   the LEGAL pages are pleasant to read — a company that typesets its refund
   policy properly is a company that means it.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=IBM+Plex+Sans:wght@400;500;600&display=swap");

:root {
  /* Blue on black, the same language the app speaks. The site used to be
     warm ink and amber, which looked good on its own and looked like a
     different company the moment you opened the app next to it. One brand,
     one palette: iOS blue on a cool near-black.

     Not pure #000 for the page ground - a hair of blue in it keeps large
     dark areas from banding, and gives the blue something to sit against. */
  --ink:        #06070A;
  --ink-2:      #0E1117;
  --ink-3:      #151A22;
  --ivory:      #F2F5F9;
  --ivory-2:    rgba(242, 245, 249, 0.70);
  --ivory-3:    rgba(242, 245, 249, 0.42);
  --amber:      #0A84FF;   /* the app's tint, kept under the old name so
                              every existing rule picks it up unchanged */
  --amber-soft: rgba(10, 132, 255, 0.14);
  --rose:       #64D2FF;   /* the lighter blue, for glows and highlights */
  --rule:       rgba(242, 245, 249, 0.11);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "IBM Plex Sans", "Segoe UI", Helvetica, sans-serif;

  --ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --measure:  68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Atmosphere. Two soft pools of warmth rather than a flat field, plus grain
   over everything so large dark areas don't band on cheap panels. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 14% 0%, rgba(10, 132, 255, 0.14) 0%, transparent 68%),
    radial-gradient(52% 40% at 88% 12%, rgba(100, 210, 255, 0.09) 0%, transparent 66%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 760px; }

/* ── type ──────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.14;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(40px, 7vw, 74px); font-weight: 700; letter-spacing: -0.032em; }
h2 { font-size: clamp(27px, 3.6vw, 38px); margin-bottom: 14px; }
h3 { font-size: 21px; margin-bottom: 8px; }

p { margin: 0 0 17px; max-width: var(--measure); }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ivory); }

.lede {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.56;
  color: var(--ivory-2);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 16px;
}

.small { font-size: 14.5px; color: var(--ivory-2); }

/* ── header ────────────────────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 68px;
}

.brand {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ivory);
  text-decoration: none;
  margin-right: auto;
}

.brand span { color: var(--amber); }

.masthead nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.masthead nav a {
  font-size: 14.5px;
  color: var(--ivory-2);
  text-decoration: none;
}

.masthead nav a:hover { color: var(--ivory); }

@media (max-width: 720px) {
  .masthead nav a.hide-sm { display: none; }
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: #3D9BFF; color: #fff; transform: translateY(-1px); }

.btn-ghost { border-color: var(--rule); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory-3); color: var(--ivory); background: rgba(242, 245, 249, 0.05); }

/* ── sections ──────────────────────────────────────────────────────────── */

section { padding: 84px 0; }
section.tight { padding: 56px 0; }

.hero { padding: 96px 0 72px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* One staggered reveal on load. --i is set inline per element. */
.reveal {
  animation: rise 700ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ── grids and cards ───────────────────────────────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  margin-top: 34px;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px 22px;
}

.card p { margin-bottom: 0; font-size: 15.5px; color: var(--ivory-2); }

.card .num {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

/* ── pricing ───────────────────────────────────────────────────────────── */

.packs {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  margin-top: 34px;
}

.pack {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px 24px;
}

.pack.featured { border-color: rgba(10, 132, 255, 0.45); background: var(--ink-3); }

.pack-tag {
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
}

.pack-name {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-3);
  margin-bottom: 10px;
}

.pack-price {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pack-credits { margin-top: 8px; font-size: 15px; color: var(--ivory-2); }

/* ── legal pages ───────────────────────────────────────────────────────── */

.doc { padding: 64px 0 96px; }

.doc h1 { font-size: clamp(32px, 5vw, 50px); margin-bottom: 10px; }

.doc .updated {
  font-size: 13.5px;
  color: var(--ivory-3);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.doc h2 {
  font-size: 24px;
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.doc h2:first-of-type { border-top: 0; padding-top: 0; }

.doc h3 { font-size: 18px; margin: 26px 0 6px; }

.doc p, .doc li { color: var(--ivory-2); font-size: 16.5px; }

.doc strong { color: var(--ivory); font-weight: 600; }

.doc ul, .doc ol { max-width: var(--measure); padding-left: 22px; margin: 0 0 17px; }
.doc li { margin-bottom: 7px; }

.doc ul li::marker { color: var(--amber); }

/* Anything the operator must replace before this goes live. Loud on purpose:
   a placeholder that ships is worse than no page at all. */
.fill {
  background: var(--amber-soft);
  border-bottom: 1px dashed var(--amber);
  color: var(--amber);
  padding: 0 3px;
  font-weight: 500;
}

.callout {
  background: var(--ink-2);
  border-left: 2px solid var(--amber);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 0 0 20px;
  max-width: var(--measure);
}

.callout p:last-child { margin-bottom: 0; }

/* ── tables ────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; max-width: 100%; margin: 0 0 22px; }

table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15.5px;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
}

th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-3);
}

td { color: var(--ivory-2); }

/* ── faq ───────────────────────────────────────────────────────────────── */

details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
  max-width: var(--measure);
}

summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--amber);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1;
  flex: none;
  transition: transform 220ms var(--ease);
}

details[open] summary::after { transform: rotate(45deg); }

details p { margin: 12px 0 0; color: var(--ivory-2); font-size: 16px; }

/* ── age gate ──────────────────────────────────────────────────────────── */

.agegate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.agegate[hidden] { display: none; }

.agegate-box {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 456px;
  text-align: center;
  animation: rise 460ms var(--ease) both;
}

.agegate-box h2 { font-size: 27px; margin-bottom: 10px; }
.agegate-box p { margin: 0 auto 22px; color: var(--ivory-2); font-size: 15.5px; }

.agegate-actions { display: flex; gap: 11px; justify-content: center; flex-wrap: wrap; }

/* ── footer ────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule);
  padding: 52px 0 64px;
  background: rgba(0, 0, 0, 0.24);
}

.foot-cols {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.5fr repeat(auto-fit, minmax(140px, 1fr));
}

.foot h4 {
  font-family: var(--body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-3);
  margin-bottom: 13px;
}

.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: var(--ivory-2); text-decoration: none; font-size: 14.5px; }
.foot a:hover { color: var(--amber); }

.foot-legal {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px;
  color: var(--ivory-3);
  line-height: 1.66;
}

.foot-legal p { max-width: 82ch; margin-bottom: 10px; }

.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--amber);
  border-radius: 50%;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--body);
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .hero { padding: 64px 0 52px; }
  .wrap { padding: 0 20px; }
}
