/* ============================================================================
   MyApps Sydney — store styles  ·  DARK "studio" edition
   Bold, high-contrast, media-app energy (FL Studio-inspired). Near-black grounds,
   heavy type, gold brand accent + each app's own colour glowing on its card.
   Type: Plus Jakarta Sans (loaded per page). Deliberately single (dark) theme.
   ============================================================================ */
:root {
  /* Grounds — near-black with a faint blue bias (chosen, not pure grey) */
  --bg:        #0a0c11;
  --surface:   #12151d;
  --surface-2: #0e1119;
  --surface-3: #1a1f2b;
  --line:      #242b39;
  --line-2:    #333c4d;

  /* Ink */
  --ink:       #eef2f8;
  --muted:     #98a3b6;
  --faint:     #6b7688;

  /* Brand accent (gold) — brightened for dark */
  --gold:      #e0b73f;
  --gold-2:    #f3d268;

  /* Semantic (separate from accent) */
  --ok:        #34d17f;
  --ok-bg:     rgba(52,209,127,.14);
  --soon:      #f0b64a;
  --soon-bg:   rgba(240,182,74,.14);

  --radius:    16px;
  --radius-sm: 11px;
  --shadow:    0 2px 6px rgba(0,0,0,.4), 0 18px 44px -20px rgba(0,0,0,.7);
  --maxw:      1140px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.025em; line-height: 1.1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.tnum { font-variant-numeric: tabular-nums; }
::selection { background: rgba(224,183,63,.3); }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 17, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: grid; place-items: center; color: #1a1206; font-weight: 800; font-size: 18px;
  box-shadow: 0 0 20px -4px rgba(224,183,63,.5);
}
.brand .name { display: flex; flex-direction: column; line-height: 1; }
.brand .name b { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .name small { color: var(--gold-2); font-weight: 600; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; margin-top: 3px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 15px; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 15.5px;
  padding: 12px 20px; border-radius: 11px; text-decoration: none;
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1206; box-shadow: 0 0 24px -6px rgba(224,183,63,.6); }
.btn-gold:hover { box-shadow: 0 0 34px -4px rgba(224,183,63,.8); }
.btn-navy { background: var(--surface-3); color: #fff; border: 1px solid var(--line-2); }
.btn-navy:hover { background: #232a38; }
.btn-ghost { background: rgba(255,255,255,0.03); color: #fff; border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--gold); }
.btn-lite { background: var(--surface-3); color: var(--ink); border: 1px solid var(--line); }
.btn-lite:hover { background: #232a38; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 9px 15px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  padding: 90px 0 96px;
  background:
    radial-gradient(720px 380px at 78% -8%, rgba(224,183,63,.20), transparent 60%),
    radial-gradient(680px 420px at 12% 8%, rgba(94,120,255,.16), transparent 62%),
    radial-gradient(700px 500px at 60% 120%, rgba(214,64,159,.12), transparent 60%),
    var(--bg);
}
.hero::after { /* subtle top hairline glow */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,183,63,.5), transparent);
}
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); margin: 0 0 20px; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-2), var(--gold) 60%, #ffedb0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: clamp(17px, 2vw, 21px); color: #c2ccdb; max-width: 630px; margin: 0 0 32px; line-height: 1.55; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; gap: 12px 28px; flex-wrap: wrap; margin-top: 40px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.trust span { display: inline-flex; align-items: center; gap: 9px; }
.trust svg { flex: 0 0 auto; }

/* ---- Eyebrow / section heads ---------------------------------------------- */
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 12px; }
section.block { padding: 76px 0; }
.band { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; line-height: 1.6; }

/* ---- How it works ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.step .num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1206; font-weight: 800; font-size: 17px; margin-bottom: 18px;
  box-shadow: 0 0 20px -6px rgba(224,183,63,.6);
}
.step h3 { margin: 0 0 7px; font-size: 19px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---- App grid -------------------------------------------------------------- */
.cat-title { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); font-weight: 700; margin: 44px 0 18px; display: flex; align-items: center; gap: 14px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }

