/* Consana landing — shared styles for the static subpages
   (pricing / security / contact / legal). The landing page (index.html)
   keeps its own inline styles; these mirror its design language exactly:
   Harbor teal #0E7C86, Hanken Grotesk, IBM Plex Mono micro-labels.
   Each subpage duplicates the nav/footer MARKUP (static HTML has no
   includes) — the STYLES live here once. */

@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/hanken-grotesk/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/hanken-grotesk/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/hanken-grotesk/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/hanken-grotesk/hanken-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/ibm-plex-mono/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/ibm-plex-mono/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root { color-scheme: light; }
html { scroll-behavior: smooth; }
/* backstop: no layout mistake may ever force the mobile zoom-out again */
html, body { overflow-x: clip; }
body { margin: 0; font-family: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif; color: #102A2C; background: #FFFFFF; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #C6E6E5; }
a { color: #0C6E77; }
a:hover { color: #0A5A62; }

/* ---- nav (same as the landing) ---- */
.cns-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid rgba(16,42,44,.06); }
.cns-nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cns-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #102A2C; }
.cns-brand img { width: 28px; height: 28px; display: block; }
.cns-brand span { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.cns-brand .tld { color: #8AA09E; font-weight: 500; }
.cns-nav-links { display: flex; align-items: center; gap: 28px; }
.cns-nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { font-size: 14px; color: #47615F; text-decoration: none; transition: color .15s ease; }
.nav-link:hover { color: #102A2C; }
.nav-cta { font-size: 14px; font-weight: 500; color: #FFFFFF; background: #0E7C86; padding: 9px 18px; border-radius: 10px; text-decoration: none; transition: background .18s ease, transform .18s ease; }
.nav-cta:hover { background: #0C6C75; transform: translateY(-1px); color: #FFFFFF; }
.nav-ghost { font-size: 14px; font-weight: 500; color: #0A5A62; background: #FFFFFF; border: 1px solid #C9DBD9; padding: 8px 16px; border-radius: 10px; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.nav-ghost:hover { border-color: #9CCFCB; background: #F2FAF9; color: #0A5A62; transform: translateY(-1px); }

/* ---- responsive nav (burger built by nav.js; scoped to .has-burger so the
       no-JS fallback keeps the plain links) ---- */
.cns-burger { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid #DCE8E7; border-radius: 10px; background: #FFFFFF; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cns-burger span { display: block; width: 16px; height: 2px; border-radius: 2px; background: #102A2C; transition: transform .2s ease, opacity .2s ease; }
.cns-nav.is-open .cns-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cns-nav.is-open .cns-burger span:nth-child(2) { opacity: 0; }
.cns-nav.is-open .cns-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.cns-mobile-menu { display: none; }

@media (max-width: 879px) {
  .cns-nav.has-burger .cns-nav-links { display: none; }
  .cns-nav.has-burger .cns-nav-actions .nav-link,
  .cns-nav.has-burger .cns-nav-actions .nav-ghost { display: none; }
  .cns-nav.has-burger .cns-burger { display: flex; }
  .cns-nav.has-burger .cns-mobile-menu { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; padding: 10px 20px 18px; background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(16,42,44,.08); box-shadow: 0 24px 40px -28px rgba(16,42,44,.3); }
  .cns-mobile-menu[hidden] { display: none !important; }
  .cns-mobile-menu a { padding: 12px 4px; font-size: 15px; color: #3C5654; text-decoration: none; border-bottom: 1px solid #EFF5F4; }
  .cns-mobile-menu a:last-child { border-bottom: 0; }
  .cns-mobile-menu a.nav-ghost { margin-top: 12px; border: 1px solid #C9DBD9; border-radius: 10px; padding: 10px 16px; text-align: center; color: #0A5A62; }
  .cns-mobile-menu-divider { height: 1px; margin: 6px 0; background: #E5EFEE; }
  .cns-nav-inner { padding: 0 20px; gap: 14px; }
}

/* mobile: backdrop-filter is expensive on phone GPUs — go solid */
@media (max-width: 700px) {
  .cns-nav { background: rgba(255,255,255,.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  #cns-consent .cns-consent-card { background: rgba(255,255,255,.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cns-page { padding: 52px 20px 84px; }
}

/* ---- page scaffolding ---- */
.cns-page { max-width: 1140px; margin: 0 auto; padding: 72px 28px 110px; }
.cns-narrow { max-width: 720px; margin: 0 auto; }
.cns-mid { max-width: 900px; margin: 0 auto; }
.cns-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .15em; color: #0E7C86; text-transform: uppercase; }
h1.cns-h1 { margin: 14px 0 0; font-size: clamp(34px, 4vw, 46px); line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; }
.cns-lede { margin: 16px 0 0; font-size: 16.5px; line-height: 1.6; color: #4A6462; text-wrap: pretty; }
.cns-meta { margin: 14px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: .1em; color: #8AA09E; text-transform: uppercase; }

/* ---- content cards + sections ---- */
.cns-card { background: #FFFFFF; border: 1px solid #DCE8E7; border-radius: 20px; padding: 4px 26px; margin-top: 34px; box-shadow: 0 18px 44px -28px rgba(16,60,62,.24); }
.cns-section { border-bottom: 1px solid #E5EFEE; padding: 26px 0; scroll-margin-top: 84px; }
.cns-section:last-child { border-bottom: 0; }
.cns-section h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.cns-section h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.cns-section p, .cns-section li, .cns-section dd { font-size: 15px; line-height: 1.62; color: #4A6462; }
.cns-section p { margin: 0 0 12px; }
.cns-section p:last-child { margin-bottom: 0; }
.cns-section ul { margin: 0; padding-left: 20px; }
.cns-section li { margin: 6px 0; }
.cns-section li::marker { color: #0E7C86; }

/* ---- draft banner (legal placeholders pending counsel) ---- */
.cns-draft { margin-top: 30px; border: 1px solid #E8D9A8; background: #FBF6E7; border-radius: 14px; padding: 16px 20px; text-align: center; }
.cns-draft strong { display: block; font-size: 14.5px; color: #9A7415; }
.cns-draft span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: #9A7415; }

/* ---- tables ---- */
.cns-table-wrap { overflow-x: auto; }
table.cns-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.cns-table th { padding: 10px 14px 10px 0; text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8AA09E; font-weight: 500; border-bottom: 1px solid #DCE8E7; }
table.cns-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid #E5EFEE; color: #4A6462; vertical-align: top; line-height: 1.5; }
table.cns-table tr:last-child td { border-bottom: 0; }
table.cns-table td.strong { color: #102A2C; font-weight: 600; }
table.cns-table td.center, table.cns-table th.center { text-align: center; padding-right: 0; }

/* ---- definition list (Impressum) ---- */
dl.cns-fields { margin: 0; }
dl.cns-fields > div { border-bottom: 1px solid #E5EFEE; padding: 16px 0; }
dl.cns-fields > div:last-child { border-bottom: 0; }
dl.cns-fields dt { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8AA09E; margin-bottom: 5px; }
dl.cns-fields dd { margin: 0; }

/* ---- buttons ---- */
.btn-primary { display: inline-block; font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 15px; font-weight: 500; color: #FFFFFF; background: #0E7C86; border: none; border-radius: 12px; padding: 12px 22px; cursor: pointer; text-decoration: none; transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn-primary:hover { background: #0C6C75; color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 10px 26px -14px rgba(14,124,134,.7); }
.btn-primary[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn-outline { display: inline-block; font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 15px; font-weight: 500; color: #0A5A62; background: #FFFFFF; border: 1px solid #C9DBD9; border-radius: 12px; padding: 11px 21px; cursor: pointer; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.btn-outline:hover { border-color: #9CCFCB; background: #F2FAF9; color: #0A5A62; transform: translateY(-1px); }

/* ---- pricing ---- */
.cns-plans { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: stretch; }
.cns-plan { position: relative; background: #FFFFFF; border: 1px solid #DCE8E7; border-radius: 20px; padding: 26px; box-shadow: 0 18px 44px -28px rgba(16,60,62,.24); display: flex; flex-direction: column; }
.cns-plan.is-reco { border-color: #9CCFCB; box-shadow: 0 18px 44px -24px rgba(14,124,134,.35); }
.cns-plan .reco { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #0A5A62; background: #E9F5F4; border: 1px solid #9CCFCB; border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.cns-plan h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cns-plan .price { margin-top: 12px; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.cns-plan .price small { font-size: 14px; font-weight: 400; color: #8AA09E; letter-spacing: 0; }
.cns-plan .minutes { margin-top: 2px; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8AA09E; }
.cns-plan ul { list-style: none; margin: 18px 0 22px; padding: 0; flex: 1; }
.cns-plan li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; color: #4A6462; margin: 8px 0; }
.cns-plan li svg { flex: none; margin-top: 2px; }
.cns-plan .cta { text-align: center; }

/* ---- info card grids (security / contact) ---- */
.cns-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.cns-tile { background: #FFFFFF; border: 1px solid #DCE8E7; border-radius: 16px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(16,42,44,.03); }
.cns-tile h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.cns-tile p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #4A6462; }
.cns-tile .loc { float: right; margin-left: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #47615F; background: #ECF3F3; border-radius: 8px; padding: 3px 8px; }

/* ---- forms (contact) ---- */
.cns-form label { display: block; font-size: 13px; font-weight: 600; color: #3C5654; margin: 0 0 6px; }
.cns-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cns-form .field-group { margin-bottom: 16px; }
.cns-form input, .cns-form textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 15px; color: #102A2C; background: #FFFFFF; border: 1px solid #DCE8E7; border-radius: 12px; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.cns-form input:focus, .cns-form textarea:focus { border-color: #0E7C86; box-shadow: 0 0 0 4px rgba(14,124,134,.14); }
.cns-form input::placeholder, .cns-form textarea::placeholder { color: #8AA09E; }
.cns-form textarea { resize: vertical; min-height: 140px; }
.cns-form-note { font-size: 14px; line-height: 1.55; }
.cns-form-note.ok { color: #0A5A62; }
.cns-form-note.err { color: #C0453F; }

/* ---- footer (same as the landing) ---- */
.cns-footer { border-top: 1px solid rgba(16,42,44,.06); }
.cns-footer-inner { max-width: 1140px; margin: 0 auto; padding: 30px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cns-footer-brand { display: flex; align-items: center; gap: 9px; }
.cns-footer-brand img { width: 22px; height: 22px; display: block; }
.cns-footer-brand span { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #47615F; }
.cns-footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.cns-footer-links a { color: #47615F; text-decoration: none; }
.cns-footer-links a:hover { color: #102A2C; }
.cns-footer-copy { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8AA09E; }

/* ---- cookie consent bar (shared with the landing; markup per page) ---- */
#cns-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; justify-content: center; padding: 14px; pointer-events: none; animation: cnsUp .5s cubic-bezier(.2,.7,.2,1) both; }
#cns-consent[hidden] { display: none; }
#cns-consent .cns-consent-card { pointer-events: auto; width: 100%; max-width: 760px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(16,42,44,.1); border-radius: 16px; box-shadow: 0 18px 50px -22px rgba(16,42,44,.45); padding: 16px 18px; }
#cns-consent p { margin: 0; flex: 1 1 260px; font-size: 13.5px; line-height: 1.55; color: #3C5654; }
#cns-consent a { color: #0C6E77; text-decoration: underline; text-underline-offset: 2px; }
#cns-consent .cns-consent-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#cns-consent button { font-family: 'Hanken Grotesk', system-ui, sans-serif; font-size: 13.5px; font-weight: 500; border-radius: 10px; cursor: pointer; padding: 9px 16px; transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
#cns-consent .cns-btn-accept { color: #FFFFFF; background: #0E7C86; border: 1px solid #0E7C86; }
#cns-consent .cns-btn-accept:hover { background: #0C6C75; transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(14,124,134,.7); }
#cns-consent .cns-btn-reject { color: #3C5654; background: #FFFFFF; border: 1px solid rgba(16,42,44,.16); }
#cns-consent .cns-btn-reject:hover { color: #102A2C; border-color: rgba(16,42,44,.3); }
#cns-consent .cns-btn-manage { color: #47615F; background: transparent; border: none; text-decoration: underline; text-underline-offset: 2px; padding: 9px 6px; }
#cns-consent .cns-btn-manage:hover { color: #102A2C; }

@keyframes cnsUp { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
