/* File: /site.css */

/* ========================= Root + global ========================= */
:root {
    /* Brand + surfaces (solid colors only) */
    --yellow: #ffff00;        /* Brand yellow used elsewhere (intro band, highlights, etc.) */
    --accentYellow: #ffe01b;  /* Accent yellow ONLY for underline + check bullets */

    --bg: #ffffff;            /* main page background below intro */
    --surface: #f2f2f2;       /* section background */
    --surface2: #e9e9e9;      /* deeper contrast blocks when needed */
    --card: #ffffff;          /* card background inside sections */

    --text: #0b0b0b;
    --muted: #2f2f2f;

    /* Buttons */
    --btn-primary-bg: #000000;
    --btn-primary-fg: #ffffff;
    --btn-secondary-bg: #ffffff;
    --btn-secondary-fg: #000000;

    --radius: 18px;

    /* One source of truth for alignment */
    --maxw: 1000px;
    --pagePad: 18px;

    /* Force navbar partial to align with page */
    --db-nav-maxw: var(--maxw) !important;
    --db-nav-drop-safe: var(--pagePad) !important;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
        "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

/* Shared width + horizontal padding for navbar, intro, hero, content, footer */
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pagePad);
    padding-right: var(--pagePad);
}

/* Page content container */
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px var(--pagePad) 80px;
}

/* Optional helper (no longer used on index, but safe to keep) */
.wrapNoBottom {
    padding-bottom: 0;
}

/* ========================= FULL-WIDTH GRAY BAND (Products) ========================= */
.surfaceBand {
    width: 100%;
    background: var(--surface);
}

.surfaceBandInner {
    padding-top: 20px;
    padding-bottom: 20px;
}
/* ========================= END FULL-WIDTH GRAY BAND ========================= */

/* Basic typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 {
    margin: 14px 0 10px;
    font-size: clamp(26px, 3.8vw, 38px);
    line-height: 1.18;
}

h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 30px);
}

h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

p {
    margin: 0 0 8px;
}

/* Inline code pills used in docs and summaries */
code.inline {
    padding: 2px 6px;
    border-radius: 8px;
    background: var(--surface2);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
        "Courier New", monospace;
    font-size: 0.95em;
}

/* Lists */
ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

li {
    margin: 6px 0;
}

/* Yellow circle + checkmark list style (use: <ul class="checkList">) */
.checkList {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.checkList li {
    position: relative;
    padding-left: 32px;
    margin: 10px 0;
}

.checkList li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.18em;

    width: 20px;
    height: 20px;
    border-radius: 999px;

    background: var(--accentYellow);
    color: #000000;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 900;
    font-size: 14px;
    line-height: 1;
}

/* Underline ONLY the phrase "not complicated" */
.yellowUnderline {
    text-decoration-line: underline;
    text-decoration-color: var(--accentYellow);
    text-decoration-thickness: 5px;

    /* Very small offset keeps it tight so the thick line bites into descenders (like the 'p') */
    text-underline-offset: 0.15em;

    /* Do not skip ink so it visibly intersects letter shapes */
    text-decoration-skip-ink: none;
}

/* ========================= INTRO BAND (brand yellow) ========================= */

.introBand {
    width: 100%;
    background: var(--yellow);
}

