/* ============================================================================
   Artist Influence × BMM - Affiliate Portal
   "Designed by Apple" edition · Dark (Apple Music / iOS) · brand-gold accent
   Typography: native SF Pro via the -apple-system stack (real SF Pro on Apple
   hardware → genuine native iOS rendering, license-clean, zero web-font loads).
   ============================================================================ */

:root {
  /* Surfaces - true black like Apple Music / OLED, iOS grouped grays above it */
  --bg: #000000;
  --bg-1: #0a0a0c;
  --bg-2: #141416;
  --card: #1c1c1e;        /* iOS systemGray6 dark - grouped card */
  --card-2: #2c2c2e;      /* iOS systemGray5 dark - fields / nested */
  --card-3: #3a3a3c;      /* iOS systemGray4 dark - controls */

  /* Ink */
  --text: #f5f5f7;        /* Apple near-white */
  --text-2: #a1a1a6;      /* Apple secondary */
  --text-3: #6e6e73;      /* Apple tertiary */

  /* Lines / fills (iOS materials) */
  --sep: rgba(255, 255, 255, 0.12);
  --sep-soft: rgba(255, 255, 255, 0.07);
  --fill: rgba(120, 120, 128, 0.22);   /* iOS systemFill dark */
  --fill-2: rgba(120, 120, 128, 0.16);

  /* Accent - reimagined brand gold, applied with Apple restraint */
  --gold: #fec315;
  --gold-2: #ffd454;
  --gold-press: #ffce33;
  --gold-ink: #1a1402;    /* text on gold */
  --gold-glow: rgba(254, 195, 21, 0.5);

  /* iOS system semantics */
  --green: #30d158;       /* iOS systemGreen dark */
  --red: #ff453a;         /* iOS systemRed dark */

  /* Motion - Apple easing curves */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* the signature reveal ease */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* gentle iOS spring */

  /* Geometry */
  --r-xl: 28px;
  --r-lg: 22px;
  --r: 18px;
  --r-sm: 12px;
  --pill: 980px;
  --blur: saturate(180%) blur(20px);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.7);

  /* Layout */
  --maxw: 980px;
  --maxw-mid: 820px;
  --maxw-text: 660px;
  --nav-h: 52px;

  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
}

html {
  scroll-behavior: smooth;
}

/* Sticky-nav offset so in-page anchors don't hide behind the frosted nav */
#services {
  scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;            /* Apple body */
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
}

/* Faint film grain so the pure-black never banding-bands */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}

button,
select {
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
}

a {
  color: var(--gold);
  text-decoration: none;
}

s {
  color: var(--text-3);
  text-decoration-line: line-through;
}

.is-hidden {
  display: none !important;
}

.screen {
  position: relative;
  z-index: 1;
}

/* iOS-feel screen transition: each screen fades/rises when it becomes visible */
#portal-screen:not(.is-hidden),
#confirm-screen:not(.is-hidden),
#login-screen:not(.is-hidden) {
  animation: screenIn 0.65s var(--ease-out) both;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px) scale(0.992); }
  to { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------- Eyebrow */
.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.06;
  text-align: center;
}

/* ================================ Artist Influence logo (brand red via mask) */
.logo-ai {
  display: inline-block;
  width: 150px;
  aspect-ratio: 415 / 165;
  background-color: #ff5142;
  -webkit-mask: url("/artist-influence-logo.png") center / contain no-repeat;
  mask: url("/artist-influence-logo.png") center / contain no-repeat;
}

.logo-ai--lg {
  width: 224px;
}

