/* IronEggShell brand tokens — source of truth: agency-os/wp-theme/ies/style.css
   (--brand #1a1a2e, --accent #e94560, --surface #f8f9fc, --radius 10px, system font).
   --accent-strong is the same coral family darkened so white button text meets WCAG AA
   (white on #e94560 is 3.6:1; on #c42d48 it is 5.0:1). */
:root {
  --brand: #1a1a2e; --brand-fg: #ffffff;
  --bg: #f8f9fc; --fg: #1e2530; --muted: #6b7280; --line: #e2e6ea;
  --accent: #e94560; --accent-strong: #c42d48; --accent-fg: #ffffff;
  --bad: #c62828; --ok: #059669; --warn: #8a5a00;
  --card: #ffffff; --radius: 10px; --shadow: 0 2px 12px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121f; --fg: #e8e9f0; --muted: #a3a8b8; --line: #2c2c44;
    --accent: #ff6b84; --accent-strong: #e94560; --accent-fg: #12121f;
    --bad: #ff7b72; --ok: #34d399; --warn: #e3b341;
    --card: #1a1a2e; --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font); }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header.top { background: var(--brand); border-bottom: 3px solid var(--accent); }
header.top div { max-width: 760px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
header.top a { color: var(--brand-fg); text-decoration: none; }
header.top a:hover { color: var(--accent); }
header.top .brand { font-weight: 700; margin-right: auto; display: inline-flex; align-items: center; gap: 10px; }
header.top .brand img { width: 28px; height: 32px; }
a { color: var(--accent-strong); }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
h1 { font-size: 2rem; line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.lede { font-size: 1.15rem; color: var(--muted); }
.alert { border-left: 4px solid var(--bad); background: var(--card); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; box-shadow: var(--shadow); }
.btn { display: inline-block; background: var(--accent-strong); color: #ffffff; padding: 12px 20px; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 0; font: inherit; cursor: pointer; }
.btn:hover { background: var(--brand); }
.btn.secondary { background: transparent; color: var(--accent-strong); border: 2px solid var(--accent-strong); }
@media (prefers-color-scheme: dark) { .btn.secondary { color: var(--accent); border-color: var(--accent); } .btn:hover { background: var(--accent); color: var(--accent-fg); } }
.price { font-size: 1.8rem; font-weight: 700; }
.price small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.price { line-height: 1.2; margin-bottom: 8px; }
.price .note { display: block; font-size: .85rem; font-weight: 600; color: var(--accent-strong); margin-top: 4px; }
@media (prefers-color-scheme: dark) { .price .note { color: var(--accent); } }

.toggle { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 4px; }
.toggle .btn[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.tiers .tier { margin: 16px 0 0; display: flex; flex-direction: column; }
.tiers .tier h2 { margin-top: 0; }
.card > h2:first-child { margin-top: 0; }
/* Equal-height descriptions only matter when tiers sit side by side. */
@media (min-width: 700px) { .tiers .tier > p:not([data-tier]) { min-height: 3.2em; } }
.toggle .btn { flex: 1 1 auto; text-align: center; }
@media (min-width: 560px) { .toggle .btn { flex: 0 0 auto; } }
.tiers .tier ul { padding-left: 18px; flex: 1; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.choice .card { margin: 0; }
.card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
ol li, ul li { margin: 6px 0; }
code { background: var(--card); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: .92em; }
small, .muted { color: var(--muted); }
table { border-collapse: collapse; width: 100%; }
td, th { text-align: left; padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
#result { display: none; }
footer { max-width: 760px; margin: 0 auto; padding: 24px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

/* ── Widescreen (>=1600px): wider column + splash panel beside the content ── */
.splash { display: none; }
@media (min-width: 1600px) {
  body { font-size: 18px; }
  header.top div, footer { max-width: 1520px; }
  .with-splash { max-width: 1520px; margin: 0 auto; display: grid;
                 grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding: 0 16px; }
  .with-splash main { max-width: none; padding-left: 0; padding-right: 0; }
  .splash { display: block; position: sticky; top: 24px; align-self: start; margin-top: 32px;
            background: var(--brand); color: var(--brand-fg); border-radius: var(--radius);
            border-bottom: 4px solid var(--accent); overflow: hidden; box-shadow: var(--shadow); }
  .splash img { display: block; width: 100%; height: auto; }
  .splash ul { list-style: none; margin: 0; padding: 20px 24px 24px; }
  .splash li { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .splash li strong { color: var(--accent); display: block; }
}

