/* Homepage Styles for sc-andinavia */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  margin: 0;
  padding: 0;
}

:root {
  --accent-primary: #000000;
  --accent-light: #ffffff;
  --accent-tan: #c9c7b3;
  --accent-dark-bg: #111111;
  --top-axis-offset: clamp(92px, 10.5vh, 132px);
  --audio-line-offset: clamp(28px, 3.2vh, 44px);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: true;
}

body[data-theme="dark"] {
  --accent-primary: #c9c7b3;
  --accent-light: #111111;
  --accent-tan: #c9c7b3;
  --accent-dark-bg: #000000;
  color-scheme: dark;
}

body[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #000000;
  font-family: var(--theme-font-homepage-base, Helvetica, Arial, sans-serif);
  font-size: var(--theme-text-size-md, 12px);
  line-height: var(--theme-line-height-body, 1.35);
  overflow-x: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  grid-auto-rows: auto;
  align-items: stretch;
}

body[data-theme="dark"] {
  background: #000000;
  color: #c9c7b3;
}

header {
  grid-column: 1 / -1;
}

header.sc-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
}

.hero {
  grid-column: 1;
  grid-row: 1;
}

.pocket-section {
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid rgba(0, 0, 0, 0);
  position: relative;
  top: auto;
  align-self: stretch;
  height: auto;
  overflow: visible;
}

.right-pricing-section {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

body[data-theme="dark"] .pocket-section {
  border-left-color: rgba(0, 0, 0, 0);
}

.subhero,
.info-card-section,
.about-preview,
.info-section,
footer,
.index-bottom-spacer {
  grid-column: 1;
  min-width: 0;
}

.subhero { grid-row: 2; }
.about-preview { grid-row: 3; }
.info-card-section { grid-row: 4; }
.info-section { grid-row: 5; }
footer { grid-row: 6; }
.index-bottom-spacer { grid-row: 7; }

@media (min-width: 769px) {
  .hero,
  .subhero,
  .features,
  .about-preview,
  .info-card-section,
  .info-section,
  footer,
  .index-bottom-spacer {
    transition: filter 260ms ease, opacity 260ms ease;
  }

  body.pocket-left-blur-active .hero,
  body.pocket-left-blur-active .subhero,
  body.pocket-left-blur-active .features,
  body.pocket-left-blur-active .about-preview,
  body.pocket-left-blur-active .info-card-section,
  body.pocket-left-blur-active .info-section,
  body.pocket-left-blur-active footer,
  body.pocket-left-blur-active .index-bottom-spacer {
    filter: blur(10px);
    opacity: 0.52;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

/* Header Navigation */
header {
  position: sticky;
  top: 0;
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: none;
}

body[data-theme="dark"] header {
  background: transparent;
  border-bottom-color: rgba(0, 0, 0, 0);
  box-shadow: none;
}

.logo {
  font-weight: 600;
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-caps-xl, 0.06em);
  font-size: var(--theme-text-size-lg, 13px);
  padding: 8px 0;
}

nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

nav a {
  font-size: var(--theme-text-size-sm, 11px);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-label-wide, 0.03em);
  font-weight: 500;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  nav {
    gap: 12px;
  }

  nav a {
    font-size: var(--theme-text-size-2xs, 9px);
  }
}

@media (max-width: 480px) {
  header {
    padding: 12px 16px;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .logo {
    font-size: var(--theme-text-size-sm, 11px);
  }

  nav {
    gap: 8px;
    width: 100%;
  }

  nav a {
    font-size: var(--theme-text-size-3xs, 8px);
  }
}

.hero {
  min-height: clamp(420px, 58vh, 660px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--top-axis-offset) clamp(20px, 5vw, 56px) 18px clamp(20px, 5vw, 56px);
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff ;
  background-size: clamp(140px, 31vw, 480px) auto;
}

body[data-theme="dark"] .hero {
  background: #000000 ;
  background-size: clamp(140px, 31vw, 480px) auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: min(560px, 100%);
  margin-right: auto;
  text-align: left;
}

.hero h1 {
  font-size: clamp(64px, 7.4vw, 96px);
  font-weight: 800;
  margin: 0 0 32px 0;
  letter-spacing: var(--theme-tracking-ui, 0.01em);
  line-height: 1.02;
  color: #000000;
}

.hero .tagline {
  font-size: var(--theme-text-size-3xl, 18px);
  font-weight: 400;
  color: #000000;
  margin: 0 0 32px 0;
  line-height: var(--theme-line-height-copy, 1.5);
}

body[data-theme="dark"] .hero h1,
body[data-theme="dark"] .hero .tagline {
  color: #c9c7b3;
}

.cta-button {
  --cta-bg: #000000;
  --cta-fg: #ffffff;
  --cta-border-low: rgba(255, 255, 255, 0.16);
  --cta-border-peak: rgba(255, 255, 255, 0.9);
  display: inline-block;
  padding: 8px 20px;
  background:
    linear-gradient(var(--cta-bg), var(--cta-bg)) padding-box,
    linear-gradient(
      110deg,
      var(--cta-border-low) 0%,
      var(--cta-border-low) 28%,
      var(--cta-border-peak) 50%,
      var(--cta-border-low) 72%,
      var(--cta-border-low) 100%
    ) border-box;
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, 190% 0;
  color: var(--cta-fg) !important;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--theme-text-size-md, 12px);
  font-weight: 500;
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-label, 0.02em);
  cursor: pointer;
  transition: color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
  line-height: var(--theme-line-height-flat, 1);
  white-space: nowrap;
  animation: cta-border-shine 2.8s linear infinite;
}

