/* www.counselwise.ai (#1674). One stylesheet for every marketing page.
   Cormorant Garamond for display, DM Sans for text; one sans for all UI text. */
:root {
  --ink: #0e2a30;
  --ink-soft: #3d5054;
  --ink-faint: #5d7276;
  --teal: #0e8a86;
  --teal-deep: #0b6b68;
  --beam: #5fd0ca;
  --page: #eef2f2;
  --paper: #ffffff;
  --tint: #e3ebeb;
  --line: #d3dfdf;
  --night: #0d1c22;
  --night-2: #12333a;
  --night-ink: #e6eeee;
  --night-soft: #a9bdbf;
  --ins: #0b6b68;
  --del: #a8433b;
  --warn-bg: #fbefd9;
  --warn-ink: #7a4b07;

  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --text: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step-hero: clamp(2.6rem, 1.4rem + 4.6vw, 4.75rem);
  --step-h2: clamp(2rem, 1.35rem + 2.2vw, 2.85rem);
  --step-h3: clamp(1.35rem, 1.2rem + .5vw, 1.6rem);
  --step-lede: clamp(1.05rem, .98rem + .35vw, 1.2rem);

  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 4rem + 3vw, 104px);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(14, 42, 48, .06), 0 12px 32px -12px rgba(14, 42, 48, .22);
  --shadow-lift: 0 2px 4px rgba(14, 42, 48, .08), 0 24px 48px -16px rgba(14, 42, 48, .3);
  --fast: 150ms;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }
