/* ==========================================================================
   Settld — design system
   --------------------------------------------------------------------------
   The product is a permanent record of decisions, so the visual language is
   archival rather than the usual startup-blue: warm paper, ink-black text, a
   serif for anything that reads as a statement of record, and a restrained
   palette where colour carries meaning instead of decoration.

   Deliberately avoids the defaults that make software look machine-generated —
   Inter, purple-on-white gradients, neon accents on dark grey. The three status
   colours are semantic and used nowhere else: green confirms, amber awaits a
   human, rust contradicts.
   ========================================================================== */

:root {
  /* Warm neutrals. The paper tint is what keeps this from reading as a
     generic dashboard; pure #FFF is colder and flatter on large surfaces. */
  --paper: #faf8f3;
  --paper-raised: #ffffff;
  --paper-sunken: #f2efe7;
  --ink: #14161a;
  --ink-soft: #3d4450;
  --ink-muted: #6b7280;
  --rule: #e2ddd1;
  --rule-strong: #cfc8b8;

  /* Semantic status. Never used decoratively. */
  --confirmed: #1f5f4a;
  --confirmed-wash: #e6f0ea;
  --pending: #9a6212;
  --pending-wash: #fbf1de;
  --conflict: #a8391b;
  --conflict-wash: #fbe9e3;

  --accent: #1f5f4a;
  --accent-hover: #17483a;

  --radius: 10px;
  --radius-lg: 16px;

  /* Shadows stay tight and low-opacity; large soft glows read as "template". */
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05);
  --shadow: 0 2px 8px rgba(20, 22, 26, 0.06), 0 1px 2px rgba(20, 22, 26, 0.04);
  --shadow-lg: 0 12px 40px rgba(20, 22, 26, 0.1), 0 2px 8px rgba(20, 22, 26, 0.05);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --measure: 66ch;
  --page: 1140px;
}

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

/* The browser's own `[hidden] { display: none }` lives in the user-agent
   stylesheet, so any author rule setting `display` beats it. Components here do
   exactly that — `.btn` is `display: flex` — which silently made the `hidden`
   attribute do nothing on them, leaving the admin link and other conditionally
   shown controls visible to everyone. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  /* Serif display type needs negative tracking at large sizes or it reads loose. */
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { margin: 0 0 1.1em; max-width: var(--measure); text-wrap: pretty; }
a { color: inherit; }

.page { max-width: var(--page); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark svg { display: block; }

.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  font-size: 0.94rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #000; }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--paper-sunken); }

.btn--quiet { background: transparent; color: var(--ink-soft); padding: 6px 10px; }
.btn--quiet:hover { color: var(--ink); background: var(--paper-sunken); }

.btn--lg { padding: 13px 24px; font-size: 1rem; }
.btn--sm { padding: 6px 12px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero { padding: 84px 0 72px; position: relative; overflow: hidden; }

/* A single faint radial wash rather than a gradient mesh — enough to lift the
   hero off the page without announcing itself. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 20% auto -20%;
  height: 620px;
  background: radial-gradient(ellipse at 30% 40%, rgba(31, 95, 74, 0.07), transparent 62%);
  pointer-events: none;
}

.hero__inner { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  margin-bottom: 22px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--paper-raised);
  font-size: 0.83rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.eyebrow strong {
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--confirmed-wash);
  color: var(--confirmed);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 { max-width: 15ch; }
.hero__lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------
   Product preview — a real DOM rendering of the decision card, not a
   screenshot. It stays sharp at any zoom and never goes stale.
   ------------------------------------------------------------------------- */

.preview {
  margin-top: 56px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-sunken);
}
.preview__dots { display: flex; gap: 6px; }
.preview__dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rule-strong); display: block;
}
.preview__path {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.preview__body { padding: 22px; display: grid; gap: 14px; }

.decision {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--paper-raised);
}
.decision--confirmed { border-left-color: var(--confirmed); }
.decision--pending { border-left-color: var(--pending); }
.decision--conflict { border-left-color: var(--conflict); background: #fffdfc; }

.decision__text {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.4;
  margin: 0 0 10px;
  max-width: none;
}

.decision__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.84rem;
  color: var(--ink-muted);
}
.decision__meta strong { color: var(--ink-soft); font-weight: 550; }

