:root {
  --bg: #070709;
  --ink: #f6f3ec;
  --muted: rgba(246, 243, 236, 0.58);
  --gold: #f2c94c;
  --gold-deep: #d4a82e;
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Sora", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

/* —— Atmosphere —— */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(165deg, #0c0c12 0%, #070709 42%, #090b10 100%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform, opacity;
}

.bg-orb--gold {
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  top: -12%;
  left: -18%;
  background: radial-gradient(circle, rgba(242, 201, 76, 0.28) 0%, transparent 68%);
  animation: drift 14s var(--ease) infinite alternate;
}

.bg-orb--cool {
  width: min(65vw, 480px);
  height: min(65vw, 480px);
  right: -20%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(88, 120, 170, 0.22) 0%, transparent 70%);
  animation: drift 18s var(--ease) infinite alternate-reverse;
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  to {
    transform: translate(18px, 22px) scale(1.08);
    opacity: 1;
  }
}

/* —— Shell —— */
.shell {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
}

.brand,
.lede,
.offer,
.actions,
.tips,
.foot {
  animation: rise 0.85s var(--ease) both;
}

.lede {
  animation-delay: 0.08s;
}
.offer {
  animation-delay: 0.14s;
}
.actions {
  animation-delay: 0.2s;
}
.tips {
  animation-delay: 0.28s;
}
.foot {
  animation-delay: 0.34s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-orb,
  .brand,
  .lede,
  .offer,
  .actions,
  .tips,
  .foot {
    animation: none !important;
  }
}

/* —— Brand (hero) —— */
.brand {
  margin-bottom: 1.35rem;
}

.mark {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.85rem, 11vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 0.95;
  background: linear-gradient(180deg, #fff8e7 10%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mark-soft {
  font-weight: 500;
  letter-spacing: -0.03em;
}

.tag {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}

.lede {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  max-width: 32ch;
}

.offer {
  margin: 0 0 1.6rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(242, 201, 76, 0.35);
}

/* —— CTAs —— */
.actions {
  display: grid;
  gap: 0.7rem;
}

.btn {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.25s ease;
}

.btn:active {
  transform: scale(0.985);
}

.btn-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.btn-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.btn-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.68;
}

.btn-label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.btn-sub {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.65;
  line-height: 1.3;
}

.btn-arrow {
  font-size: 1.05rem;
  opacity: 0.55;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.btn:hover .btn-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.btn-primary:hover .btn-arrow {
  transform: translateY(2px);
}

.btn-primary {
  background: linear-gradient(165deg, #ffe08a 0%, var(--gold) 45%, var(--gold-deep) 100%);
  color: #12110c;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 32px rgba(242, 201, 76, 0.22);
}

.btn-primary .btn-kicker {
  opacity: 0.7;
  color: #3a320f;
}

.btn-primary .btn-icon {
  background: rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  filter: brightness(1.03);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16) inset,
    0 16px 40px rgba(242, 201, 76, 0.32);
}

.btn-ios {
  background:
    linear-gradient(145deg, rgba(242, 201, 76, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(242, 201, 76, 0.32);
  backdrop-filter: blur(10px);
}

.btn-ios:hover {
  border-color: rgba(242, 201, 76, 0.55);
  background: linear-gradient(145deg, rgba(242, 201, 76, 0.18), rgba(255, 255, 255, 0.05));
}

.btn-ghost {
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.btn.is-spotlight {
  box-shadow:
    0 0 0 1px rgba(242, 201, 76, 0.45),
    0 10px 28px rgba(242, 201, 76, 0.12);
}

.btn-primary.is-spotlight {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 14px 40px rgba(242, 201, 76, 0.38);
}

/* —— Tips —— */
.tips {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.55rem;
}

.hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hint strong {
  color: rgba(246, 243, 236, 0.88);
  font-weight: 600;
}

.hint.is-warn {
  color: #ffb4a8;
  border-color: rgba(255, 140, 120, 0.25);
  background: rgba(255, 80, 60, 0.08);
}

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

/* —— Footer —— */
.foot {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.foot a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 201, 76, 0.4);
  transition: color 0.15s ease;
}

.foot a:hover {
  color: var(--gold);
}

/* —— Instagram gate —— */
.igate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(14px);
}

.igate[hidden] {
  display: none !important;
}

.igate-card {
  width: min(400px, 100%);
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(242, 201, 76, 0.28);
  background:
    linear-gradient(165deg, rgba(30, 28, 22, 0.96), rgba(10, 10, 14, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: rise 0.5s var(--ease) both;
}

.igate-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb4a8;
}

.igate-title {
  margin: 0 0 0.55rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.igate-text {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.igate-btn {
  width: 100%;
  margin-bottom: 0.65rem;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.igate-btn.btn-primary {
  display: flex;
  justify-content: space-between;
}

.igate-btn.btn-ghost {
  display: flex;
}

.igate-alt {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  word-break: break-all;
}

.igate-steps {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.igate-steps li {
  margin-bottom: 0.45rem;
}

.igate-steps strong {
  color: var(--ink);
}

.igate-copied {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
}

body.igate-open {
  overflow: hidden;
}

/* —— iOS install page —— */
.back {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
}

.back a {
  color: var(--muted);
  text-decoration: none;
}

.back a:hover {
  color: var(--gold);
}

.steps {
  margin: 0 0 1.4rem;
  padding: 0 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.steps li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.steps strong {
  color: var(--ink);
  font-weight: 600;
}

.steps-big {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.steps-big li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.step-num {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(242, 201, 76, 0.18);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-body {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
  padding-top: 0.15rem;
}

.step-share {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  border: 1px solid rgba(242, 201, 76, 0.35);
  font-size: 0.72rem;
  color: var(--gold);
}
