/* Shared styles for auth pages and public pages */
:root {
    /* Teal */
    --teal-light2:  #B3F1E8;
    --teal-light1:  #7DE3D4;
    --teal-base:    #3DCFC0;
    --teal-dark1:   #079078;
    --teal-dark2:   #0D3830;

    /* Sand */
    --sand-light2:  #FDF8F2;
    --sand-light1:  #F5EDE0;
    --sand-base:    #C8A882;
    --sand-dark1:   #7A5C36;
    --sand-dark2:   #4E3519;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.5;
}

.page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--teal-base);
    letter-spacing: -.025em;
}

h1 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 1rem; }

p { margin-bottom: .75rem; }

.form-row { margin-bottom: 1rem; }

label {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: .375rem;
}

input[type=email],
input[type=password],
input[type=text] {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: .9375rem;
    color: #111827;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
input:focus {
    outline: none;
    border-color: var(--teal-base);
    box-shadow: 0 0 0 3px rgba(61,207,192,.15);
}

.label-hint {
    font-weight: 400;
    color: #9ca3af;
    font-size: .8125rem;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .875rem;
    color: #374151;
    cursor: pointer;
}
.checkbox-row input[type=checkbox] {
    margin-top: .2rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    accent-color: var(--teal-base);
}

.btn {
    display: block;
    width: 100%;
    padding: .625rem 1rem;
    background: var(--teal-base);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 1.25rem;
    transition: background .15s;
}
.btn:hover { background: var(--teal-dark1); color: #fff; }
.btn-secondary {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
}
.btn-secondary:hover { background: #f9fafb; color: #374151; }

.alert {
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: .875rem;
    line-height: 1.5;
}
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

.page-links {
    margin-top: 1.25rem;
    font-size: .875rem;
    color: #6b7280;
    text-align: center;
}
.page-links a { color: var(--teal-base); text-decoration: none; }
.page-links a:hover { text-decoration: underline; }

hr.divider { border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0; }

small { font-size: .8125rem; color: #9ca3af; }

.plan-options {
    display: flex;
    gap: .75rem;
}
.plan-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
    margin-bottom: 0;
}
.plan-option input[type=radio] { display: none; }
.plan-option:hover { border-color: var(--teal-base); }
.plan-option.selected {
    border-color: var(--teal-base);
    box-shadow: 0 0 0 3px rgba(61,207,192,.12);
}
.plan-name { font-size: .875rem; font-weight: 600; color: #111827; }
.plan-price { font-size: .8125rem; color: #6b7280; }
.plan-savings {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    font-size: .75rem;
    font-weight: 500;
    padding: .1rem .375rem;
    border-radius: 3px;
    margin-left: .25rem;
}

/* Standalone error pages (e.g. api/verify-discord.php) */
.error-page { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; max-width: 520px; margin: 4rem auto; padding: 1rem 2rem; }
.error-page a { color: var(--teal-base); }

/* ── Marketing pages ──────────────────────────────────────────────────────── */

.marketing-body { background: #fff; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e5e7eb; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; height: 60px; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.125rem; color: var(--teal-base); text-decoration: none; letter-spacing: -.025em; margin-right: auto; }
.nav-logo img { height: 30px; width: auto; border-radius: 5px; display: block; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; }
.nav-links a { color: #374151; text-decoration: none; font-size: .9375rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal-base); }
.nav-actions { display: flex; gap: .75rem; align-items: center; }
.btn-nav { padding: .4rem .9rem; font-size: .9375rem; font-weight: 500; border-radius: 6px; text-decoration: none; transition: background .15s, color .15s; }
.btn-nav-ghost { color: #374151; }
.btn-nav-ghost:hover { color: var(--teal-base); }
.btn-nav-primary { background: var(--teal-base); color: #fff; }
.btn-nav-primary:hover { background: var(--teal-dark1); color: #fff; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: #f9fafb; }
.text-center { text-align: center; }

/* Hero */
.hero { padding: 5rem 0; text-align: center; }

/* Split hero (homepage) */
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-split-logo { display: flex; justify-content: center; align-items: center; }
.hero-split-logo img { max-width: 100%; width: 340px; height: auto; border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.hero-split .hero-headline { text-align: left; }
.hero-split .hero-subtext  { text-align: left; margin-left: 0; margin-right: 0; }
.hero-split .hero-ctas     { justify-content: flex-start; }
@media (max-width: 768px) {
    .hero-split { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-split-logo { order: -1; }
    .hero-split-logo img { width: 200px; }
    .hero-split .hero-headline { text-align: center; }
    .hero-split .hero-subtext  { text-align: center; margin-left: auto; margin-right: auto; }
    .hero-split .hero-ctas     { justify-content: center; }
}
.hero-tag { display: inline-block; background: var(--teal-light2); color: var(--teal-dark2); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1.5rem; }
.hero-headline { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: #111827; margin-bottom: 1.25rem; }
.hero-subtext { font-size: 1.125rem; color: #6b7280; max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.6; }
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-lg { display: inline-flex; align-items: center; padding: .8rem 1.75rem; border-radius: 8px; font-size: 1rem; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.btn-primary { background: var(--teal-base); color: #fff; }
.btn-primary:hover { background: var(--teal-dark1); color: #fff; }
.btn-muted { background: #f3f4f6; color: #374151; }
.btn-muted:hover { background: #e5e7eb; color: #111827; }

/* Section headings */
.section-label { font-size: .8125rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-base); display: block; margin-bottom: .75rem; }
.section-heading { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; color: #111827; margin-bottom: 1rem; }
.section-intro { font-size: 1.0625rem; color: #6b7280; max-width: 580px; line-height: 1.6; margin-bottom: 0; }
.section-intro.centered { margin-left: auto; margin-right: auto; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3.5rem; }
@media (max-width: 640px) { .steps-grid { grid-template-columns: 1fr; } }
.step { text-align: center; padding: 0 1rem; }
.step-num { width: 2.5rem; height: 2.5rem; background: var(--teal-light2); color: var(--teal-dark2); font-weight: 700; font-size: 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; }
.step h3 { font-size: 1.0625rem; font-weight: 700; color: #111827; margin: 0 0 .5rem; }
.step p { font-size: .9375rem; color: #6b7280; line-height: 1.6; margin: 0; }

/* Feature cards */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 1.5rem; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.09); border-color: #99d4cc; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: #111827; margin: 0 0 .375rem; }
.feature-card p { font-size: .875rem; color: #6b7280; line-height: 1.5; margin: 0; }

/* Pricing cards */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 680px; margin: 3.5rem auto 0; }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card { border: 2px solid #e5e7eb; border-radius: 12px; padding: 2rem; position: relative; }
.pricing-card.featured { border-color: var(--teal-base); box-shadow: 0 0 0 1px var(--teal-base); }
.plan-badge { position: absolute; top: -1px; right: 1.5rem; background: var(--teal-base); color: #fff; font-size: .75rem; font-weight: 600; padding: .25rem .75rem; border-radius: 0 0 6px 6px; }
.pricing-name { font-size: 1.0625rem; font-weight: 700; color: #111827; margin-bottom: 1rem; }
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: #111827; letter-spacing: -.04em; line-height: 1; }
.pricing-amount sup { font-size: 1.25rem; font-weight: 700; vertical-align: top; margin-top: .3rem; }
.pricing-amount .period { font-size: 1rem; font-weight: 500; color: #6b7280; }
.pricing-equiv { font-size: .875rem; color: #6b7280; margin: .25rem 0 1.5rem; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: .625rem; margin: 0 0 1.75rem; padding: 0; }
.check-list li { font-size: .9375rem; color: #374151; display: flex; gap: .5rem; align-items: flex-start; }
.check-list li::before { content: '✓'; color: #10b981; font-weight: 700; flex-shrink: 0; margin-top: .05em; }
.btn-plan { display: block; width: 100%; padding: .75rem 1rem; background: var(--teal-base); color: #fff; border: 2px solid var(--teal-base); border-radius: 8px; font-size: 1rem; font-weight: 600; text-align: center; text-decoration: none; transition: background .15s, color .15s; }
.btn-plan:hover { background: var(--teal-dark1); border-color: var(--teal-dark1); color: #fff; }
.btn-plan.outline { background: transparent; color: var(--teal-base); }
.btn-plan.outline:hover { background: var(--teal-base); color: #fff; }

/* CTA strip */
.cta-strip { background: var(--teal-base); padding: 5rem 0; text-align: center; }
.cta-strip h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin: 0 0 .75rem; letter-spacing: -.02em; }
.cta-strip p { color: var(--teal-light2); font-size: 1.0625rem; margin: 0 auto 2rem; max-width: 480px; line-height: 1.6; }
.btn-cta { display: inline-flex; align-items: center; padding: .8rem 2rem; background: #fff; color: var(--teal-base); border-radius: 8px; font-size: 1rem; font-weight: 700; text-decoration: none; transition: background .15s; }
.btn-cta:hover { background: #f3f4f6; color: var(--teal-base); }

/* Footer */
.site-footer { background: #111827; color: #9ca3af; padding: 3rem 0; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.footer-logo { font-weight: 700; font-size: 1.125rem; color: #fff; letter-spacing: -.025em; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: .875rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .8125rem; color: #6b7280; margin: 0; }

/* Legal / prose pages */
.prose-wrap { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; }
.prose-wrap > h1 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5rem; }
.prose-date { font-size: .875rem; color: #6b7280; display: block; margin-bottom: 3rem; }
.prose-wrap h2 { font-size: 1.25rem; font-weight: 700; color: #111827; margin: 2.5rem 0 .75rem; }
.prose-wrap h3 { font-size: 1rem; font-weight: 700; color: #111827; margin: 1.75rem 0 .5rem; }
.prose-wrap p, .prose-wrap li { font-size: .9375rem; color: #374151; line-height: 1.7; margin-bottom: .75rem; }
.prose-wrap ul, .prose-wrap ol { padding-left: 1.25rem; margin-bottom: .75rem; }
.prose-wrap a { color: var(--teal-base); }
.prose-wrap code { font-family: monospace; background: #f3f4f6; padding: .1em .3em; border-radius: 3px; font-size: .875em; color: #374151; }
.prose-wrap .table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.prose-wrap table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.prose-wrap th, .prose-wrap td { text-align: left; padding: .5rem .75rem; border: 1px solid #e5e7eb; vertical-align: top; color: #374151; line-height: 1.6; }
.prose-wrap th { background: #f9fafb; font-weight: 700; color: #111827; }

/* Docs page — hero modifiers */
.hero-condensed { padding-bottom: 3rem; }
.hero-headline-sm { font-size: clamp(1.75rem, 4vw, 2.75rem); }

/* Docs page — details/summary accordion */
details {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #ffffff;
}
summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  color: #111827;
  outline: none;
}
summary::-webkit-details-marker { display: none; }
summary::marker { display: none; }
summary::before {
  content: '▸';
  font-size: .875rem;
  color: #6b7280;
  flex-shrink: 0;
  transition: transform .15s ease;
  display: inline-block;
}
details[open] > summary::before {
  transform: rotate(90deg);
}
.details-body {
  padding: .25rem 1.5rem 1.5rem;
  border-top: 1px solid #f3f4f6;
}
.details-body > h3 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #6b7280;
  font-weight: 600;
  margin: 1.5rem 0 .5rem;
}
.details-body > h3:first-child {
  margin-top: .75rem;
}
.details-body > ul,
.details-body > p + ul {
  margin: 0 0 .75rem;
  padding-left: 0;
  list-style: none;
}
.details-body ul li {
  padding: .3rem 0;
  font-size: .9375rem;
  color: #374151;
  line-height: 1.65;
  border-bottom: 1px solid #f9fafb;
}
.details-body ul li:last-child {
  border-bottom: none;
}
.details-body ul li ul {
  margin: .3rem 0 .1rem 1.25rem;
  padding: 0;
  list-style: disc;
}
.details-body ul li ul li {
  border: none;
  padding: .15rem 0;
  font-size: .9rem;
}
.details-body p {
  font-size: .9375rem;
  color: #374151;
  line-height: 1.7;
  margin: .75rem 0;
}
.details-body code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: .8125rem;
  background: #f3f4f6;
  padding: .1em .4em;
  border-radius: 4px;
  color: #1f2937;
}
.details-body .note {
  background: #f9fafb;
  border-left: 3px solid #d1d5db;
  padding: .6rem .875rem;
  border-radius: 0 4px 4px 0;
  font-size: .875rem;
  color: #6b7280;
  margin: .5rem 0 1rem;
}
.details-body .examples {
  margin: .75rem 0 1.25rem;
}
.details-body .examples .examples-label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: #9ca3af;
  margin-bottom: .375rem;
}
.details-body .examples > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.details-body .examples > ul > li {
  padding: .45rem .875rem;
  font-size: .875rem;
  font-style: italic;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.5;
}
.details-body .examples > ul > li:last-child {
  border-bottom: none;
}
.exchange {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin: .75rem 0 1rem;
}
.exchange-row {
  padding: .45rem .875rem;
  font-size: .875rem;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  gap: .625rem;
  line-height: 1.5;
}
.exchange-row:last-child { border-bottom: none; }
.exchange-who {
  font-weight: 700;
  font-style: normal;
  font-size: .75rem;
  width: 2.5rem;
  flex-shrink: 0;
  padding-top: .15em;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.exchange-you { color: #2563eb; }
.exchange-bot { color: #7c3aed; }
