/* ==========================================================================
   SCYPT Home — Soft Liquid Glass & 3D Orbital Subscription Universe
   - Calm, soft ocean-slate typography (#1F3B41 / #5D767C — never harsh black)
   - Airy mint-pearl wash (#F6F9FA -> #E6EEF1) with slow drifting light orbs
   - Interactive 3D orbital app centerpiece with real brand logos
   - 100% consumer On-Device V1 storytelling (no B2B clutter on homepage)
   ========================================================================== */

:root {
  --sg-mint: #22E0AC;
  --sg-teal: #1FC6B2;
  --sg-cyan: #17B3C4;
  --sg-teal-700: #0F847B;
  --sg-teal-800: #155E63;

  /* Softened ink palette so headings and body feel airy and gentle */
  --sg-ink: #1F3B41;
  --sg-ink-soft: #2C4A50;
  --sg-ink-2: #5D767C;
  --sg-ink-3: #83999F;

  --sg-danger: #F26474;
  --sg-danger-soft: rgba(255, 242, 244, 0.92);
  --sg-danger-border: rgba(253, 210, 216, 0.95);
  --sg-mint-soft-pill: rgba(232, 250, 245, 0.92);
  --sg-mint-soft-border: rgba(167, 237, 218, 0.9);
  --sg-violet: #7C6CF6;

  --sg-grad-primary: linear-gradient(135deg, #22E0AC 0%, #1FC6B2 48%, #17B3C4 100%);
  --sg-grad-deep: linear-gradient(135deg, rgba(22, 148, 139, 0.9) 0%, rgba(16, 120, 134, 0.92) 55%, rgba(15, 92, 101, 0.95) 100%);
  --sg-canvas: linear-gradient(160deg, #F6F9FA 0%, #EDF3F5 48%, #E6EEF1 100%);

  --sg-radius-card: 28px;
  --sg-radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.scypt-web:has(> body.home-apple-page) {
  background: #EDF3F5;
  overflow-x: clip;
  scroll-behavior: smooth;
}

html.scypt-web body.home-apple-page {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100svh;
  font-family: 'Noto Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--sg-canvas);
  color: var(--sg-ink);
  overflow-x: clip;
}

:where(body.home-apple-page) a {
  color: inherit;
  text-decoration: none;
}

body.home-apple-page button {
  font-family: inherit;
}

body.home-apple-page .sg-num {
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Slow drifting pastel aurora orbs behind the translucent panes */
@keyframes sg-orb-drift-a {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-44px, 34px, 0) scale(1.08); }
}

@keyframes sg-orb-drift-b {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(38px, -28px, 0) scale(1.06); }
}

@keyframes sg-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 224, 172, 0.22); }
  50% { box-shadow: 0 0 0 7px rgba(34, 224, 172, 0.08); }
}

body.home-apple-page::before,
body.home-apple-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
}

body.home-apple-page::before {
  width: min(620px, 64vw);
  aspect-ratio: 1;
  top: -130px;
  right: -90px;
  background: radial-gradient(circle, rgba(34, 224, 172, 0.22) 0%, rgba(23, 179, 196, 0.12) 52%, transparent 74%);
  animation: sg-orb-drift-a 18s ease-in-out infinite alternate;
}

body.home-apple-page::after {
  width: min(560px, 60vw);
  aspect-ratio: 1;
  top: 40vh;
  left: -150px;
  background: radial-gradient(circle, rgba(23, 179, 196, 0.16) 0%, rgba(16, 136, 128, 0.08) 54%, transparent 74%);
  animation: sg-orb-drift-b 22s ease-in-out infinite alternate;
}

body.home-apple-page .skip-link {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-teal-800);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}

body.home-apple-page .skip-link:focus {
  left: 16px;
}

/* ==========================================================================
   Core Liquid Glass Materials + Specular Spotlight ([data-glass-card])
   ========================================================================== */
.sg-glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.46) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 48px -20px rgba(31, 59, 65, 0.1),
    0 4px 14px rgba(31, 59, 65, 0.04),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.36);
  -webkit-backdrop-filter: blur(26px) saturate(175%);
  backdrop-filter: blur(26px) saturate(175%);
  border-radius: var(--sg-radius-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sg-glass-deep {
  position: relative;
  overflow: hidden;
  background: var(--sg-grad-deep);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 28px 60px -20px rgba(15, 92, 101, 0.32),
    0 6px 18px rgba(15, 92, 101, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  border-radius: var(--sg-radius-card);
  color: #ffffff;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

[data-glass-card]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 15%),
    rgba(255, 255, 255, 0.42),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.sg-glass-deep[data-glass-card]::before {
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 15%),
    rgba(255, 255, 255, 0.18),
    transparent 65%
  );
}

