/* ============================================================
   The Cleaning Agency Operating System — shared styles
   Design: "operating manual" — spec-sheet structure, ink + amber
   ============================================================ */

:root {
  --ink:       #14213d;   /* deep navy ink */
  --ink-soft:  #2b3a5c;
  --paper:     #fbfaf7;   /* warm off-white */
  --paper-2:   #f2efe9;   /* panel fill */
  --line:      #d9d3c7;   /* hairline */
  --amber:     #e8a317;   /* accent */
  --amber-deep:#c4830a;
  --green:     #1f7a52;   /* success / guarantee */
  --text:      #1c1c1a;
  --muted:     #5d5a52;
  --white:     #ffffff;
  --radius:    4px;
  --maxw:      1080px;
  --shadow:    0 1px 2px rgba(20,33,61,.06), 0 8px 24px rgba(20,33,61,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utility face for labels / data */
.mono, .eyebrow, .spec, .nav a, .btn, .tag, th, .stat-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
}

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 15px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .12s ease, background .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--white); }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ---------- Header / nav ---------- */
.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(251,250,247,.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600; font-size: 14px; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand .dot { color: var(--amber-deep); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: var(--white); text-transform: none; letter-spacing: 0; padding: 10px 18px; font-size: 13px; }
.nav-links .btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 22px; color: var(--ink); cursor: pointer; }

@media (max-width: 720px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; width: 100%; text-align: center; }
  .nav-toggle { display: block; }
}

/* ---------- Sections ---------- */
section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.divider { border: 0; border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 60px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--amber-deep); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin-bottom: 30px; max-width: 30em; }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-family: "IBM Plex Mono", monospace; font-size: 12.5px; color: var(--muted); }
.hero-meta span { display: flex; align-items: center; gap: 7px; }
.hero-meta .ck { color: var(--green); font-weight: 700; }

