/* Sightline Bookkeeping — site styles
   Built on the brand tokens. Palette, type scale and spacing come straight from
   the design system; nothing here invents a new value. */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --surface:        #ffffff;
  --surface-raised: #f7fafc;
  --surface-sunken: #e8eef2;
  --ink:            #132a3e;
  --ink-muted:      #5b6b7a;
  --border:         #d4dee6;
  --accent:         #0f8f86;
  --accent-strong:  #0b6f68;
  --accent-tint:    #e6f4f3;
  --on-accent:      #ffffff;
  --attention:      #b4741f;
  --attention-tint: #fdf3e4;
  --positive:       #2a7d4f;

  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 18px; --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(19,42,62,.06);
  --shadow-md: 0 8px 24px rgba(19,42,62,.10);

  --measure: 65ch;
  --page:    1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 var(--space-5); text-wrap: balance; }
h1 { font-size: 52px; line-height: 60px; font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: 34px; line-height: 43px; font-weight: 400; }
h3 { font-size: 26px; line-height: 34px; font-weight: 400; }
h4 { font-size: 20px; line-height: 27px; font-weight: 500; }

p  { margin: 0 0 var(--space-5); max-width: var(--measure); }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

img, svg { max-width: 100%; height: auto; }

strong { font-weight: 500; }

.figure, .money { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* --------------------------------------------------------------- layout -- */
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--space-5); }

.section { padding-block: var(--space-8); }
@media (min-width: 760px) { .section { padding-block: var(--space-9); } }
.section--sunken { background: var(--surface-sunken); }
.section--tint   { background: var(--accent-tint); }
.section--ink    { background: var(--ink); color: #f1f5f8; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink a  { color: #7fd6cf; }

.eyebrow {
  font-family: var(--font-display); font-size: 13px; line-height: 16px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent-strong);
  margin: 0 0 var(--space-4);
}
.section--ink .eyebrow { color: #7fd6cf; }

.lead { font-size: 19px; line-height: 31px; color: var(--ink-muted); max-width: 58ch; }
.section--ink .lead { color: #c6d3dd; }

.small { font-size: 14px; line-height: 21px; color: var(--ink-muted); }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) { .grid--3 { gap: var(--space-6); } }

.stack > * + * { margin-top: var(--space-5); }

/* --------------------------------------------------------------- header -- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5); min-height: 76px;
}
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { width: 260px; }

.nav { display: flex; align-items: center; gap: var(--space-5); }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { color: var(--accent-strong); box-shadow: inset 0 -2px 0 var(--accent); }

@media (max-width: 860px) {
  .site-header__inner { flex-direction: column; align-items: flex-start; padding-block: var(--space-4); gap: var(--space-3); }
  .site-header { position: static; }
  .site-header__logo img { width: 220px; }
  .nav { flex-wrap: wrap; gap: var(--space-4); }
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: 16px; line-height: 20px; font-weight: 500;
  padding: var(--space-3) var(--space-5); min-height: 48px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--quiet:hover { background: var(--surface-sunken); color: var(--ink); }
.section--ink .btn--quiet { color: #f1f5f8; border-color: #3a566d; }
.section--ink .btn--quiet:hover { background: #1b3042; color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------------------------------------------------------------- hero ---- */
.hero { padding-block: var(--space-8) var(--space-8); }
@media (min-width: 760px) { .hero { padding-block: var(--space-10) var(--space-9); } }
.hero__inner { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr .85fr; gap: var(--space-8); } }
.hero h1 { margin-bottom: var(--space-5); }
@media (max-width: 600px) { .hero h1 { font-size: 38px; line-height: 46px; } }

/* --------------------------------------------------------------- cards --- */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
@media (min-width: 760px) { .card { padding: var(--space-6); } }
.card h3, .card h4 { margin-bottom: var(--space-3); }
.card p { max-width: none; }
.section--sunken .card { background: var(--surface); }

.card--accent { border-color: var(--accent); box-shadow: var(--shadow-sm); }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: var(--space-4);
  border: 1px solid var(--accent); border-radius: var(--radius-pill);
  color: var(--accent-strong); font-family: var(--font-display); font-size: 16px;
}
.steps h3 { font-size: 20px; line-height: 27px; font-weight: 500; margin-bottom: var(--space-2); }
.steps p { max-width: none; margin: 0; color: var(--ink-muted); }

/* Checklist */
.ticks { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: var(--space-3); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 12px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------- pricing -- */
.plan { display: flex; flex-direction: column; }
.plan__name { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 0 0 var(--space-2); }
.plan__price { font-size: 34px; line-height: 43px; font-family: var(--font-display); font-weight: 300; font-variant-numeric: tabular-nums; margin: 0; }
.plan__price span { font-family: var(--font-sans); font-size: 15px; color: var(--ink-muted); }
.plan__for { color: var(--ink-muted); margin: var(--space-2) 0 var(--space-5); font-size: 15px; line-height: 24px; }
.plan .btn { margin-top: auto; }
.plan .ticks { margin-bottom: var(--space-5); }

.pill {
  display: inline-block; border-radius: var(--radius-pill); padding: 3px 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent-tint); color: var(--accent-strong);
}
/* The pill sits in the card's corner rather than in the flow, so the plan names and
   prices stay on the same baseline across all three cards. */
.plan { position: relative; }
.plan__flag { position: absolute; top: var(--space-5); right: var(--space-5); margin: 0; }
@media (min-width: 760px) { .plan__flag { top: var(--space-6); right: var(--space-6); } }

/* ----------------------------------------------------------------- note --- */
.note {
  background: var(--attention-tint); border: 1px solid #e8cfa4;
  border-left: 3px solid var(--attention);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
}
.note p { max-width: none; }

/* ----------------------------------------------------------------- faq ---- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-5) 40px var(--space-5) 0;
  font-family: var(--font-display); font-size: 20px; line-height: 27px; font-weight: 500;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 34px;
  width: 9px; height: 9px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 38px; }
.faq details > *:not(summary) { margin-bottom: var(--space-5); }

/* ----------------------------------------------------------------- form --- */
.form { display: grid; gap: var(--space-4); max-width: 560px; }
.field { display: grid; gap: var(--space-2); }
.field label { font-size: 14px; line-height: 18px; font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field .small { margin: 0; }

/* --------------------------------------------------------------- footer -- */
.site-footer { background: var(--ink); color: #c6d3dd; padding-block: var(--space-8) var(--space-6); }
.site-footer a { color: #f1f5f8; text-decoration: none; }
.site-footer a:hover { color: #7fd6cf; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-7); } }
.site-footer__logo img { width: 240px; margin-bottom: var(--space-4); }
.site-footer h2 {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 400; color: #8fa3b3; margin: 0 0 var(--space-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--space-2); }
.site-footer__legal {
  border-top: 1px solid #274155; margin-top: var(--space-7); padding-top: var(--space-5);
  font-size: 14px; line-height: 21px; color: #8fa3b3;
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); justify-content: space-between;
}
.site-footer__legal p { margin: 0; max-width: none; }

/* ------------------------------------------------------------ utilities -- */
.center { text-align: center; margin-inline: auto; }
.center p, .center .lead { margin-inline: auto; }
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--space-6); }
.mt-7 { margin-top: var(--space-7); }

@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { font-size: 12pt; }
}
