/* ShiftCraft — vertical landing / guide pages.
   Extends styles.css design tokens (warm paper, teal ink, Fraunces + Hanken).
   Long-form editorial "field guide" layout, coherent with the tool UI. */

/* ---------- Content header (links back to the tool) ---------- */
.appbar .brand a { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 14px; }
.navlinks { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.navlinks a {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.navlinks a:hover { color: var(--accent-700); border-color: var(--accent); }
.navlinks a.cta {
  color: #fff; background: linear-gradient(180deg, #14857c, var(--accent-700));
  border: 1px solid var(--accent-700); border-radius: 999px; padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(12,93,87,.4), 0 10px 22px -12px rgba(12,93,87,.8);
}
.navlinks a.cta:hover { filter: brightness(1.06); color: #fff; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 6px 0 20px; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.crumbs a:hover { color: var(--accent-700); }
.crumbs span[aria-current] { color: var(--ink-2); }

/* ---------- Hero ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: 8px 0 12px;
  animation: rise .5s var(--ease) both;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-700); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.lp-hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 5vw, 48px); line-height: 1.06; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 16px;
}
.lp-hero .lead { font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; max-width: 46ch; }
.lp-hero .lead strong { color: var(--ink); font-weight: 600; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-lg { font-size: 15.5px; padding: 13px 22px; }
.cta-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.cta-note b { color: var(--accent-700); font-weight: 700; }

/* ---------- Sample rota preview (static mirror of the tool grid) ---------- */
.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise .55s var(--ease) .08s both;
}
.preview-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.preview-head h2 { font-family: var(--serif); font-weight: 600; font-size: 16px; margin: 0; color: var(--ink); }
.preview-head .wk { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.preview .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.rota { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 13px; }
.rota th, .rota td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rota thead th { font-weight: 700; color: var(--ink-2); border-bottom: 1.5px solid var(--line-strong); font-size: 12px; }
.rota thead th.r-name, .rota tbody th { text-align: left; }
.rota tbody th { font-weight: 600; color: var(--ink); padding-left: 16px; }
.rota td.wknd, .rota th.wknd { background: var(--weekend); }
.rota td.off { color: #c9c1b4; }
.rota td.hrs { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; }
.rota td.total, .rota th.total { background: var(--total-bg); color: var(--accent-700); font-weight: 700; font-family: var(--mono); }
.rota tfoot td, .rota tfoot th { border-top: 1.5px solid var(--line-strong); font-size: 12px; }
.rota tfoot th { color: var(--ink); font-weight: 700; padding-left: 16px; }
.cov {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 23px; padding: 0 8px; border-radius: 999px;
  font-family: var(--mono); font-weight: 700; font-size: 12px;
  background: var(--accent-soft); color: var(--accent-700);
}
.cov[data-on="3"], .cov[data-on="4"], .cov[data-on="5"] { background: var(--accent); color: #fff; }
.cov[data-on="0"] { background: var(--paper-2); color: var(--muted); }
.preview-foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.preview-foot a { color: var(--accent-700); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.preview-foot a:hover { border-color: var(--accent); }

/* ---------- Body sections ---------- */
.lp-body { max-width: 760px; margin: 48px auto 0; }
.lp-body > section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.lp-body > section:first-child { border-top: none; margin-top: 0; padding-top: 8px; }
.lp-body h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(21px, 3vw, 27px);
  letter-spacing: -.015em; color: var(--ink); margin: 0 0 14px; line-height: 1.2;
}
.lp-body h3 { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); margin: 24px 0 8px; }
.lp-body p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.lp-body p strong, .lp-body li strong { color: var(--ink); font-weight: 600; }
.lp-body a.inline { color: var(--accent-700); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.lp-body a.inline:hover { border-color: var(--accent); }

/* shift-pattern cards */
.shifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 6px; }
.shift {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 16px 14px; box-shadow: var(--shadow-sm);
}
.shift .t { font-weight: 700; color: var(--ink); font-size: 15px; margin: 0 0 2px; }
.shift .h { font-family: var(--mono); font-size: 12.5px; color: var(--accent-700); font-weight: 700; margin: 0 0 8px; }
.shift p { font-size: 14px; line-height: 1.55; margin: 0; color: var(--muted); }

/* checklist */
.check { list-style: none; padding: 0; margin: 16px 0 6px; }
.check li { position: relative; padding: 0 0 0 30px; margin: 10px 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.check li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  border-radius: 5px; background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230f766e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

/* numbered steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0 6px; }
.steps li { position: relative; padding: 0 0 0 42px; margin: 14px 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -2px; width: 28px; height: 28px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent-700);
  font-family: var(--mono); font-weight: 700; font-size: 13px;
}

/* callout */
.callout {
  background: var(--accent-soft); border: 1px solid #cfe5e1; border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 20px 0; font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
.callout strong { color: var(--accent-700); }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); margin: 10px 0; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 18px;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 20px; color: var(--accent);
  transition: transform .2s var(--ease); line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-700); }
.faq .a { padding: 0 18px 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 48px auto 0; max-width: 760px;
  background: linear-gradient(180deg, #ffffff, var(--paper-2));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 30px clamp(20px, 4vw, 38px); text-align: center; box-shadow: var(--shadow);
}
.cta-band h2 { font-family: var(--serif); font-weight: 600; font-size: 25px; margin: 0 0 8px; color: var(--ink); }
.cta-band p { color: var(--muted); margin: 0 auto 18px; max-width: 48ch; font-size: 15.5px; }

/* ---------- Related pages (internal links) ---------- */
.related { max-width: 760px; margin: 44px auto 0; }
.related h2 { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related-grid a {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  transition: border-color .15s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.related-grid a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.related-grid .k { font-weight: 700; color: var(--ink); font-size: 15px; margin: 0 0 3px; }
.related-grid .d { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ---------- Comparison table (template vs maker) ---------- */
.compare { width: 100%; border-collapse: collapse; margin: 18px 0 6px; font-size: 14.5px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 1.5px solid var(--line-strong); }
.compare thead th.win { color: var(--accent-700); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 32%; }
.compare td.no { color: var(--muted); }
.compare td.yes { color: var(--ink-2); }
.compare td.yes::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.compare td.no::before { content: "— "; color: var(--line-strong); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare .col-win { background: var(--accent-soft); }

/* ---------- Homepage guide strip ---------- */
.guides { max-width: 820px; margin: 36px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.guides h2 { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.guides p.sub { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; }
  .lp-hero .lead { max-width: none; }
}
@media (max-width: 560px) {
  .navlinks .nav-guides { display: none; }
}
