/* =====================================================
   Batterybox — Design Refinery
   Shared stylesheet for all pages in /html/
   All values in px. Mobile-first base values;
   desktop overrides in @media screen (min-width: 600px).
   ===================================================== */

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

html { -webkit-text-size-adjust: 100%; }

/* ── BACK BUTTON (document pages) ──────────────────── */
.back-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 999;
  font-family: 'Figtree', Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.back-btn:hover { opacity: 1; }

/* ── INDEX PAGE ─────────────────────────────────────── */
body.index {
  font-family: 'Figtree', Helvetica, sans-serif;
  background: #f5f4f0;
  color: #2c2c2c;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.index .container {
  text-align: center;
  padding: 48px 32px;
}
body.index .logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 auto 40px;
}
body.index .wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 48px;
}
body.index h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
body.index p {
  font-size: 15px;
  color: #666;
  margin-bottom: 48px;
}
body.index .buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 360px;
  margin: 0 auto;
}
body.index a.btn {
  display: block;
  padding: 18px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s;
}
body.index a.btn:hover { opacity: 0.85; }
body.index a.btn-primary  { background: #1a1a1a; color: #fff; }
body.index a.btn-secondary {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #d0cfc9;
}
body.index .btn-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 4px;
}

/* ── DOCUMENT PAGES — SHARED ────────────────────────── */
body.brief,
body.overview {
  margin: 0;
  font-family: 'Figtree', Helvetica, sans-serif;
  background: #ffffff;
  color: #2c2c2c;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  font-size: 13px;
  line-height: 1.6;
}

/* Header — mobile */
.header { background: #111111; }
body.brief   .header { padding: 60px 16px 12px 16px; }
body.overview .header { padding: 60px 16px 14px 16px; }

.header-row1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
body.brief   .header-row1 { margin-bottom: 12px; }
body.overview .header-row1 { margin-bottom: 14px; }

.brand-logo { display: block; height: 30px; width: auto; }

.doc-meta { text-align: left; line-height: 1.9; }
.doc-meta span {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}
body.brief   .doc-meta strong { font-weight: 700; color: rgba(255,255,255,0.65); }
body.overview .doc-meta strong { font-weight: 600; color: rgba(255,255,255,0.65); }

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.main-title {
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 4px;
}
.main-sub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  max-width: 548px;
  letter-spacing: 0.01em;
}

.prepared-bar {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}
.prepared-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}
.prepared-val {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* Content — mobile */
.content {
  margin: 0 auto;
  max-width: 907px; /* 240mm */
  padding: 14px 16px 24px 16px;
}

/* Footer */
.footer {
  position: static;
  border-top: 1px solid #e2e2e2;
  padding: 11px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  background: #ffffff;
}

.foot-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #111111;
}
.foot-c,
.foot-r {
  font-size: 10px;
  font-weight: 400;
  color: #aaaaaa;
  letter-spacing: 0.05em;
}

/* ── BRIEF-SPECIFIC — mobile ────────────────────────── */
body.brief .section { margin-bottom: 12px; }

body.brief .section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111111;
  border-bottom: 1.5px solid #111111;
  padding-bottom: 4px;
  margin-bottom: 8px;
}

body.brief p {
  margin-bottom: 6px;
  color: #444444;
  font-size: 13px;
  orphans: 3;
  widows: 3;
}
body.brief p:last-child { margin-bottom: 0; }

body.brief table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 11px 0;
  font-size: 12px;
}
body.brief th {
  background: #f2f2f2;
  font-weight: 700;
  text-align: left;
  padding: 7px 11px;
  color: #111111;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid #d8d8d8;
}
body.brief td {
  padding: 7px 11px;
  color: #444444;
  border-bottom: 1px solid #ebebeb;
  vertical-align: top;
  line-height: 1.5;
}
body.brief td:first-child {
  font-weight: 700;
  color: #111111;
  white-space: normal;
  padding-right: 19px;
}
body.brief tr:last-child td { border-bottom: none; }

body.brief ul,
body.brief ol {
  margin: 6px 0 8px 8px;
  padding-left: 11px;
  color: #444444;
  font-size: 13px;
}
body.brief li {
  margin-bottom: 4px;
  line-height: 1.55;
}
body.brief li:last-child { margin-bottom: 0; }

