/* VidsTracker public site: landing, FAQ, legal pages. */
:root {
  --bg: #18181A; --bg2: #1F1F22; --panel: #1F1F22; --line: #262629; --line2: #333336;
  --fg: #F3F3F3; --muted: #ADADAD; --subtle: #8F8F8F; --red: #FF0033; --red2: #FF3355;
  --chip: #2A2A2D; --shadow: 0 30px 80px rgba(0,0,0,.45); color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FFFFFF; --bg2: #F8F8F8; --panel: #FFFFFF; --line: #E5E5E5; --line2: #DADADA;
    --fg: #0F0F0F; --muted: #606060; --subtle: #767676; --chip: #F2F2F2; --shadow: 0 30px 80px rgba(15,15,16,.12); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #FFFFFF; --bg2: #F8F8F8; --panel: #FFFFFF; --line: #E5E5E5; --line2: #DADADA;
  --fg: #0F0F0F; --muted: #606060; --subtle: #767676; --chip: #F2F2F2; --shadow: 0 30px 80px rgba(15,15,16,.12); color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav .links { display: flex; gap: 24px; font-size: 14.5px; color: var(--muted); }
.nav .links a:hover { color: var(--fg); }
.nav .grow { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 99px; font: inherit; font-size: 14.5px; font-weight: 500; border: 1px solid var(--line2); background: transparent; color: var(--fg); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--chip); }
.btn.red { background: var(--red); border-color: var(--red); color: #FFFFFF; }
.btn.red:hover { background: var(--red2); }
.btn.lg { height: 50px; padding: 0 24px; font-size: 15.5px; }

/* hero */
.hero { text-align: center; padding: 84px 0 40px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--muted); border: 1px solid var(--line2); background: var(--bg2); }
.pill i { width: 7px; height: 7px; border-radius: 99px; background: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 22%, transparent); }
h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; margin: 22px auto 0; max-width: 920px; text-wrap: balance; }
h1 span { color: var(--red); }
.lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--muted); max-width: 660px; margin: 22px auto 0; text-wrap: balance; }

/* waitlist form */
.join { display: flex; gap: 8px; max-width: 500px; margin: 34px auto 0; padding: 6px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.join input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 15px; padding: 0 16px; outline: none; }
.join input + input { border-left: 1px solid var(--line2); }
.join input::placeholder { color: var(--subtle); }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.joinnote { font-size: 13.5px; color: var(--subtle); margin-top: 14px; min-height: 22px; }
.joinnote.ok { color: #22C55E; }
.joinnote.err { color: var(--red); }
.signin { font-size: 14px; color: var(--muted); margin-top: 6px; }
.signin a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* mosaic */
.mosaic { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px 0 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mtrack { display: flex; gap: 14px; width: max-content; animation: slide var(--dur, 90s) linear infinite; will-change: transform; }
.mrow.rev .mtrack { animation-direction: reverse; }
.mtrack a { flex: 0 0 auto; width: 280px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--chip); }
.mtrack img { width: 100%; height: 100%; object-fit: cover; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mtrack { animation-duration: 400s; } }

/* sections */
section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 12px 0 0; text-wrap: balance; }
.sub { color: var(--muted); font-size: 17.5px; max-width: 640px; margin-top: 16px; text-wrap: balance; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* product preview */
.frame { margin: 48px auto 0; max-width: 1080px; border-radius: 22px; border: 1px solid var(--line2); background: var(--bg2); box-shadow: var(--shadow); overflow: hidden; }
.frame .bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 11px; height: 11px; border-radius: 99px; background: var(--line2); }
.frame .bar span { margin-left: 12px; font-size: 12.5px; color: var(--subtle); }
.frame .body { display: flex; }
.frame .side { flex: 0 0 56px; border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.frame .side img { width: 28px; height: 28px; border-radius: 8px; }
.frame .side b { width: 20px; height: 20px; border-radius: 6px; background: var(--chip); }
.frame .side b.on { background: color-mix(in srgb, var(--red) 30%, transparent); }
.frame .main { flex: 1; min-width: 0; padding: 20px; }
.frame .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.frame .chips span { font-size: 12.5px; padding: 6px 12px; border-radius: 99px; background: var(--chip); color: var(--fg); }
.frame .chips span.on { background: var(--fg); color: var(--bg); }
.frame .chips .gap { flex: 1; background: none; padding: 0; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 14px; }
.pcard .th { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--chip); }
.pcard .th img { width: 100%; height: 100%; object-fit: cover; }
.pcard .badge { position: absolute; top: 7px; left: 7px; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 99px; }
.pcard .meta { display: flex; gap: 10px; margin-top: 10px; }
.pcard .av { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 99px; background: var(--chip); overflow: hidden; }
.pcard .av img { width: 100%; height: 100%; object-fit: cover; }
.pcard .t { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .l { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* problem */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.pain { padding: 26px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line); }
.pain b { display: block; font-size: 17px; letter-spacing: -0.01em; margin-bottom: 6px; }
.pain p { margin: 0; color: var(--muted); font-size: 15px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feat { padding: 28px; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line); }
.feat .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); margin-bottom: 18px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.feat p { margin: 0; color: var(--muted); font-size: 15px; }
.feat .soon { font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line2); border-radius: 99px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: s; }
.step { padding: 28px; border-radius: 20px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 99px; background: var(--fg); color: var(--bg); font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.step h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.015em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* faq */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 22px; color: var(--muted); font-size: 15.5px; max-width: 680px; }
.faq details p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* final cta */
.cta { text-align: center; padding: 72px 24px; border-radius: 28px; background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--red) 22%, var(--bg2)) 0%, var(--bg2) 60%); border: 1px solid var(--line); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; font-size: 14px; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
footer h4 { margin: 0 0 12px; font-size: 13px; color: var(--fg); font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
footer a:hover { color: var(--fg); }
footer .fine { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--subtle); }