[data-glass-card]:hover::before {
  opacity: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sg-glass {
    background: rgba(251, 253, 253, 0.96);
  }
}

/* Container & Soft Typography Hierarchy */
.sg-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.sg-section {
  padding: clamp(50px, 6.5vw, 88px) 0;
}

.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--sg-radius-pill);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px -8px rgba(31, 59, 65, 0.08), inset 0 1px 0 #ffffff;
  color: var(--sg-teal-700);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sg-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sg-mint);
  animation: sg-pulse-dot 2.8s ease-in-out infinite;
  flex: none;
}

.sg-grad-text {
  background: linear-gradient(135deg, #138F86 0%, #1FC6B2 52%, #17B3C4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sg-section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto clamp(30px, 4vw, 44px);
}

.sg-section-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--sg-ink);
}

.sg-section-head h2 span {
  display: block;
  color: var(--sg-ink-2);
  font-weight: 600;
}

.sg-section-head p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--sg-ink-2);
}

/* Top navigation bar styles moved to shared public-nav.css */

/* ==========================================================================
   Buttons / Pills
   ========================================================================== */
body.home-apple-page .sg-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 25px;
  border-radius: var(--sg-radius-pill);
  background: var(--sg-grad-deep);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow:
    0 14px 30px -10px rgba(15, 92, 101, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.home-apple-page .sg-pill-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px -10px rgba(15, 92, 101, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

body.home-apple-page .sg-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: var(--sg-radius-pill);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.96);
  color: var(--sg-ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow:
    0 10px 24px -12px rgba(31, 59, 65, 0.12),
    inset 0 1px 0 #ffffff;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 0.22s ease, background 0.22s ease;
}

body.home-apple-page .sg-pill-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
}

body.home-apple-page .sg-pill-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 25px;
  border-radius: var(--sg-radius-pill);
  background: #ffffff;
  color: var(--sg-teal-800);
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(10, 48, 52, 0.22);
  transition: transform 0.22s ease;
}

body.home-apple-page .sg-pill-light:hover {
  transform: translateY(-2px);
}

body.home-apple-page .sg-pill-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: var(--sg-radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  transition: background 0.22s ease, transform 0.22s ease;
}

body.home-apple-page .sg-pill-ghost-light:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
}

/* ==========================================================================
   2. Centered Soft Hero & 3D Orbital Subscription Universe
   ========================================================================== */
.sg-hero {
  padding: clamp(24px, 3.5vw, 42px) 0 clamp(32px, 5vw, 60px);
}

.sg-hero-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 14px;
}

.sg-hero-intro h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.022em;
  font-weight: 700;
  color: var(--sg-ink);
}

.sg-hero-intro h1 .sg-grad-text {
  display: block;
}

.sg-hero-lead {
  margin: 0 auto 24px;
  max-width: 580px;
  font-size: clamp(15.5px, 1.45vw, 17.5px);
  line-height: 1.78;
  color: var(--sg-ink-2);
}

.sg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

/* 3D Orbital Universe Container */
.sg-universe-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

#subscription-universe {
  --universe-scale: 1;
  --light-x: 32%;
  --light-y: 16%;
  --dashboard-x: -4deg;
  --dashboard-y: 6deg;
  position: relative;
  isolation: isolate;
  width: min(1100px, calc(100vw - 24px));
  height: 700px;
  margin: 0 auto;
  color: var(--sg-ink);
}

#subscription-universe .universe-ambient {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50%;
}

#subscription-universe .universe-ambient i {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.72;
}

#subscription-universe .universe-ambient i:nth-child(1) {
  width: 460px;
  height: 400px;
  left: 10%;
  top: 10%;
  background: radial-gradient(ellipse, rgba(144, 233, 206, 0.45), transparent 72%);
}

#subscription-universe .universe-ambient i:nth-child(2) {
  width: 440px;
  height: 420px;
  right: 8%;
  top: 22%;
  background: radial-gradient(ellipse, rgba(154, 214, 236, 0.48), transparent 72%);
}

#subscription-universe .universe-ambient i:nth-child(3) {
  width: 340px;
  height: 240px;
  left: 34%;
  top: 62%;
  background: radial-gradient(ellipse, rgba(246, 230, 206, 0.45), transparent 72%);
}