.eyebrow { font: 600 13px/1.4 var(--text); color: var(--teal-deep); margin-bottom: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: var(--radius);
  font: 600 15px/1.2 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease, transform var(--fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-quiet { border: 1px solid #b9c9c9; color: var(--ink); }
.btn-quiet:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.btn-light { background: #f2f6f6; color: var(--ink); }
.btn-light:hover { background: var(--beam); color: var(--ink); }
.btn-small { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(238, 242, 242, .88); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.mark { flex: none; }
.wordmark { font: 600 28px/1 var(--display); letter-spacing: .01em; }
.wordmark em { font-style: italic; color: var(--teal); }
.brand-light { color: #f2f6f6; }
.brand-light:hover { color: #f2f6f6; }
.brand-light .wordmark em { color: var(--beam); }
.header-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.header-nav > a:not(.btn), .menu > summary { color: var(--ink-soft); text-decoration: none; }
.header-nav > a:not(.btn):hover, .menu > summary:hover { color: var(--ink); }
.menu { position: relative; }
.menu > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--fast) ease; }
.menu[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 230px; margin: 0; padding: 8px;
  list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
}
.menu-list a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-list a:hover, .menu-list a[aria-current="page"] { background: var(--tint); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(44px, 3rem + 3vw, 96px) 0 var(--section); }
.hero::before {
  content: ''; position: absolute; right: -180px; top: -140px; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(14, 42, 48, .12); box-shadow: inset 0 0 0 90px rgba(255, 255, 255, .0), 0 0 0 90px rgba(14, 138, 134, .035);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--step-hero); line-height: 1.02; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.lede { font-size: var(--step-lede); color: var(--ink-soft); max-width: 34em; }

/* Word page illustration */
.doc { position: relative; margin: 0 0 32px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.doc-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-faint); }
.doc-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.doc-bar b { margin-left: 8px; font-weight: 500; }
.doc-body { padding: 26px 28px 30px; font: 400 17px/1.7 var(--display); color: #1b2f33; }
.doc-body p + p { margin-top: 12px; }
.doc-h { font-weight: 600; }
.doc-faint { color: #5f7275; }
.doc del { color: var(--del); text-decoration-thickness: 1.5px; }
.doc ins { color: var(--ins); text-decoration: underline; text-decoration-thickness: 1.5px; }
.doc-comment {
  position: absolute; right: -14px; bottom: -44px; width: min(280px, 78%);
  padding: 14px 16px; background: #fdfdf8; border: 1px solid #e4e0c8; border-left: 3px solid var(--teal);
  border-radius: var(--radius); box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; color: var(--ink-soft);
}
.doc-comment-head { font-weight: 600; color: var(--ink); margin-bottom: 4px; font-size: 13px; }

/* Sections */
.band { padding: var(--section) 0; }
.band-tint { background: var(--tint); }
.band-dark { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 60%, var(--ink) 100%); color: var(--night-ink); }
.band-dark .eyebrow { color: var(--beam); }
.band-dark h2 { color: #f2f6f6; }
.band-dark p { color: var(--night-soft); }
.band-dark a:not(.btn) { color: var(--beam); }
.band-dark .doc p, .band-dark .panel p { color: inherit; }
.band-dark .doc-body { color: #1b2f33; }
.band-dark .doc-comment p { color: var(--ink-soft); }
.band-dark .doc-comment .doc-comment-head { color: var(--ink); }
.band-dark .doc .doc-faint { color: #5f7275; }
.section-head { margin-bottom: clamp(28px, 3vw, 48px); max-width: 40em; }
.section-head h2, .split-copy h2, .cta h2 { font-size: var(--step-h2); line-height: 1.08; }
.split-copy p:not(.eyebrow) { margin-top: 18px; font-size: var(--step-lede); }

/* Product tiles: an editorial grid, Word and Review Tables wide */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tile {
  grid-column: span 2; padding: 26px 24px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--fast) ease, box-shadow var(--fast) ease, transform var(--fast) var(--ease);
}
.tile-wide { grid-column: span 4; background: linear-gradient(135deg, #ffffff 0%, #f3f8f8 100%); }
.tile:first-child { background: linear-gradient(150deg, #f4fafa 0%, #dcecea 100%); border-color: #c4dad9; }
.tile:first-child h3 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.tile:has(a):hover { border-color: #a9c6c5; box-shadow: var(--shadow); transform: translateY(-2px); }
.tile h3 { font-size: var(--step-h3); margin-bottom: 10px; }
.tile h3 a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.tile h3 a::after { content: ''; position: absolute; inset: 0; }
.tile { position: relative; }
.tile h3 .arrow { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile p { color: var(--ink-soft); font-size: 15px; }
.inline-link { position: relative; z-index: 1; font-weight: 600; white-space: nowrap; }

/* Review table illustration */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.sheet { margin: 0; background: #f7fafa; color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5); overflow: hidden; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet th, .sheet td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet thead th { background: #e6eeee; font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.sheet tbody th { font-weight: 500; }
.cell-warn { background: var(--warn-bg); color: var(--warn-ink); }
.cell-src { color: var(--teal-deep); font-weight: 600; white-space: nowrap; }
.sheet-quote { margin: 0; padding: 16px 18px 18px; border-top: 3px solid var(--teal); background: var(--paper); }
.sheet-quote p { font: 500 17px/1.5 var(--display); font-style: italic; color: #1b2f33; }
.sheet-quote cite { display: block; margin-top: 8px; font: 600 13px/1.4 var(--text); font-style: normal; color: var(--teal-deep); }

/* Numbered principles */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 600 44px/1 var(--display); color: var(--teal); margin-bottom: 14px; }
.steps h3 { font-size: var(--step-h3); margin-bottom: 8px; }
.steps p { color: var(--ink-soft); }

/* Security facts */
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid #c3d3d3; }
.facts > div { padding: 22px 24px 26px 0; border-bottom: 1px solid #c3d3d3; }
.facts > div:not(:nth-child(3n)) { border-right: 1px solid #c3d3d3; }
.facts > div:not(:nth-child(3n + 1)) { padding-left: 24px; }
.facts dt { font: 600 20px/1.3 var(--display); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Closing call to action */
.cta h2 { margin-bottom: 14px; }
.cta .actions { margin-top: 26px; }

/* Capability pages */
.hero-page h1 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); }
.features li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; align-content: start; padding: 24px 0 26px; border-top: 1px solid var(--line); counter-increment: feature; }
.features { counter-reset: feature; }
.features li::before { content: counter(feature, decimal-leading-zero); grid-row: span 2; font: 600 22px/1.2 var(--display); color: var(--teal); }
.features h3 { font-size: var(--step-h3); margin-bottom: 6px; }
.features p { color: var(--ink-soft); }
.tiles-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-related .tile, .tiles-related .tile:first-child { grid-column: auto; background: var(--paper); border-color: var(--line); }
.tiles-related .tile:first-child h3 { font-size: var(--step-h3); }
.panel { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden; color: var(--ink); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.panel-head span { font-weight: 500; color: var(--ink-faint); font-size: 13px; }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.panel-list li:last-child { border-bottom: 0; }
.panel-list b { font-weight: 600; }
.panel-list small { grid-column: 1 / -1; color: var(--ink-soft); font-size: 13px; }
.chip { align-self: start; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e3f1f0; color: var(--teal-deep); white-space: nowrap; }
.chip-high { background: #f8e4e1; color: #8f2f22; }
.chip-medium { background: #f6ecd6; color: #6f4c0c; }
.panel-foot { display: flex; gap: 8px; padding: 12px 18px; background: #f5f8f8; border-top: 1px solid var(--line); }
.panel-foot span { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); }
.panel-foot span:first-child { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }

.chat-body { padding: 18px; display: grid; gap: 14px; font-size: 15px; }
.chat-q { justify-self: end; max-width: 85%; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #f2f6f6; }
.chat-a { color: var(--ink); }
.cite { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border-radius: 50%; background: #e3f1f0; color: var(--teal-deep); font: 600 11px/1 var(--text); vertical-align: 2px; }
.chat .sheet-quote { border-radius: var(--radius); background: #f5f8f8; }
.panel-steps { counter-reset: pstep; }
.panel-steps li { counter-increment: pstep; grid-template-columns: 26px minmax(0, 1fr) auto; }
.panel-steps li::before { content: counter(pstep); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--teal-deep); font: 600 12px/1 var(--text); }
.panel-steps li > b:only-of-type { grid-column: 2; }
.panel-steps small { grid-column: 2 / -1; }
.band-dark .panel .chat-q { color: #f2f6f6; }

.phone { justify-self: center; width: min(320px, 100%); margin: 0; padding: 12px; border-radius: 44px; background: var(--night); box-shadow: var(--shadow-lift); }
.phone-screen { overflow: hidden; border-radius: 34px; background: var(--paper); padding: 26px 0 0; }
.phone-title { padding: 0 18px 12px; font: 600 26px/1.2 var(--display); color: var(--ink); }
.phone .panel-list { border-top: 1px solid var(--line); }
.phone-tabs { display: flex; justify-content: space-around; gap: 4px; padding: 12px 8px 18px; border-top: 1px solid var(--line); background: #f5f8f8; font-size: 11px; color: var(--ink-faint); }
.phone-tabs span:last-child { color: var(--teal-deep); font-weight: 600; }

.hero-plain { padding-bottom: clamp(36px, 2rem + 2vw, 64px); }
.hero-plain .lede a { color: var(--teal-deep); }
.hero-plain .wrap > *, .band > .wrap > p { max-width: 46rem; }
.h-small { font-size: var(--step-h3); margin-bottom: 10px; }
.tiles-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-link { margin-top: 14px; }
.tile-link a, .more-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-deep); text-decoration: none; overflow-wrap: anywhere; }
.tile-link .arrow, .more-link .arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.more-link { margin-top: 24px; }

/* Footer */
.site-footer { background: #0a161b; color: #8fa5a9; padding: 48px 0 28px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; }
.footer-col h2 { font: 600 13px/1.4 var(--text); color: #e6eeee; letter-spacing: 0; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #b5c7ca; text-decoration: none; }
.site-footer a:hover { color: #ffffff; }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid #1b2c32; color: #6c8489; font-size: 13px; }

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
  .doc { max-width: 620px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-wide { grid-column: span 1; }
  .tile:first-child, .tile:last-child:nth-child(even) { grid-column: span 2; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div, .facts > div:not(:nth-child(3n + 1)) { padding: 22px 24px 26px 0; border-right: 0; }
  .facts > div:nth-child(odd) { border-right: 1px solid #c3d3d3; }
  .facts > div:nth-child(even) { padding-left: 24px; }
}

/* Phone */
@media (max-width: 720px) {
  .header-nav { gap: 14px; }
  .header-nav .nav-page, .header-nav .nav-signin { display: none; }
  .menu-list { right: -60px; }
  .wordmark { font-size: 24px; }
  .brand .mark { width: 34px; height: 34px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile:first-child, .tile:last-child:nth-child(even) { grid-column: auto; }
  .steps, .facts, .features, .tiles-related { grid-template-columns: minmax(0, 1fr); }
  .facts > div, .facts > div:nth-child(even), .facts > div:nth-child(odd) { padding: 18px 0 20px; border-right: 0; }
  .doc-body { padding: 20px 18px 24px; font-size: 16px; }
  .doc-comment { position: relative; right: auto; bottom: auto; width: auto; margin: -8px 12px 14px; }
  .doc { margin-bottom: 0; }
  .sheet { overflow-x: auto; }
  .sheet table { min-width: 520px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .actions .btn { flex: 1 1 auto; }
}

/* Small phones: the hero and closing band carry the call to action. */
@media (max-width: 480px) {
  .header-nav .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
