/* ============================================================================
   MyApps Sydney — store styles
   Professional, calm, highly readable. Navy identity + a single gold accent.
   Type: Plus Jakarta Sans (loaded in each page's <head>), system fallback.
   ============================================================================ */
:root {
  /* Brand */
  --navy:      #0b1f3a;
  --navy-2:    #11294a;
  --navy-3:    #1d3a63;
  --gold:      #c19b34;
  --gold-2:    #d8b24a;

  /* Neutrals — cool, slight blue bias (chosen, not default grey) */
  --paper:     #f6f8fc;
  --card:      #ffffff;
  --ink:       #14243c;
  --ink-soft:  #37496485;
  --muted:     #5a6a82;
  --line:      #e6ecf4;
  --line-2:    #d7e0ec;

  /* Semantic (separate from the gold accent) */
  --ok:        #1f7a44;
  --ok-bg:     #e7f4ec;
  --soon:      #9a6a12;
  --soon-bg:   #fbf1d9;

  --radius:    16px;
  --radius-sm: 11px;
  --shadow:    0 1px 2px rgba(20,36,60,.04), 0 10px 30px rgba(20,36,60,.06);
  --shadow-lg: 0 18px 44px rgba(20,36,60,.14);
  --maxw:      1120px;
  --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(--paper);
  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.02em; line-height: 1.15; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 31, 58, 0.98);
  backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.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: var(--navy); font-weight: 800; font-size: 18px;
}
.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: #c8d4e6; text-decoration: none; padding: 9px 13px; border-radius: 9px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* ---- 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: #241a03; box-shadow: 0 2px 10px rgba(193,155,52,.28); }
.btn-gold:hover { box-shadow: 0 8px 22px rgba(193,155,52,.4); }
.btn-navy { background: var(--navy-3); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.5); }
.btn-lite { background: #eef2f8; color: var(--navy); }
.btn-lite:hover { background: #e3e9f3; }
.btn-sm { padding: 9px 15px; font-size: 14.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---- Hero ------------------------------------------------------------------ */
.hero {
  background:
    radial-gradient(900px 420px at 82% -20%, #234a7d 0%, rgba(35,74,125,0) 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 76px 0 84px; overflow: hidden;
}
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); margin: 0 0 18px; font-weight: 800; }
.hero h1 .accent { color: var(--gold-2); }
.hero .sub { font-size: clamp(17px, 2vw, 21px); color: #c3d1e6; max-width: 620px; margin: 0 0 30px; line-height: 1.55; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 36px; color: #9fb2cc; 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: .15em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 12px; }
section.block { padding: 68px 0; }
.section-head { max-width: 660px; margin: 0 auto 42px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 12px; font-weight: 800; }
.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(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.step .num {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-2); font-weight: 800; font-size: 17px; margin-bottom: 16px;
}
.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: .13em; color: var(--muted); font-weight: 700; margin: 40px 0 18px; display: flex; align-items: center; gap: 14px; }
.cat-title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .14s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.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; }
/* Custom product icons (SVG app tiles) */
.app-ic { display: block; border-radius: 14px; box-shadow: 0 4px 12px rgba(20,36,60,.16); }
.app-ic-56 { width: 56px; height: 56px; margin-bottom: 16px; }
.app-ic-80 { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 8px 20px rgba(20,36,60,.2); }
.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: #38495f; 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: var(--ink); }
.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; letter-spacing: .01em; }
.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; }

/* ---- Why us grid ----------------------------------------------------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why { text-align: left; }
.why .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: #eef2f8; margin-bottom: 14px; }
.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: 52px 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(--navy); }
.detail .icon-lg { width: 80px; height: 80px; border-radius: 20px; display: grid; place-items: center; font-size: 42px; margin: 18px 0 18px; }
.detail h1 { font-size: clamp(30px, 4.2vw, 42px); margin: 0 0 10px; font-weight: 800; }
.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(--card); 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: #fdf9ee; box-shadow: 0 0 0 3px rgba(193,155,52,.12); }
.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: var(--gold); color: #241a03; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; margin-left: 8px; letter-spacing: .02em; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* ---- Account dashboard ----------------------------------------------------- */
.dash { padding: 48px 0 72px; }
.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(--card); 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; }
.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(--card); 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(11,31,58,.6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(3px); }
.modal-back.open { display: flex; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 430px; padding: 32px; box-shadow: 0 24px 64px rgba(0,0,0,.4); }
.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; 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(193,155,52,.15); }
.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(--navy); 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: #fdecec; color: #b12a2a; }
.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; }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); 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(--navy-3); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* ---- Footer ---------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #a9bad2; 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: #cdd8e8; text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: #fff; }

/* ---- Legal ----------------------------------------------------------------- */
.legal { max-width: 760px; margin: 0 auto; padding: 52px 24px 72px; }
.legal h1 { font-size: 34px; font-weight: 800; }
.legal h2 { margin-top: 32px; font-size: 22px; }
.legal p, .legal li { color: #33445c; }

/* ---- Toast ----------------------------------------------------------------- */
#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; } }
