/* ─── iOS Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:            #000;
  --bg2:           #1c1c1e;
  --bg3:           #2c2c2e;
  --bg4:           #3a3a3c;
  --label:         #fff;
  --label2:        rgba(235,235,245,.6);
  --label3:        rgba(235,235,245,.3);
  --separator:     rgba(84,84,88,.65);
  --fill:          rgba(120,120,128,.36);
  --fill2:         rgba(120,120,128,.32);
  --fill3:         rgba(118,118,128,.24);
  --blue:          #0a84ff;
  --green:         #30d158;
  --indigo:        #5e5ce6;
  --pink:          #ff375f;
  --purple:        #bf5af2;
  --red:           #ff453a;
  --teal:          #5ac8f5;
  --yellow:        #ffd60a;
  --radius-sm:     10px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-pill:   999px;
  --shadow-card:   0 2px 8px rgba(0,0,0,.5), 0 8px 32px rgba(0,0,0,.4);
  --shadow-sheet:  0 -2px 40px rgba(0,0,0,.7);
  --spring:        cubic-bezier(.34,1.56,.64,1);
  --ease-ios:      cubic-bezier(.25,.46,.45,.94);
  --font:          -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont, system-ui, sans-serif;
  --font-rounded:  -apple-system, "SF Pro Rounded", "SF Pro Display", BlinkMacSystemFont, system-ui, sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 18% 12%, rgba(69,244,255,.34), transparent 28%),
    radial-gradient(circle at 83% 18%, rgba(255,74,162,.34),  transparent 30%),
    radial-gradient(circle at 20% 86%, rgba(255,211,108,.28), transparent 34%),
    linear-gradient(135deg, #090b14 0%, #1a1019 42%, #071515 100%);
  background-attachment: fixed;
  color: var(--label);
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* ─── Page Shell ─────────────────────────────────────────────────── */
.page-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  background: transparent;
}

.profile-card {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: transparent;
}

/* ─── Mini Header (sticky) ───────────────────────────────────────── */
.mini-header {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 430px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 10px;
  background: rgba(28,28,30,.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--separator);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease-ios);
}
.mini-header.visible { opacity: 1; pointer-events: auto; }
.mini-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg4);
  overflow: hidden;
  flex-shrink: 0;
}
.mini-avatar {
  background: url('../images/Angi-Header.jpeg') center/cover no-repeat;
}
.mini-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.3px;
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 380px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: url('../images/Angi-Header.jpeg') center/cover no-repeat;
}
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.85) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 20px 24px;
  z-index: 1;
}
.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.name-row h1 {
  font-family: var(--font-rounded);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .3px;
}
.verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ─── Social Icons ───────────────────────────────────────────────── */
.social-row {
  display: flex;
  gap: 10px;
}
.social {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none;
  transition: transform .12s var(--spring);
  cursor: pointer;
}

.social.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
}

.social.youtube {
  background: #ff0000;
}

.social.tiktok {
  background: #000;
  border: 1.5px solid #333;
}

.social svg { width: 20px; height: 20px; }
/* ─── Link Area ──────────────────────────────────────────────────── */
.link-area {
  flex: 1;
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Feature Card ───────────────────────────────────────────────── */
.feature-card {
  position: relative;
  display: block;
  height: 140px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: rgba(28,28,30,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow-card);
  transition: transform .18s var(--spring), box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
  border: .5px solid rgba(255,255,255,.08);
}
.feature-card:active {
  transform: scale(.96);
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.photo-placeholder {
  position: absolute; inset: 0;
  background: url('../images/Angi-lernmichkennen.png') center/cover no-repeat;
}

.tiktok-card .photo-placeholder {
  background: url('../images/Angi-tiktok.png') center/cover no-repeat;
}
.youtube-card .photo-placeholder {
  background: url('../images/Angi-youtube.png') center/cover no-repeat;
}
.instagram-card .photo-placeholder {
  background: url('../images/angi-insta.png') center/cover no-repeat;
}
.card-dim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.72) 100%);
}
.brand-dot {
  position: absolute;
  top: 14px; left: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  border: .5px solid rgba(255,255,255,.15);
}
.card-title {
  position: absolute;
  bottom: 14px; left: 16px; right: 16px;
  font-family: var(--font-rounded);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.2px;
}