/* spec card in hero */
.specsheet {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.specsheet-head {
  background: var(--ink); color: var(--white); padding: 14px 18px;
  font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.specsheet-head .price { color: var(--amber); font-size: 15px; }
.specrow { display: flex; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.specrow:last-child { border-bottom: 0; }
.specrow .k { font-family: "IBM Plex Mono", monospace; color: var(--muted); font-size: 12.5px; letter-spacing: .03em; }
.specrow .v { font-weight: 600; color: var(--ink); text-align: right; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- Generic headings block ---------- */
.section-head { max-width: 38em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-head h2 em { font-style: italic; color: var(--amber-deep); }
.section-head p { font-size: 17px; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Problem grid ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prob { background: var(--paper); padding: 28px; }
.prob h4 { font-size: 18px; margin-bottom: 8px; }
.prob p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 700px) { .prob-grid { grid-template-columns: 1fr; } }

/* ---------- Modules ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.module {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.module .num { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .12em; color: var(--amber-deep); font-weight: 600; }
.module h3 { font-size: 21px; margin: 8px 0 10px; }
.module > p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.module ul { list-style: none; }
.module li { font-size: 14px; color: var(--text); padding-left: 20px; position: relative; margin-bottom: 8px; }
.module li::before { content: "→"; position: absolute; left: 0; color: var(--amber-deep); }
@media (max-width: 760px) { .modules { grid-template-columns: 1fr; } }

/* ---------- Deliverables ---------- */
.deliv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deliv-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.deliv-card .ico { font-size: 26px; display: block; margin-bottom: 12px; }
.deliv-card h4 { font-size: 16px; margin-bottom: 8px; }
.deliv-card p { font-size: 13.5px; color: var(--muted); }
.deliv-card .tag { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); }
.deliv-card.is-bonus { background: #fdf6e7; border-color: #ecd9a6; }
@media (max-width: 820px) { .deliv { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .deliv { grid-template-columns: 1fr; } }

/* ---------- Math / numbers ---------- */
.math { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.math-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.math-card .top { padding: 12px 18px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.math-card.t1 .top { background: var(--paper-2); color: var(--muted); }
.math-card.t2 .top { background: var(--ink); color: var(--amber); }
.math-card.t3 .top { background: var(--amber); color: var(--ink); }
.math-card .body { padding: 18px; }
.math-card .body .line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.math-card .body .line .k { font-family: "IBM Plex Mono", monospace; color: var(--muted); font-size: 12px; }
.math-card .rev { font-size: 28px; font-weight: 700; color: var(--ink); margin: 14px 0 4px; font-family: "Iowan Old Style", Georgia, serif; }
.math-card .note { font-size: 12.5px; color: var(--muted); }
.math-card .profit { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 8px; font-family: "IBM Plex Mono", monospace; }
@media (max-width: 820px) { .math { grid-template-columns: 1fr; } }

/* ---------- Two-column fit ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--paper); }
.fit-col.yes { border-top: 3px solid var(--green); }
.fit-col.no { border-top: 3px solid #b54a3a; }
.fit-col h3 { font-size: 19px; margin-bottom: 16px; }
.fit-col ul { list-style: none; }
.fit-col li { font-size: 14.5px; padding-left: 24px; position: relative; margin-bottom: 12px; color: var(--text); }
.fit-col.yes li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.fit-col.no li::before { content: "✕"; position: absolute; left: 0; color: #b54a3a; font-weight: 700; }
@media (max-width: 700px) { .fit { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing { background: var(--ink); color: #e9e6df; }
.pricing .section-head h2, .pricing h3 { color: var(--white); }
.pricing .section-head p { color: #b9c0cf; }
.price-card {
  background: var(--paper); color: var(--text);
  max-width: 540px; margin: 0 auto; border-radius: 6px; overflow: hidden;
  border: 1px solid #2c3a59; box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.price-card .pc-head { padding: 26px 30px 22px; border-bottom: 1px solid var(--line); text-align: center; }
.price-card .pc-flag { display:inline-block; font-family:"IBM Plex Mono",monospace; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color: var(--amber-deep); margin-bottom: 12px; }
.price-card h3 { font-size: 26px; margin-bottom: 8px; }
.price-card .pc-sub { font-size: 14px; color: var(--muted); }
.price-row { text-align: center; padding: 24px; }
.price-was { font-family:"IBM Plex Mono",monospace; color: var(--muted); text-decoration: line-through; font-size: 16px; }
.price-now { font-size: 64px; font-weight: 700; color: var(--ink); line-height: 1; font-family:"Iowan Old Style",Georgia,serif; }
.price-terms { font-family:"IBM Plex Mono",monospace; font-size: 12px; color: var(--muted); letter-spacing:.04em; margin-top: 8px; }
.incl { padding: 4px 30px 8px; }
.incl li { list-style: none; font-size: 14.5px; padding: 9px 0 9px 26px; position: relative; border-bottom: 1px dashed var(--line); }
.incl li:last-child { border-bottom: 0; }
.incl li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card .pc-cta { padding: 22px 30px 30px; text-align: center; }
.price-card .pc-cta .btn { width: 100%; }
.trust-row { display:flex; justify-content:center; gap: 22px; flex-wrap: wrap; margin-top: 16px; font-family:"IBM Plex Mono",monospace; font-size:12px; color: var(--muted); }

/* ---------- Guarantee ---------- */
.guarantee {
  max-width: 720px; margin: 0 auto; text-align: center;
  border: 2px solid var(--green); border-radius: 8px; padding: 40px 36px; background: #f1f8f3;
}
.guarantee .seal {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 18px;
}
.guarantee h3 { font-size: 26px; margin-bottom: 12px; }
.guarantee p { font-size: 16px; color: var(--ink-soft); max-width: 46em; margin: 0 auto; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.founder-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.founder-card .avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--ink); color: var(--amber); display:flex; align-items:center; justify-content:center; font-size: 34px; font-family:"Iowan Old Style",Georgia,serif; margin: 0 auto 14px; }
.founder-card .role { font-family:"IBM Plex Mono",monospace; font-size: 11px; letter-spacing:.1em; text-transform:uppercase; color: var(--muted); }
.founder-body p { margin-bottom: 16px; font-size: 16px; }
.founder-points { list-style:none; margin-top: 6px; }
.founder-points li { font-family:"IBM Plex Mono",monospace; font-size:13px; color: var(--ink-soft); padding-left: 22px; position: relative; margin-bottom: 9px; }
.founder-points li::before { content:"▪"; position:absolute; left:0; color: var(--amber-deep); }
@media (max-width: 700px) { .founder { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-family:"Iowan Old Style",Georgia,serif; }
.faq-q .chev { color: var(--amber-deep); transition: transform .2s ease; font-family: monospace; }
.faq-item.open .faq-q .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 0 20px; font-size: 15px; color: var(--muted); max-width: 60em; }

/* ---------- Final CTA ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(28px, 4vw, 42px); max-width: 18em; margin: 0 auto 18px; }
.final p { font-size: 17px; color: var(--muted); max-width: 40em; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 40px 0 48px; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-brand { font-family:"IBM Plex Mono",monospace; font-size: 13px; color: var(--ink); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-fine { margin-top: 22px; font-size: 12px; color: var(--muted); max-width: 70em; line-height: 1.6; }

/* ---------- Sticky bar ---------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); color: #fff; transform: translateY(110%); transition: transform .3s ease;
  border-top: 2px solid var(--amber);
}
.stickybar.visible { transform: translateY(0); }
.stickybar-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 24px; display:flex; align-items:center; justify-content: space-between; gap: 16px; }
.stickybar .sb-txt { font-family:"IBM Plex Mono",monospace; font-size: 13px; }
.stickybar .sb-txt strong { color: var(--amber); }
@media (max-width: 560px) { .stickybar .sb-txt span.lng { display: none; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Article / blog styles
   ============================================================ */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 40px; }
.article .eyebrow { margin-bottom: 18px; }
.article h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 18px; line-height: 1.12; }
.article .dek { font-size: 19px; color: var(--ink-soft); margin-bottom: 22px; }
.article .meta { font-family:"IBM Plex Mono",monospace; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; display:flex; gap: 16px; flex-wrap: wrap; }
.article .quick { background: var(--paper-2); border-left: 3px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 0 0 32px; font-size: 15.5px; }
.article .quick strong { color: var(--ink); }
.article h2 { font-size: 27px; margin: 40px 0 14px; }
.article h3 { font-size: 20px; margin: 28px 0 10px; }
.article p { font-size: 17px; margin-bottom: 18px; }
.article ul, .article ol { margin: 0 0 20px 22px; }
.article li { font-size: 16.5px; margin-bottom: 10px; }
.article strong { color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 14.5px; }
.article th { background: var(--ink); color: #fff; text-align: left; padding: 11px 14px; font-size: 12px; letter-spacing: .04em; }
.article td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.article tr:nth-child(even) td { background: var(--paper-2); }
.article a { color: var(--ink); }

.cta-block { background: var(--ink); color: #fff; border-radius: 6px; padding: 32px 30px; margin: 40px 0; text-align: center; }
.cta-block h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.cta-block p { color: #c3cad8; font-size: 15px; margin-bottom: 20px; }

.keepreading { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.keepreading h4 { font-family:"IBM Plex Mono",monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.kr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kr-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; display: block; background: var(--paper); transition: border-color .2s ease; }
.kr-card:hover { border-color: var(--amber); }
.kr-card .k-tag { font-family:"IBM Plex Mono",monospace; font-size: 11px; letter-spacing:.1em; text-transform:uppercase; color: var(--amber-deep); }
.kr-card h5 { font-size: 16px; margin: 8px 0 6px; color: var(--ink); }
.kr-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .kr-grid { grid-template-columns: 1fr; } }

/* Blog index */
.blog-hero { padding: 60px 0 40px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.blog-hero h1 em { font-style: italic; color: var(--amber-deep); }
.blog-hero p { font-size: 18px; color: var(--muted); margin-top: 14px; max-width: 36em; }
.post-list { display: grid; gap: 0; }
.post-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .2s ease; }
.post-row:hover { padding-left: 8px; }
.post-row .p-cat { font-family:"IBM Plex Mono",monospace; font-size: 11px; letter-spacing:.1em; text-transform:uppercase; color: var(--amber-deep); width: 110px; }
.post-row h3 { font-size: 22px; margin-bottom: 6px; }
.post-row p { font-size: 14.5px; color: var(--muted); }
.post-row .p-read { font-family:"IBM Plex Mono",monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 680px) {
  .post-row { grid-template-columns: 1fr; gap: 6px; }
  .post-row .p-cat { width: auto; }
  .post-row .p-read { display: none; }
}

/* about page */
.about-hero { padding: 64px 0 20px; }
.about-hero h1 { font-size: clamp(32px, 5vw, 50px); max-width: 16em; }
.about-body { max-width: 760px; }
.about-body h2 { font-size: 24px; margin: 36px 0 12px; }
.about-body p { font-size: 17px; margin-bottom: 16px; }
.about-body ul { margin: 0 0 20px 22px; }
.about-body li { font-size: 16px; margin-bottom: 10px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper); }
.contact-card h3 { font-size: 18px; margin-bottom: 10px; }
.contact-card p, .contact-card li { font-size: 15px; color: var(--muted); }
.contact-card ul { margin: 0 0 0 20px; }
.contact-card a { font-weight: 600; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
