/*
Theme Name: ChatNory
Theme URI: https://chatnory.com
Author: ChatNory
Description: The marketing site for ChatNory — a landing page, pricing, and inner pages for the AI chatbot platform.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chatnory
*/

/* ------------------------------------------------------------------ tokens */

:root {
  --purple: #4c2f81;
  --purple-dark: #34205a;
  --purple-soft: #f3eefb;
  --coral: #ff7074;
  --coral-dark: #e8565b;
  --ink: #121212;
  --body: #4a4a55;
  --muted: #7b7b88;
  --line: #e6e4ee;
  --paper: #ffffff;
  --shell: #faf9fd;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(18, 18, 18, .06), 0 6px 18px rgba(18, 18, 18, .05);
  --shadow: 0 18px 50px rgba(28, 18, 55, .12);
  --shadow-lg: 0 40px 90px rgba(28, 18, 55, .22);
  --serif: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
em, .cn-serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

.cn-wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.cn-narrow { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.cn-section { padding: clamp(72px, 9vw, 128px) 0; }
.cn-center { text-align: center; }
.cn-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--body); }
.cn-muted { color: var(--muted); }
.cn-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 14px;
}

/* ------------------------------------------------------------------ buttons */

.cn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: .98rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.cn-btn:hover { transform: translateY(-1px); }
.cn-btn--dark { background: var(--ink); color: #fff; }
.cn-btn--dark:hover { background: #2b2b2b; }
.cn-btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 26px rgba(255, 112, 116, .35); }
.cn-btn--coral:hover { background: var(--coral-dark); }
.cn-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.cn-btn--ghost:hover { border-color: #cfcade; }
.cn-btn--light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .3); }
.cn-btn--light:hover { background: rgba(255, 255, 255, .24); }
.cn-btn--sm { padding: 10px 18px; font-size: .9rem; }
.cn-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cn-center .cn-btn-row { justify-content: center; }

/* ------------------------------------------------------------------ header */

.cn-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line);
}
.cn-header--inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.cn-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.02em; }
.cn-logo span b { color: var(--coral); font-weight: 700; }
.cn-nav { display: flex; gap: 26px; margin-left: 10px; }
.cn-nav a { font-size: .95rem; font-weight: 500; color: var(--body); }
.cn-nav a:hover { color: var(--ink); }
.cn-header--right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cn-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.cn-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.cn-burger span + span { margin-top: 5px; }

/* ------------------------------------------------------------------ hero */