/* ===================================================== GLOBAL FROSTED NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--sep-soft);
  padding-top: env(safe-area-inset-top);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.82);
  border-bottom-color: var(--sep);
}

.nav-inner {
  position: relative;
  height: var(--nav-h);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav .logo-ai {
  width: auto;
  height: 29px;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.5));
}

.nav-x {
  color: var(--text-3);
  font-size: 1.1rem;
  font-weight: 300;
}

.nav-bmm {
  display: block;
  width: auto;
  height: 31px;
}

.nav-signout {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  border: 0;
  border-radius: var(--pill);
  background: var(--fill);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-signout svg {
  width: 15px;
  height: 15px;
}

.nav-signout:hover {
  color: var(--text);
  background: var(--fill);
}

/* Nav + footer only belong to the unlocked experience */
html[data-screen="login"] .nav,
html[data-screen="login"] .ftr {
  display: none;
}

/* ============================================================== LOGIN SCREEN */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 20px;
  overflow: hidden;
}

.aurora {
  position: fixed;
  inset: -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(34% 50% at 30% 30%, rgba(254, 195, 21, 0.22), transparent 62%),
    radial-gradient(30% 46% at 72% 32%, rgba(227, 170, 0, 0.16), transparent 64%),
    radial-gradient(42% 56% at 62% 76%, rgba(254, 195, 21, 0.14), transparent 62%);
  filter: blur(30px) saturate(1.05);
  animation: drift 28s ease-in-out infinite alternate;
}

.login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(80% 70% at 50% 46%, transparent 38%, rgba(0, 0, 0, 0.86) 100%);
}

@keyframes drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.04); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.12); }
}

.login-wrap {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 9px;
}

.login-wrap .logo-ai--lg {
  margin-bottom: 16px;
}