/* cookie notice */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 50; max-width: 380px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 14px; color: var(--muted); display: none; }
.cookie.show { display: block; }
.cookie a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.cookie .row { display: flex; justify-content: flex-end; margin-top: 12px; }
.cookie .btn { height: 34px; font-size: 13.5px; }

/* simple doc pages (faq, legal) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 40px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); text-align: left; margin: 0; }
.doc .date { color: var(--subtle); font-size: 14px; margin-top: 10px; }
.doc h2 { font-size: 21px; letter-spacing: -0.015em; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc p b, .doc li b { color: var(--fg); }
.doc a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.doc ul { padding-left: 22px; }
.doc .faq { margin-top: 28px; }

@media (max-width: 900px) {
  .pains, .features, .steps { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .pgrid .pcard:nth-child(n+5) { display: none; }
  .nav .links { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 24px; }
  .nav .login { display: none; }
  .join { flex-direction: column; border-radius: 22px; }
  .join input + input { border-left: 0; border-top: 1px solid var(--line2); }
  .join .btn { height: 48px; }
  .mtrack a { width: 200px; border-radius: 10px; }
  .mosaic, .mtrack { gap: 10px; }
  section { padding: 64px 0; }
  .frame .side { display: none; }
  .frame .main { padding: 14px; }
  .pgrid { grid-template-columns: 1fr; }
  .pgrid .pcard:nth-child(n+3) { display: none; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
.pcard .th { display: block; }
.hero { padding: 64px 0 28px; }
h1 { font-size: clamp(36px, 5.6vw, 64px); }
@media (min-width: 760px) { h1 span { white-space: nowrap; } }
.lead { margin-top: 18px; }
.join { margin-top: 28px; }
.hero { padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .hero { padding: 48px 16px 20px; } .join input { height: 48px; } }

.themebtn { width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line2); background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.themebtn:hover { background: var(--chip); }
.themebtn .sun { display: none; }
:root[data-theme="dark"] .themebtn .sun, :root:not([data-theme]) .themebtn .sun { display: block; }
:root[data-theme="dark"] .themebtn .moon, :root:not([data-theme]) .themebtn .moon { display: none; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .themebtn .sun { display: none; } :root:not([data-theme]) .themebtn .moon { display: block; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan { padding: 28px; border-radius: 22px; background: var(--bg2); border: 1px solid var(--line); }
.plan.current { border-color: color-mix(in srgb, var(--red) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--red) 35%, transparent), var(--shadow); }
.plan .ptop { display: flex; align-items: center; justify-content: space-between; }
.plan h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.plan .ptag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--chip); color: var(--muted); }
.plan.current .ptag { background: color-mix(in srgb, var(--red) 16%, transparent); color: var(--red); }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; margin-top: 14px; line-height: 1.1; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan:not(.current) .price { font-size: 26px; color: var(--muted); }
.plan .pblurb { color: var(--muted); font-size: 15px; margin: 10px 0 22px; min-height: 48px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: 0 0 auto; margin-top: 4px; color: var(--red); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
/* waitlist field: equal 6px ring around the button */
.join { align-items: center; padding: 6px; }
.join .btn { height: 46px; padding: 0 22px; border-radius: 99px; flex: 0 0 auto; }
@media (max-width: 600px) { .join { align-items: stretch; } .join .btn { height: 48px; } }
.feat .soon.new { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, transparent); }