/* ─── iOS Action Sheet reveal ────────────────────────────────────── */
.exclusive-portal-state,
.maloum-portal-state {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(28,28,30,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: .5px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-card);
  transform: scaleY(.5) translateY(-16px);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  transition:
    transform .32s var(--spring),
    opacity .22s var(--ease-ios),
    max-height .32s var(--ease-ios);
}
.exclusive-portal-state.portal-visible,
.maloum-portal-state.portal-visible {
  transform: scaleY(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
  max-height: 400px;
}

/* ─── Action Buttons inside portals ─────────────────────────────── */
.exclusive-updates-button,
.maloum-action-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  color: var(--blue);
  cursor: pointer;
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}
.exclusive-updates-button::after,
.maloum-action-button::after {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-right: 2px solid var(--label3);
  border-top: 2px solid var(--label3);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.exclusive-updates-button:active,
.maloum-action-button:active {
  background: var(--fill3);
}



/* ─── Small Grid ─────────────────────────────────────────────────── */
.small-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.small-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg2);
  box-shadow: var(--shadow-card);
  transition: transform .18s var(--spring), box-shadow .18s;
  -webkit-tap-highlight-color: transparent;
  border: .5px solid rgba(255,255,255,.08);
}
.small-card:active {
  transform: scale(.93);
  box-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.corner-icon {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
}
.corner-icon svg { width: 16px; height: 16px; }
.logo-title { display: none; }
.small-card-title {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-rounded);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  letter-spacing: -.1px;
}

/* ─── Story Stack ─────────────────────────────────────────────────── */
.story-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: url('../images/Angi-beschreibung.jpeg') center/cover no-repeat;
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: .5px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-card);
  padding: 6px;
}
.story-card {
  padding: 16px 18px;
  position: relative;
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
  background: rgba(0,0,0,.55);
  border-radius: 14px;
}
.story-copy h2 {
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  letter-spacing: -.2px;
  margin-bottom: 4px;
}
.story-copy p {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  padding: 18px 20px 32px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--label3);
}
footer a {
  color: var(--label3);
  transition: color .15s;
}
footer a:active { color: var(--label2); }
footer span { color: var(--separator); }

/* ─── iOS Tap Feedback (JS adds .tapping) ────────────────────────── */
@keyframes ios-tap-in {
  0%   { transform: scale(1); }
  40%  { transform: scale(.96); }
  100% { transform: scale(.96); }
}

/* ─── Action Sheet (iOS bottom sheet) ───────────────────────────── */
.ios-action-sheet-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background .22s var(--ease-ios);
}
.ios-action-sheet-overlay.open {
  background: rgba(0,0,0,.45);
  pointer-events: auto;
}
.ios-action-sheet {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%) translateY(100%);
  width: 100%; max-width: 430px;
  z-index: 201;
  padding: 0 8px calc(env(safe-area-inset-bottom) + 8px);
  transition: transform .4s var(--spring);
  will-change: transform;
}
.ios-action-sheet.open {
  transform: translateX(-50%) translateY(0);
}
.ios-action-sheet-group {
  background: rgba(44,44,46,.96);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 8px;
}
.ios-action-sheet-title {
  padding: 14px 16px 10px;
  text-align: center;
  border-bottom: .5px solid var(--separator);
}
.ios-action-sheet-title strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--label);
  margin-bottom: 4px;
}
.ios-action-sheet-title span {
  font-size: 13px;
  color: var(--label2);
}
.ios-sheet-action {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 20px;
  font-weight: 400;
  color: var(--blue);
  border: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background .08s;
  -webkit-tap-highlight-color: transparent;
  border-top: .5px solid var(--separator);
  font-family: var(--font);
}
.ios-sheet-action:first-of-type { border-top: none; }
.ios-sheet-action.destructive { color: var(--red); }
.ios-sheet-action.bold { font-weight: 600; }
.ios-sheet-action:active { background: rgba(255,255,255,.06); }
.ios-sheet-cancel {
  background: rgba(44,44,46,.96);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* ─── iOS Browser Guidance ───────────────────────────────────────── */
.ios-browser-guidance {
  position: fixed; inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 110px;
  padding-bottom: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  padding-bottom: env(safe-area-inset-bottom);
  transition: opacity .22s var(--ease-ios);
}
.ios-browser-guidance.hidden {
  opacity: 0;
  pointer-events: none;
}
.ios-browser-guide-wrap {
  width: 100%;
  padding: 0 16px 16px;
  position: relative;
}
.ios-browser-pointer {
  width: 100px;
  position: absolute;
  top: -90px; right: 24px;
}
.ios-browser-card {
  background: rgba(44,44,46,.97);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border-radius: var(--radius-xl);
  padding: 16px 18px 18px;
  border: .5px solid rgba(255,255,255,.1);
}
.ios-browser-card-top {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.ios-browser-card-top span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fill);
}
.ios-browser-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  counter-reset: step;
}
.ios-browser-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  counter-increment: step;
}
.ios-browser-steps li::before {
  content: counter(step);
  min-width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ios-step-copy {
  font-size: 15px;
  color: var(--label);
  line-height: 1.45;
}
.ios-open-icon {
  display: inline-block;
  width: 20px; height: 20px;
  background: url('../images/ios-external-browser-icon.png') center/cover no-repeat;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 2px;
}

/* ─── Tap ripple ─────────────────────────────────────────────────── */
@keyframes ripple {
  to { transform: scale(2.4); opacity: 0; }
}

/* ─── Animated entry ─────────────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.link-area > * {
  animation: fadeSlideUp .38s var(--ease-ios) both;
}
.link-area > *:nth-child(1) { animation-delay: .05s; }
.link-area > *:nth-child(2) { animation-delay: .10s; }
.link-area > *:nth-child(3) { animation-delay: .14s; }
.link-area > *:nth-child(4) { animation-delay: .18s; }
.link-area > *:nth-child(5) { animation-delay: .22s; }
.link-area > *:nth-child(6) { animation-delay: .26s; }
.link-area > *:nth-child(7) { animation-delay: .30s; }

/* ─── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* ─── Responsive / Media Queries (portiert aus alter CSS) ────────── */

/* Desktop: Karte als floating Panel, Hintergrund sichtbar */
@media (min-width: 760px) {
  body {
    padding: 42px 0 70px;
  }
  .page-shell {
    width: min(100%, 430px);
    min-height: auto;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,.12);
    border-right: 1px solid rgba(255,255,255,.12);
    box-shadow:
      0 28px 80px rgba(0,0,0,.58),
      0 0 90px rgba(69,244,255,.12),
      0 0 120px rgba(255,74,162,.12);
  }
}