.login-title {
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.login-sub {
  color: var(--text-2);
  font-size: 1.06rem;
  max-width: 320px;
}

.login-card {
  width: 100%;
  margin-top: 22px;
  padding: 26px 24px;
  display: grid;
  gap: 16px;
  text-align: left;
  border: 1px solid var(--sep);
  border-radius: var(--r-lg);
  background: rgba(28, 28, 30, 0.62);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

.login-foot {
  margin-top: 20px;
  color: var(--text-3);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

/* ============================================================= FORM CONTROLS */
.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field > span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.field > span small,
.field-label small {
  color: var(--text-2);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  font-size: 16px;          /* keeps iOS Safari from auto-zooming on focus */
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--card-2);
  outline: 0;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

textarea {
  padding: 12px 15px;
  min-height: 84px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  background: #1a1a1c;
  box-shadow: 0 0 0 4px rgba(254, 195, 21, 0.18);
}

/* ==================================================================== BUTTONS */
.btn-primary {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  color: var(--gold-ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 0;
  border-radius: var(--pill);
  background: var(--gold);
  box-shadow: 0 10px 30px rgba(254, 195, 21, 0.22);
  transition: transform 0.18s var(--spring), filter 0.18s var(--ease), opacity 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: scale(1.012);
  box-shadow: 0 14px 38px rgba(254, 195, 21, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  box-shadow: none;
}

/* Apple "Learn more ›" text link */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 500;
  transition: gap 0.2s var(--ease);
}

.link-cta svg {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}

.link-cta:hover {
  gap: 6px;
}

.link-cta:hover svg {
  transform: translateX(2px);
}

.form-msg {
  min-height: 18px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-2);
}

.form-msg:empty {
  display: none;
}

.form-msg.error {
  color: var(--red);
}

.form-msg.success {
  color: var(--gold);
}

/* =============================================================== PORTAL SHELL */
.portal-screen {
  width: min(var(--maxw-mid), calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 80px;
}

/* -------------------------------------------------------------------- HERO */
.hero {
  text-align: center;
  padding: clamp(48px, 11vh, 110px) 0 clamp(14px, 2.5vh, 26px);
  display: grid;
  justify-items: center;
  gap: 14px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -6%;
  left: 50%;
  width: min(760px, 96%);
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 40%, rgba(254, 195, 21, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-title {
  font-size: clamp(1.5rem, 6.4vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.03;
  white-space: nowrap;
}

.hero-sub {
  max-width: 540px;
  color: var(--text-2);
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------ HERO STEPPER */
.portal-hero {
  margin: 0 0 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.steps {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 620px;
}

.step {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 11px;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(254, 195, 21, 0.25));
  z-index: 0;
  transform-origin: left center;
  animation: stepLine 0.6s var(--ease-out) backwards;
}

.step-dot {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-ink);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 22px rgba(254, 195, 21, 0.26);
  animation: stepPop 0.55s var(--spring) backwards;
}

.step-dot svg {
  width: 22px;
  height: 22px;
}

.step:nth-child(1) .step-dot { animation-delay: 0.1s; }
.step:nth-child(2) .step-dot { animation-delay: 0.55s; }
.step:nth-child(3) .step-dot { animation-delay: 1s; }
.step:nth-child(4) .step-dot { animation-delay: 1.45s; }
.step:nth-child(1)::after { animation-delay: 0.32s; }
.step:nth-child(2)::after { animation-delay: 0.77s; }
.step:nth-child(3)::after { animation-delay: 1.22s; }

@keyframes stepPop {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
}

@keyframes stepLine {
  from { transform: scaleX(0); }
}

.step-text {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.28;
  color: var(--text-2);
}

/* ============================================================= TRUST MARQUEE */
.trust {
  margin: 0 0 54px;
}

.trust-label {
  text-align: center;
  margin-bottom: 18px;
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trust-marquee {
  overflow: hidden;
  display: grid;
  padding: 4px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trust-track {
  display: flex;
  align-items: center;
  gap: 54px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
  animation: trustScroll 88s linear infinite;
}

.trust-logo {
  height: 27px;
  width: auto;
  flex: none;
  object-fit: contain;
  opacity: 0.45;
  filter: grayscale(1);
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}

.trust-logo:hover {
  opacity: 0.85;
  filter: grayscale(0);
}

@keyframes trustScroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* =========================================================== SERVICES HEAD */
.services-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--pill);
  background: var(--fill);
  border: 1px solid var(--sep-soft);
}

.promo-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
}

.promo-check svg {
  width: 13px;
  height: 13px;
}

/* ============================================================ SERVICE CARDS */
.services {
  display: grid;
  gap: 16px;
}

.svc {
  position: relative;
  z-index: 1;
  border: 1px solid var(--sep-soft);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.svc:has(.dd-list:not([hidden])) {
  z-index: 10;
}

.svc[data-added="true"] {
  border-color: rgba(254, 195, 21, 0.5);
  box-shadow: 0 0 0 1px rgba(254, 195, 21, 0.2), 0 20px 50px rgba(0, 0, 0, 0.4);
}

.svc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.svc-head-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  width: 100%;
}

.svc-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

.svc-title-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  flex-wrap: wrap;
}

.svc-icon {
  width: 50px;
  height: 50px;
  flex: none;
  object-fit: contain;
  border-radius: 13px;     /* squircle-ish iOS app-icon */
}

.svc-title {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.svc-title .muted {
  color: var(--text-2);
  font-weight: 400;
}

.svc-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  flex: none;
}

.pill {
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--fill);
  border-radius: var(--pill);
  white-space: nowrap;
}

.pill--live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
}

.live-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.6);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.svc-body {
  display: flex;
  padding: 0 22px 22px;
  flex-direction: column;
  gap: 18px;
}

.svc-details-btn {
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold);
  background: var(--fill);
  border: 0;
  border-radius: var(--pill);
  transition: background 0.18s var(--ease), transform 0.12s var(--ease);
}

.svc-details-btn:hover {
  background: var(--fill-2);
  filter: brightness(1.08);
}

.svc-details-btn:active {
  transform: scale(0.97);
}

.svc-desc {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.svc-desc p {
  margin: 0;
}

.svc-desc p + p {
  margin-top: 12px;
}

.svc-toggle-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--sep-soft);
}