.cta-button:hover {
  --cta-bg: #ffffff;
  --cta-fg: #000000;
  --cta-border-low: rgba(0, 0, 0, 0.22);
  --cta-border-peak: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button:visited {
  color: var(--cta-fg) !important;
}

body[data-theme="dark"] .cta-button {
  --cta-bg: #c9c7b3;
  --cta-fg: #000000;
  --cta-border-low: rgba(17, 17, 17, 0.2);
  --cta-border-peak: rgba(17, 17, 17, 0.9);
}

body[data-theme="dark"] .cta-button:hover {
  --cta-bg: #000000;
  --cta-fg: #c9c7b3;
  --cta-border-low: rgba(201, 199, 179, 0.18);
  --cta-border-peak: rgba(201, 199, 179, 0.9);
  box-shadow: 0 4px 12px rgba(201, 199, 179, 0.2);
}

body[data-theme="dark"] .cta-button:visited {
  color: var(--cta-fg) !important;
}

@keyframes cta-border-shine {
  to {
    background-position: 0 0, -120% 0;
  }
}

/* ── New hero headline ── */
.hero-headline {
  font-size: clamp(64px, 7.4vw, 96px);
  font-weight: 700;
  margin: 0 0 clamp(42px, 5.2vh, 76px) 0;
  letter-spacing: var(--theme-tracking-ui, 0.01em);
  line-height: 1.08;
  color: #000000;
  transition: color 0.35s ease;
}

.hero-headline__prefix {
  display: block;
  font-size: 0.75em;
  font-weight: 200;
  line-height: var(--theme-line-height-snug, 1.15);
  letter-spacing: var(--theme-tracking-label-wide, 0.03em);
  white-space: nowrap;
  margin-bottom: 0.28em;
}

.hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.35s ease;
}

.hero-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.hero-link:hover::after {
  width: 100%;
}

body[data-theme="dark"] .hero-headline {
  color: #c9c7b3;
}

/* Individual link hover: text color change */
.hero-link:hover {
  color: #c9c7b3;
}

body[data-theme="dark"] .hero-link:hover {
  color: #191515;
}

/* ── Cursor-following image preview ── */
.hero-general-gif {
  display: none;
}

.hero-cursor-img {
  position: fixed;
  pointer-events: none;
  z-index: 1100;
  width: 180px;
  opacity: 0;
  transition: opacity 0.22s ease;
  translate: 16px 16px;
}

.hero-cursor-img.active {
  opacity: 1;
}

.hero-cursor-img img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body[data-theme="dark"] .hero-cursor-img img {
  border-color: rgba(201, 199, 179, 0.2);
}

@keyframes rotate {
  to {
    --angle: 360deg;
  }
}

/* ── Hero CTA: shiny conic border button ── */
.shiny-border-button {
  position: relative;
  display: inline-block;
  padding: 2px;
  border-radius: 0.85rem;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  animation: rotate 3s linear infinite;
}

.shiny-border-button:visited {
  color: inherit;
}

.shiny-border-button::before,
.shiny-border-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.shiny-border-button::before {
  z-index: 0;
  background: conic-gradient(
    from calc(-1 * var(--angle)) at 50% 50%,
    transparent 0%,
    rgb(96, 96, 96) 15%,
    transparent 30%
  );
}

.shiny-border-button::after {
  z-index: -1;
  background: conic-gradient(
    from calc(-1 * var(--angle)) at 50% 50%,
    transparent 0%,
    rgba(255, 255, 239, 0.8) 15%,
    transparent 40%
  );
  filter: blur(20px);
}

.shiny-border-button__label {
  display: block;
  position: relative;
  z-index: 1;
  padding: 0.88rem 2rem;
  font-size: clamp(13px, 0.45vw + 11px, 16px);
  font-weight: 600;
  letter-spacing: var(--theme-tracking-caps, 0.04em);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  color: #f5f5f5;
  background-color: hsla(0, 0%, 0%, 1);
  background-image:
    radial-gradient(at 52% 20%, hsla(32, 12%, 79%, 0.5) 0px, transparent 50%),
    radial-gradient(at 90% 9%, hsla(40, 6%, 82%, 0.9) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(45, 2%, 63%, 0.9) 0px, transparent 50%),
    radial-gradient(at 61% 55%, hsla(338, 0%, 62%, 0.45) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(22, 0%, 44%, 0.9) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(240, 0%, 21%, 0.65) 0px, transparent 50%),
    radial-gradient(at 2% 3%, hsla(51, 10%, 86%, 0.9) 0px, transparent 50%);
  border-radius: calc(0.85rem - 2px);
  border-color: hsla(338, 0%, 62%, 0.01);
  border-top-style: groove;
  border-right-style: groove;
  transition: color 0.9s, background-color 0.9s;
  isolation: isolate;
  overflow: hidden;
}

.shiny-border-button__label::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from calc(1 * var(--angle)) at 0% 110%,
    transparent 25%,
    rgba(128, 115, 110, 0.45) 45%,
    transparent 90%
  );
  mix-blend-mode: color-dodge;
}

.shiny-border-button__text {
  position: relative;
  z-index: 2;
  color: #f5f1ea;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  transition:
    text-shadow 0.3s ease,
    filter 0.3s ease,
    background-position 0.36s ease;
}

.shiny-border-button:hover .shiny-border-button__text {
  background-image: linear-gradient(
    108deg,
    #e6e6e6 10%,
    #ffffff 30%,
    #b9b9b9 48%,
    #ffffff 64%,
    #d8d8d8 84%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.44),
    0 0 24px rgba(214, 214, 214, 0.28);
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.24));
}

