/* KSUITE Consulting: site styles
   Tokens first, then layout, then sections. Mobile first; wider layouts in min-width queries. */

:root {
  --ink: #0E1B2C;
  --ink-2: #2B3A4F;
  --muted: #3D4E66;
  --subtle: #55667D;
  --ground: #EDF1F6;
  --white: #FFFFFF;
  --line: #D3DBE6;
  --blue: #2747E8;
  --blue-dark: #1B33AE;
  --periwinkle: #7F96FF;
  --amber: #F5A524;
  --amber-soft: #FFF4DE;
  --night-text: #B9C6D8;
  --night-faint: #8C9DB5;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --wrap: 1180px;
  --pad: 20px;
  --radius-lg: 28px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--white);
  padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.band-white { background: var(--white); }
.band-night { background: var(--ink); color: #E9EEF6; }
.section { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 900px) { .section { padding-top: 88px; padding-bottom: 88px; } }

.split { display: flex; flex-wrap: wrap; gap: 40px 48px; align-items: center; }
.split > * { flex: 1 1 380px; min-width: 0; }
.split-top { align-items: flex-start; }

.h2 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 20ch;
}
.band-night .h2 { color: var(--white); }
.lead { font-size: 18px; color: #33445C; max-width: 58ch; }
.band-night .lead { color: var(--night-text); }
.fine { font-size: 14px; color: var(--subtle); }
.band-night .fine { color: var(--night-faint); }
.stack > * + * { margin-top: 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none; text-align: center;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: #C9D3E0; }
.btn-secondary:hover { color: var(--ink); border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); min-height: 44px; padding: 10px 14px; font-size: 15px; border-radius: 10px; }
.btn-dark:hover { color: var(--white); background: #1C2F48; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand-name span { font-weight: 500; color: #4A5B72; }
.site-nav {
  order: 3; width: 100%;
  display: flex; gap: 4px 18px; overflow-x: auto; white-space: nowrap;
  font-size: 15px; font-weight: 500;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.site-nav a:hover { color: var(--blue); }
.header-cta { order: 2; white-space: nowrap; }
@media (min-width: 900px) {
  .site-nav { order: 2; width: auto; overflow: visible; }
  .header-cta { order: 3; }
}

/* Hero */
.hero { padding-top: 32px; padding-bottom: 72px; }
.hero h1 {
  font-size: clamp(42px, 7.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.hero .lead { margin-top: 24px; font-size: clamp(18px, 2.2vw, 21px); max-width: 36ch; }
.hero .btn-row { margin-top: 32px; }
.hero .fine { margin-top: 20px; }
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 440px; margin: 0; padding: 0; list-style: none; }
.chips li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.chips li.more { border-style: dashed; border-color: #9AAAC0; color: var(--subtle); }
.flow {
  width: 4px; height: 44px; margin: 6px 0; border-radius: 4px;
  background-image: repeating-linear-gradient(180deg, var(--blue) 0 8px, transparent 8px 16px);
}
@media (prefers-reduced-motion: no-preference) {
  .flow { animation: flow 2.4s linear infinite; }
}
@keyframes flow { from { background-position: 0 0; } to { background-position: 0 24px; } }

/* Hero app preview (looks like the real "My Day" screen, sample data) */
.preview {
  width: 100%; max-width: 440px;
  background: #F6F8FB; border: 1px solid #D9E0EA; border-radius: 20px; padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(14, 27, 44, 0.45);
  color: #0D1520; font-size: 13px; line-height: 1.45;
}
.preview-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.preview-top strong { font-family: var(--font-display); font-size: 19px; }
.preview-top span { font-size: 12px; color: var(--subtle); }
.pcard { margin-top: 10px; background: var(--white); border: 1px solid #D9E0EA; border-radius: 12px; padding: 12px; }
.pcard-caveat { border-color: #EBCB7E; }
.pcard-mission { background: #FFF8E9; border-color: #F0DDB0; }
.pcard-invoice { border-color: #BFD3FB; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .meta { color: var(--subtle); }
.pcard .note { color: #3A4656; }
.pill { border-radius: 8px; padding: 5px 9px; font-weight: 600; border: 1px solid #D9E0EA; flex: none; }
.pill-blue { background: #2563EB; border-color: #2563EB; color: var(--white); }
.badge { background: #E3ECFE; color: #2563EB; border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.mission-list { margin: 6px 0 0; padding: 0; list-style: none; color: #3A4656; }
.mission-list li { display: flex; justify-content: space-between; gap: 8px; }
.mission-list .done { color: #1F7A43; }
.routine { margin-top: 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 11px; color: var(--subtle); }
.routine span { background: #F1F4F8; border-radius: 8px; padding: 6px 0; }
.routine b { display: block; font-size: 13px; color: #0D1520; }
@media (min-width: 900px) { .preview { transform: rotate(-1.2deg); } }

/* Results */
.stats-heading { margin-top: 40px; font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px); line-height: 1.2; color: var(--white); }
.stats-heading strong { font-weight: 800; }
.stats-heading + .stats { margin-top: 24px; }
.stats { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.stat { border-top: 2px solid var(--periwinkle); padding-top: 16px; }
.stat:first-child { border-top-color: var(--amber); }
.stat-num { font-family: var(--font-display); font-size: clamp(44px, 6vw, 60px); font-weight: 800; line-height: 1; color: var(--white); }
.stat p { margin-top: 10px; color: var(--night-text); }
.results .fine { margin-top: 32px; }

/* Benefits */
.benefits { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 36px 40px; }
.benefit { border-top: 2px solid var(--ink); padding-top: 20px; }
.benefit svg { width: 30px; height: 30px; stroke: var(--blue); }
.benefit h3 { margin: 12px 0 6px; font-size: 23px; letter-spacing: -0.01em; }
.benefit p { color: var(--muted); }

/* Daily report sample */
.report-copy p + p { margin-top: 14px; }
.report {
  background: var(--white); color: #0D1520; border-radius: 18px; padding: 22px;
  font-size: 14px; line-height: 1.5;
}
.report-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-top: 2px; }
.report h3 { margin-top: 14px; font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.report h3 span { font-weight: 400; color: var(--subtle); }
.report ul { margin: 4px 0 0; padding-left: 18px; color: #3A4656; }
.report .label { font-size: 13px; color: var(--subtle); }

/* Features (grouped, tap to open) */
.features-wrap { max-width: 900px; }
.feature-group { border-top: 2px solid var(--ink); }
.feature-group summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 0; min-height: 44px; cursor: pointer; list-style: none;
}
.feature-group summary::-webkit-details-marker { display: none; }
.feature-group summary h3 { font-size: 24px; font-weight: 700; }
.feature-group summary h3 span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--subtle); }
.chev { flex: none; width: 22px; height: 22px; transition: transform 0.2s; }
.feature-group[open] .chev { transform: rotate(180deg); }
.feature-list { list-style: none; margin: 0 0 12px; padding: 0; }
.feature-list li { border-top: 1px solid var(--line); padding: 14px 0; }
.feature-list h4 { margin: 0 0 4px; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.01em; }
.feature-list p { color: var(--muted); font-size: 16px; }

/* How it works */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.step-num { font-family: var(--font-display); font-size: 54px; font-weight: 800; color: var(--blue); line-height: 1; }
.steps h3 { margin: 10px 0 6px; font-size: 21px; }
.steps p { color: var(--muted); }

/* Offer: calculator + audit */
.calc {
  margin-top: 32px; margin-bottom: 24px;
  background: var(--ink); color: #E9EEF6; border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.calc h3 { font-size: clamp(28px, 4.4vw, 40px); line-height: 1.05; letter-spacing: -0.025em; color: var(--white); }
.calc-inputs { display: flex; flex-direction: column; gap: 22px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.calc-field .row { display: flex; justify-content: space-between; gap: 12px; }
.calc-field output { font-weight: 700; color: var(--white); }
.calc-field input[type="range"] { width: 100%; height: 28px; accent-color: var(--amber); margin: 0; }
.calc-result { background: var(--white); color: var(--ink); border-radius: 20px; padding: 26px; }
.calc-result .label { font-size: 15px; font-weight: 600; color: #33445C; }
.calc-total { font-family: var(--font-display); font-size: clamp(46px, 7vw, 64px); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; margin-top: 4px; }
.calc-lines { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid #E1E7EF; }
.calc-result .fine { margin-top: 14px; font-size: 13px; }
.calc-result .btn { margin-top: 16px; width: 100%; }

.audit {
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.audit h3 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { flex: none; width: 22px; height: 22px; margin-top: 3px; stroke: var(--blue); }
.audit-side { display: flex; flex-direction: column; gap: 16px; }
.guarantee { background: var(--amber-soft); border-radius: 16px; padding: 18px 20px; }
.guarantee strong { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1.25; }
.guarantee p { margin-top: 8px; font-size: 14px; color: #4A3A16; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: #4A5B72; }
.site-footer strong { color: var(--ink); }

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; }

/* Application form and simple pages */
.apply { padding-top: 24px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.apply-intro { flex: 1 1 300px; min-width: 0; }
.apply-intro .lead { margin-top: 18px; }
.apply-points { margin: 20px 0 0; padding-left: 20px; color: var(--muted); }
.apply-points li + li { margin-top: 6px; }
@media (min-width: 900px) { .apply-intro { position: sticky; top: 24px; } }
.apply-form {
  flex: 2 1 520px; min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; gap: 28px;
}
.apply-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.apply-form legend { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 4px; padding: 0; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
.field em { font-style: normal; font-weight: 400; color: var(--subtle); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #B7C3D3; border-radius: 10px;
  padding: 11px 12px; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C2261B; background: #FFF6F5; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 16px; font-weight: 400; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.checks input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FFF6F5; border: 1.5px solid #C2261B; color: #8E1A12; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.btn-submit { font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; width: 100%; }
.btn-submit:disabled { opacity: .7; cursor: progress; }
.page-simple { padding-top: 40px; padding-bottom: 80px; max-width: 760px; }
.page-simple .lead { margin-top: 18px; }
.page-simple h2 { font-size: 24px; margin-top: 36px; letter-spacing: -0.01em; }
.page-simple p, .page-simple ul { margin-top: 12px; }
.page-simple .btn { margin-top: 28px; }
