/* Event Compass (eventcompassapp.com)
   One stylesheet, two moods:
   - default: clean/warm modern (brand, campus, pricing, help)
   - body.realm: the Realm product pages borrow the app's own
     parchment-and-gold palette so the page feels like the app.  */

:root {
  --bg: #0b0c0f;
  --bg-dip: #101216;
  --ink: #eef0f3;
  --muted: #a3a8b0;
  --accent: #c9a227;
  --accent-deep: #e0bb45;
  --card: #14161a;
  --line: #23262c;
  --footer-bg: #08090b;
  --footer-ink: #8b909a;
  --radius: 10px;
  --measure: 62ch;
}

body.realm {
  --bg: #1a120b;
  --bg-dip: #150e08;
  --ink: #f5e9d4;
  --muted: #d8c4a8;
  --accent: #c9a227;
  --accent-deep: #e0bb45;
  --card: #2a1d12;
  --line: #3d2c1c;
  --footer-bg: #150e08;
  --footer-ink: #a08c6d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: .6rem; }
h3 { font-size: 1.15rem; margin-bottom: .35rem; }

p  { max-width: var(--measure); }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- nav ---------- */

.site-nav {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 50;
}
.site-nav .wrap {
  display: flex; align-items: center; gap: 1.6rem;
  min-height: 62px;
}
.wordmark {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.18rem; color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.wordmark svg { width: 26px; height: 26px; }
.wordmark img { width: 32px; height: 32px; display: block; }
.site-nav a.nav-link {
  color: var(--ink); text-decoration: none; font-size: .95rem;
}
@media (max-width: 560px) {
  .site-nav .wrap {
    flex-wrap: wrap; gap: .4rem 1.1rem; padding-top: .6rem; padding-bottom: .6rem;
  }
  .wordmark { flex-basis: 100%; }
}
.site-nav a.nav-link:hover,
.site-nav a.nav-link[aria-current="page"] { color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: 4.5rem 0 3.5rem; }
.hero .kicker {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.hero p.lede {
  font-size: 1.18rem; color: var(--muted); margin-top: 1.1rem;
}
.hero-split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem; align-items: center;
}
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: .72rem 1.35rem; border-radius: 8px;
  font-weight: 600; font-size: .97rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
}
.btn-solid { background: var(--accent); color: #0b0c0f; }
.btn-solid:hover { background: var(--accent-deep); color: #0b0c0f; }
body.realm .btn-solid { color: #1a120b; }
body.realm .btn-solid:hover { color: #1a120b; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }
.btn-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

/* ---------- sections & cards ---------- */

section { padding: 3.4rem 0; }
section.dip { background: var(--bg-dip); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.4rem;
}
.card p { font-size: .96rem; color: var(--muted); }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 99px; margin-bottom: .8rem;
  border: 1px solid var(--line); color: var(--muted);
}
.card .tag.live   { color: #9ec9a2; border-color: #3f5a42; background: #16211a; }
.card .tag.soon   { color: #e0bb45; border-color: #5a4a1e; background: #1d1910; }
body.realm .card .tag.live { color: #9ec9a2; border-color: #3f5a42; background: #22301f; }

/* product panels on the home page */
.product-panel {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  background: var(--card);
}
.product-panel .panel-copy { padding: 2.2rem; align-self: center; }
.product-panel .panel-art  { min-height: 260px; background-size: cover; background-position: center; }
.product-panel + .product-panel { margin-top: 1.6rem; }
.product-panel.flip .panel-copy { order: 2; }
.product-panel.flip .panel-art  { order: 1; }
@media (max-width: 820px) {
  .product-panel, .product-panel.flip { grid-template-columns: 1fr; }
  .product-panel.flip .panel-copy { order: 1; }
  .product-panel .panel-art { min-height: 200px; order: 2 !important; }
}
.panel-realm .panel-art { background-image: url("../assets/larf-parchment.jpg"); }
.panel-campus .panel-art {
  background: repeating-linear-gradient(-45deg, #14171c 0 14px, #191d23 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: #6d737d; font-family: "Fraunces", serif; font-size: 1.05rem;
}

/* ---------- phone frame ---------- */

.phone {
  width: min(290px, 78vw); margin: 0 auto;
  border-radius: 34px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -28px rgba(20, 14, 5, .45);
  overflow: hidden; background: #000;
  aspect-ratio: 1080 / 2280;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-caption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: .9rem; }

/* ---------- feature rows (realm page) ---------- */

.feature-row {
  display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 1.1rem;
  padding: 1.35rem 0; border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row .glyph {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.feature-row .glyph svg { width: 22px; height: 22px; }
.feature-row p { color: var(--muted); font-size: .97rem; }

/* ---------- pricing ---------- */

.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.4rem; align-items: start; }
@media (max-width: 900px) { .price-cards { grid-template-columns: 1fr; } }
.price-card { position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 14px 40px -24px rgba(138, 90, 18, .55); }
.price-card .price {
  font-family: "Fraunces", serif; font-size: 2.3rem; font-weight: 600;
  margin: .4rem 0 .1rem;
}
.price-card .per { font-size: .88rem; color: var(--muted); margin-bottom: 1.1rem; }
.price-card ul { list-style: none; margin: 1rem 0 1.4rem; }
.price-card li {
  padding: .42rem 0 .42rem 1.5rem; font-size: .95rem; color: var(--muted);
  position: relative;
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .78rem;
  width: 13px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-48deg);
}
.price-card li.na { opacity: .5; }
.price-card li.na::before { border-color: var(--muted); transform: none; width: 10px; height: 0; top: 1rem; }
.fine-print { font-size: .85rem; color: var(--muted); margin-top: 1.6rem; max-width: 70ch; }

.org-band {
  margin-top: 2.2rem; display: grid;
  grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2rem;
}
.org-band p { font-size: .95rem; color: var(--muted); margin-top: .3rem; }
@media (max-width: 720px) { .org-band { grid-template-columns: 1fr; } }

/* ---------- knowledgebase ---------- */

.kb-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 3rem; }
@media (max-width: 820px) { .kb-layout { grid-template-columns: 1fr; } }
.kb-toc { position: sticky; top: 86px; align-self: start; font-size: .93rem; }
.kb-toc a { display: block; padding: .3rem 0; color: var(--muted); text-decoration: none; }
.kb-toc a:hover { color: var(--accent); }
.kb-toc .toc-head { font-weight: 600; color: var(--ink); margin: 1rem 0 .3rem; }
.kb-article { margin-bottom: 2.6rem; }
.kb-article h3 { margin-top: 0; }
.kb-article ol, .kb-article ul { margin: .6rem 0 .6rem 1.3rem; color: var(--muted); font-size: .97rem; }
.kb-article li { margin: .3rem 0; }
.kb-article p { color: var(--muted); font-size: .97rem; margin: .5rem 0; }

details.faq {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); margin-bottom: .7rem;
}
details.faq summary {
  cursor: pointer; padding: .95rem 1.2rem; font-weight: 600; font-size: .98rem;
  list-style: none; position: relative; padding-right: 2.6rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 1.15rem; top: .78rem;
  font-size: 1.25rem; color: var(--accent); font-weight: 400;
}
details.faq[open] summary::after { content: "−"; }
details.faq .faq-body { padding: 0 1.2rem 1.05rem; color: var(--muted); font-size: .96rem; }
details.faq .faq-body p { margin-bottom: .5rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg); color: var(--footer-ink);
  padding: 2.6rem 0 2.2rem; margin-top: 4rem; font-size: .92rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }
.site-footer .foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer .foot-note { flex-basis: 100%; font-size: .82rem; opacity: .7; }

/* ---------- realm flourishes ---------- */

body.realm .hero h1 { color: var(--ink); }
body.realm section.dip { background: var(--bg-dip); }
.realm-rule {
  border: none; height: 1px; background: var(--line);
  position: relative; overflow: visible; margin: 0 auto; max-width: 420px;
}
.realm-rule::after {
  content: "❧"; position: absolute; left: 50%; top: -0.72rem;
  transform: translateX(-50%); color: var(--accent);
  background: var(--bg); padding: 0 .7rem; font-size: 1rem;
}
.charted-list { list-style: none; margin-top: 1.2rem; }
.charted-list li {
  display: flex; align-items: baseline; gap: .8rem;
  padding: .8rem 0; border-top: 1px solid var(--line); font-size: .98rem;
}
.charted-list li:last-child { border-bottom: 1px solid var(--line); }
.charted-list .where { color: var(--muted); font-size: .88rem; margin-left: auto; text-align: right; }
.charted-list .crest { color: var(--accent); }
