/* ==========================================================================
   Kerieth Accounting — Design tokens
   ========================================================================== */

:root {
  /* Color */
  --ink:          #0B1220;   /* primary background */
  --ink-2:        #121B2E;   /* raised surface */
  --ink-3:        #1C2740;   /* borders, hairlines on dark */
  --accent:       #0097B2;   /* primary accent — logo teal */
  --accent-light: #3FC7F5;   /* accent hover / highlight — logo sky blue */
  --accent-dim:   #0B4D7C;   /* accent on light backgrounds — logo deep blue */
  --ivory:        #F4F0E6;   /* primary text on dark */
  --slate:        #93A0B8;   /* secondary text on dark */

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0 0 1em; color: var(--slate); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn-solid {
  background: var(--accent);
  color: var(--ink);
}
.btn-solid:hover { background: var(--accent-light); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--ink-3);
  color: var(--ivory);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }

.btn-text {
  padding: 13px 4px;
  color: var(--ivory);
  border-bottom: 1px solid var(--ink-3);
  border-radius: 0;
}
.btn-text:hover { color: var(--accent-light); border-color: var(--accent); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 92px;
}

.mark {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}
.mark-logo {
  height: 60px;
  width: auto;
  display: block;
}
.mark-logo--footer { height: 48px; }

@media (max-width: 860px) {
  .mark-logo { height: 46px; }
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
}
.site-nav a { color: var(--slate); transition: color 0.2s var(--ease); }
.site-nav a:hover { color: var(--ivory); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ivory);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--pad) 24px;
  border-top: 1px solid var(--ink-3);
}
.mobile-nav a { padding: 12px 0; color: var(--slate); border-bottom: 1px solid var(--ink-3); }
.mobile-nav a:last-child { border-bottom: 0; margin-top: 10px; text-align: center; }

@media (max-width: 860px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav.is-open { display: flex; }
}

/* ==========================================================================
   Eyebrow / section titles
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  color: var(--ivory);
  max-width: 20ch;
  margin-bottom: 20px;
  line-height: 1.15;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(90px, 16vw, 168px) 0 clamp(60px, 10vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(0, 151, 178,0.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }

.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  color: var(--ivory);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.hero-title .ital { font-style: italic; color: var(--accent-light); }

.hero-lede {
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.ledger-rule { position: relative; width: 100%; color: var(--accent); }
.ledger-rule svg { width: 100%; height: auto; display: block; }
.ledger-rule--hero { margin-top: clamp(40px, 8vw, 88px); }

.rule-line {
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.rule-1 { opacity: 1; }
.rule-2 { opacity: 0.55; transition-delay: 0.12s; }
.rule-3 { opacity: 0.28; transition-delay: 0.24s; }
.ledger-rule.is-drawn .rule-line { stroke-dashoffset: 0; }

/* ==========================================================================
   Services (ledger rows)
   ========================================================================== */

.services { padding: clamp(70px, 10vw, 120px) 0; border-top: 1px solid var(--ink-3); }

.ledger { margin-top: 44px; border-top: 1px solid var(--ink-3); }

.ledger-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--ink-3);
  transition: padding-left 0.3s var(--ease);
}
.ledger-row:hover { padding-left: 10px; }

.ledger-no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  padding-top: 4px;
}

.ledger-body h3 {
  font-size: 1.25rem;
  color: var(--ivory);
  margin-bottom: 8px;
}
.ledger-body p { max-width: 60ch; margin-bottom: 0; }

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  position: relative;
  padding: clamp(70px, 10vw, 120px) 0 clamp(90px, 12vw, 140px);
  background: var(--ink-2);
}

