/* DeepBlue All Access — landing, success and account pages.
   Builds on /style.css (palette, header, footer). Mobile first. */

:root {
  --navy: #082f66;
  --navy-deep: #061f45;
  --gradient: linear-gradient(90deg, #3b5bf5, #9b4ef2 55%, #f0479c);
  --card: #ffffff;
  --soft: #f2f7fd;
  --ok: #157a4a;
  --warn: #9a5b00;
  --err: #b42318;
}

body.aa { background: var(--soft); }
.aa h1, .aa h2 { font-family: "Poppins", -apple-system, sans-serif; letter-spacing: -0.5px; }

.aa-hero {
  /* Swooshy blue → violet → pink, echoing the whale logo */
  background:
    radial-gradient(60% 50% at 85% 15%, rgba(155, 78, 242, .35), transparent 70%),
    radial-gradient(55% 45% at 10% 85%, rgba(47, 184, 255, .28), transparent 70%),
    radial-gradient(50% 40% at 70% 95%, rgba(240, 71, 156, .22), transparent 70%),
    linear-gradient(160deg, #0b3f9a 0%, var(--navy) 45%, #1a1f6e 75%, var(--navy-deep) 100%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding: 40px 20px 72px;
}
.aa-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("hero-swoosh.svg") center / cover no-repeat;
}
.aa-hero .logo { display: block; width: 72px; height: 72px; margin: 0 auto; object-fit: contain; }
.aa-hero .kicker {
  display: inline-block; margin: 14px 0 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: #cfe0ff;
}
.aa-hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.12; }
.aa-hero h1 .accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.aa-hero p { margin: 0 auto; max-width: 520px; color: #dbe7fb; font-size: 17px; }

.aa-icons { display: flex; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.aa-icons img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
/* "All future apps": a dotted placeholder tile with a plus */
.aa-future-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 11px;
  border: 2px dashed rgba(207, 224, 255, .75); color: #cfe0ff;
}
.aa-future-icon svg { display: block; }
.aa-app .aa-future-icon { width: 52px; height: 52px; border-radius: 13px; border-color: #9fb3d1; color: #6a7f9c; }
.aa-app.future { border-style: dashed; }

.aa-main { position: relative; z-index: 1; max-width: 760px; margin: -44px auto 0; padding: 0 16px 24px; }
.aa-card {
  background: var(--card); border-radius: 20px;
  box-shadow: 0 10px 30px rgba(8,47,102,.12);
  padding: 22px 18px; margin-bottom: 18px;
}
.aa-card h2 { margin: 0 0 6px; font-size: 22px; color: var(--ink); }
.aa-card .sub { margin: 0 0 16px; color: var(--ink-muted); font-size: 15px; }

/* Currency switch */
.aa-currency { display: flex; justify-content: center; gap: 6px; margin: 0 0 16px; }
.aa-currency button {
  border: 1px solid var(--border); background: #fff; color: var(--ink);
  font: inherit; font-weight: 700; font-size: 14px;
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
}
.aa-currency button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Plans */
.aa-plans { display: grid; gap: 12px; }
.aa-plan {
  position: relative; display: block; width: 100%; text-align: left;
  border: 2px solid var(--border); border-radius: 16px; background: #fff;
  padding: 16px 16px 14px; cursor: pointer; font: inherit; color: var(--ink);
}
.aa-plan[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,79,176,.15); }
.aa-plan .name { font-weight: 800; font-size: 17px; }
.aa-plan .price { font-size: 26px; font-weight: 800; margin-top: 2px; }
.aa-plan .price small { font-size: 15px; font-weight: 600; color: var(--ink-muted); }
.aa-plan .price s { font-size: 17px; font-weight: 600; color: var(--ink-muted); margin-right: 4px; }
.aa-plan .note { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.aa-plan .tag {
  position: absolute; top: -11px; right: 14px;
  background: var(--gradient); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 999px;
}

.aa-compare { margin: 14px 0 0; font-size: 14px; color: var(--ink-muted); text-align: center; }

/* Buttons */
.aa-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px 16px; margin-top: 12px;
  border-radius: 14px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff !important;
  font: inherit; font-weight: 800; font-size: 17px; text-decoration: none !important;
}
.aa-btn:hover { background: #0a3b80; }
.aa-btn.primary { background: linear-gradient(90deg, #0e4fb0, #3b5bf5); }
.aa-btn.light { background: #fff; color: var(--ink) !important; border: 1px solid var(--border); }
.aa-btn.light:hover { background: var(--soft); }
.aa-btn[disabled] { opacity: .55; cursor: wait; }
.aa-btn svg { width: 20px; height: 20px; flex: none; }

.aa-signin { display: grid; gap: 0; }
.aa-or { text-align: center; color: var(--ink-muted); font-size: 13px; margin: 14px 0 2px; }
.aa-field { display: flex; gap: 8px; margin-top: 10px; }
.aa-field input {
  flex: 1; min-width: 0; font: inherit; font-size: 17px;
  padding: 13px 14px; border-radius: 12px; border: 1px solid var(--border);
}
.aa-field .aa-btn { width: auto; margin-top: 0; padding: 13px 16px; font-size: 15px; }

.aa-signedin { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--ink-muted); }
.aa-signedin button { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

.aa-msg { margin-top: 12px; font-size: 15px; border-radius: 10px; padding: 10px 12px; }
.aa-msg:empty { display: none; }
.aa-msg.err { background: #fdecea; color: var(--err); }
.aa-msg.ok { background: #e8f5ee; color: var(--ok); }
.aa-msg.info { background: var(--soft); color: var(--ink); }

/* Billing small print */
.aa-terms { font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; margin-top: 14px; }
.aa-terms p { margin: 0 0 8px; }

/* Included apps */
.aa-apps { display: grid; gap: 10px; }
.aa-app { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); text-decoration: none !important; color: var(--ink) !important; }
.aa-app:hover { background: var(--soft); }
.aa-app img { width: 52px; height: 52px; border-radius: 13px; flex: none; }
.aa-app .t { font-weight: 800; }
.aa-app .d { font-size: 14px; color: var(--ink-muted); }
.aa-app .go { margin-left: auto; color: var(--brand); font-weight: 700; font-size: 14px; white-space: nowrap; }

.aa-faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.aa-faq details:first-of-type { border-top: 0; }
.aa-faq summary { font-weight: 700; cursor: pointer; }
.aa-faq p { margin: 8px 0 0; color: var(--ink-muted); font-size: 15px; }

/* Account */
.aa-status { display: inline-block; white-space: nowrap; font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.aa-status.active { background: #e8f5ee; color: var(--ok); }
.aa-status.ending { background: #fff4e0; color: var(--warn); }
.aa-status.off { background: #eef1f5; color: var(--ink-muted); }
.aa-rows { margin: 12px 0 0; }
.aa-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 15px; }
.aa-rows dt { color: var(--ink-muted); }
.aa-rows dd { margin: 0; font-weight: 700; text-align: right; }
.aa-methods { list-style: none; padding: 0; margin: 10px 0 0; }
.aa-methods li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); font-size: 15px; }

.aa-spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--border); border-top-color: var(--brand); margin: 18px auto; animation: aa-spin 1s linear infinite; }
@keyframes aa-spin { to { transform: rotate(360deg); } }

.aa-hidden { display: none !important; }

@media (min-width: 640px) {
  .aa-hero { padding: 56px 24px 88px; }
  .aa-hero h1 { font-size: 46px; }
  .aa-card { padding: 28px; }
  .aa-plans { grid-template-columns: 1fr 1fr; }
  .aa-apps { grid-template-columns: 1fr 1fr; }
}

/* Sale (apps.json "promo"): bar, hero badge, discount tags, countdown */
.aa-promo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px;
  background: #000; color: #fff; padding: 10px 16px; font-size: 14px; text-align: center;
}
.aa-promo-bar strong { letter-spacing: 1.5px; color: #ffd84d; }
.aa-promo-bar .aa-countdown { font-variant-numeric: tabular-nums; font-weight: 700; background: #e11d48; padding: 2px 8px; border-radius: 6px; }
.aa-promo-badge {
  display: table; margin: 14px auto 0; padding: 6px 14px; border-radius: 999px;
  background: #ffd84d; color: #000; font-weight: 800; font-size: 14px;
}
.aa-sale .aa-plan .tag { background: #000; color: #ffd84d; }
.aa-sale .aa-plan .price s { color: #e11d48; text-decoration-thickness: 2px; }
.aa-sale .aa-plan .price { color: var(--ink); }
.aa-promo-ends {
  margin: 8px 0 0; text-align: center; font-size: 15px; font-weight: 700; color: #e11d48;
  font-variant-numeric: tabular-nums;
}