.shiny-border-button:focus-visible {
  outline: 2px solid rgba(255, 203, 164, 0.9);
  outline-offset: 4px;
}

.right-pricing-section {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 4.5vw, 48px) clamp(36px, 5vh, 68px);
}

.right-pricing-content {
  display: grid;
  gap: 14px;
}

.right-pricing-content h2 {
  margin: 0;
  font-size: var(--theme-text-size-md, 12px);
  font-weight: 600;
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-caps-wide, 0.05em);
}

.right-pricing-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pricing-plan-card {
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 16px 14px;
  display: grid;
  gap: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pricing-plan-card:hover {
  border-color: rgba(0, 0, 0, 0.32);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pricing-plan-card--featured {
  border-color: rgba(0, 0, 0, 0.32);
  background: rgba(0, 0, 0, 0.02);
}

.pricing-plan-card__name {
  font-size: var(--theme-text-size-xs, 10px);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-caps-xl, 0.06em);
  font-weight: 600;
  opacity: 0.6;
}

.pricing-plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-plan-card__amount {
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 500;
  letter-spacing: var(--theme-tracking-tight, -0.01em);
  line-height: var(--theme-line-height-flat, 1);
}

.pricing-plan-card__period {
  font-size: var(--theme-text-size-xs, 10px);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-label-wide, 0.03em);
  opacity: 0.58;
}

.pricing-plan-card__features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: var(--theme-text-size-sm, 11px);
  line-height: var(--theme-line-height-body-relaxed, 1.4);
}

.pricing-plan-card__features li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-plan-card__features li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  opacity: 0.35;
}

.right-pricing-cta {
  justify-self: start;
  margin-top: 6px;
}

body[data-theme="dark"] .pricing-plan-card {
  border-color: rgba(201, 199, 179, 0.18);
}

body[data-theme="dark"] .pricing-plan-card:hover {
  border-color: rgba(201, 199, 179, 0.4);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

body[data-theme="dark"] .pricing-plan-card--featured {
  border-color: rgba(201, 199, 179, 0.35);
  background: rgba(201, 199, 179, 0.04);
}

/* ── Subhero (former hero content) ── */
.subhero {
  padding: clamp(80px, 12vh, 160px) clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff url("../public/assets/logo.gif") center center no-repeat;
  background-size: clamp(140px, 31vw, 480px) auto;
  min-height: 60vh;
}

body[data-theme="dark"] .subhero {
  background-color: #000000;
}

.subhero-content {
  max-width: min(560px, 100%);
  margin-right: auto;
}

.subhero h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin: 0 0 16px 0;
  letter-spacing: var(--theme-tracking-ui, 0.01em);
  line-height: var(--theme-line-height-compact, 1.2);
  color: #000000;
}

.subhero .tagline {
  font-size: var(--theme-text-size-3xl, 18px);
  font-weight: 400;
  color: #000000;
  line-height: var(--theme-line-height-copy, 1.5);
}

body[data-theme="dark"] .subhero h2,
body[data-theme="dark"] .subhero .tagline {
  color: #c9c7b3;
}

@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 65vh;
  }

  .pocket-section {
    grid-column: 1;
    grid-row: 2;
    min-height: auto;
    height: auto;
    position: static;
    overflow: visible;
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0);
    padding: 60px 24px;
  }

  body[data-theme="dark"] .pocket-section {
    border-top-color: rgba(0, 0, 0, 0);
  }
}

/* Phone mode: keep only header, pocket transfer block, and hero CTA button. */
@media (max-width: 768px) {
  .subhero,
  .features,
  .about-preview,
  .info-card-section,
  .info-section,
  footer,
  .index-bottom-spacer,
  .theme-switch-footer {
    display: none !important;
  }

  .pocket-section {
    grid-column: 1;
    grid-row: 1;
  }

  .hero {
    grid-column: 1;
    grid-row: 2;
    min-height: auto;
    background: transparent;
    padding: 8px 20px 28px;
  }

  .hero-cursor-img {
    display: none !important;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-content .shiny-border-button {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
    min-height: 65vh;
  }

  .hero h1 {
    font-size: 48px;
    font-weight: 800;
  }

  .hero .tagline {
    font-size: var(--theme-text-size-2xl, 16px);
  }

  .pocket-section {
    padding: 40px 20px;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .pocket-section {
    grid-row: 1;
  }

  .hero {
    grid-row: 2;
  }

  .hero {
    padding: 24px 16px 32px;
    min-height: 50vh;
  }

  .hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 12px;
  }

  .hero .tagline {
    font-size: var(--theme-text-size-xl, 14px);
    margin-bottom: 20px;
  }

  .cta-button {
    padding: 6px 16px;
    font-size: var(--theme-text-size-sm, 11px);
  }

  .pocket-section {
    padding: 24px 16px;
  }

  .pocket-section h2 {
    font-size: var(--theme-text-size-xl, 14px);
    margin-bottom: 16px;
  }
}

/* Features Section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 28px 24px 40px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

/* Features are embedded inside hero: align their text edge with hero copy. */
.hero > .features {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}

.hero > .features .feature-card {
  text-align: left;
}

.hero > .features .feature-card:first-child {
  padding-left: 0;
}

@media (min-width: 769px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding: clamp(22px, 5.4vh, 62px) 24px 56px;
  }
}

@media (max-width: 480px) {
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 16px;
  }
}

.feature-card {
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.0);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .feature-card {
    padding: 12px;
  }
}

.feature-card:hover {
  border-color: rgba(0, 0, 0, 0);
  background: rgba(0, 0, 0, 0.02);
}