.svc-toggle-label {
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* iOS toggle switch (51×31 proportions, gold when on per brand accent) */
.switch {
  position: relative;
  width: 51px;
  height: 31px;
  flex: none;
  border: 0;
  border-radius: var(--pill);
  background: var(--card-3);
  transition: background 0.28s var(--ease);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35), 0 1px 1px rgba(0, 0, 0, 0.2);
  transition: transform 0.32s var(--spring);
}

.switch[aria-checked="true"] {
  background: var(--gold);
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

/* Config */
.svc-config {
  display: grid;
  gap: 16px;
}

.svc-config.is-hidden {
  display: none;
}

/* ====================================================== iOS SEGMENTED CONTROL */
.seg {
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(max-content, 1fr);
  padding: 3px;
  border-radius: 11px;
  background: var(--fill);
}

.seg-thumb {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 8px;
  background: var(--card-3);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4), 0 0 0 0.5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateX(3px);
  transition: transform 0.32s var(--spring), width 0.32s var(--spring), opacity 0.2s var(--ease), background 0.25s var(--ease);
  z-index: 0;
}

.seg[data-active] .seg-thumb {
  opacity: 1;
}

/* Gold thumb variant for the premium tier control */
.seg--gold[data-active] .seg-thumb {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 4px 12px rgba(254, 195, 21, 0.3);
}

.seg button {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-2);
  border: 0;
  border-radius: 8px;
  background: transparent;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.seg button.active {
  color: var(--text);
  font-weight: 600;
}

.seg--gold button.active {
  color: var(--gold-ink);
}

/* Release-status control: selected segment reads as clearly "on" with a
   deeper gold chip + black text (scoped to just this control). */
.seg[data-role="release"][data-active] .seg-thumb {
  background: linear-gradient(180deg, #e3ad06, #cf9b00);
  box-shadow: 0 4px 12px rgba(207, 155, 0, 0.38);
}

.seg[data-role="release"] button.active {
  color: #000;
  font-weight: 700;
}

/* Premium Tier 1 keeps its star mark */
.seg--gold button[data-tier="Tier 1"]::before {
  content: "✦";
  margin-right: 6px;
  font-size: 0.85em;
}

.seg-note {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.45;
  max-width: 560px;
}

/* ===================================================== iOS-STYLE MENU (dropdown) */
.dd {
  position: relative;
  max-width: 340px;
}

.dd-btn {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: var(--text);
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--card-2);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.dd-btn:hover {
  background: #242426;
}

.dd-btn[aria-expanded="true"] {
  border-color: var(--gold);
}

.dd-cur-label {
  flex: 1;
  text-align: left;
}

.dd-cur-price b {
  color: var(--text);
  margin-left: 2px;
}

.dd-caret {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-2);
  transition: transform 0.2s var(--ease);
}

.dd-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 7px;
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--sep);
  border-radius: 16px;
  background: rgba(44, 44, 46, 0.82);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-pop);
  transform-origin: top center;
  animation: menuPop 0.22s var(--ease-out);
}

@keyframes menuPop {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 8px;
  border-radius: 10px;
  cursor: pointer;
}

.dd-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dd-check {
  width: 18px;
  flex: none;
  color: var(--gold);
  opacity: 0;
  font-weight: 700;
}

.dd-opt.is-sel .dd-check {
  opacity: 1;
}

.dd-opt-label {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
}

.dd-opt-price {
  white-space: nowrap;
  color: var(--text-2);
}

.dd-opt-price b {
  color: var(--text);
  margin-left: 3px;
}

/* ============================================== Custom release-date picker */
.dp {
  position: relative;
}

.dp-trigger {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  font-size: 16px;
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--card-2);
  text-align: left;
  transition: border-color 0.18s var(--ease);
}

.dp-trigger:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(254, 195, 21, 0.18);
}

.dp-cal {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-2);
}

.dp-value {
  color: var(--text-3);
}