#subscription-universe .universe-surface {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 1100px;
  height: 740px;
  transform: translate(-50%, -50%) scale(var(--universe-scale));
  transform-origin: center;
  outline: none;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

#subscription-universe .universe-surface:focus-visible {
  outline: 2px solid rgba(15, 132, 123, 0.45);
  outline-offset: -30px;
  border-radius: 64px;
}

#subscription-universe[data-dragging] .universe-surface {
  cursor: grabbing;
}

#subscription-universe .universe-floor {
  position: absolute;
  left: calc(50% - 210px);
  top: calc(50% + 286px);
  width: 420px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(21, 94, 99, 0.16), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}

#subscription-universe .universe-tracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  fill: none;
}

#subscription-universe .universe-tracks--back {
  z-index: 2;
}

#subscription-universe .universe-tracks--front {
  z-index: 65;
}

#subscription-universe .universe-tracks path {
  stroke: url(#sg-orbit-line);
  stroke-width: 1.25;
  opacity: 0.56;
}

#subscription-universe .universe-tracks--front path {
  opacity: 0.72;
  stroke-width: 1.45;
}

#subscription-universe .universe-tracks path[data-orbit-track="1"] {
  opacity: 0.42;
  stroke-width: 1;
}

#subscription-universe .universe-tracks path[data-orbit-track="2"] {
  opacity: 0.3;
  stroke-dasharray: 3 9;
  stroke-width: 1.1;
}

/* Center 3D Liquid Glass App Shell inside Orbit */
#subscription-universe .universe-dashboard-position {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 304px;
  z-index: 40;
  transform: translate(-50%, -50%);
  perspective: 1300px;
  pointer-events: none;
}

#subscription-universe .glass-dashboard {
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: 12px;
  border-radius: 48px;
  background:
    radial-gradient(ellipse at var(--light-x) var(--light-y), rgba(255, 255, 255, 0.72), transparent 58%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.74), rgba(244, 255, 252, 0.34) 55%, rgba(255, 255, 255, 0.62));
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 32px 72px -26px rgba(31, 59, 65, 0.24),
    0 8px 24px -12px rgba(21, 94, 99, 0.16),
    inset 0 1.5px 0 #ffffff,
    inset 1px 0 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
  transform: rotateX(var(--dashboard-x)) rotateY(var(--dashboard-y));
  transition: transform 0.08s linear;
}

/* Specular refractive conic edge around the 3D shell */
#subscription-universe .glass-dashboard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(
    from 140deg at var(--light-x) var(--light-y),
    rgba(255, 255, 255, 0.96),
    rgba(135, 201, 217, 0.28) 15%,
    #ffffff 30%,
    rgba(255, 255, 255, 0.14) 44%,
    rgba(155, 229, 207, 0.5) 62%,
    #ffffff 78%,
    rgba(255, 255, 255, 0.45)
  );
  -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
  mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.sg-universe-phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 473 / 1018;
  border-radius: 38px;
  overflow: hidden;
  background: #F4F6F8;
  box-shadow: inset 0 0 0 1px rgba(31, 59, 65, 0.06);
}

.sg-universe-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.36s ease, transform 0.36s ease;
  pointer-events: none;
}

.sg-universe-phone-screen img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* 8 Orbiting Frosted Brand Cards */
#subscription-universe .orbit-service {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  max-width: 214px;
  padding: 11px 16px 11px 11px;
  border-radius: 20px;
  z-index: 50;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54));
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 34px -16px rgba(31, 59, 65, 0.22),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform, opacity;
}

#subscription-universe .orbit-service-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 10px rgba(31, 59, 65, 0.06);
  flex: none;
}

#subscription-universe .orbit-service-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#subscription-universe .orbit-service-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#subscription-universe .orbit-service strong {
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--sg-ink);
  white-space: nowrap;
}

#subscription-universe .orbit-service small {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--sg-ink-3);
  white-space: nowrap;
}

.universe-instructions {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sg-universe-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  position: relative;
  z-index: 10;
}

.sg-universe-hint {
  margin: 0;
  font-size: 12px;
  color: var(--sg-ink-3);
}

