/* ============================================================
   PortCall — Imperia Middleware Inc.
   Palette: cream / gold / navy, with red + green interface accents
   ============================================================ */

:root {
  --navy:        #12365b;   /* IMI deep navy */
  --navy-deep:   #0d2742;   /* darker navy for footers/headers */
  --gold:        #d8a13a;   /* warm gold — accent marks only, never small text */
  --gold-bright: #f0c14b;   /* highlight gold (matches logo glow) */
  --cream:       #f8f2dc;   /* page background */
  --cream-card:  #fffcee;   /* card background */
  --lightblue:   #84b6db;   /* IMI light blue accent */
  --red:         #ef4423;   /* IMI vermilion / "down" */
  --green:       #34c759;   /* "up" */
  --ink:         #1b2330;   /* body text */
  --ink-soft:    #4a5666;   /* muted text */
  --line:        #e6dcba;   /* hairline on cream */

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 54, 91, 0.12);
  --shadow-sm: 0 3px 10px rgba(18, 54, 91, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Top nav ---------- */
.nav {
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.15rem;
}
.nav .brand img {
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1.5px solid var(--gold);
}
.nav .links a {
  color: var(--cream);
  margin-left: 22px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav .links a:hover { color: var(--gold-bright); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 78% -10%, rgba(132,182,219,0.22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--cream);
  padding: 70px 0 64px;
  border-bottom: 4px solid var(--gold);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.freebadge {
  display: inline-block; background: var(--gold-bright); color: var(--navy-deep);
  font-weight: 900; font-size: 0.95rem; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px; margin: 0 0 20px;
  box-shadow: 0 6px 20px rgba(240,193,75,0.28);
}
.freefacts {
  list-style: none; padding: 0; margin: 22px 0 26px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px; max-width: 460px;
}
.freefacts li { display: flex; flex-direction: column; }
.freefacts strong { color: var(--gold-bright); font-size: 1.4rem; font-weight: 900; line-height: 1.15; }
.freefacts span { color: #c8d3e0; font-size: 0.86rem; letter-spacing: 0.2px; }
.hero h1 { font-size: 2.9rem; line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--gold-bright); }
.hero p.lede { font-size: 1.2rem; color: #dfe7f0; margin: 0 0 26px; max-width: 36ch; }
.hero .logo-art {
  width: 100%; max-width: 360px; justify-self: center;
  border-radius: 22px;
  border: 3px solid var(--gold);
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}
.tickerpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill {
  font-size: 0.82rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  font-variant-numeric: tabular-nums; letter-spacing: 0.4px;
}
.pill.up   { background: rgba(52,199,89,0.16);  color: var(--green); border: 1px solid rgba(52,199,89,0.5); }
.pill.down { background: rgba(239,68,35,0.16);  color: #ff7a63;      border: 1px solid rgba(239,68,35,0.5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; cursor: pointer; text-align: center;
  border: 2px solid transparent; transition: transform .08s ease, box-shadow .15s ease;
}
/* CTA subtitle: the label sells the reward, the subtitle sets expectation. */
.btn small {
  display: block; font-weight: 700; font-size: 0.7rem; letter-spacing: 1px;
  text-transform: uppercase; opacity: 0.7; margin-top: 3px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold  { background: var(--gold-bright); color: var(--navy-deep); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: #ffd05e; }
.btn-green { background: var(--green); color: #08351a; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: #2fb84f; }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--gold); }
.btn-outline:hover { background: rgba(240,193,75,0.12); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--cream-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head h2 { font-size: 2rem; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.3px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block; font-size: 0.92rem; font-weight: 800; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--navy); margin-bottom: 12px;
}
/* Gold survives as a mark, not as type: at label size it has too little area
   to hold its value and the eye reads it as mud. */
.eyebrow::before {
  content: ""; display: block; width: 34px; height: 3px; border-radius: 2px;
  background: var(--gold); margin: 0 auto 10px;
}
/* On the navy hero the navy label is invisible (1.00:1). Gold inverts on dark —
   it is a LIGHT value there, so it reads where it failed on cream. */
.hero .eyebrow { color: var(--gold-bright); font-size: 1rem; letter-spacing: 1.8px; }
.hero .eyebrow::before { background: var(--gold-bright); margin: 0 auto 10px; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.2rem; }
.card p { margin: 0; color: var(--ink-soft); }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.4rem; margin-bottom: 14px; background: var(--navy); color: var(--gold-bright);
  overflow: hidden;
}
.card .ico img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 11px;
}

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shot {
  aspect-ratio: 9 / 19.5;
  background:
    repeating-linear-gradient(45deg, #eadfc4 0 14px, #f1e8cf 14px 28px);
  border: 2px dashed var(--gold);
  border-radius: 26px;
  display: grid; place-items: center; text-align: center;
  color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; padding: 16px;
  position: relative;
}
.shot::before {
  content: "Screenshot";
  position: absolute; top: 14px; left: 0; right: 0;
  font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- Tiers ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto; }
.tier {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); position: relative;
}
.tier.featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.tier .tag {
  position: absolute; top: -13px; right: 22px; background: var(--gold-bright); color: var(--navy-deep);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px; padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase;
}
.tier h3 { margin: 0 0 4px; color: var(--navy); font-size: 1.3rem; }
.tier .price { font-size: 2.1rem; font-weight: 800; color: var(--navy); margin: 6px 0 2px; }
.tier .price small { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 0; }
.tier li { padding: 7px 0 7px 28px; position: relative; color: var(--ink); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

/* ---------- Hosts ---------- */
.hosts { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.host .pair { color: var(--navy); font-size: 0.78rem; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; margin: 4px 0 12px; }
.host p + p { margin-top: 12px; }
.host { background: var(--cream-card); border:1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.host .name { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.host .role { color: var(--ink-soft); font-weight: 700; font-size: 0.84rem; letter-spacing:0.5px; text-transform: uppercase; margin-bottom: 10px; }
.host p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.section-head .btn { margin-top: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #c8d3e0; padding: 44px 0 36px; border-top: 4px solid var(--gold); }
.footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer a { color: #c8d3e0; }
.footer a:hover { color: var(--gold-bright); }
.footer .imi { display: flex; align-items: center; gap: 12px; }
.footer .imi img { width: 42px; height: 42px; border-radius: 8px; }
.footer .col h4 { color: var(--cream); margin: 0 0 12px; font-size: 0.95rem; letter-spacing: 0.5px; }
.footer .col a { display: block; margin: 6px 0; font-size: 0.9rem; }
.footer .legal { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 28px; padding-top: 20px; font-size: 0.8rem; color: #8fa0b4; }

.disclaimer {
  background: rgba(239,68,35,0.06); border: 1px solid rgba(239,68,35,0.3);
  border-left: 4px solid var(--red); border-radius: 8px; padding: 16px 20px;
  font-size: 0.9rem; color: var(--ink-soft); margin-top: 28px;
}
.disclaimer strong { color: var(--red); }

/* ---------- Legal pages ---------- */
.legal-page { background: var(--cream); padding: 50px 0 70px; }
.legal-doc {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 46px 52px; max-width: 820px; margin: 0 auto;
}
.legal-doc h1 { color: var(--navy); font-size: 2rem; margin: 0 0 6px; }
.legal-doc h2 { color: var(--navy); font-size: 1.22rem; margin: 34px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.legal-doc h2:first-of-type { border-top: none; }
.legal-doc p { color: var(--ink); margin: 0 0 14px; }
.legal-doc p.meta { color: var(--ink-soft); font-size: 0.9rem; margin: 2px 0; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin: 6px 0; color: var(--ink); }
.back-link { display:inline-block; margin-bottom: 22px; font-weight:600; color: var(--navy); }

/* ---------- Influencer page extras ---------- */
.calc {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); max-width: 760px; margin: 0 auto;
}
.calc .row { display:flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.calc .row:last-child { border-bottom: none; }
.calc .row .lbl { color: var(--ink-soft); }
.calc .row .val { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.calc .row.total { border-top: 2px solid var(--gold); margin-top: 6px; padding-top: 14px; }
.calc .row.total .val { color: var(--green); font-size: 1.3rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { background: var(--cream-card); border:1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-sm); position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-bright); color: var(--navy-deep); font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.1rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--cream-card); border:1px solid var(--line); border-radius: 10px;
  margin-bottom: 12px; padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .logo-art { order: -1; max-width: 280px; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero .btn-row, .tickerpills { justify-content: center; }
  .grid-3, .hosts, .steps { grid-template-columns: 1fr; }
  .grid-2, .tiers { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2,1fr); }
  .nav .links a { margin-left: 14px; font-size: 0.85rem; }
  .legal-doc { padding: 30px 22px; }
  .hero h1 { font-size: 2.2rem; }
}

/* ---------- Hero byline (IMI house attribution) ---------- */
.hero .byline {
  margin: -8px 0 18px; color: var(--gold-bright);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.3px;
}

/* ---------- Inline legal accordion (single-page house style) ---------- */
.legal-inline { max-width: 820px; margin: 0 auto; }
.legal-inline details {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.legal-inline summary {
  cursor: pointer; font-weight: 800; color: var(--navy);
  padding: 18px 22px; list-style: none; font-size: 1.08rem;
}
.legal-inline summary::-webkit-details-marker { display: none; }
.legal-inline summary::after { content: "+"; float: right; color: var(--gold); font-weight: 800; }
.legal-inline details[open] summary::after { content: "–"; }
.legal-inline .legal-body {
  padding: 4px 26px 24px; border-top: 1px solid var(--line); margin-top: 2px;
  max-height: 520px; overflow-y: auto;
}
.legal-inline .legal-body h2 {
  color: var(--navy); font-size: 1.05rem; margin: 22px 0 8px;
}
.legal-inline .legal-body p { color: var(--ink); font-size: 0.92rem; margin: 0 0 12px; }
.legal-inline .legal-body p.meta { color: var(--ink-soft); font-size: 0.85rem; margin: 1px 0; }
.legal-inline .legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-inline .legal-body li { color: var(--ink); font-size: 0.92rem; margin: 5px 0; }

/* ---------- Three-tier pricing ---------- */
.tiers-3 { grid-template-columns: repeat(3, 1fr); max-width: 1020px; }
.tier.ports { border: 2px solid var(--navy); background: linear-gradient(160deg, var(--cream-card), #f5eedf); }
.tier .tag-ports { background: var(--navy); color: var(--gold-bright); }
.tier.ports .price { color: var(--navy); }


/* ---------- Support email (plain text, not a link) ---------- */
.support-email {
  display: inline-block; font-weight: 800; color: var(--navy);
  font-size: 1.15rem; letter-spacing: 0.3px;
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 26px; box-shadow: var(--shadow-sm);
  user-select: all;
}

/* host cards: name now sits alone without a role subtitle */
.host .name { margin-bottom: 10px; }

@media (max-width: 860px) {
  .tiers-3 { grid-template-columns: 1fr; }
}

/* ---------- Creator revenue grid ---------- */
.revgrid-wrap { max-width: 640px; margin: 36px auto 0; }
.revgrid-lead { text-align: center; color: var(--ink-soft); margin: 0 0 16px; }
.revgrid {
  width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); font-size: 1.02rem;
}
.revgrid thead th {
  background: var(--navy); color: var(--cream);
  text-align: left; padding: 14px 22px; font-size: 0.82rem;
  letter-spacing: 0.6px; text-transform: uppercase;
}
.revgrid thead th:last-child { text-align: right; }
.revgrid td { padding: 14px 22px; color: #08351a; font-weight: 700; }
.revgrid td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
/* alternate bright green / dark green rows */
.revgrid tbody tr:nth-child(odd)  { background: #34c759; }   /* bright green */
.revgrid tbody tr:nth-child(even) { background: #1c7d3a; }   /* dark green */
.revgrid tbody tr:nth-child(even) td { color: #eafff0; }
/* jackpot row */
.revgrid tbody tr.revgrid-jackpot {
  background: linear-gradient(90deg, #0f8a3c, #34c759, #0f8a3c);
  background-size: 200% 100%;
  animation: revglow 4s ease-in-out infinite;
}
.revgrid tbody tr.revgrid-jackpot td {
  color: #fff; font-weight: 900; font-size: 1.25rem;
  padding: 20px 22px; text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  border-top: 3px solid var(--gold-bright);
}
@keyframes revglow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.revgrid-foot { text-align: center; color: var(--ink-soft); margin: 16px 0 0; font-size: 0.95rem; font-weight: 600; }

/* ---------- Creator apply form ---------- */
.apply-form-wrap { max-width: 560px; margin: 0 auto; }
.apply-form {
  background: var(--cream-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 30px 26px; box-shadow: var(--shadow-sm);
}
.apply-form .field { margin-bottom: 16px; }
.apply-form label {
  display: block; font-weight: 700; color: var(--navy);
  font-size: 0.88rem; margin-bottom: 6px;
}
.apply-form input, .apply-form textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line);
  border-radius: 9px; font-family: var(--font); font-size: 0.98rem;
  color: var(--ink); background: #fff; transition: border-color .12s ease;
}
.apply-form input:focus, .apply-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.apply-form input.err, .apply-form textarea.err { border-color: var(--red); }
.apply-form textarea { resize: vertical; }
.apply-form .btn { width: 100%; margin-top: 6px; border: none; }
.apply-status { text-align: center; margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
.apply-status.good { color: var(--green); }
.apply-status.bad  { color: var(--red); }
