/* Chanlo website: shared styles for every page. */
:root {
  --bg: #0B0D12; --panel: #141821; --panel2: #1C2230; --line: #262D3D;
  --text: #F3F5FA; --dim: #9AA3B5; --accent: #FF6B5B; --accent2: #FF9466;
  --radius: 18px; --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(11,13,18,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.3px; flex: none; }
.logo img { width: 28px; height: 28px; }
.nav ul { display: flex; gap: 28px; list-style: none; font-size: 15px; color: var(--dim); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); }
.nav ul a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { background: var(--panel2); color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; flex: none; }
.navlinks2 { display: none; }
/* The two ways to get Chanlo, kept together at the top of every page. */
.navcta { display: flex; align-items: center; gap: 8px; flex: none; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 640px; background: radial-gradient(closest-side, rgba(255,107,91,.22), transparent); pointer-events: none; }
.hero.small { padding: 72px 0 40px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--panel2); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .4px; margin-bottom: 22px; }
h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.12; letter-spacing: -1px; font-weight: 800; max-width: 900px; margin: 0 auto; }
.hero.small h1 { font-size: clamp(32px, 5vw, 54px); }
h1 em, h2 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--dim); font-size: 19px; max-width: 660px; margin: 22px auto 34px; }
.hero.small p { margin-bottom: 0; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--dim); font-size: 13px; margin-top: 14px; }
.note a { color: var(--accent); }
.shot-tv { margin: 56px auto 0; width: 100%; max-width: min(1000px, 100%); box-sizing: border-box; border: 10px solid #1A1E28; border-radius: 22px; box-shadow: 0 40px 120px rgba(0,0,0,.6); overflow: hidden; background: #05060A; }
.shot-phone { margin: 0 auto; width: 100%; max-width: 300px; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.55); overflow: hidden; }
figure figcaption { color: var(--dim); font-size: 14px; margin-top: 12px; text-align: center; }

/* Sections */
section { padding: 96px 0; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; line-height: 1.15; margin: 10px 0 14px; }
.lead { color: var(--dim); font-size: 18px; max-width: 660px; }
.center { text-align: center; } .center .lead { margin: 0 auto; }
.left { text-align: left; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .card, .band .step, .band details { background: var(--bg); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; text-align: left; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid.one { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--panel2); display: grid; place-items: center; margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--dim); font-size: 15px; }
.card a.more { color: var(--accent); font-weight: 700; font-size: 15px; display: inline-block; margin-top: 10px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
/* Grid columns never grow past the screen because of a wide image or long word. */
.split > *, .grid > *, .plans > *, .steps > *, footer .cols > * { min-width: 0; }
.split.flip > :first-child { order: 2; }
.checks { list-style: none; margin-top: 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text); }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6B5B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/13px no-repeat; margin-top: 2px; }
.checks li.no { color: var(--dim); }
.checks li.no::before { background-image: none; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 48px auto 0; text-align: left; }
.plans.two { grid-template-columns: 1fr 1fr; max-width: 820px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--accent); background: linear-gradient(180deg, rgba(255,107,91,.08), var(--panel) 40%); }
.plan h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 99px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin: 10px 0 2px; }
.price small { font-size: 15px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.plan > p { color: var(--dim); }
.plan .checks { margin: 22px 0 28px; flex: 1; align-content: start; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; background: var(--panel); }
td:not(:first-child), th:not(:first-child) { text-align: center; width: 22%; }
tr:last-child td { border-bottom: 0; }
td .y { color: var(--accent); font-weight: 800; }
td .n { color: var(--dim); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; counter-reset: s; text-align: left; }
.step { background: var(--panel); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin-bottom: 6px; } .step p { color: var(--dim); font-size: 15px; }

/* Long-form text (setup, privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 56px; font-size: clamp(24px, 3.2vw, 34px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--dim); }
.prose p { margin: 12px 0; }
.prose strong, .prose b { color: var(--text); }
.prose ol, .prose ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose a { color: var(--accent); }
.prose code, .kbd { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; background: var(--panel2); color: var(--text); padding: 2px 7px; border-radius: 6px; word-break: break-word; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.toc b { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }
.prose figure { margin: 24px 0; }
.prose .table-wrap { margin-top: 16px; }
.prose td, .prose th { text-align: left !important; width: auto !important; vertical-align: top; }
.prose td { color: var(--dim); }

/* FAQ */
.faq { max-width: 760px; margin: 40px auto 0; text-align: left; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; flex: none; }
details[open] summary::after { content: "–"; }
details p { color: var(--dim); margin-top: 10px; font-size: 15px; }
details a { color: var(--accent); }

/* Footer */
footer { padding: 56px 0 40px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer h4 { color: var(--text); font-size: 14px; margin-bottom: 10px; }
footer ul { list-style: none; display: grid; gap: 6px; }
footer a:hover { color: var(--text); }
footer p.legal { max-width: 520px; font-size: 13px; margin-top: 12px; }
footer .bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

@media (max-width: 960px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 860px) {
  .nav ul { display: none; }
  /* Only room for one button beside the logo: Windows stays in the hero. */
  .nav-win { display: none; }
  .navlinks2 { display: flex; gap: 6px; overflow-x: auto; padding: 0 24px 10px; font-size: 14px; color: var(--dim); scrollbar-width: none; }
  .navlinks2::-webkit-scrollbar { display: none; }
  .navlinks2 a { padding: 6px 12px; border-radius: 99px; background: var(--panel2); white-space: nowrap; }
  .navlinks2 a[aria-current="page"] { background: var(--accent); color: #fff; }
  .grid, .grid.two, .steps { grid-template-columns: 1fr; }
  .split, .plans.two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.flip > :first-child { order: 0; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .hero.small { padding: 48px 0 24px; }
  .hero p { font-size: 17px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  footer .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* Phones: one button per line, all the same width, so a row of them lines up
     instead of leaving a ragged edge. */
  .cta { flex-direction: column; align-items: stretch; gap: 10px; max-width: 320px; margin-left: auto; margin-right: auto; }
  .cta .btn { width: 100%; padding: 14px 18px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  /* Keeps the device list on one line on a phone. */
  .pill { font-size: 11px; letter-spacing: 0; padding: 6px 12px; }
  /* Phones: a little more air between headline lines and letters. */
  h1 { line-height: 1.16; letter-spacing: -0.5px; }
  h2 { line-height: 1.2; letter-spacing: -0.5px; }
  .navlinks2 { padding: 0 16px 10px; }
  .grid.four { grid-template-columns: 1fr; }
  .shot-tv { border-width: 5px; border-radius: 12px; margin-top: 36px; }
  .plan, .card, .step { padding: 22px; }
  .price { font-size: 38px; }
}
