:root {
  --sky: #0e90f4;
  --sky-deep: #086bb8;
  --peach: #e29755;
  --peach-soft: #f7c49a;
  --cream: #fff7f0;
  --ink: #1a2a3a;
  --muted: #5a6b7c;
  --line: rgba(14, 144, 244, 0.18);
  --card: #ffffff;
  --ok: #1f9d63;
  --bad: #d64545;
  --glow: #ff8a3d;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(14, 90, 160, 0.12);
  --font-display: "Outfit", sans-serif;
  --font-body: "Nunito", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(14, 144, 244, 0.18), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(226, 151, 85, 0.2), transparent 55%),
    linear-gradient(180deg, #f4fbff 0%, var(--cream) 42%, #ffffff 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { color: var(--peach); }
ul { margin: 0; padding: 0; list-style: none; }

.ap-frame { min-height: 100vh; display: flex; flex-direction: column; }
.ap-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.ap-content { flex: 1; padding: 28px 0 56px; }

.ap-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
}
.ap-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
}
.ap-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  min-width: 0;
  flex-shrink: 1;
}
.ap-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 144, 244, 0.15);
  flex-shrink: 0;
}
.ap-logo strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ap-logo em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ap-menu-btn {
  display: none;
  border: 0;
  background: var(--sky);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.ap-nav {
  flex-shrink: 0;
}
.ap-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.ap-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
  white-space: nowrap;
}
.ap-nav-link i { font-size: 0.9rem; opacity: 0.85; }
.ap-nav-link:hover { background: rgba(14, 144, 244, 0.08); color: var(--sky-deep); }
.ap-nav-link.is-active:not(.ap-shop-cta) {
  background: #e8f5ff;
  border-color: rgba(14, 144, 244, 0.25);
  color: var(--sky-deep);
}
a.ap-shop-cta,
.ap-shop-cta {
  background: linear-gradient(135deg, var(--glow), #ffb347) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(255, 138, 61, 0.35);
  padding: 11px 18px;
  font-size: 0.95rem;
  transform: translateY(0);
  white-space: nowrap;
  flex-shrink: 0;
}
a.ap-shop-cta:hover,
.ap-shop-cta:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, #ff9a52, #ffc05a) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
a.ap-shop-cta.is-active,
.ap-shop-cta.is-active {
  background: linear-gradient(135deg, #e87420, #f0a020) !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.35), 0 10px 24px rgba(255, 138, 61, 0.4);
  outline: none;
}
.ap-shop-cta i { opacity: 1; color: #fff !important; }

.ap-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: rgba(14, 144, 244, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.ap-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.ap-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 58ch;
}

.ap-mast {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
  padding: 8px 0 8px;
}
.ap-mast-copy {
  position: relative;
  padding: 8px 0 8px 18px;
  border-left: 4px solid var(--peach);
}
.ap-mast-visual {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
  background: #fff;
}
.ap-mast-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ap-play-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.ap-play-btns a {
  display: block;
  transition: transform 0.2s ease;
}
.ap-play-btns a:hover { transform: translateY(-2px); }
.ap-play-btns img {
  height: 52px;
  width: auto;
}

.ap-stream {
  display: grid;
  gap: 18px;
  margin: 34px 0;
}
.ap-stream-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(14, 90, 160, 0.06);
}
.ap-stream-row img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}
.ap-stream-row h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.ap-stream-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.ap-stream-row a.ap-linkish {
  font-weight: 800;
  white-space: nowrap;
  color: var(--sky-deep);
}

.ap-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.ap-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.ap-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.ap-split.ap-flip { grid-template-columns: 1.1fr 0.9fr; }
.ap-split figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
}
.ap-split figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.ap-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(14, 90, 160, 0.07);
}
.ap-panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}
.ap-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.ap-timeline {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.ap-timeline article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(14, 144, 244, 0.08), transparent);
}
.ap-timeline b {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--sky);
  color: #fff;
  font-family: var(--font-display);
}
.ap-timeline h3 { margin: 0 0 4px; font-size: 1.05rem; }
.ap-timeline p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.ap-zig {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}
.ap-zig article {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ap-zig article:nth-child(even) { grid-template-columns: 1.2fr 1fr; }
.ap-zig article:nth-child(even) .ap-zig-copy { order: -1; }
.ap-zig img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.ap-zig-copy { padding: 22px; }
.ap-zig-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}
.ap-zig-copy p { margin: 0; color: var(--muted); line-height: 1.6; }