body[data-theme="dark"] .feature-card {
  border-color: rgba(201, 199, 179, 0.2);
}

body[data-theme="dark"] .feature-card:hover {
  border-color: rgba(201, 199, 179, 0.5);
  background: rgba(201, 199, 179, 0.05);
}

.feature-card h2 {
  margin: 0 0 8px 0;
  font-size: var(--theme-text-size-lg, 13px);
  font-weight: 500;
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-label, 0.02em);
}

.feature-card p {
  margin: 0;
  font-size: var(--theme-text-size-md, 12px);
  line-height: var(--theme-line-height-copy, 1.5);
  opacity: 0.85;
}

.feature-card a,
.feature-card__trigger {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--theme-text-size-sm, 11px);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-label, 0.02em);
  font-family: inherit;
  padding-bottom: 2px;
  padding-inline: 0;
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid currentColor;
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.feature-card a:hover,
.feature-card__trigger:hover {
  opacity: 1;
}

.feature-card__trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.viewers-modal-box {
  --popup-card-width: min(560px, calc(100vw - 24px));
  --popup-card-gap: 14px;
}

.viewers-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.viewers-modal-close {
  font: inherit;
  font-size: var(--popup-action-size, 10px);
  letter-spacing: var(--theme-tracking-label-wide, 0.03em);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  color: var(--popup-button-ghost-fg, currentColor);
  background: var(--popup-button-ghost-bg, transparent);
  border: 1px solid var(--popup-button-ghost-border, rgba(0, 0, 0, 0.26));
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}

.viewers-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.viewers-modal-card {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--popup-card-border, rgba(0, 0, 0, 0.18));
  border-radius: 14px;
  background: var(--theme-page-highlight, rgba(0, 0, 0, 0.03));
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.viewers-modal-card:hover,
.viewers-modal-card:focus-visible {
  transform: translateY(-1px);
  border-color: var(--theme-page-panel-border-strong, rgba(0, 0, 0, 0.3));
  background: var(--theme-page-hover, rgba(0, 0, 0, 0.04));
  outline: none;
}

.viewers-modal-card__label {
  font-size: var(--theme-text-size-xs, 10px);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-label-wide, 0.03em);
  color: var(--popup-pill-fg, rgba(17, 17, 17, 0.72));
}

.viewers-modal-card strong {
  font-size: var(--theme-text-size-xl, 14px);
  line-height: var(--theme-line-height-snug, 1.15);
}

.viewers-modal-card span:last-child {
  font-size: var(--popup-body-size, 12px);
  line-height: var(--theme-line-height-body, 1.35);
  color: var(--popup-body-color, rgba(17, 17, 17, 0.78));
}

@media (max-width: 640px) {
  .viewers-modal-grid {
    grid-template-columns: 1fr;
  }

  .viewers-modal-card {
    min-height: 0;
  }
}

.about-preview {
  padding: 40px 24px 56px;
}

@media (min-width: 769px) {
  .about-preview {
    padding: clamp(96px, 13vh, 170px) 24px clamp(120px, 18vh, 240px);
  }
}

