/* Homepage styles (loaded after host.css). Colours are variables; host.css supplies the base tokens. */
:root {
  --gold: #f2b84b;
  --gold-soft: rgba(242, 184, 75, .14);
  --parse-gold: #f2b84b;
  --parse-orange: #ff8a3d;
  --parse-purple: #b58cff;
  --parse-blue: #6aa8ff;
  --glow: rgba(56, 208, 192, .18);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --sec-y: 56px;
}
@media (min-width: 900px) { :root { --sec-y: 88px; } }

.landing .wrap { max-width: 1120px; }
.landing h2 { font-size: clamp(1.5rem, 4.2vw, 2.25rem); }
.landing .center { text-align: center; }
.landing section { overflow-x: clip; }
.fine { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 12px; }
.ico { width: 22px; height: 22px; flex: none; color: var(--accent); }

/* hero */
.hero2 { padding: 40px 0 var(--sec-y); background: radial-gradient(ellipse 70% 60% at 75% 10%, var(--glow), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 0%, var(--gold-soft), transparent 70%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy, .hero-mock { min-width: 0; }
.eyebrow-pill { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(56, 208, 192, .35); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero2 h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
.hero2 .lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 1.5em; }
.hero2 .cta-row { justify-content: flex-start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; } .hero2 { padding-top: 72px; } }

/* browser mock */
.hero-mock { position: relative; }
.hero-mock::before { content: ''; position: absolute; inset: 8% 2%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); z-index: 0; }
.tilt { position: relative; z-index: 1; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) { .tilt { transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); } }
.browser { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; pointer-events: none; user-select: none; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.urlbar { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* screenshot compositions */
.compose { position: relative; z-index: 0; }
.compose::before { content: ''; position: absolute; inset: 6% 2%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); z-index: -1; }
.shot img, .app-frame img, .float { display: block; width: 100%; max-width: 100%; height: auto; }
.shot.fade img { -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.browser, .app-frame { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); }
.app-frame { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 12px; }
.app-icon { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); flex: none; }
.app-title { font-weight: 600; font-size: 12px; color: var(--muted); }
.winctl { margin-left: auto; font-size: 12px; color: var(--muted); letter-spacing: .05em; white-space: nowrap; }
.float { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); background: var(--panel); position: relative; width: 84%; margin: -24px 0 0 8%; }
.chatchip { width: auto; max-width: 100%; margin: -16px 0 0 8%; background: #0a0c11; padding: 10px 14px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; display: grid; gap: 4px; }
.cl { overflow-wrap: anywhere; } .cl.raid { color: #ff9a4d; }
@media (min-width: 900px) {
  .compose.has-float { padding-bottom: 12%; }
  .float { position: absolute; bottom: 0; width: 62%; margin: 0; }
  .float-l { left: -4%; }
  .float-r { right: -4%; }
  .chatchip { width: auto; max-width: 70%; bottom: 4%; right: -3%; }
}

/* strip */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip-list { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.strip-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; min-width: 0; }
@media (min-width: 900px) { .strip-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .strip-list { grid-template-columns: 1fr; } }

/* promos */
.promo { padding: var(--sec-y) 0; }
.promo.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.promo-grid { display: grid; gap: 32px; align-items: center; }
.promo-copy, .promo-mock { min-width: 0; }
.promo-copy .muted { margin-bottom: 1.2em; }
.promo-copy code { white-space: normal; }
@media (min-width: 900px) {
  .promo-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .promo-grid.flip .promo-copy { order: 2; }
  .promo-grid.flip .promo-mock { order: 1; }
}
.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; overflow-wrap: anywhere; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%2338d0c0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ticks.left { text-align: left; max-width: 360px; margin: 0 auto 1.6em; }

/* Metric weights mock (the DKP promo): one role's sliders, grouped and colour-coded the same
   way as the guild site's weights panel. Sits over the screenshot's top-right corner. */
.wmock { --g-p: #e6b85c; --g-c: #5aa9e6; --g-u: #7fd35a; padding: 14px; font-size: 12px; line-height: 1.35; display: grid; gap: 9px;
  background: linear-gradient(165deg, var(--panel-2), var(--panel)); }
.wmock .g-p { --g: var(--g-p); } .wmock .g-c { --g: var(--g-c); } .wmock .g-u { --g: var(--g-u); }
.wm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wm-head b { font-family: Sora, Inter, sans-serif; font-size: 15px; color: var(--text); letter-spacing: .02em; }
.wm-head span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.wm-bar { display: flex; gap: 2px; height: 7px; border-radius: 99px; overflow: hidden; }
.wm-bar i { background: var(--g); min-width: 2px; }
.wm-group { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: rgba(12, 14, 20, .55); display: grid; gap: 8px; }
.wm-gh { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); font-size: 12.5px; }
.wm-gh span { margin-left: auto; color: var(--muted); font-weight: 400; font-size: 11px; }
.wm-sq { width: 9px; height: 9px; border-radius: 3px; background: var(--g); box-shadow: 0 0 10px var(--g); flex: none; }
.wm-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; align-items: baseline; }
.wm-l { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm-dn { font-style: normal; color: var(--muted); }
.wm-v { color: var(--muted); font-size: 11px; white-space: nowrap; } .wm-v b { color: var(--text); font-size: 12px; }
.wm-track { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 99px; background: #080a0f; }
.wm-track i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--g) 55%, transparent), var(--g)); }
.wm-track i::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff7e6; border: 2px solid var(--g); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g) 22%, transparent); }
.wm-closed { padding-block: 7px; }
@media (min-width: 900px) {
  .float.float-w { width: 52%; right: -9%; top: 9%; bottom: auto; }
}

/* mock base (Discord mock) */
.mock { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; font-size: 13px; pointer-events: none; user-select: none; overflow: hidden; font-variant-numeric: tabular-nums; min-width: 0; }
.gold-t { color: var(--gold); font-weight: 700; }

.app-icon.discord { background: #5865f2; }

/* included */
.included { padding: var(--sec-y) 0; }
.included h2 { margin-bottom: 1.2em; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles li { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 500; min-height: 56px; min-width: 0; overflow-wrap: anywhere; }

/* how / pricing / faq / final */
.how2 { padding: var(--sec-y) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.how2 h2 { margin-bottom: 1.2em; }
.landing .steps li { border-radius: 14px; }
.pricing2 { padding: var(--sec-y) 0; }
.price-card { text-align: center; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 16px; padding: 36px 20px; max-width: 520px; margin: 0 auto; box-shadow: var(--shadow); position: relative; }
.price-card::before { content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.price-card .btn { max-width: 100%; text-align: center; }
.faq { padding: 0 0 var(--sec-y); }
.narrow-wrap { max-width: 760px !important; }
.faq h2 { margin-bottom: 1em; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 600; min-height: 48px; list-style: none; position: relative; overflow-wrap: anywhere; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--accent); line-height: 1.4; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }
.final { text-align: center; padding: var(--sec-y) 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--glow), transparent 70%), var(--bg-2); border-top: 1px solid var(--line); }
.final h2 { margin-bottom: 1em; }
.landing .site-footer { margin-top: 0; }

/* scroll reveal: the hidden state is added by landing.js only */
@media (prefers-reduced-motion: no-preference) {
  .will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .will-reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .will-reveal { opacity: 1 !important; transform: none !important; } }