.ap-feature-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.ap-feature-rail article {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed rgba(226, 151, 85, 0.45);
}
.ap-feature-rail i {
  color: var(--peach);
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.ap-feature-rail h3 { margin: 0 0 6px; font-size: 1.05rem; }
.ap-feature-rail p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.ap-contact-stack {
  display: grid;
  gap: 14px;
}
.ap-contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(14, 90, 160, 0.06);
}
.ap-contact-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.ap-contact-ico.pin { background: linear-gradient(135deg, #0e90f4, #45b0ff); }
.ap-contact-ico.mail { background: linear-gradient(135deg, #e29755, #f0b27a); }
.ap-contact-ico.phone { background: linear-gradient(135deg, #1f9d63, #49c487); }
.ap-contact-card h3 { margin: 0 0 4px; font-size: 1rem; }
.ap-contact-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.ap-tip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.ap-tip-row article {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
}
.ap-tip-row h3 { margin: 0 0 6px; font-size: 1rem; }
.ap-tip-row p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.ap-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff1f0;
  border: 1px solid rgba(214, 69, 69, 0.35);
  color: #8f1f1f;
  margin: 16px 0;
  font-weight: 700;
}

.ap-notes {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}
.ap-notes li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.5;
}
.ap-notes i { color: var(--sky); margin-top: 3px; }

.ap-money-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}
.ap-money-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
}
.ap-money-btn.is-on {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
}

.ap-shop-stack {
  display: grid;
  gap: 22px;
}
.ap-order-slab {
  background: linear-gradient(160deg, #0c6fbd, #1498ef 55%, #56b8f8);
  color: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(12, 111, 189, 0.28);
}
.ap-order-slab h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
}
.ap-field { margin-bottom: 14px; }
.ap-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 0.9rem;
}
.ap-field input[type="text"],
.ap-field input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.ap-picked {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
}
.ap-pay-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.ap-pay {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  border: 2px solid transparent;
}
.ap-pay.is-on { border-color: #fff; background: rgba(255, 255, 255, 0.28); }
.ap-pay input { accent-color: #fff; }
.ap-agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
}
.ap-agree a { color: #fff; text-decoration: underline; }
.ap-err {
  display: block;
  min-height: 1.1em;
  margin-top: 4px;
  color: #ffe1a8;
  font-size: 0.85rem;
  font-weight: 700;
}
.ap-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
.ap-btn-warm {
  width: 100%;
  background: linear-gradient(135deg, #ff8a3d, #ffc14d);
  color: #1a2a3a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.ap-btn-ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.ap-btn-sky {
  background: var(--sky);
  color: #fff;
}
.ap-btn-soft {
  background: #e8f5ff;
  color: var(--sky-deep);
}

.ap-gem-board h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
}
.ap-gem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ap-gem {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 90, 160, 0.07);
  transition: 0.15s ease;
}
.ap-gem:hover { transform: translateY(-2px); }
.ap-gem.is-on { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(14, 144, 244, 0.15); }
.ap-gem img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.ap-gem-title { font-weight: 800; }
.ap-gem-price {
  font-family: var(--font-display);
  color: var(--peach);
  font-weight: 800;
  white-space: nowrap;
}
.ap-load, .ap-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 14px;
  border: 1px dashed var(--line);
}

.ap-invoice, .ap-result {
  max-width: 640px;
  margin: 12px auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.ap-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  text-align: left;
}
.ap-table th, .ap-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
.ap-table th { width: 38%; color: var(--muted); font-weight: 700; }
.ap-total { color: var(--peach); font-weight: 800; font-size: 1.15rem; }
.ap-count {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--sky);
  margin: 8px 0 16px;
}
.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.ap-result i { font-size: 2.6rem; margin-bottom: 10px; }
.ap-result.ok i { color: var(--ok); }
.ap-result.bad i { color: var(--bad); }
.ap-result p { color: var(--muted); line-height: 1.6; }

.ap-footer {
  margin-top: auto;
  background: #10263a;
  color: rgba(255, 255, 255, 0.82);
  padding: 28px 0 22px;
}
.ap-footer a { color: #9fd2ff; }
.ap-footer a:hover { color: #fff; }
.ap-footer-grid {
  display: grid;
  gap: 16px;
}
.ap-footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.ap-footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
}
.ap-footer-brand strong { display: block; color: #fff; }
.ap-footer-brand span { display: block; font-size: 0.88rem; opacity: 0.85; }
.ap-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.ap-footer-copy {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.75;
}

.ap-tone-aurora .ap-kicker { color: #b86a28; background: rgba(226, 151, 85, 0.16); }
.ap-tone-lumin .ap-kicker { color: #0b6aa8; }
.ap-tone-contact .ap-kicker { color: #6a4ea8; background: rgba(140, 110, 200, 0.14); }
.ap-tone-shop .ap-kicker { color: #c45d12; background: rgba(255, 138, 61, 0.16); }

@media (max-width: 900px) {
  .ap-mast,
  .ap-split,
  .ap-split.ap-flip,
  .ap-zig article,
  .ap-zig article:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .ap-zig article:nth-child(even) .ap-zig-copy { order: 0; }
  .ap-split figure { position: static; }
  .ap-gallery { grid-template-columns: repeat(2, 1fr); }
  .ap-feature-rail,
  .ap-tip-row,
  .ap-gem-grid,
  .ap-pay-list { grid-template-columns: 1fr; }
  .ap-stream-row {
    grid-template-columns: 1fr;
  }
  .ap-mast-visual { transform: none; }
}

@media (max-width: 1100px) {
  .ap-menu-btn { display: inline-grid; place-items: center; }
  .ap-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .ap-nav.is-open { display: block; }
  .ap-nav ul {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .ap-nav-link,
  a.ap-shop-cta,
  .ap-shop-cta {
    justify-content: flex-start;
    width: 100%;
  }
  .ap-topbar-row { position: relative; }
}