.card {
  --accent: var(--gold);
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .16s ease, border-color .22s ease, box-shadow .28s ease;
}
.card::before { /* accent glow bar along the top */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .6; transition: opacity .25s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 24px 60px -22px color-mix(in srgb, var(--accent) 60%, transparent), var(--shadow);
}
.card:hover::before { opacity: 1; }
.card:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.card .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 29px; margin-bottom: 16px; background: var(--surface-3); }
.app-ic { display: block; border-radius: 14px; box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--accent) 65%, transparent); }
.app-ic-56 { width: 56px; height: 56px; margin-bottom: 16px; }
.app-ic-80 { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.app-ic-50 { width: 50px; height: 50px; border-radius: 12px; flex: 0 0 auto; }
.card h3 { margin: 0 0 5px; font-size: 21px; font-weight: 800; }
.card .tag { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; line-height: 1.45; }
.card .points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.card .points li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: #c3cddb; line-height: 1.45; }
.card .points li svg { flex: 0 0 auto; margin-top: 3px; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.card .price { font-weight: 800; font-size: 17px; color: #fff; }
.card .price small { color: var(--muted); font-weight: 600; font-size: 13px; }

.status { display: inline-flex; align-items: center; gap: 6px; position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.status.soon { background: var(--soon-bg); color: var(--soon); }
.status.live { background: var(--ok-bg); color: var(--ok); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* ---- Why us grid ----------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why { text-align: left; }
.why .icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 25px; background: var(--surface-3); border: 1px solid var(--line); margin-bottom: 15px; }
.why h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- App detail ------------------------------------------------------------ */
.detail { padding: 56px 0; }
.detail-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.back { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.back:hover { color: var(--gold-2); }
.detail .icon-lg { width: 80px; height: 80px; border-radius: 20px; display: grid; place-items: center; font-size: 42px; margin: 18px 0; background: var(--surface-3); }
.detail h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 0 0 10px; font-weight: 800; letter-spacing: -0.03em; }
.detail .lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; line-height: 1.55; }
.feature-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 16.5px; }
.feature-list li svg { flex: 0 0 auto; margin-top: 4px; }

.buybox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; position: sticky; top: 92px; }
.buybox h3 { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.buybox .bb-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 15px 17px; margin: 12px 0; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.plan:hover { border-color: var(--gold); }
.plan.selected { border-color: var(--gold); background: rgba(224,183,63,.08); box-shadow: 0 0 0 3px rgba(224,183,63,.14); }
.plan .pl-label { font-weight: 700; font-size: 15.5px; }
.plan .pl-price { font-weight: 800; font-size: 16px; }
.plan .pl-price small { color: var(--muted); font-weight: 600; font-size: 13px; }
.badge { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1206; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; margin-left: 8px; }
.hint { color: var(--faint); font-size: 13px; text-align: center; margin: 14px 0 0; }
.note-box { color: var(--muted); font-size: 14px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; margin: 0 0 4px; }

/* ---- Account dashboard ----------------------------------------------------- */
.dash { padding: 52px 0 76px; }
.dash h1 { margin: 0 0 6px; font-size: 34px; font-weight: 800; }
.dash .sub { color: var(--muted); margin: 0 0 30px; font-size: 17px; }
.owned { display: grid; gap: 18px; }
.owned .row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow); }
.owned .row .icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; background: var(--surface-3); }
.owned .row .meta { flex: 1 1 auto; min-width: 0; }
.owned .row .meta b { display: block; font-size: 18px; }
.owned .row .meta .lic { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; color: var(--muted); margin-top: 4px; }
.owned .row .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.empty { text-align: center; padding: 56px 28px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty h2 { color: var(--ink); }

/* ---- Modal ----------------------------------------------------------------- */
.modal-back { position: fixed; inset: 0; background: rgba(4,6,10,.72); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(4px); }
.modal-back.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; width: 100%; max-width: 430px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.modal h3 { margin: 0 0 5px; font-size: 23px; font-weight: 800; }
.modal p.hint { color: var(--muted); margin: 0 0 20px; font-size: 15px; text-align: left; }
.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
.field input { width: 100%; padding: 13px 15px; background: var(--surface-2); color: var(--ink); border: 1.5px solid var(--line-2); border-radius: 11px; font-size: 16px; font-family: inherit; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,183,63,.18); }
.modal .btn { width: 100%; margin-top: 8px; }
.modal .switch { text-align: center; margin-top: 18px; font-size: 15px; color: var(--muted); }
.modal .switch a { color: var(--gold-2); font-weight: 700; cursor: pointer; }
.msg { font-size: 14.5px; padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
.msg.err { display: block; background: rgba(255,90,90,.12); color: #ff8a8a; }
.msg.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.modal .close { float: right; cursor: pointer; color: var(--muted); font-size: 24px; line-height: 1; margin: -8px -8px 0 0; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); color: var(--muted); padding: 44px 0; margin-top: 24px; font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--gold-2); }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-2); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---- Legal ----------------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 76px; }
.legal h1 { font-size: 34px; font-weight: 800; }
.legal h2 { margin-top: 32px; font-size: 22px; }
.legal p, .legal li { color: #c3cddb; }
.legal a { color: var(--gold-2); }

#toast { font-family: var(--font); }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .detail-top { grid-template-columns: 1fr; }
  .buybox { position: static; }
  .steps { grid-template-columns: 1fr; }
  .nav a.hide-sm { display: none; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