.decision__source {
  margin: 12px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--rule);
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-style: italic;
  max-width: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.76rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tag--confirmed { background: var(--confirmed-wash); color: var(--confirmed); }
.tag--pending { background: var(--pending-wash); color: var(--pending); }
.tag--conflict { background: var(--conflict-wash); color: var(--conflict); }
.tag--quiet { background: var(--paper-sunken); color: var(--ink-muted); }

.conflict-callout {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--conflict-wash);
  font-size: 0.88rem;
  color: #7a2a13;
}
.conflict-callout svg { flex: none; margin-top: 2px; }
.conflict-callout p { margin: 0; max-width: none; }

/* -------------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------------- */

section { padding: 84px 0; }
section.tight { padding: 60px 0; }

.section-head { margin-bottom: 44px; max-width: 62ch; }
.section-head .kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head p { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 0; }

.band { background: var(--paper-sunken); border-block: 1px solid var(--rule); }
.band--ink {
  background: var(--ink);
  color: #e8e6df;
  border-block-color: #22262e;
}
.band--ink h2, .band--ink h3 { color: #fbfaf7; }
.band--ink p { color: #a8aeb9; }
.band--ink .section-head .kicker { color: #7fbfa6; }

/* Steps */
.steps { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.97rem; color: var(--ink-soft); margin: 0; }

/* Bento grid */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); }
.card {
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}
.card--wide { grid-column: span 4; }
.card--half { grid-column: span 3; }
.card--third { grid-column: span 2; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }
.card__icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 16px;
  border-radius: 9px;
  background: var(--paper-sunken);
  color: var(--accent);
}
.band--ink .card {
  background: #1b1f26;
  border-color: #2a2f38;
  box-shadow: none;
}
.band--ink .card__icon { background: #232830; color: #7fbfa6; }

/* Source list */
.sources { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.source {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
}
.source__mark {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--paper-sunken);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.source h4 { margin: 0 0 3px; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; }
.source p { margin: 0; font-size: 0.89rem; color: var(--ink-muted); }

/* Pricing */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.tier {
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--paper-raised);
}
.tier--featured {
  border-color: var(--ink);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.tier--featured::after {
  content: "Most teams start here";
  position: absolute;
  top: -11px; left: 28px;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
}
.tier h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }
.tier__price { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 14px 0 4px; }
.tier__price span { font-family: var(--sans); font-size: 0.92rem; color: var(--ink-muted); }
.tier__note { font-size: 0.9rem; color: var(--ink-muted); margin-bottom: 20px; }
.tier ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.tier li { display: flex; gap: 9px; font-size: 0.93rem; color: var(--ink-soft); }
.tier li svg { flex: none; margin-top: 5px; color: var(--confirmed); }

/* FAQ */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.35rem;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: 0.98rem; color: var(--ink-soft); margin: 0; }

/* Final CTA */
.cta-panel {
  padding: 60px 48px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fbfaf7;
  text-align: center;
}
.cta-panel h2 { color: #fbfaf7; }
.cta-panel p { color: #a8aeb9; margin: 0 auto 26px; max-width: 48ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 60px; }
.site-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 40px;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { font-size: 0.93rem; color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__base {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 0.87rem; color: var(--ink-muted);
}

/* -------------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------------- */

.stack-sm > * + * { margin-top: 10px; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); }
.center { text-align: center; margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 900px) {
  .steps, .sources, .tiers { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card--wide, .card--half, .card--third { grid-column: auto; }
  .site-nav { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .cta-panel { padding: 44px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