.process-list {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.process-item { border-top: 1px solid var(--ink-3); padding-top: 20px; }
.process-index {
  display: block;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.process-item h3 { color: var(--ivory); font-size: 1.1rem; margin-bottom: 8px; }
.process-item p { margin: 0; font-size: 0.95rem; }

@media (max-width: 860px) {
  .process-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About
   ========================================================================== */

.about { padding: clamp(70px, 10vw, 120px) 0; }

.about-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-copy p { max-width: 54ch; }

.about-points {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.about-points li {
  position: relative;
  padding-left: 22px;
  color: var(--ivory);
  font-size: 0.95rem;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.about-visual { color: var(--ink-3); }
.about-visual text { fill: var(--accent); }
.about-lines line { stroke: currentColor; stroke-width: 1; }
.about-visual circle { fill: var(--accent); }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 260px; margin: 0 auto; order: -1; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: clamp(70px, 10vw, 120px) 0 clamp(90px, 12vw, 140px);
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
}

.contact-intro p { max-width: 42ch; }

.contact-details {
  margin: 30px 0 0;
  display: grid;
  gap: 18px;
}
.contact-details dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-details dd {
  margin: 0;
  color: var(--ivory);
  font-size: 1rem;
}
.contact-details a:hover { color: var(--accent-light); }

.contact-schedule { margin: 28px 0 0; }
.contact-schedule p {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0 0 12px;
}

.contact-form {
  background: var(--ink);
  border: 1px solid var(--ink-3);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  gap: 20px;
}

.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field { display: grid; gap: 8px; }
.field label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--slate);
}
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-3);
  padding: 10px 2px;
  color: var(--ivory);
  transition: border-color 0.25s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.field textarea { resize: vertical; min-height: 90px; }

.contact-form .btn-solid { justify-self: start; margin-top: 4px; }

.form-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--accent-light);
  min-height: 1.2em;
}

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--ink-3);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner nav { display: flex; gap: 22px; font-size: 0.85rem; }
.footer-inner nav a { color: var(--slate); }
.footer-inner nav a:hover { color: var(--ivory); }
.footer-fine { margin: 0; font-size: 0.8rem; color: var(--slate); width: 100%; order: 3; }

@media (min-width: 700px) {
  .footer-fine { width: auto; order: 0; }
}

/* ==========================================================================
   Service tiers
   ========================================================================== */

.hero--compact { padding-bottom: clamp(50px, 8vw, 80px); }
.hero-title--sm { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 22px; }

.tiers {
  padding: clamp(10px, 4vw, 20px) 0 clamp(90px, 12vw, 140px);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  padding: clamp(28px, 3vw, 36px);
}

.tier-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(0, 151, 178,0.07), var(--ink-2) 40%);
}

.tier-tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.tier-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 12px;
}

.price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-light);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.price-lead {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.price span:not(.price-lead) { font-size: 0.95rem; color: var(--slate); font-weight: 400; }
.price--lg { font-size: 1.9rem; }

.tier-head h2 {
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 8px;
}
.tier-for { font-size: 0.92rem; margin: 0; }

.tier-ideal {
  font-size: 0.88rem;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink-3);
}
.tier-ideal strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}

.tier-features {
  display: grid;
  gap: 12px;
  flex: 1;
}
.tier-features li {
  position: relative;
  padding-left: 22px;
  color: var(--ivory);
  font-size: 0.95rem;
  line-height: 1.5;
}
.tier-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.tier-cta { justify-content: center; text-align: center; }

.tier-note {
  margin: 48px auto 0;
  max-width: 46ch;
  text-align: center;
}
.tier-note a { color: var(--accent-light); border-bottom: 1px solid var(--ink-3); }
.tier-note a:hover { border-color: var(--accent); }

@media (max-width: 980px) {
  .tier-grid { grid-template-columns: 1fr; }
  .tier-card--featured { order: -1; }
}

/* ==========================================================================
   Cleanup / catch-up
   ========================================================================== */

.cleanup {
  padding: clamp(70px, 10vw, 120px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
}

.cleanup-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.cleanup-copy p { max-width: 46ch; }

.cleanup-list {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}
.cleanup-list li {
  position: relative;
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--ink-3);
  color: var(--ivory);
  font-size: 0.95rem;
}
.cleanup-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

@media (max-width: 860px) {
  .cleanup-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Custom engagements
   ========================================================================== */

.custom { padding: clamp(70px, 10vw, 120px) 0; }
.custom-inner { max-width: 720px; }
.custom-inner p { max-width: 60ch; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
  padding: 0;
}
.service-tags li {
  border: 1px solid var(--ink-3);
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ivory);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.service-tags li:hover { border-color: var(--accent); color: var(--accent-light); }

/* ==========================================================================
   Why Kerieth
   ========================================================================== */

.why {
  padding: clamp(70px, 10vw, 120px) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--ink-3);
}
.why-lede { max-width: 62ch; }

.value-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-item { border-top: 1px solid var(--ink-3); padding-top: 18px; }
.value-word {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.value-item p { margin: 0; font-size: 0.92rem; }

@media (max-width: 860px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Closing CTA band
   ========================================================================== */

.cta-band { padding: clamp(80px, 11vw, 130px) 0; }
.cta-band-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-band-inner .eyebrow { justify-content: center; }
.cta-band-title { margin-left: auto; margin-right: auto; }
.cta-band-inner p { margin-left: auto; margin-right: auto; }
.cta-band-inner .btn { margin-top: 6px; }

.fine-print {
  margin: 56px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--ink-3);
  max-width: 720px;
  text-align: left;
}
.fine-print p {
  font-size: 0.78rem;
  color: var(--slate);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 10px;
}
.fine-print p:last-child { margin-bottom: 0; }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
