/* eSIM Sorted — light theme built on Marty's palette.
   Blue Slate carries the type; the warm colours are fills, edges and accents.
   Dusty Rose is darkened to #A85647 wherever white text sits on it, because
   the pure #CE796B only reaches 3.2:1 against white and body text needs 4.5. */
:root {
  --bg: #FBF8F5;
  --panel: #FFFFFF;
  --panel-2: #F6F1EC;
  --text: #495867;          /* Blue Slate */
  --heading: #35414D;
  --muted: #5C6874;
  --rose: #CE796B;          /* Dusty Rose */
  --rose-deep: #A85647;     /* Dusty Rose, darkened for text-bearing fills */
  --almond: #C18C5D;        /* Toasted Almond */
  --blush: #E7AD99;         /* Powder Blush */
  --sand: #ECC8AF;          /* Desert Sand */
  --border: #E4DAD1;
  --radius: 14px;
  --wrap: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 { color: var(--heading); }
a { color: var(--rose-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: 6px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.site-nav a:hover { color: var(--heading); background: var(--panel-2); }
.site-nav a.active { color: var(--heading); background: var(--panel-2); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 1.3rem; border-radius: 8px; padding: 4px 10px; cursor: pointer; }

/* Hero */
.hero { padding: 54px 0 22px; text-align: center; background: linear-gradient(180deg, rgba(236,200,175,.45), rgba(251,248,245,0)); }
.hero h1 { margin: 0; font-size: 2.6rem; letter-spacing: -.5px; }
.hero .tagline { font-size: 1.25rem; color: var(--rose-deep); margin: 8px 0 4px; font-weight: 600; }
.hero .sub { color: var(--muted); margin: 0; }

/* Filters */
.controls { position: sticky; top: 62px; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 14px 0; border-bottom: 1px solid var(--border); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { background: var(--panel); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: .9rem; transition: .15s; }
.filter:hover { color: var(--heading); border-color: var(--blush); }
.filter.active { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }

/* Plan cards */
.guide-strip { margin: 18px 0 0; color: var(--muted); font-size: .95rem; }
.guide-strip a { font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 24px 0 48px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(73,88,103,.05); }
.card .rank { position: absolute; top: 14px; right: 14px; font-size: .8rem; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.card h3 { margin: 0 0 2px; font-size: 1.15rem; display: flex; flex-direction: column; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.card .meta { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.card .specs { margin: 2px 0 10px; font-size: .95rem; color: var(--heading); font-weight: 600; }
.card .notes { list-style: none; margin: 0 0 10px; padding: 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.card .notes li { position: relative; padding-left: 12px; margin-bottom: 2px; }
.card .notes li::before { content: ""; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--blush); }
.card .price { font-size: 1.7rem; font-weight: 700; color: var(--heading); margin: auto 0 12px; display: flex; align-items: baseline; gap: 10px; }
.card .price .value { font-size: .8rem; font-weight: 600; color: var(--rose-deep); }
.card .cta { display: block; text-align: center; text-decoration: none; background: var(--rose-deep); color: #fff; font-weight: 600; padding: 10px; border-radius: 10px; transition: .15s; }
.card .cta:hover { background: var(--text); }
.card.hidden { display: none; }

/* Two badges doing two different jobs. Different colour AND different shape,
   because the difference between an earned verdict and a paid slot has to
   survive being printed in black and white or read by someone colourblind. */
.card.top-pick { border-color: var(--rose); border-width: 2px; box-shadow: 0 4px 20px rgba(206,121,107,.18); }
.card.placement { border-color: var(--almond); }
.card .ribbons { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.ribbon { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; }
.ribbon-top { background: var(--rose-deep); color: #fff; font-weight: 700; border-radius: 999px; }
.ribbon-paid { background: var(--panel); color: var(--text); border: 1px solid var(--almond); font-weight: 600; border-radius: 4px; }
.card.top-pick h3, .card.placement h3 { margin-top: 20px; }
.empty { color: var(--muted); padding: 40px 0; }

/* Article pages */
.article { padding: 34px 0 60px; max-width: 760px; }
.article h1 { font-size: 2rem; letter-spacing: -.4px; margin-bottom: 10px; }
.article h2 { font-size: 1.3rem; margin-top: 30px; }
.article p { color: var(--text); }
.article ul, .article ol { color: var(--text); }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .93rem; }
.article th, .article td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.article th { background: var(--panel-2); color: var(--heading); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--panel-2); margin-top: 20px; }
.site-footer .wrap { padding: 26px 20px; }
.site-footer .disclosure { color: var(--muted); font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--rose-deep); }
.site-footer .copy { color: var(--muted); font-size: .8rem; margin: 0; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--panel); border-bottom: 1px solid var(--border); padding: 8px 16px; }
  body.nav-open .site-nav { display: flex; }
  .controls { top: 62px; }
  .hero h1 { font-size: 2.1rem; }
}