/* Segmented Pill Switcher (SCYPT History Tab look) */
.sg-segment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--sg-radius-pill);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 12px 28px -12px rgba(31, 59, 65, 0.12),
    inset 0 1px 0 #ffffff;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.sg-segment button {
  border: 0;
  padding: 8px 18px;
  border-radius: var(--sg-radius-pill);
  background: transparent;
  color: var(--sg-ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.sg-segment button.is-active {
  background: var(--sg-grad-primary);
  color: #ffffff;
  box-shadow: 0 6px 16px -4px rgba(31, 198, 178, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

/* ==========================================================================
   3. Interactive Bento Feature Grid (.sg-bento)
   ========================================================================== */
.sg-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.sg-bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 3vw, 32px);
}

.sg-span-7 {
  grid-column: span 7;
}

.sg-span-5 {
  grid-column: span 5;
}

.sg-bento-copy .sg-card-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-teal-700);
  margin-bottom: 8px;
}

.sg-glass-deep .sg-card-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.sg-bento-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(19px, 1.9vw, 22.5px);
  line-height: 1.34;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.sg-bento-copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--sg-ink-2);
}

.sg-glass-deep .sg-bento-copy p {
  color: rgba(255, 255, 255, 0.86);
}

/* Mini Card 1: Real Balance Snapshot + Animated Progress Bar */
.sg-mini-balance {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.sg-mini-balance-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sg-mini-balance-top small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.sg-mini-balance-top strong {
  font-size: clamp(28px, 3vw, 33px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sg-mini-balance-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sg-mini-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.sg-mini-stat span {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
}

.sg-mini-stat b {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}

.sg-mini-progress {
  margin-top: 14px;
}

.sg-mini-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 6px;
}

.sg-mini-bar-track {
  height: 9px;
  border-radius: var(--sg-radius-pill);
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.sg-mini-bar-fill {
  width: 91%;
  height: 100%;
  border-radius: var(--sg-radius-pill);
  background: linear-gradient(90deg, #5BF2C7 0%, #22E0AC 55%, #6FE7F2 100%);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.sg-bento-card.is-visible .sg-mini-bar-fill {
  transform: scaleX(1);
}

/* Mini Card 2: Interactive Clickable 7-Day Calendar */
.sg-mini-calendar {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 #ffffff;
}

.sg-mini-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--sg-ink-3);
}

.sg-mini-cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.sg-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 10.5px;
  color: var(--sg-ink-3);
  cursor: pointer;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.sg-cal-day:hover {
  background: rgba(31, 59, 65, 0.04);
}

.sg-cal-day b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--sg-ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sg-cal-day.has-bill::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sg-danger);
}

.sg-cal-day.is-today b {
  background: rgba(31, 198, 178, 0.16);
  color: var(--sg-teal-700);
}

.sg-cal-day.is-selected b {
  background: var(--sg-grad-primary);
  color: #ffffff;
  transform: scale(1.06);
  box-shadow: 0 5px 12px rgba(31, 198, 178, 0.34);
}

.sg-cal-day.has-bill.is-selected b {
  background: linear-gradient(135deg, #FF7A87, #E94B5C);
  box-shadow: 0 5px 12px rgba(242, 100, 116, 0.36);
}

.sg-cal-alert-pill {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--sg-danger-soft);
  border: 1px solid var(--sg-danger-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #BF2A3C;
  transition: all 0.22s ease;
}

.sg-cal-alert-pill.is-calm {
  background: var(--sg-mint-soft-pill);
  border-color: var(--sg-mint-soft-border);
  color: var(--sg-teal-700);
}

/* Mini Card 3: Multi-Gmail Chips with Real Google G */
.sg-mini-gmail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sg-mini-gmail-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 #ffffff;
}

.sg-gmail-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sg-gmail-badge {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 59, 65, 0.06);
  flex: none;
}

.sg-gmail-badge img {
  width: 100%;
  height: 100%;
  display: block;
}

.sg-gmail-id span {
  font-size: 13px;
  font-weight: 600;
  color: var(--sg-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-gmail-scope {
  padding: 4px 10px;
  border-radius: var(--sg-radius-pill);
  background: rgba(34, 224, 172, 0.14);
  color: var(--sg-teal-700);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* Mini Card 4: Category Breakdown & Animated Vertical Bars */
.sg-mini-analytics {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 #ffffff;
}

.sg-cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--sg-ink);
}

.sg-cat-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sg-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.sg-mini-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 86px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(235, 241, 244, 0.78);
}

.sg-bar-col {
  flex: 1;
  height: 100%;
  border-radius: var(--sg-radius-pill);
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: flex-end;
  padding: 2px;
}