/* Mobil (≤ 520px) */
@media (max-width: 520px) {
  .page-shell {
    width: 100%;
  }
  .profile-card,
  .hero {
    border-radius: 0;
  }
  .hero {
    min-height: 540px;
  }
  .hero-media {
    clip-path: inset(0);
  }
  .hero-content,
  .link-area {
    padding-left: 16px;
    padding-right: 16px;
  }
  .feature-card {
    min-height: 0;
  }
  .small-grid {
    gap: 10px;
  }
  .small-card {
    min-height: 140px;
  }
  .story-stack {
    gap: 4px;
    margin-top: 14px;
  }
  .story-card {
    min-height: 0;
    padding: 14px 16px;
  }
  .story-copy h2 {
    font-size: clamp(15px, 4vw, 18px);
  }
  .story-copy p {
    font-size: 13px;
    line-height: 1.44;
  }
  .more-strip {
    min-height: 64px;
    padding: 13px 14px;
  }
  .more-strip-logo {
    width: 36px;
    height: 36px;
  }
  footer {
    padding-bottom: 34px;
  }
  .exclusive-portal-state,
  .maloum-portal-state {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .exclusive-updates-button,
  .maloum-action-button {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 14px;
    font-size: clamp(24px, 8vw, 32px);
    line-height: 1.05;
  }
  .ios-browser-guide-wrap {
    top: 8px;
    right: 8px;
    width: min(21rem, calc(100vw - 1rem));
  }
  .ios-browser-pointer {
    width: 118px;
    height: 88px;
    right: -60px;
  }
  .ios-browser-card {
    margin-top: 10px;
    margin-left: 60px;
    width: calc(100% - 18px);
    padding: 14px;
    border-radius: 20px;
  }
  .ios-browser-steps li {
    font-size: 14px;
  }
}

/* Sehr kleines Handy (≤ 380px) */
@media (max-width: 380px) {
  .name-row h1 {
    font-size: 28px;
  }
  .feature-card {
    height: 120px;
  }
  .card-title {
    font-size: 17px;
  }
  .social {
    width: 36px;
    height: 36px;
  }
  .link-area {
    padding: 6px 12px 20px;
    gap: 8px;
  }
  .exclusive-updates-button,
  .maloum-action-button {
    padding: 0 10px;
    font-size: clamp(21px, 7.2vw, 28px);
  }
}

/* ─── NEUER CTA BUTTON ─── */
.stage { position:relative; text-align:center; padding: 30px 0; }
.kicker { color:#c9b6ff; opacity:.7; font-size:14px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; margin:0 0 24px; animation:kick 2.2s ease-in-out infinite; }
.wrap { position:relative; display:inline-block; }
.ring { position:absolute; inset:0; border-radius:30px; border:2px solid rgba(168,85,247,.6); pointer-events:none; }
.ring.r1 { animation:ripple 1.6s ease-out infinite; }
.ring.r2 { animation:ripple 1.6s ease-out infinite .8s; }

.squircle {
  position:relative; z-index:2; width:312px; padding:38px 34px; border:0; cursor:pointer;
  border-radius:30px;
  background:linear-gradient(165deg,#b06bff 0%,#8b3df0 40%,#6a1fc7 100%);
  color:#fff; text-align:center;
  box-shadow:0 14px 40px rgba(139,61,240,.55), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 8px rgba(60,10,120,.45);
  -webkit-tap-highlight-color:transparent;
  transition:transform .18s cubic-bezier(.2,.9,.2,1);
  animation:pump 1.6s ease-in-out infinite;
}
.squircle:active { transform:scale(.96); }
.squircle::after {
  content:""; position:absolute; inset:0; border-radius:30px; overflow:hidden;
  background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.38) 50%,transparent 65%);
  background-size:250% 100%; animation:sheen 2.4s linear infinite; pointer-events:none;
}

.sq-title { position:relative; z-index:1; font-size:30px; font-weight:700; letter-spacing:-.02em; margin:0 0 8px; text-shadow:0 2px 12px rgba(50,10,110,.55); }
.sq-sub { position:relative; z-index:1; font-size:16px; font-weight:500; margin:0; display:flex; align-items:center; justify-content:center; gap:9px; }
.chev { display:inline-flex; width:26px; height:26px; border-radius:50%; background:rgba(255,255,255,.24); align-items:center; justify-content:center; font-size:18px; animation:nudge 1s ease-in-out infinite; }

@keyframes pump {
  0%,100% { transform:scale(1); box-shadow:0 14px 40px rgba(139,61,240,.55), inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 8px rgba(60,10,120,.45); }
  50% { transform:scale(1.035); box-shadow:0 22px 64px rgba(168,85,247,.85), inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 8px rgba(60,10,120,.45); }
}
@keyframes ripple { 0% { transform:scale(1); opacity:.7; } 100% { transform:scale(1.5); opacity:0; } }
@keyframes sheen { 0% { background-position:140% 0; } 100% { background-position:-140% 0; } }
@keyframes nudge { 0%,100% { transform:translateX(0); } 50% { transform:translateX(5px); } }
@keyframes kick { 0%,100% { opacity:.5; } 50% { opacity:1; } }

/* ─── Live compatibility / safety layer ────────────────────────────
   Keeps the current portal.min.js behavior stable with the new design.
   The script expects .hidden to hide elements and uses .portal-fading
   during the reveal transition.
*/
.hidden {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

.feature-card.portal-fading,
.more-strip.portal-fading {
  opacity: 0;
  transform: translateY(-8px) scale(.985);
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity .38s var(--ease-ios),
    transform .38s var(--ease-ios),
    filter .38s var(--ease-ios);
}

/* Keep current JS-added utility classes harmless/useful without requiring Tailwind. */
.flex {
  display: flex !important;
}
.items-center {
  align-items: center !important;
}
.justify-center {
  justify-content: center !important;
}

/* Prevent initial one-frame portal flashes and keep reveal states controlled by JS. */
#exclusivePortalState.hidden,
#maloumPortalState.hidden,
#iosBrowserGuidance.hidden,
#iosInlineGuidance.hidden,
#iosGuidanceToast.hidden {
  display: none !important;
}

/* Current portal.min.js sets inline opacity/transform when revealing.
   These rules keep the new iOS design layout intact after that happens. */
#exclusivePortalState.portal-visible,
#maloumPortalState.portal-visible {
  display: block;
  max-height: 420px;
}