.dp.is-set .dp-value {
  color: var(--text);
}

.dp-pop {
  position: absolute;
  z-index: 60;
  top: calc(100% + 8px);
  left: 0;
  width: min(322px, 100%);
  padding: 16px;
  border: 1px solid var(--sep);
  border-radius: 18px;
  background: rgba(28, 28, 30, 0.9);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow-pop);
  transform-origin: top center;
  animation: menuPop 0.22s var(--ease-out);
}

.dp-pop[hidden] {
  display: none;
}

.dp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.dp-nav {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 0;
  background: var(--fill);
  color: var(--text);
  transition: background 0.15s var(--ease), opacity 0.15s var(--ease);
}

.dp-nav svg {
  width: 16px;
  height: 16px;
}

.dp-nav:hover:not(:disabled) {
  background: var(--card-3);
}

.dp-nav:disabled {
  opacity: 0.3;
}

.dp-weekdays,
.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.dp-weekdays span {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  padding-bottom: 6px;
}

.dp-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.12s var(--ease), transform 0.12s var(--spring);
}

.dp-day:hover:not(:disabled):not(.is-empty) {
  background: rgba(255, 255, 255, 0.12);
}

.dp-day.is-selected {
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}

.dp-day:disabled {
  color: var(--text-3);
}

.dp-day.is-empty {
  visibility: hidden;
}

/* ====================================================================== CART */
.cart {
  margin-top: 30px;
  padding: 26px 24px;
  border: 1px solid var(--sep-soft);
  border-radius: var(--r-lg);
  background: var(--card);
}

.cart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.cart-head h2 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cart-empty {
  color: var(--text-2);
  font-size: 0.98rem;
}

/* iOS grouped inset list */
.cart-lines {
  list-style: none;
  display: grid;
  gap: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card-2);
}

.cart-lines:empty {
  display: none;
}

.cart-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 38px 15px 16px;
  background: transparent;
}

.cart-line + .cart-line {
  border-top: 1px solid var(--sep-soft);
}

.cart-x {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text-3);
  border: 0;
  border-radius: 50%;
  background: var(--fill);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.cart-x svg {
  width: 11px;
  height: 11px;
  display: block;
}

.cart-x:hover {
  color: #fff;
  background: var(--red);
}

.cart-line-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  object-fit: contain;
}

.cart-line-info {
  flex: 1;
  min-width: 0;
}

.cart-line-svc {
  font-weight: 600;
}

.cart-line-opt {
  font-size: 0.86rem;
  color: var(--text-2);
  margin-top: 2px;
}

.cart-line-price {
  text-align: right;
  white-space: nowrap;
}

.cart-line-price s {
  display: block;
  font-size: 0.8rem;
}

.cart-line-price strong {
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text);
}

/* Details form */
.details {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--sep-soft);
  display: grid;
  gap: 16px;
}

.details.is-hidden {
  display: none;
}

.details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.018em;
}

.field-label {
  display: block;
  margin-bottom: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}

/* Totals + submit */
.cart-foot {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.cart-totals[hidden] {
  display: none;
}

.cart-totals {
  display: grid;
  gap: 9px;
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--card-2);
}

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.98rem;
  color: var(--text-2);
}

.cart-total-row.discount {
  color: var(--green);
  font-weight: 500;
}

.cart-total-row.grand {
  margin-top: 5px;
  padding-top: 13px;
  border-top: 1px solid var(--sep-soft);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cart-total-row.grand span:last-child {
  color: var(--text);
}

.btn-submit {
  margin-top: 2px;
}

.cart-fineprint {
  text-align: center;
  color: var(--text-2);
  font-size: clamp(0.62rem, 1.9vw, 0.84rem);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

.cart-fineprint strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================= CONTACT CARD */
.contact-card {
  margin-top: 30px;
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid var(--sep-soft);
  border-radius: var(--r-lg);
  background: var(--card);
}

.contact-id {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.contact-id > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contact-avatar {
  width: 70px;
  height: 70px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  background: #1a160c;
}

.contact-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.08);
  transform-origin: center 45%;
}

.contact-avatar-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-ink);
  background: linear-gradient(160deg, var(--gold-2), var(--gold));
}

