/* Design B: the cartographer's table.
   One bold move: the DM's map spread across the page with pencilled leader-line notes.
   Everything else stays quiet and typographic. */

:root{
  --night:#0b0910;     /* page */
  --umber:#120e17;     /* the one raised surface */
  --vellum:#c9b99a;    /* body text */
  --vellum-dim:#a3957d;/* secondary text, 6.6:1 on --night */
  --gilt:#c9a45f;      /* antique gold: headings, status, leader ink */
  --gilt-dim:#7d6740;  /* rules and frames */
  --blood:#A41E22;     /* interactive only */
  --wine:#7B1E2D;      /* crimson ramp */
  --bone:#f1e6cf;      /* text on crimson */
  --rule:rgba(201,185,154,.18);
  --lead:#d9c7a2;      /* leader-line ink, slightly lighter than body so it reads on the map */
  --gutter:16px;
  --display:'Cinzel', 'Trajan Pro', Georgia, serif;
  --text:'EB Garamond', Garamond, Georgia, serif;
  --hand:'IM Fell English', 'EB Garamond', Georgia, serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
body{
  margin:0; background:var(--night); color:var(--vellum);
  font-family:var(--text); font-size:1.1875rem; line-height:1.6;
  font-feature-settings:"onum","liga","kern";
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
h1,h2,h3{ font-family:var(--display); color:var(--gilt); font-weight:600; margin:0; line-height:1.3; letter-spacing:.01em; text-wrap:balance; }
p{ margin:0; }
p, li, dd, .note{ text-wrap:pretty; }
figure{ margin:0; }
a{ color:var(--vellum); text-decoration:underline; text-decoration-color:var(--blood); text-decoration-thickness:1px; text-underline-offset:.22em; }
a:hover{ color:var(--bone); text-decoration-thickness:2px; }
:focus-visible{ outline:2px solid var(--gilt); outline-offset:3px; }

.wrap{ max-width:1432px; margin-inline:auto; padding-inline:var(--gutter); }
@media (min-width:600px){ :root{ --gutter:32px; } }
@media (min-width:1100px){ :root{ --gutter:56px; } }
#features, #pricing, #beta{ scroll-margin-top:80px; }

.skip{ position:absolute; left:12px; top:-60px; z-index:100; background:var(--night); padding:8px 14px; border:1px solid var(--gilt-dim); }
.skip:focus{ top:12px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block; font-family:var(--display); font-weight:600; font-size:.95rem; letter-spacing:.05em;
  padding:.85em 1.6em; border:1px solid transparent; border-radius:2px; cursor:pointer;
  text-decoration:none; text-align:center; line-height:1.3;
  transition:background-color .15s, border-color .15s, color .15s;
}
.btn-primary{ background:var(--blood); border-color:var(--blood); color:var(--bone); }
.btn-primary:hover{ background:var(--wine); border-color:var(--wine); color:var(--bone); }
.btn-ghost{ background:transparent; border-color:var(--wine); color:var(--vellum); }
.btn-ghost:hover{ border-color:var(--blood); }
.btn-small{ font-size:.8rem; padding:.6em 1.15em; }
.btn:disabled{ opacity:.55; cursor:default; pointer-events:none; }

/* ---------- Nav ---------- */
.nav{ position:sticky; top:0; z-index:50; background:var(--night); border-bottom:1px solid var(--rule); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:64px; }
.brand{ display:inline-flex; align-items:center; gap:10px; color:var(--gilt); text-decoration:none;
  font-family:var(--display); font-weight:700; font-size:1.05rem; letter-spacing:.05em; }
.brand:hover{ color:var(--gilt); }
.brand-mark{ width:18px; height:18px; flex:none; }
.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a:not(.btn){ text-decoration:none; font-size:1.05rem; }
.nav-links a:not(.btn):hover{ color:var(--gilt); }
.nav-toggle{ display:none; background:none; border:0; color:var(--gilt); padding:6px; cursor:pointer; line-height:0; }
.nav-toggle svg{ width:26px; height:26px; }
@media (max-width:767px){
  .nav-links{ gap:18px; }
  .nav-links a:not(.btn){ font-size:1rem; }
  .js .nav-toggle{ display:inline-flex; }
  .js .nav-links{ display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:0;
    background:var(--night); border-bottom:1px solid var(--rule); padding:4px var(--gutter) 18px; }
  .js .nav.open .nav-links{ display:flex; }
  .js .nav-links a:not(.btn){ padding:12px 0; border-bottom:1px solid var(--rule); }
  .js .nav-links .btn{ margin-top:14px; font-size:.95rem; padding:.85em 1.6em; }
  .no-js .nav-row{ flex-wrap:wrap; padding-block:10px; }
}

/* ---------- Hero title block ---------- */
.hero{ position:relative; padding-top:clamp(32px, 5vw, 72px); }
.hero::before{
  /* the app's own hex grid, faint, behind the display line only; masked away before the paragraph */
  content:""; position:absolute; inset:0 auto auto 0; width:62%; height:clamp(320px, 34vw, 520px); pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='45' viewBox='0 0 26 45'%3E%3Cpath d='M13 0L26 7.5V22.5L13 30L0 22.5V7.5ZM13 30V45' fill='none' stroke='%23c9a45f' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
  background-size:26px 45px;
  -webkit-mask-image:linear-gradient(100deg, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%), linear-gradient(#000, transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(100deg, #000 0%, rgba(0,0,0,.55) 40%, transparent 78%), linear-gradient(#000, transparent);
  mask-composite:intersect;
}
.hero-grid{ position:relative; display:grid; gap:28px; }
.hero h1{
  font-size:clamp(2.35rem, 5.4vw, 4.75rem); line-height:1.3; font-weight:700; letter-spacing:.005em;
  color:var(--gilt); max-width:17ch; text-wrap:balance;
}
.tagline{ font-style:italic; font-size:1.375rem; line-height:1.45; color:var(--gilt); margin-bottom:16px; }
.sub{ max-width:32em; color:var(--vellum); }
.hero-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 28px; margin-top:28px; }
.text-link{ font-size:1.125rem; }
@media (min-width:900px){
  .hero-grid{ grid-template-columns:minmax(0,7fr) minmax(0,5fr); align-items:end; column-gap:clamp(32px,5vw,80px); }
}
@media (max-width:559px){
  .hero-actions .btn{ width:100%; }
}

/* ---------- The chart: the map with pencilled notes ---------- */
.chart{ width:min(1640px, 100% - 2 * var(--gutter)); margin:clamp(28px, 3vw, 44px) auto 0; }
.plate{
  position:relative; container-type:inline-size;
  --top:0px;
  --h:51.146cqw;   /* image height: 982 / 1920 of the plate width */
}
.plate img{ width:100%; outline:1px solid var(--rule); }

/* points on the screenshot, as fractions of 1920 x 982 */
.k1{ --x:9.74%;  --y:.481; --i:0; }  /* fog tools: Reveal / Cover */
.k2{ --x:31.98%; --y:.326; --i:1; }  /* a light on the wall */
.k3{ --x:69.69%; --y:.356; --i:2; }  /* a door in the east room */
.k4{ --x:85.26%; --y:.601; --i:3; }  /* the floor switcher */
.k5{ --x:38.96%; --y:.601; --i:4; }  /* a player token */
.k6{ --x:97.29%; --y:.079; --i:5; }  /* Load Map */

.pin{
  position:absolute; left:clamp(18px, var(--x), 100% - 18px); top:calc(var(--top) + var(--y) * var(--h));
  transform:translate(-50%,-50%);
  width:22px; height:22px; border-radius:50%;
  display:grid; place-items:center;
  background:var(--night); color:var(--bone); border:1px solid var(--lead);
  font-family:var(--display); font-weight:700; font-size:11px; line-height:1.3;
}

.notes{ list-style:none; margin:20px 0 0; padding:0; counter-reset:k; display:grid; gap:14px 28px; }
.note{
  counter-increment:k; display:grid; grid-template-columns:30px 1fr; align-items:baseline;
  font-family:var(--hand); font-style:italic; font-size:1.125rem; line-height:1.4; color:var(--vellum);
}
.note::before{
  content:counter(k); width:22px; height:22px; border-radius:50%; border:1px solid var(--lead);
  display:inline-grid; place-items:center; transform:translateY(-1px);
  font-family:var(--display); font-style:normal; font-weight:700; font-size:11px; color:var(--bone);
}
@media (min-width:600px) and (max-width:1179px){ .notes{ grid-template-columns:1fr 1fr; } }
@media (max-width:599px){
  .chart{ width:100%; }
  .plate img{ outline:0; border-block:1px solid var(--rule); }
  .notes{ padding-inline:var(--gutter); }
}

/* Wide screens: the key becomes notes pencilled around the map, each with a leader line to its point */
@media (min-width:1180px){
  .plate{ --top:7.25rem; --bot:6.5rem; --gap:18px; padding-block:var(--top) var(--bot); }
  .notes{ display:block; margin:0; position:static; }
  .note{
    position:absolute; width:22%; display:block;
    font-size:1rem; line-height:1.4;
  }
  .note::before{ content:none; }
  .note.up{ bottom:calc(100% - var(--top) + var(--gap)); padding-bottom:8px; border-bottom:1px solid var(--lead); }
  .note.down{ top:calc(var(--top) + var(--h) + var(--gap)); padding-top:8px; border-top:1px solid var(--lead); }
  .note.l{ right:calc(100% - var(--x)); text-align:right; }
  .note.r{ left:var(--x); }
  .note::after{
    content:""; position:absolute; width:1px; background:var(--lead);
    box-shadow:1px 0 0 rgba(11,9,16,.7), -1px 0 0 rgba(11,9,16,.7);
  }
  .note.l::after{ right:-.5px; }
  .note.r::after{ left:-.5px; }
  .note.up::after{ top:100%; height:calc(var(--gap) + var(--y) * var(--h)); transform-origin:top; }
  .note.down::after{ bottom:100%; height:calc(var(--gap) + (1 - var(--y)) * var(--h)); transform-origin:bottom; }

  .pin{ width:11px; height:11px; font-size:0; color:transparent; background:rgba(11,9,16,.65); border-width:1.5px; outline:2px solid rgba(11,9,16,.55); }
}

@media (min-width:1360px){ .note{ font-size:1.0625rem; } }
@media (min-width:1600px){ .note{ font-size:1.15rem; } }

/* The page's one orchestrated moment: the leader lines ink in once, on load. */
@media (min-width:1180px) and (prefers-reduced-motion: no-preference){
  .note::after{ animation:ink .9s cubic-bezier(.25,.7,.2,1) both; animation-delay:calc(.35s + var(--i) * .12s); }
  .pin{ animation:dot .4s ease-out both; animation-delay:calc(1.05s + var(--i) * .12s); }
  @keyframes ink{ from{ transform:scaleY(0); } to{ transform:scaleY(1); } }
  @keyframes dot{ from{ opacity:0; } to{ opacity:1; } }
}

.titleblock{
  display:flex; align-items:center; gap:14px; margin-top:22px;
  font-family:var(--hand); font-style:italic; font-size:1.0625rem; color:var(--vellum-dim);
}
.scalebar{ width:120px; height:8px; color:var(--gilt-dim); flex:none; }
@media (min-width:1180px){ .titleblock{ margin-top:-1.5rem; justify-content:flex-end; } }
@media (max-width:599px){ .titleblock{ padding-inline:var(--gutter); } }

/* ---------- Who sees what ---------- */
.seats{ padding:clamp(72px, 9vw, 128px) 0 clamp(24px, 3vw, 48px); }
.seats-grid{ display:grid; gap:24px; }
.seats-title{ font-size:clamp(2rem, 4vw, 3.25rem); line-height:1.3; max-width:15ch; text-wrap:balance; }
.seats-lede{ font-size:1.3125rem; line-height:1.55; max-width:30em; }
.seat figcaption{ font-family:var(--hand); font-style:italic; font-size:1.0625rem; color:var(--vellum-dim); margin-top:10px; }
.seat img{ outline:1px solid var(--rule); }
.seat-phone img{ border-radius:14px; outline:0; }
@media (max-width:899px){
  .seats-grid{ grid-template-columns:repeat(6, minmax(0,1fr)); }
  .seats-title, .seats-lede, .seat-tv, .seat-canvas{ grid-column:1 / -1; }
  .seats-lede{ margin-bottom:16px; }
  .seat-phone{ grid-column:1 / 5; margin-top:12px; }
}
@media (min-width:900px){
  .seats-grid{ grid-template-columns:repeat(12, minmax(0,1fr)); column-gap:24px; row-gap:56px; }
  .seats-title{ grid-column:1 / 6; grid-row:1; align-self:end; }
  .seats-lede{ grid-column:7 / 12; grid-row:1; align-self:end; }
  .seat-phone{ grid-column:1 / 4; grid-row:2 / 4; align-self:start; margin-top:72px; }
  .seat-tv{ grid-column:4 / 13; grid-row:2; }
  .seat-tv figcaption{ text-align:right; }
  .seat-canvas{ grid-column:4 / 12; grid-row:3; }
}

/* ---------- Villain Tracker: the roster runs off the left edge, the words sit under its right end ---------- */
.villains{ max-width:1720px; margin-inline:auto; padding:clamp(48px, 6vw, 96px) 0 0; }
.roster img{ width:100%; border-block:1px solid var(--rule); aspect-ratio:1920 / 540; object-fit:cover; object-position:left top; }
.villains-text{ padding-inline:var(--gutter); margin-top:28px; }
@media (max-width:899px){
  /* on a phone, show the left part of the roster at a size where the cards can be read */
  .roster{ overflow:hidden; aspect-ratio:1000 / 540; border-block:1px solid var(--rule); }
  .roster img{ width:192%; max-width:none; height:auto; aspect-ratio:auto; border:0; }
}
.villains-text h2{ font-size:clamp(2rem, 3.6vw, 3rem); line-height:1.3; margin-bottom:14px; }
.villains-text p{ font-size:1.25rem; max-width:30em; }
@media (min-width:900px){
  .roster{ margin-right:var(--gutter); }
  .roster img{ border-right:1px solid var(--rule); }
  /* the heading and its paragraph as one compact block under the roster's right end */
  .villains-text{ width:min(600px, 60%); margin:32px var(--gutter) 0 auto; padding:0; }
}

/* ---------- Spell Listener and sync ---------- */
.ear{ padding:clamp(72px, 9vw, 136px) 0 clamp(48px, 6vw, 96px); }
.ear-grid{ display:grid; gap:56px; }
.spell h2{ font-size:clamp(2rem, 3.6vw, 3rem); line-height:1.3; margin-bottom:22px; }
.spell p{ font-size:1.3rem; line-height:1.5; max-width:30em; }
@media (min-width:1100px){ .spell p{ font-size:1.55rem; } }
.sync{ border-top:1px solid var(--gilt-dim); padding-top:18px; max-width:24em; }
.sync h2{ font-size:1.25rem; line-height:1.3; margin-bottom:10px; }
@media (min-width:900px){
  .ear-grid{ grid-template-columns:repeat(12, minmax(0,1fr)); column-gap:24px; }
  .spell{ grid-column:2 / 9; }
  .sync{ grid-column:10 / 13; align-self:end; margin-bottom:.4rem; }
}

/* ---------- The key (map legend) ---------- */
.key-sec{ padding:clamp(24px, 3vw, 48px) 0 clamp(64px, 8vw, 120px); }
.cartouche{
  position:relative; background:var(--umber);
  border:1px solid var(--gilt-dim); outline:1px solid var(--gilt-dim); outline-offset:5px;
  margin:6px; padding:32px 22px 28px;
}
.cartouche h2{ font-size:clamp(1.6rem, 2.6vw, 2.25rem); text-align:center; padding-bottom:22px; margin-bottom:30px; border-bottom:1px solid var(--rule); }
.key{ display:grid; gap:26px 56px; margin:0; }
.key dt{ font-family:var(--display); font-weight:600; color:var(--gilt); font-size:1.0625rem; letter-spacing:.03em; margin-bottom:4px; }
.key dd{ margin:0; font-size:1.125rem; line-height:1.55; }
.cartouche .scalebar{ display:block; margin:36px auto 0; width:160px; height:10px; }
@media (min-width:760px){ .key{ grid-template-columns:1fr 1fr; } }
.cartouche{ max-width:1120px; }
@media (min-width:760px){ .cartouche{ padding:52px 56px 36px; } }
@media (min-width:1180px){ .cartouche{ margin-inline:auto; } }

/* ---------- Who it's for ---------- */
.who{ padding:64px 0; border-top:1px solid var(--rule); }
@media (min-width:900px){ .who{ padding:112px 0; } }
.who-grid{ display:grid; gap:40px; }
.who-head h2{ font-size:clamp(1.9rem, 3.4vw, 2.75rem); line-height:1.3; margin-bottom:18px; max-width:14ch; }
.who-head p{ font-size:1.25rem; max-width:24em; }
.who h3{ font-size:1.2rem; margin-bottom:14px; }
.marks{ list-style:none; padding:0; margin:0; display:grid; gap:12px; }
.marks li{ position:relative; padding-left:22px; }
.marks li::before{
  content:""; position:absolute; left:2px; top:.62em; width:7px; height:7px;
  background:var(--gilt-dim); transform:rotate(45deg);
}
.who-fit, .who-worse{ max-width:30em; }
.who-note{ margin-top:18px; color:var(--vellum-dim); font-size:1.0625rem; max-width:29em; }
@media (min-width:900px){
  .who-grid{ grid-template-columns:repeat(12, minmax(0,1fr)); column-gap:24px; row-gap:56px; }
  .who-head{ grid-column:1 / 6; grid-row:1 / 3; align-self:start; position:sticky; top:104px; }
  .who-fit{ grid-column:7 / 13; grid-row:1; }
  .who-worse{ grid-column:7 / 13; grid-row:2; padding-top:40px; border-top:1px solid var(--rule); }
}

/* ---------- Pricing (a ledger, not a row of cards) ---------- */
.pricing{ background:var(--umber); border-block:1px solid var(--rule); padding:64px 8px; }
@media (min-width:900px){ .pricing{ padding:104px 8px; } }
.pricing-grid{ display:grid; gap:40px; }
.pricing-head h2{ font-size:clamp(2rem, 3.6vw, 3rem); margin-bottom:16px; }
.pricing-head p{ font-size:1.1875rem; max-width:22em; }
.trust{ margin-top:22px; padding-top:14px; border-top:1px solid var(--gilt-dim); display:inline-block; }
.trust b{ font-family:var(--display); font-weight:600; color:var(--gilt); font-size:1rem; letter-spacing:.04em; }
.tiers{ display:grid; }
.tier{ position:relative; display:flex; flex-direction:column; padding:28px 0; border-top:1px solid var(--rule); }
.tier h3{ font-size:1.15rem; letter-spacing:.05em; }
.tier .price{ font-family:var(--display); font-weight:700; font-size:2.75rem; line-height:1.3; color:var(--bone); margin-top:10px; font-feature-settings:"lnum"; }
.tier .price small{ font-family:var(--text); font-weight:400; font-size:1.0625rem; color:var(--vellum-dim); letter-spacing:0; }
.note-line{ color:var(--vellum-dim); font-size:1.0625rem; margin-top:6px; }
.save{ color:var(--gilt); font-size:1.0625rem; margin-top:6px; font-feature-settings:"lnum"; }
.tier .marks{ margin:22px 0 28px; font-size:1.0625rem; }
.tier .btn{ margin-top:auto; width:100%; }
/* "Best Value" sits on Yearly's own line as a quiet italic aside, not a badge. */
.tier-name{ display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 12px; }
.best{ font-style:italic; font-size:1.0625rem; line-height:1.3; color:var(--gilt); }
.signup{ display:grid; gap:20px; align-items:center; padding-top:32px; border-top:1px solid var(--rule); }
.signup h3{ font-size:1.35rem; margin-bottom:8px; }
.signup p{ max-width:28em; }
@media (min-width:760px){
  .tiers{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .tier{ padding:28px 24px; border-top:1px solid var(--rule); }
  .tier + .tier{ border-left:1px solid var(--rule); }
  .signup{ grid-template-columns:1fr auto; column-gap:40px; }
}
@media (min-width:1100px){
  .pricing-grid{ grid-template-columns:repeat(12, minmax(0,1fr)); column-gap:24px; }
  .pricing-head{ grid-column:1 / 4; }
  .tiers, .signup{ grid-column:4 / 13; }
}

/* ---------- FAQ: printed open; the heading runs across the top, two columns of questions on wide screens ---------- */
.faq-sec{ padding:clamp(56px, 8vw, 120px) 0 clamp(64px, 9vw, 136px); }
.faq-grid h2{ font-size:clamp(1.75rem, 3vw, 2.5rem); line-height:1.3; margin-bottom:28px; }
.faq{ display:grid; border-bottom:1px solid var(--rule); }
.qa{ padding:20px 2px 22px; border-top:1px solid var(--rule); }
.qa h3{ font-size:1.125rem; letter-spacing:.03em; margin-bottom:8px; }
.qa p{ max-width:31em; }
@media (min-width:900px){
  .faq-grid h2{ margin-bottom:36px; }
  .faq{ grid-template-columns:1fr 1fr; column-gap:56px; }
}

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--rule); padding:40px 0 48px; font-size:1rem; }
footer a{ text-decoration-color:var(--wine); }
.social{ display:flex; flex-wrap:wrap; gap:12px 28px; padding-bottom:22px; margin-bottom:24px; border-bottom:1px solid var(--rule); }
.social a{ color:var(--gilt); font-family:var(--display); font-weight:600; font-size:.95rem; letter-spacing:.04em; text-decoration:none; }
.social a:hover{ color:var(--bone); }
.foot-row{ display:grid; gap:16px; }
.brand-foot{ font-size:.95rem; }
.links{ display:flex; flex-wrap:wrap; gap:8px 22px; }
.links a{ text-decoration:none; }
.links a:hover{ text-decoration:underline; text-decoration-color:var(--blood); }
.copy{ color:var(--vellum-dim); font-size:.95rem; }
.legal{ color:var(--vellum-dim); font-size:.9375rem; line-height:1.6; max-width:56ch; margin-top:26px; }
.legal a{ color:var(--vellum-dim); overflow-wrap:anywhere; }
@media (min-width:900px){
  .foot-row{ grid-template-columns:auto 1fr auto; align-items:center; column-gap:40px; }
}
