/* ==========================================================================
   sanuchacko.com — Sanu Chacko, Fractional CIO
   Hand-coded static site. No build step, no dependencies.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --ink:        #0f1c2e;
  --ink-2:      #1d3049;
  --body:       #3f4d5f;
  --muted:      #6b7a8d;
  --line:       #e2e7ee;
  --line-soft:  #eef1f6;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fb;
  --bg-deep:    #0f1c2e;
  --accent:     #1d6fa5;
  --accent-dk:  #14547e;
  --accent-sf:  #eaf3f9;

  --maxw:       1120px;
  --maxw-text:  760px;
  --radius:     10px;
  --radius-lg:  16px;

  --shadow-sm:  0 1px 2px rgba(15,28,46,.06), 0 1px 3px rgba(15,28,46,.05);
  --shadow-md:  0 4px 6px rgba(15,28,46,.04), 0 10px 24px rgba(15,28,46,.07);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.35rem); }
h4 { font-size: 1.02rem; font-weight: 700; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }
strong { color: var(--ink-2); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Layout helpers ----------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: var(--maxw-text); }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section--deep { background: var(--bg-deep); color: #c3cede; }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }
.section--deep strong { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.section--deep .eyebrow { color: #7bb8de; }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-2); }
.muted { color: var(--muted); font-size: .93rem; }
.center { text-align: center; }
.section-head { max-width: var(--maxw-text); margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }

/* --- Skip link ---------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand svg,
.brand img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.footer-mark { width: 56px; height: 56px; object-fit: contain; margin-bottom: 1rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em; }
.brand-role { font-size: .74rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink-2); font-size: .93rem; font-weight: 500;
  padding: .5rem .8rem; border-radius: 7px; text-decoration: none;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 650; }
.nav .btn { margin-left: .5rem; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: .45rem .6rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; display: block; }

/* --- Cloaked contact links (revealed by JS) --------------------------- */
a.cloak::after { content: "\2026"; color: var(--muted); }
a.cloak { pointer-events: none; }
.site-footer a.cloak::after { color: #6f8098; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 8px;
  font-size: .95rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .06s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--ink); border-color: #cfd8e4; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eef3f8; color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(900px 420px at 15% -10%, #eaf3f9 0%, rgba(234,243,249,0) 65%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero h1 { margin-bottom: .4em; }
.hero .hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-2); font-weight: 500; margin-bottom: 1.5rem;
}
.hero p { max-width: 62ch; }

/* --- Stat strip --------------------------------------------------------- */
.stats {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { background: #fff; padding: 1.6rem 1.25rem; text-align: center; }
.stat-num {
  display: block; font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1;
}
.stat-label { display: block; font-size: .86rem; color: var(--muted); margin-top: .4rem; }

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card > :last-child { margin-bottom: 0; }
.card ul { padding-left: 1.15em; }
.card ul li { font-size: .95rem; }

/* Tier cards */
.tier { display: flex; flex-direction: column; }
.tier-name {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .35rem;
}
.tier h3 { font-size: 1.05rem; color: var(--ink); }
.tier--feature { border-color: var(--accent); box-shadow: var(--shadow-md); }
.tier .tier-days {
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; margin: 0 0 1rem;
}
.tier-best {
  margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  font-size: .9rem; color: var(--muted);
}
.tier-best strong { display: block; color: var(--ink-2); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .3rem; }

/* Checklist */
.check { list-style: none; padding-left: 0; }
.check li { position: relative; padding-left: 1.6rem; }
.check li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: .55;
}

/* Numbered steps */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.step {
  position: relative; padding-left: 4.25rem;
  padding-bottom: 1.75rem; border-bottom: 1px solid var(--line-soft);
}
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--accent-sf); color: var(--accent-dk);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: .45rem; }
.step > :last-child { margin-bottom: 0; }