/* network showcase */
.netshow { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.netsteps { list-style: none; counter-reset: n; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.netsteps li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
.netsteps li::before { content: counter(n); grid-row: span 2; width: 34px; height: 34px; border-radius: 99px; background: var(--fg); color: var(--bg); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.netsteps b { font-size: 17px; letter-spacing: -0.01em; }
.netsteps span { color: var(--muted); font-size: 15px; }
.netdemo { border-radius: 22px; background: var(--bg2); border: 1px solid var(--line2); box-shadow: var(--shadow); padding: 22px; }
.nd-head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nd-head b { font-size: 18px; letter-spacing: -0.01em; }
.nd-head span { font-size: 13px; color: var(--muted); }
.nd-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.nd-row .cb { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line2); position: relative; }
.nd-row .cb.on { background: var(--red); border-color: var(--red); }
.nd-row .cb.on::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nd-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 99px; background: var(--chip); overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); }
.nd-av img { width: 100%; height: 100%; object-fit: cover; }
.nd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nd-t b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-t small { font-size: 12.5px; color: var(--muted); }
.nd-tag { flex: 0 0 auto; font-style: normal; font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--chip); color: var(--muted); }
.nd-tag.sim, .nd-av.sim { color: #E0A100; background: color-mix(in srgb, #E0A100 14%, transparent); }
.nd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.nd-sel { font-size: 13.5px; color: var(--muted); }
.nd-sel b { color: var(--fg); font-weight: 500; }
.nd-foot .btn { cursor: default; }
@media (max-width: 900px) { .netshow { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .nd-tag { display: none; } .nd-foot { flex-direction: column; align-items: stretch; } }

.themebtn { flex: 0 0 40px; }
@media (max-width: 600px) {
  .nav .wrap { gap: 10px; }
  .nav .btn.red { height: 38px; padding: 0 14px; font-size: 14px; }
  .themebtn { flex-basis: 38px; width: 38px; height: 38px; }
  .frame .chips { flex-wrap: nowrap; overflow: hidden; }
  .frame .chips span { flex: 0 0 auto; }
  .frame .chips .gap { display: none; }
}

/* phone: three clean stacked fields instead of one squeezed pill */
@media (max-width: 600px) {
  .join { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .join input, .join input + input { height: 52px; padding: 0 20px; border: 1px solid var(--line2); border-radius: 99px; background: var(--panel); font-size: 16px; }
  .join input:focus { border-color: var(--subtle); }
  .join .btn { height: 52px; font-size: 16px; }
}
@media (max-width: 600px) { .join input, .join input + input, .join .btn { flex: none; width: 100%; } }

/* AI section on the landing */
.chatdemo { border-radius: 22px; background: var(--bg2); border: 1px solid var(--line2); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.cd-user { align-self: flex-end; max-width: 85%; background: var(--red); color: #FFFFFF; padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.cd-tool { align-self: flex-start; font-size: 12px; color: var(--subtle); border: 1px dashed var(--line2); padding: 4px 10px; border-radius: 99px; }
.cd-ai { background: var(--panel, var(--bg)); border: 1px solid var(--line2); border-radius: 16px 16px 16px 4px; padding: 12px 14px; }
.cd-ai p { margin: 0 0 8px; color: var(--fg); }
.cd-ai p:last-child { margin: 8px 0 0; color: var(--muted, var(--subtle)); }
.cd-fmt { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); margin-bottom: 6px; flex-wrap: wrap; }
.cd-fmt b { font-weight: 600; }
.cd-fmt span { font-size: 12.5px; color: var(--subtle); }
/* /ai guide */
.guide { max-width: 820px; }
.guide h2 { font-size: 26px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.guide p, .guide li { font-size: 16.5px; line-height: 1.6; }
.guide .small { font-size: 14px; color: var(--subtle); }
.gcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.gcard { border: 1px solid var(--line2); border-radius: 18px; padding: 18px 20px; background: var(--bg2); }
.gcard h3 { margin: 0 0 8px; font-size: 19px; }
.gcard ol { margin: 0; padding-left: 20px; }
.gprompts h3 { font-size: 15px; margin: 22px 0 8px; color: var(--subtle); text-transform: uppercase; letter-spacing: .05em; }
.gp { border: 1px solid var(--line2); border-left: 3px solid var(--red); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: 15.5px; line-height: 1.5; background: var(--bg2); }
@media (max-width: 700px) { .gcols { grid-template-columns: 1fr; } }

/* Tools shown inside the app */
html.embed .nav, html.embed footer, html.embed .cookie, html.embed .noembed, html.embed .hero .pill { display: none !important; }
html.embed .hero { padding: 18px 16px 0 !important; }
html.embed .hero h1 { font-size: 30px !important; }
html.embed .hero .lead { font-size: 15px; margin-top: 8px; }
html.embed main > section { padding-top: 16px !important; }
/* Ideate section on the landing */
.idgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.idcard { padding: 18px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line2); }
.idcard.big { grid-column: span 2; border-color: var(--red); background: linear-gradient(160deg, color-mix(in srgb, var(--red) 14%, var(--bg2)), var(--bg2)); }
.idcard .ic { font-size: 26px; }
.idcard h3 { margin: 8px 0 6px; font-size: 18px; }
.idcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.idemo { max-width: 720px; margin: 22px auto 0; }
@media (max-width: 900px) { .idgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .idgrid { grid-template-columns: 1fr; } .idcard.big { grid-column: auto; } }
/* Discord */
.signin { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; }
.signin .sep { color: var(--subtle); }
.signin a.dclink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.dclink span { text-decoration: underline; text-underline-offset: 3px; }
.dclink svg { width: 16px; height: 16px; color: #5865F2; flex: none; }
.discord { display: flex; align-items: center; gap: 22px; padding: 28px 30px; border-radius: 24px; background: linear-gradient(135deg, #5865F2, #3C45C5); color: #FFFFFF; }
.dc-ic svg { width: 56px; height: 56px; }
.dc-t { flex: 1; }
.dc-t h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); color: #FFFFFF; }
.dc-t p { margin: 0; color: rgba(255,255,255,.85); line-height: 1.5; }
.dc-btn { background: #FFFFFF !important; color: #3C45C5 !important; border: 0; flex: none; font-weight: 700; }
@media (max-width: 700px) { .discord { flex-direction: column; text-align: center; padding: 26px 20px; } .dc-btn { width: 100%; } }
/* polish */
.idemo .cd-fmt { flex-direction: column; gap: 2px; }
.idemo .cd-fmt span { font-size: 13px; }
@media (max-width: 600px) {
  .signin { flex-direction: column; gap: 8px; }
  .signin .sep { display: none; }
}

/* Phone stability */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }
@media (max-width: 720px) { input, select, textarea { font-size: 16px !important; } }