.about-preview img {
  display: block;
  width: 66.666%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.info-card-section {
  padding: 0 24px 56px;
}

@media (min-width: 769px) {
  .info-card-section {
    padding: 0 24px clamp(130px, 18vh, 260px);
  }
}

.info-card {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.24);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.info-card h2 {
  margin: 0;
  font-size: clamp(22px, 1.2vw + 15px, 34px);
  font-weight: 500;
  letter-spacing: var(--theme-tracking-ui, 0.01em);
}

.info-card p {
  margin: 0;
  font-size: var(--theme-text-size-md, 12px);
  line-height: 1.58;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(0, 0, 0, 0.02);
}

.info-card__note {
  border-color: rgba(0, 0, 0, 0.28) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

body[data-theme="dark"] .info-card {
  border-color: rgba(201, 199, 179, 0.35);
  background: rgba(0, 0, 0, 0.72);
}

body[data-theme="dark"] .info-card p {
  border-color: rgba(201, 199, 179, 0.24);
  background: rgba(201, 199, 179, 0.06);
}

body[data-theme="dark"] .info-card__note {
  border-color: rgba(201, 199, 179, 0.4) !important;
  background: rgba(201, 199, 179, 0.1) !important;
}

/* Left-column scroll scenes inspired by fixed/pinned scroll storytelling. */
.hero-scroll-scene,
.scroll-subhero,
.scroll-stack,
.scroll-about,
.scroll-info,
.scroll-cloud {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 769px) {
    body[data-scroll-engine="gsap"] .hero-scroll-scene .hero-content,
    body[data-scroll-engine="gsap"] .scroll-subhero .subhero-content,
    body[data-scroll-engine="gsap"] .scroll-stack .feature-card,
    body[data-scroll-engine="gsap"] .scroll-about img,
    body[data-scroll-engine="gsap"] .scroll-cloud .info-card,
    body[data-scroll-engine="gsap"] .scroll-cloud .info-card p,
    body[data-scroll-engine="gsap"] .scroll-info .info-item {
      animation: none !important;
    }

    .hero-scroll-scene {
      view-timeline-name: --hero-scene;
      view-timeline-axis: block;
    }

    .hero-scroll-scene .hero-content {
      transform-origin: 0 0;
      will-change: transform, opacity, filter;
      animation: hero-scale-away both linear, hero-fade-away both linear;
      animation-timeline: --hero-scene, --hero-scene;
      animation-range: exit 0% exit 52%, exit 6% exit 34%;
    }

    /* Features in hero should remain static (no scroll animation). */
    .scroll-stack .feature-card {
      animation: none !important;
      will-change: auto;
    }

    .scroll-subhero {
      view-timeline-name: --subhero-scene;
      view-timeline-axis: block;
    }

    .scroll-subhero .subhero-content {
      will-change: transform, opacity, filter;
      animation: subhero-rise both linear;
      animation-timeline: --subhero-scene;
      animation-range: entry 10% cover 44%;
    }

    .scroll-about {
      view-timeline-name: --about-scene;
      view-timeline-axis: block;
    }

    .scroll-about img {
      transform-origin: 50% 50%;
      will-change: transform, clip-path, filter, opacity;
      animation: about-reveal-frame both linear, about-parallax-settle both linear, about-clarify both linear;
      animation-timeline: --about-scene, --about-scene, --about-scene;
      animation-range: entry 0% entry 70%, entry 0% cover 58%, entry 10% cover 72%;
    }

    .scroll-cloud {
      view-timeline-name: --cloud-scene;
      view-timeline-axis: block;
    }

    .scroll-cloud .info-card {
      will-change: transform, opacity, filter;
      transform-origin: 50% 100%;
      animation: cloud-card-rise both linear, cloud-card-clarify both linear;
      animation-timeline: --cloud-scene, --cloud-scene;
      animation-range: entry 14% cover 48%, entry 16% cover 58%;
    }

    .scroll-cloud .info-card p {
      will-change: transform, opacity, filter;
      animation: cloud-line-in both linear;
      animation-timeline: --cloud-scene;
    }

    .scroll-cloud .info-card p:nth-of-type(1) {
      animation-range: entry 20% cover 36%;
    }

    .scroll-cloud .info-card p:nth-of-type(2) {
      animation-range: entry 27% cover 43%;
    }

    .scroll-cloud .info-card p:nth-of-type(3) {
      animation-range: entry 34% cover 50%;
    }

    .scroll-info .info-item {
      will-change: transform, opacity;
      animation: info-rise-left both linear;
      animation-timeline: view(block);
      animation-range: entry 12% cover 34%;
    }

    .scroll-info .info-item:nth-child(even) {
      animation-name: info-rise-right;
    }
  }
}

@media (max-width: 480px) {
  .about-preview {
    padding: 24px 16px 32px;
  }

  .about-preview img {
    width: 100%;
  }

  .info-card-section {
    padding: 0 16px 32px;
  }

  .info-card {
    padding: 16px;
    gap: 10px;
  }

  .info-card h2 {
    font-size: var(--theme-text-size-4xl, 20px);
  }

  .info-card p {
    padding: 10px;
    font-size: var(--theme-text-size-sm, 11px);
  }
}

/* Info Section */
.info-section {
  background: rgba(0, 0, 0, 0.02);
  padding: 60px 24px;
}

@media (min-width: 769px) {
  .info-section {
    padding: clamp(110px, 15vh, 190px) 24px;
  }

  .info-grid {
    gap: 48px;
  }
}

@media (max-width: 480px) {
  .info-section {
    padding: 32px 16px;
  }
}

body[data-theme="dark"] .info-section {
  background: rgba(201, 199, 179, 0.03);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.info-item h3 {
  margin: 0 0 12px 0;
  font-size: var(--theme-text-size-md, 12px);
  font-weight: 500;
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-label, 0.02em);
}

.info-item p {
  margin: 0;
  font-size: var(--theme-text-size-sm, 11px);
  line-height: var(--theme-line-height-copy-loose, 1.6);
  opacity: 0.85;
}

@media (max-width: 480px) {
  .info-item h3 {
    font-size: var(--theme-text-size-sm, 11px);
    margin-bottom: 8px;
  }

  .info-item p {
    font-size: var(--theme-text-size-xs, 10px);
    line-height: var(--theme-line-height-copy, 1.5);
  }
}

/* Pocket Transfer Section */
.pocket-section {
  padding: calc(var(--top-axis-offset) + var(--audio-line-offset)) 48px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 100%;
  margin: 0;
  /* Ambient gradient so backdrop-filter has colour to refract */
  background:
    radial-gradient(ellipse at 42% 30%, rgba(182, 181, 176, 0.52) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 46%, rgba(0, 0, 0, 0.05) 0%, transparent 46%),
    radial-gradient(ellipse at 52% 32%, rgba(225, 218, 200, 0.32) 0%, transparent 58%);
}

body[data-theme="dark"] .pocket-section {
  background:
    radial-gradient(ellipse at 22% 28%, rgba(201, 199, 179, 0.10) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 76%, rgba(120, 95, 60, 0.08) 0%, transparent 46%),
    radial-gradient(ellipse at 52% 52%, rgba(50, 44, 34, 0.14) 0%, transparent 58%);
}

/* Section heading hidden — label lives in the card header */
.pocket-section > h2 {
  display: none;
}

/* ── Desktop: glass card ── */
.pocket-transfer {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 20px;
  gap: 16px;
  background: transparent;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.06);
  isolation: isolate;
}

/* Frosted glass fill */
.pocket-transfer::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(14px) saturate(130%) brightness(1.06);
  background: rgba(255, 255, 255, 0.22);
  z-index: 0;
}

/* Specular edge highlight */
.pocket-transfer::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 0 8px rgba(255, 255, 255, 0.18),
    inset -1px -1px 0 rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 2;
}

/* Lift all children above glass layers */
.pocket-transfer > * {
  position: relative;
  z-index: 3;
}

body[data-theme="dark"] .pocket-transfer {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.38),
    0 2px 8px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .pocket-transfer::before {
  background: rgba(17, 17, 17, 0.42);
  backdrop-filter: blur(14px) saturate(120%) brightness(0.86);
}

