/* CompanionForge website: plain CSS, no build step. Colours follow the app's settings window. */
:root {
  --bg: #12151c; --bg2: #181c25; --card: #1e2330; --line: #2c3242; --text: #e9e6df; --dim: #9aa1b2;
  --accent: #3c7be0; --accent2: #e3a94b; --ok: #6fd08c; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 system-ui, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: #8fb6ff; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(18, 21, 28, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1em; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav.main { display: flex; gap: 20px; margin-left: auto; }
nav.main a { color: var(--dim); text-decoration: none; font-size: .95em; }
nav.main a:hover, nav.main a.on { color: var(--text); }
.btn { display: inline-block; padding: 11px 22px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; border: 0; cursor: pointer; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 7px 14px; font-size: .9em; }

/* hero */
.hero { padding: 72px 0 40px; background: radial-gradient(1200px 500px at 70% 0%, #22304d 0%, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 3em; line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 span { color: var(--accent2); }
.hero p.lead { font-size: 1.2em; color: var(--dim); margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: .9em; color: var(--dim); }
.stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, #2b3a4f 0%, #1a2433 55%, #141a24 100%); }
.stage .scene { position: absolute; inset: 0; background:
  radial-gradient(400px 160px at 25% 85%, rgba(120, 160, 90, .35), transparent 70%),
  radial-gradient(500px 200px at 80% 90%, rgba(70, 110, 140, .3), transparent 70%); }
.stage .hint { position: absolute; left: 16px; top: 14px; font-size: .78em; color: rgba(233, 230, 223, .55); letter-spacing: .05em; }
.stage img.avatar { position: absolute; right: 2%; bottom: 0; width: 62%; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 2em; margin: 0 0 10px; letter-spacing: -.01em; }
.sub { color: var(--dim); margin: 0 0 36px; max-width: 760px; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.12em; }
.card p { margin: 0; color: var(--dim); }
.icon { font-size: 1.6em; margin-bottom: 8px; }

/* avatars */
.avatars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.avatars figure { margin: 0; background: radial-gradient(circle at 50% 40%, #2a3448, #1a1f2b 70%); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px 6px 12px; text-align: center; }
.avatars figure img { aspect-ratio: 1; object-fit: contain; width: 100%; }
.avatars figcaption { font-size: .9em; color: var(--dim); }

/* screenshots */
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-bottom: 48px; }
.shot-row:nth-child(even) .shot { order: 2; }
.shot-row h3 { font-size: 1.4em; margin: 0 0 8px; }
.shot-row p { color: var(--dim); margin: 0; }

/* free vs premium, pricing */
table.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
table.compare th, table.compare td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.compare th { color: var(--dim); font-weight: 600; font-size: .9em; }
table.compare td.y { color: var(--ok); font-weight: 700; text-align: center; }
table.compare td.n { color: #59607a; text-align: center; }
table.compare th.c { text-align: center; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan h3 { margin: 0; }
.price { font-size: 2.2em; font-weight: 800; margin: 10px 0 2px; }
.price small { font-size: .45em; font-weight: 500; color: var(--dim); }
.plan ul { padding-left: 1.1em; color: var(--dim); }
.plan .tag { display: inline-block; font-size: .75em; padding: 2px 9px; border-radius: 9px; background: #23324d; color: #9fc0ff;
  margin-left: 8px; vertical-align: middle; }
.byok { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed #4b5674; color: var(--dim); }
.byok b { color: var(--text); }

/* FAQ, pages */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--dim); margin: 10px 0 2px; }
.page { padding: 48px 0 64px; }
.page h1 { font-size: 2.3em; margin: 0 0 8px; }
.page h2 { font-size: 1.4em; margin: 36px 0 8px; }
.page p, .page li { color: #cfd3dc; }
.draft { padding: 12px 16px; border-radius: 10px; background: #3a2f17; color: #f0d58c; margin: 0 0 24px; }
ol.steps li { margin-bottom: 14px; }
code { background: #232a39; padding: 1px 6px; border-radius: 5px; font-size: .92em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: .9em; }
footer .cols { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 20px; }
footer a { color: var(--dim); text-decoration: none; display: block; margin: 4px 0; }
footer a:hover { color: var(--text); }
footer .legal { font-size: .85em; color: #6f7689; }

@media (max-width: 900px) {
  .hero .wrap, .shot-row, .grid.three, .grid.two, .plans { grid-template-columns: minmax(0, 1fr); }
  .grid > *, .plans > *, .shot-row > *, .hero .wrap > * { min-width: 0; }
  .shot-row:nth-child(even) .shot { order: 0; }
  .avatars { grid-template-columns: repeat(4, 1fr); }
  nav.main { display: none; }
  .hero h1 { font-size: 2.3em; }
}

/* the avatar carousel (index.html) */
.carousel { position: relative; max-width: 640px; margin: 0 auto; outline: none; }
.carousel .viewport { overflow: hidden; border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 40%, #2a3448, #1a1f2b 70%); }
.carousel .slides { display: flex; transition: transform .45s ease; }
.carousel .slide { flex: 0 0 100%; margin: 0; padding: 24px 24px 18px; text-align: center; box-sizing: border-box; }
.carousel .view { position: relative; height: 340px; aspect-ratio: 600 / 640; max-width: 100%; margin: 0 auto; }
.carousel .view img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.carousel figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.carousel figcaption b { font-size: 1.3em; } .carousel figcaption span { color: var(--dim); font-size: .9em; }
.carousel .nav { position: absolute; top: 194px; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: #1a1f2bcc; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; z-index: 2; }
.carousel .nav:hover { background: #2a3448; } .carousel .prev { left: -60px; } .carousel .next { right: -60px; }
.carousel .thumbs { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.carousel .thumbs button { width: 54px; height: 54px; padding: 4px; border-radius: 10px; border: 2px solid transparent;
  background: #1a1f2b; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.carousel .thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.carousel .thumbs button:hover { opacity: .9; } .carousel .thumbs button.on { opacity: 1; border-color: var(--accent, #4f8cff); }
@media (max-width: 800px) { .carousel .prev { left: 6px; } .carousel .next { right: 6px; } .carousel .view { height: 270px; }
  .carousel .nav { top: 159px; width: 34px; height: 34px; font-size: 22px; background: #1a1f2b99; } }

/* a Premium-only feature on the front page */
.pbadge { display: inline-block; vertical-align: middle; margin-left: .35em; padding: .15em .6em; border-radius: 9px;
  background: #23324d; color: #9fc0ff; font-size: .55em; font-weight: 600; letter-spacing: .02em; }
/* the screenshots open full size: click one, then click anywhere or press Esc to close */
.shot img { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(8, 9, 12, .92); display: flex; align-items: center;
  justify-content: center; padding: 24px; cursor: zoom-out; overscroll-behavior: contain; }
.zoom img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, .6); }
.zoom p { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: var(--dim); font-size: .9em; margin: 0; }