.cn-hero { padding: clamp(56px, 7vw, 96px) 0 0; background: linear-gradient(180deg, #fff 0%, var(--shell) 100%); }
.cn-hero h1 { max-width: 15ch; }
.cn-hero .cn-lead { max-width: 56ch; }
.cn-rating { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: .9rem; color: var(--body); }
.cn-rating strong { color: var(--ink); }
.cn-stars { color: var(--coral); letter-spacing: 2px; }
.cn-hero--note { margin-top: 16px; font-size: .88rem; color: var(--muted); }

.cn-stage {
  margin-top: clamp(48px, 6vw, 80px);
  background: var(--purple);
  background-image: radial-gradient(circle at 18% 12%, rgba(255, 112, 116, .35), transparent 42%),
                    radial-gradient(circle at 84% 78%, rgba(255, 255, 255, .18), transparent 46%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px) 0;
  overflow: hidden;
}
.cn-stage--grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; }
.cn-stage--caption { color: rgba(255, 255, 255, .84); font-size: 1.05rem; max-width: 34ch; padding-bottom: 40px; }
.cn-stage--caption h3 { color: #fff; font-size: 1.6rem; }

/* ------------------------------------------------------------------ mock product cards */

.cn-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.cn-float { box-shadow: var(--shadow-lg); border-color: transparent; }
.cn-card--head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cn-card--head h4 { margin: 0; font-size: 1rem; }

.cn-source { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.cn-source small { display: block; color: var(--muted); font-size: .8rem; }
.cn-source strong { font-weight: 500; font-size: .92rem; color: var(--ink); }
.cn-chip { font-size: .75rem; font-weight: 600; color: var(--purple); background: var(--purple-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }

.cn-chatmock { display: flex; flex-direction: column; gap: 10px; }
.cn-bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.cn-bubble--them { background: #f2f0f7; color: var(--ink); border-bottom-left-radius: 5px; }
.cn-bubble--us { margin-left: auto; background: var(--purple); color: #fff; border-bottom-right-radius: 5px; }
.cn-byline { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); }
.cn-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); display: inline-block; }

/* ------------------------------------------------------------------ logos */

.cn-logos { padding: 44px 0; border-bottom: 1px solid var(--line); }
.cn-logos p { text-align: center; font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.cn-logos--row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 5vw, 56px); align-items: center; }
.cn-logos--row span { font-size: 1.1rem; font-weight: 600; color: #b6b2c4; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ grids */

.cn-grid { display: grid; gap: 22px; }
.cn-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cn-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cn-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.cn-role { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.cn-role--mock { background: var(--shell); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.cn-role h3 { margin-bottom: 4px; }
.cn-role p { margin: 0; font-size: .95rem; }

.cn-step { padding: 26px 0 0; border-top: 2px solid var(--ink); }
.cn-step--n { font-family: var(--serif); font-size: 2.4rem; color: var(--purple); line-height: 1; display: block; margin-bottom: 10px; }
.cn-step h3 { font-size: 1.15rem; }
.cn-step p { font-size: .95rem; margin: 0; }

.cn-feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%; }
.cn-feature--icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--purple-soft); color: var(--purple);
  display: grid; place-items: center; margin-bottom: 16px;
}
.cn-feature h3 { font-size: 1.08rem; }
.cn-feature p { font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------------ dark band */

.cn-band { background: var(--ink); color: rgba(255, 255, 255, .72); }
.cn-band h2, .cn-band h3 { color: #fff; }
.cn-band .cn-eyebrow { color: var(--coral); }
.cn-band--card { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 26px; background: rgba(255, 255, 255, .04); height: 100%; }
.cn-band--card p { font-size: .94rem; margin: 0; }

/* ------------------------------------------------------------------ channels */

.cn-channel { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cn-channel--icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); }
.cn-channel h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cn-channel p { font-size: .93rem; margin: 0; }

/* ------------------------------------------------------------------ industries */

.cn-industry {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius);
  background: var(--purple-soft); border: 1px solid #e7dffa; height: 100%;
}
.cn-industry h3 { font-size: 1.1rem; }
.cn-industry p { font-size: .93rem; margin: 0 0 14px; }
.cn-industry--tag { font-size: .78rem; font-weight: 600; color: var(--purple); background: #fff; padding: 5px 11px; border-radius: 999px; display: inline-block; }

/* ------------------------------------------------------------------ pricing */

.cn-price { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 100%; }
.cn-price--best { border-color: var(--purple); box-shadow: var(--shadow); position: relative; }
.cn-price--badge { position: absolute; top: -13px; left: 28px; background: var(--purple); color: #fff; font-size: .75rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.cn-price h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cn-price--amount { font-size: 2.6rem; font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.cn-price--amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cn-price--desc { font-size: .92rem; min-height: 44px; }
.cn-price ul { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.cn-price li { position: relative; padding-left: 26px; font-size: .93rem; }
.cn-price li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg);
}
.cn-price .cn-btn { margin-top: auto; width: 100%; }
.cn-billing { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; margin-bottom: 34px; }
.cn-billing button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.cn-billing button.isOn { background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------ quotes + faq */

.cn-quote { padding: 28px; border-radius: var(--radius); background: var(--shell); border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; }
.cn-quote blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--ink); line-height: 1.55; }
.cn-quote--who { margin-top: auto; display: flex; align-items: center; gap: 12px; font-size: .88rem; line-height: 1.35; }
.cn-quote--avatar {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: .8rem;
}
.cn-quote--who strong { display: block; color: var(--ink); font-weight: 600; }
.cn-quote--who small { display: block; color: var(--muted); }

.cn-faq { border-top: 1px solid var(--line); }
.cn-faq details { border-bottom: 1px solid var(--line); }
.cn-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 1.02rem; }
.cn-faq summary::-webkit-details-marker { display: none; }
.cn-faq summary::after { content: '+'; position: absolute; right: 8px; top: 18px; font-size: 1.5rem; font-weight: 400; color: var(--purple); }
.cn-faq details[open] summary::after { content: '\2013'; }
.cn-faq p { padding: 0 40px 22px 0; margin: 0; font-size: .97rem; }

/* ------------------------------------------------------------------ cta + footer */

.cn-cta {
  background: var(--purple);
  background-image: radial-gradient(circle at 12% 20%, rgba(255, 112, 116, .4), transparent 45%),
                    radial-gradient(circle at 88% 84%, rgba(255, 255, 255, .16), transparent 48%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 84px) 28px; text-align: center;
}
.cn-cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cn-cta p { color: rgba(255, 255, 255, .82); max-width: 52ch; margin-inline: auto
; margin-bottom: 28px; }

.cn-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); margin-top: clamp(72px, 9vw, 120px); }
.cn-footer--grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.cn-footer h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.cn-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cn-footer a { font-size: .94rem; color: var(--body); }
.cn-footer a:hover { color: var(--purple); }
.cn-footer .cn-logo { font-size: 1.15rem; color: var(--ink); }
.cn-footer .cn-logo:hover { color: var(--ink); }
.cn-footer--about { font-size: .94rem; max-width: 34ch; }
.cn-footer--bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------------------------ inner pages */