.sg-bar-col i {
  display: block;
  width: 100%;
  border-radius: var(--sg-radius-pill);
  background: linear-gradient(180deg, #22E0AC 0%, #17B3C4 100%);
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.sg-bento-card.is-visible .sg-bar-col:nth-child(1) i { transition-delay: 0.06s; transform: scaleY(1); }
.sg-bento-card.is-visible .sg-bar-col:nth-child(2) i { transition-delay: 0.12s; transform: scaleY(1); }
.sg-bento-card.is-visible .sg-bar-col:nth-child(3) i { transition-delay: 0.18s; transform: scaleY(1); }
.sg-bento-card.is-visible .sg-bar-col:nth-child(4) i { transition-delay: 0.24s; transform: scaleY(1); }
.sg-bento-card.is-visible .sg-bar-col:nth-child(5) i { transition-delay: 0.30s; transform: scaleY(1); }
.sg-bento-card.is-visible .sg-bar-col:nth-child(6) i { transition-delay: 0.36s; transform: scaleY(1); }
.sg-bento-card.is-visible .sg-bar-col:nth-child(7) i { transition-delay: 0.42s; transform: scaleY(1); }

.sg-bar-col:hover i {
  filter: brightness(1.08);
}

/* ==========================================================================
   4. On-Device Privacy Architecture (.sg-privacy)
   ========================================================================== */
.sg-privacy-shell {
  padding: clamp(28px, 4.5vw, 50px);
  border-radius: 34px;
}

.sg-privacy-shell::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 224, 172, 0.18), transparent 70%);
  pointer-events: none;
}

.sg-privacy-head {
  max-width: 700px;
  margin-bottom: 28px;
}

.sg-privacy-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--sg-ink);
}

.sg-privacy-head p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--sg-ink-2);
}

.sg-privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.sg-privacy-step {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px -16px rgba(31, 59, 65, 0.12), inset 0 1px 0 #ffffff;
  transition: transform 0.25s ease;
}

.sg-privacy-step:hover {
  transform: translateY(-2px);
}

.sg-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--sg-grad-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 6px 14px -4px rgba(31, 198, 178, 0.42);
}

.sg-privacy-step h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.38;
  font-weight: 600;
  color: var(--sg-ink);
}

.sg-privacy-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: var(--sg-ink-2);
}

.sg-privacy-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 59, 65, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sg-privacy-foot p {
  margin: 0;
  max-width: 680px;
  font-size: 13px;
  line-height: 1.68;
  color: var(--sg-ink-2);
}

.sg-privacy-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sg-teal-700);
}

.sg-privacy-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Interactive App Walkthrough (.sg-showcase)
   ========================================================================== */
.sg-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4.5vw, 56px);
  align-items: center;
  max-width: 1060px;
  margin: 0 auto;
}

.sg-tab-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sg-tab-card {
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: var(--sg-ink);
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.sg-tab-card:hover {
  background: rgba(255, 255, 255, 0.78);
}

.sg-tab-card.is-active {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
  border-color: rgba(31, 198, 178, 0.52);
  box-shadow:
    0 18px 36px -16px rgba(15, 92, 101, 0.16),
    inset 0 1px 0 #ffffff;
}

.sg-tab-card span {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-teal-700);
}

.sg-tab-card strong {
  display: block;
  margin-top: 4px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--sg-ink);
}

.sg-tab-card p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--sg-ink-2);
}

.sg-showcase-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
}

.sg-phone {
  position: relative;
  width: 270px;
  aspect-ratio: 473 / 1018;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(155deg, #F6F8F9 0%, #DBE2E8 45%, #B9C3CC 100%);
  box-shadow:
    0 32px 68px -22px rgba(31, 59, 65, 0.22),
    0 8px 24px -10px rgba(15, 92, 101, 0.12),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.9);
}

.sg-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #F4F6F8;
}

.sg-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.36s ease, transform 0.36s ease;
  pointer-events: none;
  user-select: none;
}

.sg-phone-screen img.is-active {
  opacity: 1;
  transform: scale(1);
}