/* Safer button reset for the new <button> CTAs. */
.squircle {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

/* Additional iOS guidance fallback for narrower/newer in-app webviews. */
@media (max-width: 430px) {
  .ios-browser-guidance {
    padding-top: 96px;
  }

  .ios-browser-pointer {
    right: -60px;
  }
}

/* ─── iOS guidance size polish ─────────────────────────────────────
   Makes the instruction card slightly larger while preserving the
   arrow position that worked on iPhone-sized viewports.
*/
.ios-browser-card {
  padding: 18px 20px 20px;
}

.ios-browser-steps {
  gap: 10px;
}

.ios-browser-steps li::before {
  min-width: 24px;
  height: 24px;
  font-size: 14px;
}

.ios-step-copy {
  font-size: 16px;
  line-height: 1.48;
}

@media (max-width: 520px) {
  .ios-browser-pointer {
    right: -60px;
  }

  .ios-browser-card {
    margin-top: 10px;
    margin-left: 60px;
    width: calc(100% - 8px);
    padding: 16px 18px;
    border-radius: 22px;
  }

  .ios-browser-steps {
    gap: 10px;
  }

  .ios-browser-steps li::before {
    min-width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .ios-step-copy {
    font-size: 15.5px;
    line-height: 1.48;
  }
}

@media (max-width: 430px) {
  .ios-browser-pointer {
    right: -60px;
  }
}
