/* Atomicity marketing site. Palette + fonts mirror the sales deck theme. */
:root {
  --ink: #10192B;
  --ink-2: #22324D;
  --slate: #4A5468;
  --mist: #B9C6D3;
  --cream: #F6F4EF;
  --paper: #FFFFFF;
  --teal: #1F8C7C;
  --teal-2: #2BB5A0;
  --amber: #F2A541;
  --line: #E2DED5;
  --radius: 14px;
  --max: 1160px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 99; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 25, 43, .94); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; font-size: 1rem; }
.brand-mark { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--mist); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .btn { color: var(--ink); }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 10px; width: 44px; height: 44px; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px 16px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #f5b462; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.dark { background: var(--ink); color: #fff; }
.dark p { color: var(--mist); }
.paper { background: var(--paper); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.dark .eyebrow { color: var(--teal-2); }
.lede { font-size: 1.2rem; max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* Hero */
.hero { padding: 88px 0 104px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -220px; top: -160px; width: 640px; height: 640px; border-radius: 50%; border: 1px solid rgba(43,181,160,.18); }
.hero::after { content: ''; position: absolute; right: -120px; top: -60px; width: 440px; height: 440px; border-radius: 50%; border: 1px solid rgba(43,181,160,.12); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-grid > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero .accent { color: var(--amber); }
.hero-types { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-types li { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(43,181,160,.45); background: rgba(43,181,160,.1); color: #fff; font-family: var(--font-head); font-weight: 500; font-size: .95rem; }
.hero-types li:last-child { border-color: rgba(242,165,65,.6); background: rgba(242,165,65,.12); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tagline { margin-top: 28px; font-style: italic; color: var(--mist); font-size: .95rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Chat mock */
.chat { background: #18243B; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); max-width: 440px; margin-left: auto; width: 100%; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: #fff; }
.chat-name { color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.chat-sub { color: var(--mist); font-size: .78rem; }
.bubble { padding: 11px 14px; border-radius: 16px; font-size: .93rem; margin-bottom: 10px; max-width: 85%; line-height: 1.45; }
.bubble.bot { background: rgba(255,255,255,.07); color: #E8ECF2; border-bottom-left-radius: 4px; }
.bubble.me { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.plan { background: var(--cream); color: var(--ink); border-radius: 14px; padding: 14px 16px; margin: 6px 0 4px; }
.plan h4 { font-size: 1rem; margin-bottom: 2px; }
.plan small { color: var(--slate); display: block; margin-bottom: 10px; }
.plan .btn { min-height: 40px; width: 100%; font-size: .9rem; }
.chat-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .78rem; color: var(--teal-2); }
.chat-foot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stat { background: var(--paper); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.stat-num { font-family: var(--font-head); font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 600; color: var(--teal); line-height: 1; margin-bottom: 10px; }
.source { font-size: .8rem; color: var(--slate); margin-top: 20px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--slate); margin: 0; font-size: .97rem; }
.dark .card { background: #18243B; border-color: rgba(255,255,255,.08); }
.dark .card p { color: var(--mist); }
.dark .card h3 { color: #fff; }
.num { font-family: var(--font-head); font-weight: 600; color: var(--amber); font-size: .95rem; margin-bottom: 14px; display: block; }
.dot { width: 44px; height: 44px; border-radius: 50%; background: rgba(31,140,124,.12); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.dot svg { width: 22px; height: 22px; }
.dark .dot { background: rgba(43,181,160,.15); color: var(--teal-2); }

/* Problem list */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.problems > div { padding: 28px 28px 0 0; }
.problems h3 { color: var(--ink); }
.problems p { color: var(--slate); }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr; } .problems > div { padding-right: 0; } }

/* Channel matrix */
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.matrix > * { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chip { padding: 8px 14px; border-radius: 999px; background: rgba(31,140,124,.1); color: var(--teal); font-size: .9rem; font-weight: 500; }
.chip.alt { background: rgba(242,165,65,.16); color: #9A5E12; }
.chip-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--slate); margin: 18px 0 8px; font-weight: 600; }
@media (max-width: 860px) { .matrix { grid-template-columns: 1fr; gap: 32px; } }

/* Feature rows (platform page) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature > * { min-width: 0; }
.feature.flip > :first-child { order: 2; }
.feature ul { padding: 0; margin: 0; list-style: none; }
.feature li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.feature li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.feature li strong { font-weight: 600; }
.panel { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px; }
.panel p { color: var(--mist); }
.callout { margin-top: 18px; padding: 16px 18px; border-left: 3px solid var(--amber); background: rgba(242,165,65,.1); border-radius: 0 10px 10px 0; font-size: .95rem; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; } .feature.flip > :first-child { order: 0; } }

/* Calendar mock */
.cal-row { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.cal-time { color: var(--mist); font-variant-numeric: tabular-nums; }
.slot { padding: 10px 12px; border-radius: 10px; }
.slot.open { background: rgba(43,181,160,.16); color: #9BE3D6; }
.slot.appt { background: #F2C94C; color: var(--ink); font-weight: 500; }
.slot.block { background: rgba(147,112,219,.22); color: #D7C8F5; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; }
.step p { color: var(--mist); font-size: .95rem; }
.step h3 { color: #fff; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.tag.live { background: rgba(31,140,124,.12); color: var(--teal); }
.tag.next { background: rgba(242,165,65,.18); color: #9A5E12; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 760px; margin: 0 auto .4em; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #CFCAC0; border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .82rem; color: var(--slate); margin-top: 14px; }
.form-msg { display: none; padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .95rem; }
.form-msg.ok { display: block; background: rgba(31,140,124,.12); color: #145E53; }
.form-msg.err { display: block; background: rgba(214,69,69,.1); color: #8E2B2B; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } .form { padding: 22px; } }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--mist); padding: 56px 0 40px; font-size: .92rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-small { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; }