.contact-name {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.contact-title {
  color: var(--gold);
  font-size: 0.96rem;
  font-weight: 500;
}

.contact-role {
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 360px;
}

.contact-tiles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 17px;
  border-radius: var(--r-sm);
  background: var(--card-2);
  color: var(--text);
  text-decoration: none;
  transition: background 0.18s var(--ease), transform 0.12s var(--ease);
}

.contact-tile:hover {
  background: var(--card-3);
  transform: translateY(-1px);
}

.contact-tile:active {
  transform: translateY(0);
}

.contact-tile svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.contact-tile-text {
  display: grid;
  line-height: 1.25;
  text-align: center;
}

.contact-tile-text strong {
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-tile--email svg {
  color: var(--gold);
}

.contact-tile--web svg {
  color: var(--text);
}

/* ============================================================ STATS BAND */
.stats {
  margin-top: 60px;
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  text-align: center;
}

.stat {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.stat-num {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #c9c9ce);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-text {
  font-size: 0.92rem;
  color: var(--text-2);
}

/* ============================================================ CONFIRMATION */
.confirm-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 80px 20px 60px;
}

.confirm-wrap {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.confirm-check {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 6px;
  color: var(--gold-ink);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 36px rgba(254, 195, 21, 0.32);
  animation: checkPop 0.6s var(--spring) both;
}

@keyframes checkPop {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.1); }
  to { transform: scale(1); opacity: 1; }
}

.confirm-check svg {
  width: 34px;
  height: 34px;
}

.confirm-title {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.confirm-lead {
  max-width: 440px;
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.45;
}

.confirm-steps {
  list-style: none;
  display: grid;
  gap: 0;
  width: 100%;
  margin-top: 12px;
  text-align: left;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--sep-soft);
}

.confirm-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 19px;
}

.confirm-step + .confirm-step {
  border-top: 1px solid var(--sep-soft);
}

.confirm-step.is-hidden {
  display: none;
}

.confirm-step img {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
}

.confirm-step span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-2);
}

.confirm-step strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.confirm-order {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.confirm-back {
  max-width: 340px;
  margin-top: 12px;
}

/* ===================================================== APPLE-STYLE FOOTER */
.ftr {
  margin-top: 28px;
  background: var(--bg);
  font-size: 0.78rem;
  color: var(--text-2);
}

.ftr-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 22px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Brand mark centered beneath the stats; links to the main site. */
.ftr-logo {
  display: inline-flex;
}

.ftr-logo .logo-ai {
  width: 128px;
}

/* ================================================================ RESPONSIVE */
@media (max-width: 740px) {
  .details-grid {
    grid-template-columns: 1fr;
  }

  .dd {
    max-width: none;
  }

  .contact-card {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-tiles {
    flex-direction: column;
  }

  .ftr-directory {
    grid-template-columns: repeat(2, 1fr);
  }

  .ftr-region {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 93.75%;
  }

  .portal-screen {
    width: min(var(--maxw-mid), calc(100% - 28px));
  }

  .hero {
    padding-top: 44px;
  }

  .nav .logo-ai { height: 25px; }
  .nav-bmm { height: 27px; }
  .nav-signout span { display: none; }
  .nav-signout { padding: 0; width: 32px; justify-content: center; }

  .steps {
    transform: scale(0.86);
    transform-origin: center top;
    margin: 6px 0 -8px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .cart,
  .contact-card {
    padding: 20px 18px;
  }

  .trust-logo {
    height: 23px;
  }

  .ftr-directory {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .trust-track {
    animation: none;
  }
}