body[data-theme="dark"] .pocket-transfer::after {
  box-shadow:
    inset 1px 1px 0 rgba(201, 199, 179, 0.22),
    inset 0 0 8px rgba(201, 199, 179, 0.06),
    inset -1px -1px 0 rgba(0, 0, 0, 0.38);
}

/* Card header: label + login pill */
.pocket-transfer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
  margin-bottom: 0;
}

body[data-theme="dark"] .pocket-transfer__header {
  border-bottom-color: rgba(201, 199, 179, 0.12);
}

.pocket-transfer__label {
  display: block;
  font-size: var(--theme-text-size-xs, 10px);
  font-weight: 600;
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-caps-xl, 0.06em);
  opacity: 0.5;
}

/* Buttons: single-column stack */
.pocket-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

/* Glass buttons */
.pocket-transfer .pocket-btn {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.55);
  color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px) saturate(120%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 1px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.pocket-transfer .pocket-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.56);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    0 3px 10px rgba(0, 0, 0, 0.12);
}

.pocket-transfer .pocket-btn--ghost {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  color: rgba(0, 0, 0, 0.72);
}

.pocket-transfer .pocket-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.30);
}

/* Publish + login pill — dark in light mode */
.pocket-transfer .pocket-btn--publish,
.pocket-transfer .pocket-btn--login-pill {
  background: linear-gradient(155deg, rgba(42, 40, 32, 0.92) 0%, rgba(26, 23, 20, 0.90) 55%, rgba(14, 12, 10, 0.88) 100%);
  border-color: rgba(0, 0, 0, 0.65);
  color: rgba(232, 226, 214, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30),
    0 2px 8px rgba(0, 0, 0, 0.22);
}

.pocket-transfer .pocket-btn--publish:disabled {
  opacity: 0.38;
}