.decision {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
  page-break-inside: avoid;
}
.decision:last-child { border-bottom: none; padding-bottom: 0; }
.decision-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.decision-num {
  font-size: 10px;
  font-weight: 700;
  color: #bbbbbb;
  letter-spacing: 0.15em;
  min-width: 19px;
  flex-shrink: 0;
}
.decision-title {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}
.decision-body {
  padding-left: 12px;
  color: #444444;
  font-size: 13px;
}
.decision-body p {
  font-size: 13px;
  margin-bottom: 8px;
}
.we-need {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111111;
  margin: 8px 0 4px 0;
}

.timeline { margin: 6px 0 10px 0; }
.tl-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  page-break-inside: avoid;
}
.tl-label {
  font-size: 11px;
  font-weight: 700;
  color: #111111;
  min-width: 56px;
  flex-shrink: 0;
  padding-top: 0;
  letter-spacing: 0.03em;
}
.tl-body {
  flex: 1;
  font-size: 13px;
  color: #444444;
  line-height: 1.6;
}
.tl-body ul { margin: 0; padding-left: 13px; }

.know-item {
  margin-bottom: 10px;
  page-break-inside: avoid;
}
.know-item p { margin-bottom: 0; }

.closing {
  background: #f7f7f7;
  border-left: 3px solid #111111;
  padding: 12px 16px;
  margin-top: 12px;
  page-break-inside: avoid;
}
.closing p {
  font-size: 13px;
  color: #222222;
  font-weight: 700;
  margin: 0;
  line-height: 1.55;
}

.status-note {
  margin-top: 12px;
  font-size: 12px;
  color: #999999;
  font-style: italic;
}

/* ── OVERVIEW-SPECIFIC — mobile ─────────────────────── */
body.overview .section {
  padding: 0 0 10px 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e2e2;
}
body.overview .section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.sec-num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #cccccc;
  text-transform: uppercase;
  min-width: 21px;
}
.sec-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
}
.sec-body {
  padding-left: 12px;
  font-size: 13px;
  font-weight: 400;
  color: #444444;
  line-height: 1.6;
}
.sec-body b { font-weight: 700; color: #2c2c2c; }

/* ── RESPONSIVE — DESKTOP ───────────────────────────── */
@media screen and (min-width: 600px) {

  .back-btn {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Header — restore full padding */
  body.brief   .header { padding: 60px 53px 23px 53px; }
  body.overview .header { padding: 60px 53px 26px 53px; }
  .header-row1 {
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
  }
  .doc-meta { text-align: right; }
  body.brief   .header-row1 { margin-bottom: 19px; }
  body.overview .header-row1 { margin-bottom: 23px; }

  .prepared-bar { margin-top: 19px; padding-top: 15px; gap: 19px; }

  /* Content — restore full padding */
  .content { padding: 23px 53px 19px 53px; }
  .footer  {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 11px 53px;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
  }
  body.brief   .footer { height: 68px; }  /* 18mm */
  body.overview .footer { height: 49px; } /* 13mm */

  /* Typography */
  .main-title                  { font-size: 35px; }
  .main-sub                    { font-size: 14px; }

  /* Brief — restore section spacing */
  body.brief .section          { margin-bottom: 19px; }
  body.brief .section-title    { font-size: 13px; padding-bottom: 6px; margin-bottom: 13px; }
  body.brief p                 { font-size: 15px; margin-bottom: 10px; }
  body.brief table             { display: table; overflow-x: visible; }
  body.brief ul,
  body.brief ol                { margin: 6px 0 8px 19px; }
  .decision                    { margin-bottom: 15px; padding-bottom: 15px; }
  .decision-header             { gap: 15px; }
  .decision-num                { min-width: 19px; }
  .decision-body               { padding-left: 34px; }
  .we-need                     { margin: 8px 0 4px 0; }
  .timeline                    { margin: 6px 0 10px 0; }
  .tl-row                      { flex-direction: row; gap: 19px; }
  .tl-label                    { min-width: 83px; }
  .closing                     { padding: 15px 19px; margin-top: 19px; }
  .status-note                 { margin-top: 19px; }
  .know-item                   { margin-bottom: 10px; }

  /* Overview — restore section spacing */
  body.overview .section       { padding: 0 0 14px 0; margin-bottom: 14px; }
  body.overview .sec-title     { font-size: 13px; }
  body.overview .sec-body      { font-size: 15px; padding-left: 40px; }
  .sec-head                    { gap: 19px; margin-bottom: 8px; }
}

@media print {
  .back-btn { display: none; }
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
  }
  body.brief   .footer { height: 68px; }
  body.overview .footer { height: 49px; }
}