/* Comparison */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare-col > h3 {
  margin: 0; padding: 1.1rem 1.5rem; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.compare-col--hl > h3 { background: var(--accent); color: #fff; }
.compare-body { padding: 1.5rem; }
.compare-row { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.compare-row:last-child { border-bottom: 0; padding-bottom: 0; }
.compare-row dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .2rem;
}
.compare-row dd { margin: 0; }

/* Quotes */
.quotes { columns: 2; column-gap: 1.5rem; }
.quote {
  break-inside: avoid; margin: 0 0 1.5rem;
  background: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.6rem 1.75rem;
}
.quote p { font-size: .97rem; color: var(--ink-2); }
.quote p:first-child::before { content: "\201C"; }
.quote p:last-of-type { margin-bottom: 0; }
.quote footer {
  margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line-soft);
  font-size: .84rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}

/* Tags / pills */
.tags { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0 0 1.1em; list-style: none; }
.tags li {
  margin: 0; font-size: .87rem; font-weight: 500; color: var(--ink-2);
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 999px; padding: .38rem .95rem;
}
.tags--accent li { background: var(--accent-sf); border-color: #cde3f1; color: var(--accent-dk); }
.section--deep .tags li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #dce6f2; }

/* Platform badges (text, no third-party logo files) */
.platforms { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.platforms li {
  margin: 0; flex: 1 1 200px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 1.1rem 1.35rem;
}
.platform-name { display: block; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.platform-note { display: block; font-size: .85rem; color: var(--muted); margin-top: .15rem; }

/* Split (image + text) */
.split { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.portrait {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-alt);
  box-shadow: var(--shadow-md);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-fallback {
  aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center;
  padding: 1.5rem; color: var(--muted); font-size: .85rem; line-height: 1.5;
}

/* Regions */
.regions { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.region { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.5rem; background: #fff; }
.region h3, .region h4 { color: var(--accent-dk); font-size: 1.02rem; margin-bottom: .4rem; }
.region p { margin: 0; font-size: .93rem; }

/* Contact / status blocks */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-sm);
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { margin: 0; display: grid; grid-template-columns: 8.5rem minmax(0,1fr); gap: 1rem; align-items: baseline; }
.contact-list dt, .contact-key {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.contact-val { color: var(--ink-2); }

.notice {
  border: 1px solid #cde3f1; background: var(--accent-sf);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  font-size: .95rem; color: var(--ink-2);
}
.notice > :last-child { margin-bottom: 0; }

/* Status / independent practice callout */
.status-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.status-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.35rem; background: #fff;
}
.status-item dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .25rem;
}
.status-item dd { margin: 0; color: var(--ink-2); font-weight: 600; }

/* CTA band */
.cta-band { background: var(--bg-deep); color: #c3cede; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 58ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: #0b1624; color: #8fa0b5;
  padding: 3rem 0 2rem; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.09);
}
.site-footer h4,
.site-footer .foot-h {
  color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; margin: 0 0 .9rem; line-height: 1.3;
}
/* 404 quick-link cards */
.card h2 { font-size: 1.15rem; margin-bottom: .5rem; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
a.card:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow-md); }
a.card h2 { color: var(--accent-dk); }
.site-footer a { color: #b9c7d8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-about p { margin-bottom: .6rem; max-width: 42ch; }
.footer-bottom {
  padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; font-size: .84rem; color: #6f8098;
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .regions { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .portrait { max-width: 300px; }
  .quotes { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .6rem 24px 1rem; box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .nav .btn { margin: .85rem 0 0; border-bottom: 0; justify-content: center; }
  .site-header .wrap { position: relative; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .step { padding-left: 3.5rem; }
  .step::before { width: 2.4rem; height: 2.4rem; font-size: .95rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .15rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .nav .btn { width: auto; }
}

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

@media print {
  .site-header, .cta-band, .nav-toggle { display: none; }
  body { font-size: 11pt; color: #000; }
  .section { padding: 1rem 0; }
}
