/* Colors follow the planner app's PrimeNG preset (src/frontend/projects/timestrip-app/src/preset.ts). */
:root {
  --p-50: #f0f8f5;
  --p-100: #e7f4f0;
  --p-200: #cde5de;
  --p-300: #9fd0c4;
  --p-500: #0d9180;
  --p-600: #087f70;
  --p-700: #076b5e;
  --p-800: #065a4f;
  --p-900: #05473f;
  --p-950: #032e29;
  --s-50: #f7fafa;
  --s-100: #edf1f2;
  --s-200: #dfe7e8;
  --s-300: #cbd6d8;
  --s-500: #6b7f84;
  --s-700: #3c4c50;
  --ink: #142326;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(5, 71, 63, .06), 0 8px 24px rgba(5, 71, 63, .08);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--p-700); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--s-500); font-size: .95rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .75em 1.4em;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--p-300);
  outline-offset: 2px;
}
.btn-sm { padding: .5em 1em; font-size: .925rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--p-600); color: #fff; }
.btn-primary:hover { background: var(--p-700); }
.btn-ghost { background: #fff; color: var(--p-800); border-color: var(--s-300); }
.btn-ghost:hover { border-color: var(--p-500); background: var(--p-50); }
.btn-light { background: #fff; color: var(--p-800); }
.btn-light:hover { background: var(--p-100); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--s-200);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; }
.header-nav { display: flex; gap: 28px; margin-right: auto; }
.header-nav a, .link-quiet { color: var(--s-700); text-decoration: none; font-weight: 500; font-size: .95rem; }
.header-nav a:hover, .link-quiet:hover { color: var(--p-700); }
.header-actions { display: flex; align-items: center; gap: 20px; }

/* Hero */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(1000px 420px at 85% 0%, var(--p-100), transparent 70%),
    linear-gradient(var(--s-50), #fff);
}
.hero-inner { display: flex; justify-content: center; text-align: center; }
.hero-copy { max-width: 760px; }
.hero-copy .lead { margin-inline: auto; }
.hero-actions { justify-content: center; }
.eyebrow { color: var(--p-700); font-weight: 650; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.lead { font-size: 1.15rem; color: var(--s-700); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { color: var(--s-500); font-size: .9rem; }
.hero-visual { max-width: 1060px; margin: 48px auto 0; }

/* App preview: a static copy of the planner's schedule editor (see Pages/Shared/_AppPreview.cshtml). */
.ap {
  --ap-text: #1c3035;
  --ap-muted: #63757b;
  --ap-border: #dfe7e8;
  --ap-tile-border: #dde5e8;
  overflow: hidden;
  border: 1px solid var(--s-200);
  border-radius: 14px;
  background: #f6f9f9;
  box-shadow: 0 2px 4px rgba(5, 71, 63, .05), 0 24px 60px -12px rgba(5, 71, 63, .22);
  color: var(--ap-text);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  user-select: none;
}
.ap svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ap-chrome { display: flex; align-items: center; gap: 16px; height: 38px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--ap-border); }
.ap-dots { display: flex; gap: 6px; }
.ap-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--s-200); }
.ap-url { flex: 0 1 340px; margin: 0 auto; padding: 3px 12px; border-radius: 6px; background: var(--s-50); color: var(--ap-muted); font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-page { padding: 22px 24px 24px; }
.ap-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ap-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.ap-title { font-size: 24px; font-weight: 600; line-height: 1.2; }
.ap-status { padding: 4px 12px; border-radius: 14px; font-size: 11px; font-weight: 500; }
.ap-status--published { background: var(--p-50); color: var(--p-700); }
.ap-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.ap-pill svg { width: 12px; height: 12px; stroke-width: 2; }
.ap-pill--valid { background: var(--p-100); color: var(--p-700); }
.ap-dates { margin-top: 4px; color: var(--ap-muted); font-size: 13px; }
.ap-actions { display: flex; gap: 8px; }
.ap-icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--ap-border); border-radius: 7px; background: #fff; color: #34494f; }
.ap-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ap-btn--primary { background: var(--p-600); color: #fff; }
.ap-btn--muted { opacity: .55; }
.ap-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; }
.ap-spinner, .ap-select, .ap-search { display: inline-flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border: 1px solid var(--ap-border); border-radius: 7px; background: #fff; }
.ap-spinner span, .ap-select span { color: var(--ap-muted); }
.ap-spinner b { font-weight: 500; }
.ap-search { margin-left: auto; width: 200px; color: #96a7ac; }
.ap-card { overflow: hidden; border: 1px solid var(--ap-border); border-radius: 10px; background: #fff; }
.ap-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.ap-grid th { font-weight: normal; }
.ap-grid th:first-child { width: 168px; padding: 0 14px; text-align: left; background: #fff; }
.ap-grid thead th { height: 62px; background: var(--s-50); border-bottom: 1px solid var(--ap-border); }
.ap-grid thead th:not(:first-child) { text-align: center; }
.ap-grid thead .is-weekend, .ap-grid td.is-weekend { background: #f3f6f7; }
.ap-corner b { display: block; font-size: 13px; font-weight: 600; }
.ap-corner span { display: block; margin-top: 2px; color: var(--ap-muted); font-size: 11px; }
.ap-day-name { display: block; color: var(--ap-muted); font-size: 10px; }
.ap-day-number { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-grid tbody th, .ap-grid tbody td { height: 44px; border-bottom: 1px solid var(--s-100); }
.ap-grid tbody tr:last-child > * { border-bottom: 0; }
.ap-grid tbody td { padding: 0 2px; }
.ap-name { display: block; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.ap-sub { display: block; overflow: hidden; color: var(--ap-muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.ap-day { position: relative; display: flex; width: 100%; max-width: 32px; aspect-ratio: 1; margin-inline: auto; border: 1px solid var(--ap-tile-border); border-radius: 4px; background: #fff; }
.ap-day--empty { border-color: #e6ecef; }
.ap-day--away::after { position: absolute; inset: 0; border-radius: inherit; background-image: repeating-linear-gradient(135deg, #96a7ac 0 1px, transparent 1px 5px); opacity: .55; content: ""; }
.ap-shift { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; color: #253b47; font-size: 12px; font-weight: 600; }
.ap-shift::before { position: absolute; top: 50%; left: 2px; width: 3px; height: 18px; border-radius: 1.5px; background: var(--ap-shift); transform: translateY(-50%); content: ""; }
.ap-unassigned { margin: auto; color: #98a7af; font-size: 12px; }
.ap-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding: 8px 14px; border-top: 1px solid var(--s-100); color: var(--ap-muted); font-size: 11px; }
.ap-legend-title { font-size: 9px; font-weight: 600; text-transform: uppercase; }
.ap-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.ap-legend-end { margin-left: auto; }
.ap-badge { position: relative; display: inline-grid; place-items: center; min-width: 19px; height: 18px; padding: 0 4px 0 7px; border: 1px solid var(--ap-tile-border); border-radius: 3px; background: #fff; color: #253b47; font-size: 9px; font-weight: 600; }
.ap-badge::before { position: absolute; top: 3px; left: 1px; width: 3px; height: 10px; border-radius: 1.5px; background: var(--ap-shift); content: ""; }
.ap-legend-unassigned { color: #98a7af; }
.ap-legend-away { width: 14px; height: 14px; border-radius: 3px; background-image: repeating-linear-gradient(135deg, #96a7ac 0 1px, transparent 1px 4px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Sections */
.section { padding: 88px 0; }
.section-tint { background: var(--s-50); border-top: 1px solid var(--s-100); border-bottom: 1px solid var(--s-100); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--s-700); font-size: 1.05rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 24px;
  border: 1px solid var(--s-200);
  border-radius: var(--radius);
  background: #fff;
}
.feature p { color: var(--s-700); font-size: .95rem; margin: 0; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--p-50);
  color: var(--p-700);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps p { color: var(--s-700); margin: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--p-600);
  color: #fff;
  font-weight: 700;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--s-200);
  border-radius: 16px;
  background: #fff;
}
.plan-featured { border: 2px solid var(--p-600); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute;
  top: -13px;
  left: 32px;
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--p-600);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
}
.plan-price { margin: 4px 0 8px; }
.plan-price .amount { font-size: 2.4rem; font-weight: 750; letter-spacing: -.02em; }
.plan-price .per { color: var(--s-500); }
.plan-desc { color: var(--s-700); }
.plan-list { list-style: none; padding: 0; margin: 8px 0 28px; flex: 1; }
.plan-list li { position: relative; padding: 6px 0 6px 28px; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--p-600);
  border-bottom: 2px solid var(--p-600);
  transform: rotate(-45deg);
}

/* Quote */
.quote-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.quote-copy p { color: var(--s-700); }
.quote-card {
  padding: 32px;
  border: 1px solid var(--s-200);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .optional { color: var(--s-500); font-weight: 400; }
.field input, .field textarea {
  font: inherit;
  padding: .65em .8em;
  border: 1px solid var(--s-300);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--p-500); }
.field textarea { resize: vertical; }
.field .input-validation-error { border-color: #c2412d; }
.field-error { color: #b3361f; font-size: .85rem; margin-top: 4px; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; }
.notice-ok { background: var(--p-50); border: 1px solid var(--p-200); color: var(--p-900); margin: 0; }
.notice-error { background: #fdf0ed; border: 1px solid #f4c7bd; color: #8c2a17; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--s-200); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--s-200); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--p-600); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--s-700); margin: 12px 0 0; }

/* Closing call to action */
.cta { background: var(--p-800); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; }

/* Footer */
.site-footer { background: var(--p-950); color: var(--p-200); padding: 32px 0; font-size: .9rem; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 24px; margin-right: auto; flex-wrap: wrap; }
.site-footer a { color: var(--p-200); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-copy { margin: 0; }

.prose h1 { margin-bottom: .6em; }

/* Responsive */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .quote-inner { grid-template-columns: 1fr; gap: 40px; }
  .ap-actions .ap-icon-btn, .ap-search { display: none; }
}
@media (max-width: 720px) {
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .features, .steps, .plans, .field-row { grid-template-columns: 1fr; }
  .ap-page { padding: 14px; }
  .ap-grid .wk2, .ap-select, .ap-btn--muted, .ap-legend-end { display: none; }
  .ap-grid th:first-child { width: 112px; padding: 0 8px; }
  .ap-title { font-size: 20px; }
  .quote-card, .plan { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