.sg-highlight-ring {
  position: absolute;
  left: 4.5%;
  right: 4.5%;
  border-radius: 18px;
  border: 2px solid var(--sg-mint);
  box-shadow: 0 0 0 4px rgba(34, 224, 172, 0.22), 0 8px 20px rgba(15, 92, 101, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
  transform: scale(0.97);
}

.sg-highlight-ring.is-spend {
  top: 14.2%;
  height: 22.8%;
}

.sg-highlight-ring.is-billing {
  top: 49.4%;
  height: 17.8%;
}

.sg-highlight-ring.is-manage {
  top: 72%;
  height: 21%;
}

.sg-showcase-stage[data-active-step="0"] .sg-highlight-ring.is-spend,
.sg-showcase-stage[data-active-step="1"] .sg-highlight-ring.is-billing,
.sg-showcase-stage[data-active-step="2"] .sg-highlight-ring.is-manage {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   6. Consumer FAQ, Closing Glass Banner & Minimal Footer
   ========================================================================== */
.sg-faq-wrap {
  max-width: 840px;
  margin: 0 auto;
}

.sg-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sg-faq-item {
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.22s ease;
}

.sg-faq-item[open] {
  box-shadow:
    0 20px 40px -18px rgba(15, 92, 101, 0.14),
    inset 0 1px 0 #ffffff;
}

.sg-faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--sg-ink);
  cursor: pointer;
}

.sg-faq-item summary::-webkit-details-marker {
  display: none;
}

.sg-faq-plus {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(31, 59, 65, 0.055);
  flex: none;
}

.sg-faq-plus::before,
.sg-faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--sg-ink-soft);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease;
}

.sg-faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sg-faq-item[open] .sg-faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.sg-faq-body {
  padding: 0 24px 22px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--sg-ink-2);
}

.sg-faq-body a {
  display: inline-block;
  margin-top: 8px;
  color: var(--sg-teal-700);
  font-weight: 600;
}

.sg-closing-card {
  padding: clamp(34px, 5vw, 56px) clamp(24px, 4vw, 48px);
  text-align: center;
  border-radius: 34px;
}

.sg-closing-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(10, 48, 52, 0.16);
  margin-bottom: 18px;
}

.sg-closing-card h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.24;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #ffffff;
}

.sg-closing-card p {
  margin: 0 auto 26px;
  max-width: 520px;
  font-size: 15.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
}

.sg-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.sg-footer {
  padding: 0 0 42px;
}

.sg-footer-card {
  padding: 26px clamp(22px, 3.5vw, 34px);
  border-radius: 28px;
}

.sg-footer-guides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(31, 59, 65, 0.08);
}

.sg-footer-guides strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--sg-ink);
}

.sg-footer-guides span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--sg-ink-2);
}

.sg-footer-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sg-teal-700);
}

.sg-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--sg-ink-2);
}

.sg-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
}

.sg-footer-legal a:hover,
.sg-footer-guide-links a:hover {
  color: var(--sg-teal-700);
  text-decoration: underline;
}

/* Reveal utility */
.sg-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}

.sg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1120px) {
  #subscription-universe {
    --universe-scale: 0.85;
    height: 615px;
  }
}

@media (max-width: 900px) {
  .sg-showcase-grid,
  .sg-privacy-grid {
    grid-template-columns: 1fr;
  }

  .sg-span-7,
  .sg-span-5 {
    grid-column: span 12;
  }

  #subscription-universe {
    --universe-scale: 0.68;
    height: 520px;
  }
}

@media (max-width: 600px) {
  .sg-container {
    width: calc(100% - 28px);
  }

  #subscription-universe {
    --universe-scale: 0.35;
    width: calc(100vw - 12px);
    height: 350px;
  }

  #subscription-universe .orbit-service small {
    display: none;
  }

  #subscription-universe .orbit-service {
    padding: 13px 16px 13px 12px;
  }

  #subscription-universe .orbit-service strong {
    font-size: 16px;
  }

  #subscription-universe .orbit-service-mark {
    width: 46px;
    height: 46px;
  }

  .sg-phone {
    width: 242px;
    border-radius: 40px;
  }

  .sg-phone-screen {
    border-radius: 32px;
  }

  .sg-mini-analytics,
  .sg-mini-balance-stats {
    grid-template-columns: 1fr;
  }

  .sg-pill-primary,
  .sg-pill-secondary,
  .sg-pill-light,
  .sg-pill-ghost-light {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.scypt-web:has(> body.home-apple-page) {
    scroll-behavior: auto;
  }

  body.home-apple-page::before,
  body.home-apple-page::after,
  .sg-eyebrow-dot {
    animation: none;
  }

  .sg-reveal,
  .sg-phone-screen img,
  .sg-highlight-ring,
  .sg-mini-bar-fill,
  .sg-bar-col i {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
