/* Fonts are hosted on this site (no Google requests). Both are SIL Open Font License. */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

/* Rascol Tax & Accounting — site styles
   Brand tokens live here; change a color once and it updates everywhere. */
:root {
  --green: #1F4D3A;      /* Ledger Green — primary */
  --pine: #12332A;       /* Deep Pine — dark sections */
  --brass: #C2953F;      /* Brass — accent lines only, not body text */
  --brass-dark: #7D5A1C; /* Brass for text on light backgrounds */
  --paper: #F7F3EA;      /* Paper — page background */
  --sage: #E4EBE4;       /* Sage — soft panels */
  --ink: #1C2421;        /* Ink — body text */
  --muted: #55605B;
  --line: #DAD3C3;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--pine); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass-dark); margin-bottom: .8rem;
}
.lede { font-size: 1.18rem; color: var(--muted); max-width: 36em; }

/* Double underline — the accountant's "bottom line". Used as a brand motif. */
.bottom-line { display: inline-block; position: relative; padding-bottom: .18em; }
.bottom-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: .22em;
  border-top: 3px solid var(--brass); border-bottom: 3px solid var(--brass);
}

/* Buttons */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--green);
  background: var(--green); color: var(--paper); transition: background .15s, color .15s, transform .15s;
  cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--pine); border-color: var(--pine); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--paper); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 243, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--green); }
.nav .btn { padding: .6em 1.1em; font-size: .9rem; color: var(--paper); }

/* Hero */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.ledger-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -24px rgba(18, 51, 42, .25); padding: 28px 30px;
  font-variant-numeric: tabular-nums;
}
.ledger-card h3, .ledger-title { font-family: var(--serif); font-weight: 600; color: var(--pine); font-size: 1.05rem; line-height: 1.15; margin: 0 0 2px; }
.ledger-card .period { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.ledger-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.ledger-row span:last-child { font-weight: 500; }
.ledger-row.total { border-bottom: none; padding-top: 14px; font-weight: 700; color: var(--pine); }
.ledger-row.total span:last-child { border-bottom: 3px double var(--brass); padding-bottom: 2px; }
.ledger-tag { display: inline-block; margin-top: 16px; font-size: .78rem; font-weight: 600; color: var(--green); background: var(--sage); border-radius: 999px; padding: 4px 12px; }

/* Sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.alt { background: var(--sage); }
.dark { background: var(--pine); color: #E8EDE9; }
.dark h2, .dark h3 { color: var(--paper); }
.dark .eyebrow { color: var(--brass); }
.dark .lede { color: #B9C6BF; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
  display: flex; flex-direction: column;
}
.service .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; margin-bottom: 20px; }
.service ul { list-style: none; padding: 0; margin: 8px 0 24px; }
.service li { padding: 8px 0 8px 30px; position: relative; border-bottom: 1px solid #EFEADF; }
.service li:last-child { border-bottom: none; }
.service li::before {
  content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg);
}
.service .btn { margin-top: auto; align-self: flex-start; }

.service .from { font-size: .95rem; color: var(--muted); margin-bottom: .6em; }
.service .from strong { color: var(--green); font-size: 1.05rem; }

/* Pricing calculator */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.calc-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.calc-label { font-weight: 600; font-size: .9rem; margin: 26px 0 10px; }
.seg { display: inline-flex; background: var(--sage); border-radius: 999px; padding: 4px; }
.seg button { font: inherit; font-weight: 600; font-size: .95rem; border: 0; background: transparent; color: var(--muted); padding: .6em 1.3em; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--paper); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block;border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--green); }
.choice.on { border-color: var(--green); background: #F3F7F3; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice strong { display: block; color: var(--pine); font-size: .98rem; }
.choice small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 4px; }
.choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #EFEADF; margin: 0; font-weight: 400; }
.opt:last-child { border-bottom: none; }
.opt label, .opt > span { margin: 0; font-weight: 500; font-size: .95rem; }
.opt small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.opt.check { cursor: pointer; }
.opt input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--green); cursor: pointer; }
.stepper { display: flex; align-items: center; flex: none; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 36px; height: 36px; border: 0; background: var(--paper); color: var(--green); font-size: 1.15rem; cursor: pointer; }
.stepper button:hover { background: var(--sage); }
.stepper input { width: 44px; height: 36px; border: 0; border-radius: 0; padding: 0; text-align: center; background: #fff; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#calc-books select { margin-bottom: 0; }
.calc-summary { position: sticky; top: 96px; }
.calc-summary .ledger-row span:first-child { padding-right: 12px; }
.calc-summary .ledger-row span:last-child { white-space: nowrap; }
.est-group { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 18px; padding-bottom: 2px; }
#books-bundle-return { margin-top: 4px; }
#books-bundle-return:disabled { opacity: .5; }
.calc-summary .btn { width: 100%; text-align: center; margin-top: 20px; }
.price-list { margin-top: 32px; }
.price-list summary { cursor: pointer; font-weight: 600; color: var(--green); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; font-size: .92rem; }
.price-grid h3 { font-size: 1.1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { border-top: 1px solid rgba(247, 243, 234, .2); padding-top: 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--serif); font-size: 2.4rem; color: var(--brass); display: block; margin-bottom: 8px; line-height: 1;
}
.step p { color: #B9C6BF; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--sage) center / cover no-repeat;
  border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 20px;
}
.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.creds li { font-size: .85rem; font-weight: 500; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; color: var(--pine); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--brass-dark); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-info { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-info li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-info strong { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-info a { text-decoration: none; font-size: 1.1rem; }
form.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.hidden { display: none; }

/* Footer */
.site-footer { background: var(--pine); color: #9FB0A7; padding: 48px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.site-footer .brand { color: var(--paper); }
.site-footer .brand-sub { color: #9FB0A7; }
.site-footer a { color: #DCE5DD; }
.disclaimer { width: 100%; font-size: .8rem; color: #93A59C; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-top: 8px; }

/* Long-form pages (privacy policy) */
.prose { max-width: 760px; padding: 64px 24px 88px; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose .summary { background: var(--sage); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 1.5em; }
.prose .summary p:last-child { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .about, .contact, .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .calc, .price-grid { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 56px; }
  section { padding: 64px 0; }
  .portrait { max-width: 360px; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
  .service, form.card, .calc-form { padding: 22px; }
  .choices { grid-template-columns: 1fr; }
  .price-grid { padding: 20px; }
}

/* Accessibility */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--green); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px;
}
.dark a:focus-visible { outline-color: var(--paper); }
.portrait-mark img { width: 140px; height: 140px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