/* Uses .container for width and left/right padding */
.introInner {
    padding-top: 18px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.introCopy {
    flex: 1.4;
}

.introCopy h1 {
    margin-top: 0;
}

/* Intro subtext */
.introCopy .sub {
    max-width: none;
}

/* Right side mascot container */
.introMascot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
.introMascot img {
    display: block;
    max-width: 260px;
    width: 100%;
    height: auto;
}

/* Desktop */
@media (min-width: 860px) {
    .introInner {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 12px;
        align-items: center;
    }

    .introCopy {
        min-width: 0;
    }

    .introMascot {
        justify-content: flex-start;
    }

    .introMascot img {
        width: auto;
        height: auto;
        max-width: 260px;
    }
}

/* ========================= HERO BAND (white) ========================= */

.heroBand {
    width: 100%;
    background: var(--bg);
}

/* Uses .container for width and left/right padding */
.heroInner {
    padding-top: 26px;
    padding-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Headline row so we can place a button to the right on desktop */
.heroHeaderRow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 6px;
}

@media (min-width: 860px) {
    .heroHeaderRow {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 14px;
        align-items: end;
    }

    .heroHeadlineActions {
        justify-self: end;
        align-self: end;
        margin-bottom: 2px;
    }
}

.heroMediaColumn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* Image container with rounded corners, no shadow */
.heroMedia {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
}

.heroMedia img {
    display: block;
    width: 100%;
    height: auto;
}

/* Headline above the hero image */
.heroHeadline {
    margin: 0;
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    max-width: none;
}

.heroHeadlineSoft {
    font-weight: 300;
    font-size: 0.92em;
    /* font-style: italic;     keep the emphasis vibe */
    opacity: 0.92;
}

/* Plain highlighter swipe (brand yellow) */
.highlightYellow {
    border-radius: 0 !important;
    position: static !important;
}

.highlightYellow::before {
    content: none !important;
}

.highlightYellow {
    color: inherit;
    padding: 0 0.08em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    background: linear-gradient(
        transparent 18%,
        var(--yellow) 18%,
        var(--yellow) 88%,
        transparent 88%
    );
}

/* ========================= ChatJamboree wordmark (outside-looking stroke) ========================= */

.chatjWordMark{
  position: relative;
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* The stroke layer (behind). Not selectable, not clickable. */
.chatjWordMark::before{
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;
  user-select: none;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Smooth stroke on Chromium/Safari */
@supports (-webkit-text-stroke: 1px #000){
  .chatjWordMark::before{
    -webkit-text-stroke: 6px #000;
    text-shadow: none;
    filter: none;
  }
}

/* Fallback outline (crisp, no blur) */
@supports not (-webkit-text-stroke: 1px #000){
  .chatjWordMark::before{
    text-shadow:
      -2px  0px 0 #000,
       2px  0px 0 #000,
       0px -2px 0 #000,
       0px  2px 0 #000,
      -2px -1px 0 #000,
      -2px  1px 0 #000,
       2px -1px 0 #000,
       2px  1px 0 #000,
      -1px -2px 0 #000,
       1px -2px 0 #000,
      -1px  2px 0 #000,
       1px  2px 0 #000;
  }
}

/* The real, copyable colored text sits on top */
.chatjWordMark > span{
  position: relative;
  z-index: 1;
}

.chatjChat{
  color: #60a5fa;
}

.chatjJamboree{
  color: #fde047;
}

/* ========================= HERO / HEADER (for guide-style pages) ========================= */

.pageHeader {
    background: var(--surface);
    border-radius: calc(var(--radius) + 6px);
    padding: 26px 22px 24px;
    margin-top: 18px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--surface2);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
}

.sub {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    max-width: 75ch;
}

/* Primary CTA buttons */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
    color: var(--btn-primary-fg);
    background: var(--btn-primary-bg);

    transition: transform 0.15s ease, background 0.15s ease;
    will-change: transform;
}

.pageHeader .cta {
    margin-top: 14px;
}

.cta:hover {
    background: #111111;
    transform: translateY(-1px);
}

.secondaryCta {
    color: var(--btn-secondary-fg);
    background: var(--btn-secondary-bg);
}

.secondaryCta:hover {
    background: #f7f7f7;
}

.heroActions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* ========================= SECTIONS / GRID ========================= */

.section {
    margin-top: 16px;
    padding: 20px 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
}

.sectionHeader {
    margin-bottom: 16px;
}

.sectionKicker {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface2);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.sectionTitle {
    margin-top: 8px;
}

.sectionLead {
    margin-top: 4px;
    color: var(--muted);
    font-size: 15px;
}

/* Feature cards in a responsive grid */
.featureGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 10px;
}

@media (min-width: 720px) {
    .featureGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.featureCard {
    border-radius: 16px;
    background: var(--card);
    padding: 14px;
}

.featureIcon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.featureIconImg {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.featureTitle {
    font-size: 16px;
    margin-bottom: 4px;
}

.featureText {
    color: var(--muted);
    font-size: 14px;
}

/* Two-column layout */
.twoCol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
}

@media (min-width: 780px) {
    .twoCol {
        grid-template-columns: 1.4fr 1fr;
    }
}

/* ========================= OVERRIDES (must be AFTER .section) ========================= */

/* Remove the gray rounded container for Why Dream Boat only */
.section.sectionPlain {
    background: transparent;
    border-radius: 0;
}

/* ========================= CALLOUTS ========================= */

.callout {
    margin-top: 8px;
    padding: 14px 14px;
    border-radius: 14px;
    background: var(--surface2);
    color: var(--muted);
    font-size: 14px;
}

.callout strong {
    color: var(--text);
}

.callout.info {
    background: #ededed;
}

.callout.success {
    background: #e7e7e7;
}

.callout.warn {
    background: #fff4b8;
}

/* ========================= FOOTER (legacy simple footer, can coexist with partial) ========================= */

footer {
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    opacity: 0.9;
}

.noteSmall {
    font-size: 13px;
    color: var(--muted);
    margin-top: 10px;
}

/* ========================= Utility ========================= */

.text-muted {
    color: var(--muted);
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--surface2);
    color: var(--text);
}