.cn-page { padding: clamp(56px, 7vw, 88px) 0; }
.cn-page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.cn-post--meta { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.cn-entry h2 { font-size: 1.7rem; margin-top: 1.6em; }
.cn-entry h3 { margin-top: 1.4em; }
.cn-entry img { border-radius: var(--radius); }
.cn-entry blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--purple); color: var(--ink); }
.cn-postcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.cn-postcard h2 { font-size: 1.2rem; }
.cn-pager { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.cn-pager .page-numbers { padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.cn-pager .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.cn-skip:focus { position: fixed; top: 12px; left: 12px; z-index: 99; background: #fff; padding: 10px 16px; border-radius: 10px; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  .cn-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cn-footer--grid { grid-template-columns: 1fr 1fr 1fr; }
  .cn-stage--grid { grid-template-columns: 1fr; }
  .cn-stage--caption { padding-bottom: 0; max-width: none; }
}

@media (max-width: 860px) {
  .cn-nav { display: none; }
  .cn-burger { display: block; }
  .cn-nav.isOpen {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px; margin: 0;
  }
  .cn-grid--3, .cn-grid--2 { grid-template-columns: 1fr; }
  .cn-header--right .cn-btn--ghost { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .cn-grid--4 { grid-template-columns: 1fr; }
  .cn-footer--grid { grid-template-columns: 1fr 1fr; }
  .cn-wrap, .cn-narrow { width: calc(100% - 36px); }
}

/* ------------------------------------------------------------------ inner pages */

.cn-list { list-style: none; margin: 0 0 1.2em; padding: 0; display: grid; gap: 10px; }
.cn-list li { position: relative; padding-left: 26px; font-size: .97rem; }
.cn-list li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(-45deg);
}

.cn-callout {
  padding: 22px 24px; border-radius: var(--radius); background: var(--purple-soft);
  border: 1px solid #e7dffa; margin-bottom: 32px; font-size: .98rem;
}
.cn-callout strong { color: var(--purple); }

.cn-entry h2 { font-size: 1.55rem; margin-top: 1.8em; }
.cn-entry p, .cn-entry li { font-size: 1rem; }
.cn-entry a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.cn-entry code { background: var(--shell); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }

/* A trade on the industries page: what it solves, with a sample chat beside it. */
.cn-trade {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.cn-trade h2 { font-size: 1.6rem; margin: 10px 0 .5em; }
.cn-trade--demo { background: var(--shell); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

/* Wide tables scroll inside their own box rather than pushing the page sideways. */
.cn-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cn-table { width: 100%; min-width: 640px; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cn-table th, .cn-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
.cn-table thead th { background: var(--ink); color: #fff; font-weight: 600; }
.cn-table tbody td:first-child { font-weight: 500; color: var(--ink); }
.cn-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 860px) {
  .cn-trade { grid-template-columns: 1fr; padding: 24px; }
}