body[data-theme="dark"] .pocket-transfer .pocket-btn {
  background: rgba(201, 199, 179, 0.18);
  border-color: rgba(201, 199, 179, 0.35);
  color: rgba(201, 199, 179, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(201, 199, 179, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 1px 4px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .pocket-transfer .pocket-btn:hover:not(:disabled) {
  background: rgba(201, 199, 179, 0.28);
}

body[data-theme="dark"] .pocket-transfer .pocket-btn--ghost {
  background: rgba(201, 199, 179, 0.08);
  border-color: rgba(201, 199, 179, 0.22);
  color: rgba(201, 199, 179, 0.72);
}

body[data-theme="dark"] .pocket-transfer .pocket-btn--ghost:hover:not(:disabled) {
  background: rgba(201, 199, 179, 0.15);
}

/* Publish + login pill — light/tan in dark mode */
body[data-theme="dark"] .pocket-transfer .pocket-btn--publish,
body[data-theme="dark"] .pocket-transfer .pocket-btn--login-pill {
  background: linear-gradient(155deg, rgba(232, 226, 214, 0.90) 0%, rgba(201, 199, 179, 0.86) 55%, rgba(185, 182, 160, 0.82) 100%);
  border-color: rgba(140, 135, 110, 0.50);
  color: rgba(26, 23, 20, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  padding: 40px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.0);
  text-align: center;
  font-size: var(--theme-text-size-sm, 11px);
  opacity: 0.7;
}

.footer-page-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.index-bottom-spacer {
  grid-column: 1;
  min-width: 0;
  height: clamp(220px, 30vh, 420px);
}

@media (max-width: 480px) {
  footer {
    padding: 24px 16px;
    font-size: var(--theme-text-size-xs, 10px);
  }

  .footer-page-links {
    margin-top: 8px;
    gap: 6px 10px;
  }

  .index-bottom-spacer {
    height: clamp(140px, 22vh, 260px);
  }
}

body[data-theme="dark"] footer {
  border-top-color: rgba(0, 0, 0, 0.0);
}

/* ── Hero Viewer Sidebar ── */
.hero-viewer-sidebar {
  position: fixed;
  inset: 0;
  z-index: 1400;
  pointer-events: none;
}

.hero-viewer-sidebar[aria-hidden="false"] {
  pointer-events: auto;
}

.hero-viewer-sidebar__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.32s ease;
  cursor: default;
}

.hero-viewer-sidebar[aria-hidden="false"] .hero-viewer-sidebar__backdrop {
  background: rgba(0, 0, 0, 0.08);
}

body[data-theme="dark"] .hero-viewer-sidebar[aria-hidden="false"] .hero-viewer-sidebar__backdrop {
  background: rgba(0, 0, 0, 0.3);
}

.hero-viewer-sidebar__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(300px, 38vw, 460px);
  background: #ffffff;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

body[data-theme="dark"] .hero-viewer-sidebar__panel {
  background: #111111;
  border-left-color: rgba(201, 199, 179, 0.14);
}

.hero-viewer-sidebar[aria-hidden="false"] .hero-viewer-sidebar__panel {
  transform: translateX(0);
}

.hero-viewer-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

body[data-theme="dark"] .hero-viewer-sidebar__head {
  border-bottom-color: rgba(201, 199, 179, 0.1);
}

.hero-viewer-sidebar__title {
  font-size: var(--theme-text-size-sm, 11px);
  font-weight: 600;
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  letter-spacing: var(--theme-tracking-caps-xl, 0.06em);
  opacity: 0.65;
}

.hero-viewer-sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: 999px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.6;
  flex-shrink: 0;
}

.hero-viewer-sidebar__close:hover {
  opacity: 1;
  border-color: rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .hero-viewer-sidebar__close {
  border-color: rgba(201, 199, 179, 0.2);
}

body[data-theme="dark"] .hero-viewer-sidebar__close:hover {
  border-color: rgba(201, 199, 179, 0.45);
}

.hero-viewer-sidebar__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hero-viewer-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-viewer-content__gif {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body[data-theme="dark"] .hero-viewer-content__gif {
  background: rgba(201, 199, 179, 0.05);
  border-color: rgba(201, 199, 179, 0.1);
}

.hero-viewer-content__gif img,
.hero-viewer-content__gif video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-viewer-content__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: var(--theme-text-size-md, 12px);
  line-height: var(--theme-line-height-copy-loose, 1.6);
}

footer a {
  opacity: inherit;
}

footer a:hover {
  opacity: 1;
}

.theme-switch-footer {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: 1300;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: transparent;
}

.theme-toggle-btn {
  min-width: 72px;
  padding: 6px 14px;
  font-size: var(--theme-text-size-sm, 11px);
  letter-spacing: var(--theme-tracking-label, 0.02em);
  text-transform: var(--theme-text-transform-uppercase, uppercase);
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.28);
  color: #111111;
  backdrop-filter: blur(4px);
}

body[data-theme="dark"] .theme-toggle-btn {
  border-color: rgba(201, 199, 179, 0.45);
  background: rgba(0, 0, 0, 0.36);
  color: #c9c7b3;
}

@keyframes hero-scale-away {
  to {
    transform: translateY(-10%) scale(0.38, 0.52);
  }
}

@keyframes hero-fade-away {
  to {
    opacity: 0;
    filter: blur(0.45rem);
  }
}

@keyframes subhero-rise {
  from {
    opacity: 0;
    transform: translateY(48px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes feature-rise {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes about-reveal-frame {
  from {
    clip-path: inset(22% 12% 20% 12% round 28px);
  }

  to {
    clip-path: inset(0% 0% 0% 0% round 0);
  }
}

@keyframes about-parallax-settle {
  from {
    transform: translateY(9%) scale(1.18) rotate(-1deg);
  }

  to {
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes about-clarify {
  from {
    opacity: 0.82;
    filter: saturate(0.55) contrast(0.9) brightness(0.78);
  }

  to {
    opacity: 1;
    filter: saturate(1) contrast(1) brightness(1);
  }
}

@keyframes cloud-card-rise {
  from {
    opacity: 0;
    transform: translateY(64px) scale(0.96);
    filter: blur(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cloud-card-clarify {
  from {
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }

  to {
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.14);
  }
}

@keyframes cloud-line-in {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes info-rise-left {
  from {
    opacity: 0;
    transform: translate(-26px, 30px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@keyframes info-rise-right {
  from {
    opacity: 0;
    transform: translate(26px, 30px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ── Phone: proper single-column layout ── */
@media (max-width: 768px) {
  /* Grid ordering */
  .pocket-section        { grid-column: 1 !important; grid-row: 1 !important; }
  .hero                  { grid-column: 1 !important; grid-row: 2 !important; }
  .right-pricing-section { grid-column: 1 !important; grid-row: 3 !important; }
  .info-section          { grid-column: 1 !important; grid-row: 4 !important; }
  footer                 { grid-column: 1 !important; grid-row: 5 !important; }

  /* Hidden on phone */
  .subhero,
  .about-preview,
  .info-card-section,
  .index-bottom-spacer,
  .theme-switch-footer,
  .hero-cursor-img {
    display: none !important;
  }

  /* Hero: compact value-prop below pocket transfer */
  .hero {
    display: flex !important;
    min-height: auto !important;
    padding: 24px 20px 20px !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
  }

  .hero-general-gif {
    display: block;
    position: absolute;
    top: -10px;
    right: -20px;
    width: 52%;
    max-width: 200px;
    height: auto;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
  }

  .hero-content {
    max-width: 100%;
    position: relative;
    z-index: 1;
  }

  .hero-headline {
    font-size: clamp(38px, 10vw, 50px);
    margin: 0 0 16px;
    line-height: 1.05;
  }

  /* Feature cards: stacked list below the headline */
  .features {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: 4px;
  }

  body[data-theme="dark"] .features {
    border-top-color: rgba(201, 199, 179, 0.09);
  }

  .feature-card {
    padding: 12px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  }

  body[data-theme="dark"] .feature-card {
    border-bottom-color: rgba(35, 35, 30, 0.09) !important;
  }

  .pocket-section {
    padding: clamp(72px, 11vh, 100px) 20px 36px !important;
    border-top: none;
    background:
      radial-gradient(ellipse at 50% 50%, rgba(212, 212, 212, 0.72) 0%, transparent 48%),
      radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.38) 0%, transparent 44%),
      radial-gradient( ellipse at 50% 50%, rgba(114, 89, 114, 0.22) 0%, transparent 60%),
      linear-gradient(155deg, #ffffff 0%, #ffffff 55%, #ffffff 100%);
  }

  body[data-theme="dark"] .pocket-section {
    background:
      radial-gradient(ellipse at 40% 40%, rgba(69, 69, 67, 0.18) 0%, transparent 48%),
      radial-gradient(ellipse at 60% 60%, rgba(120, 100, 80, 0.16) 0%, transparent 44%),
      radial-gradient(ellipse at 10% 50%, rgba(63, 63, 60, 0.08) 0%, transparent 60%),
      linear-gradient(155deg, #1c1a17 0%, #000000 55%, #000000 100%);
  }

  .pocket-section > h2 {
    display: none !important;
  }


  .pocket-transfer {
    position: relative !important;
    border: 0 !important;
    border-radius: 20px !important;
    overflow: hidden;
    padding: 20px !important;
    gap: 16px !important;
    background: transparent !important;
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.10),
      0 2px 8px rgba(0, 0, 0, 0.06);
    isolation: isolate;
  }

  /* Frosted glass fill */
  .pocket-transfer::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    backdrop-filter: blur(14px) saturate(130%) brightness(1.06);
    background: rgba(255, 255, 255, 0.22);
    z-index: 0;
  }

  /* Specular edge highlight */
  .pocket-transfer::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow:
      inset 1px 1px 0 rgba(255, 255, 255, 0.72),
      inset 0 0 8px rgba(255, 255, 255, 0.18),
      inset -1px -1px 0 rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 2;
  }

  /* Lift all content above glass layers */
  .pocket-transfer > * {
    position: relative;
    z-index: 3;
  }

  body[data-theme="dark"] .pocket-transfer {
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.38),
      0 2px 8px rgba(0, 0, 0, 0.22);
  }

  body[data-theme="dark"] .pocket-transfer::before {
    background: rgba(17, 17, 17, 0.42);
    backdrop-filter: blur(14px) saturate(120%) brightness(0.86);
  }

  body[data-theme="dark"] .pocket-transfer::after {
    box-shadow:
      inset 1px 1px 0 rgba(201, 199, 179, 0.22),
      inset 0 0 8px rgba(201, 199, 179, 0.06),
      inset -1px -1px 0 rgba(0, 0, 0, 0.38);
  }

  /* Liquid glass buttons inside pocket transfer card */
  .pocket-transfer .pocket-btn {
    background: rgba(255, 255, 255, 0.38) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    color: rgba(0, 0, 0, 0.82) !important;
    backdrop-filter: blur(6px) saturate(120%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.75),
      inset 0 -1px 0 rgba(0, 0, 0, 0.06),
      0 1px 4px rgba(0, 0, 0, 0.08) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  }

  .pocket-transfer .pocket-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.56) !important;
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.85),
      inset 0 -1px 0 rgba(0, 0, 0, 0.06),
      0 3px 10px rgba(0, 0, 0, 0.12) !important;
  }

  .pocket-transfer .pocket-btn--ghost {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    color: rgba(0, 0, 0, 0.72) !important;
  }

  .pocket-transfer .pocket-btn--ghost:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3) !important;
  }

  body[data-theme="dark"] .pocket-transfer .pocket-btn {
    background: rgba(201, 199, 179, 0.18) !important;
    border-color: rgba(201, 199, 179, 0.35) !important;
    color: rgba(201, 199, 179, 0.92) !important;
    box-shadow:
      inset 0 1px 0 rgba(201, 199, 179, 0.28),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2),
      0 1px 4px rgba(0, 0, 0, 0.22) !important;
  }

  body[data-theme="dark"] .pocket-transfer .pocket-btn:hover:not(:disabled) {
    background: rgba(201, 199, 179, 0.28) !important;
  }

  body[data-theme="dark"] .pocket-transfer .pocket-btn--ghost {
    background: rgba(201, 199, 179, 0.08) !important;
    border-color: rgba(201, 199, 179, 0.22) !important;
    color: rgba(201, 199, 179, 0.72) !important;
  }

  body[data-theme="dark"] .pocket-transfer .pocket-btn--ghost:hover:not(:disabled) {
    background: rgba(201, 199, 179, 0.15) !important;
  }

  /* Publish + login pill inside glass card — dark in light mode */
  .pocket-transfer .pocket-btn--publish,
  .pocket-transfer .pocket-btn--login-pill {
    background: linear-gradient(155deg, rgba(42, 40, 32, 0.92) 0%, rgba(26, 23, 20, 0.9) 55%, rgba(14, 12, 10, 0.88) 100%) !important;
    border-color: rgba(0, 0, 0, 0.65) !important;
    color: rgba(232, 226, 214, 0.95) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.14),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3),
      0 2px 8px rgba(0, 0, 0, 0.22) !important;
  }

  .pocket-transfer .pocket-btn--publish:disabled {
    opacity: 0.38 !important;
  }

  /* Publish + login pill — light/tan in dark mode */
  body[data-theme="dark"] .pocket-transfer .pocket-btn--publish,
  body[data-theme="dark"] .pocket-transfer .pocket-btn--login-pill {
    background: linear-gradient(155deg, rgba(232, 226, 214, 0.9) 0%, rgba(201, 199, 179, 0.86) 55%, rgba(185, 182, 160, 0.82) 100%) !important;
    border-color: rgba(140, 135, 110, 0.5) !important;
    color: rgba(26, 23, 20, 0.92) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.68),
      inset 0 -1px 0 rgba(0, 0, 0, 0.08),
      0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  /* Pricing: show both plans */
  .right-pricing-section {
    padding: 28px 20px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }

  body[data-theme="dark"] .right-pricing-section {
    border-top-color: rgba(201, 199, 179, 0.09);
  }

  .right-pricing-content h2 {
    display: block !important;
  }

  .right-pricing-plans {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
  }

  .right-pricing-cta {
    justify-self: start;
    margin-top: 12px;
  }

  /* Info grid: single column */
  .info-section {
    display: block !important;
    padding: 28px 20px 32px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }

  body[data-theme="dark"] .info-section {
    border-top-color: rgba(201, 199, 179, 0.09);
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Footer */
  footer {
    display: block !important;
    padding: 24px 20px !important;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
  }

  body[data-theme="dark"] footer {
    border-top-color: rgba(201, 199, 179, 0.09);
  }

  .footer-page-links {
    justify-content: flex-start;
  }
}
