/* farn.to — Toti Web theme (white paper, navy ink, one accent) */

:root {
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --paper-3: #eef1f5;
  --brand: #142850;
  --brand-dark: #0d1c38;
  --ink-soft: #33465f;
  --muted: #5a6b85;
  --line: #dde3ea;
  --accent: #b4552f;
  --accent-dark: #96401f;
  --gold: #c29a5a;
  --field: #7c8a9e;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;

  --wrap: 1160px;
  --radius: 6px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--brand);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

img { display: block; max-width: 100%; height: auto; }

strong { font-weight: 600; color: var(--brand); }

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

::selection { background: #f0d9cf; color: var(--brand); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  font-size: 15px;
  text-decoration: none;
}
.skip:focus {
  left: 12px;
  top: 12px;
  color: #fff;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
  margin-right: auto;
  padding: 6px 0;
}
.wordmark:hover { color: var(--brand); }
.wordmark .dot { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14.5px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--brand); border-bottom-color: var(--brand); }

.nav-back {
  margin-left: auto;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-back:hover,
.nav-back:focus-visible { color: var(--brand); border-bottom-color: var(--brand); }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 14px;
  color: var(--brand);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--brand); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 22px;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-quiet {
  background: var(--paper);
  color: var(--brand);
  border-color: var(--field);
}
.btn-quiet:hover,
.btn-quiet:focus-visible { background: var(--paper-3); color: var(--brand); border-color: var(--brand); }

/* ---------- typographic bits ---------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 62ch;
}

.micro {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero { padding: 64px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  max-width: 22ch;
}

.hero-copy {
  font-size: 18.5px;
  color: var(--ink-soft);
  margin: 22px 0 0;
  max-width: 46ch;
}

.hero-actions { margin-top: 30px; }
.hero-actions .micro { margin-top: 12px; max-width: 40ch; }

.hero-figure { margin: 0; }

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-3);
}

.hero-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- sections ---------- */

.band {
  border-top: 1px solid var(--line);
  padding: 68px 0;
}

.band-tint { background: var(--paper-2); }

.section-head { max-width: 64ch; }
.section-head h2 { margin-bottom: 14px; }

/* ---------- capabilities ---------- */

.caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 44px;
}

.cap { border-top: 2px solid var(--gold); padding-top: 22px; }
.cap h3 { margin-bottom: 10px; }
.cap p { font-size: 16.5px; color: var(--ink-soft); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}

.step {
  counter-increment: step;
  border-bottom: 1px solid var(--line);
  padding: 28px 0 30px;
}

.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 16.5px; color: var(--ink-soft); max-width: 44ch; }

/* ---------- wide figure ---------- */

.wide-figure { margin: 0; }

.wide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-3);
}

.wide-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 26px 24px 28px;
}

.plan-featured { border-color: var(--brand); border-width: 1px; }

.plan-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.plan-price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  margin: 0;
}

.plan-price.pending {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--brand);
  padding: 9px 0 8px;
}

.plan-terms {
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.plan li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  line-height: 1.5;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 8px;
  height: 1px;
  background: var(--field);
}
.plan li:last-child { margin-bottom: 0; }

.plan-note {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 72ch;
}

/* ---------- faq ---------- */

.faq {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-mark {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
  top: 1px;
}
.faq-mark::before,
.faq-mark::after {
  content: "";
  position: absolute;
  background: var(--muted);
  transition: transform .18s ease, background-color .18s ease;
}
.faq-mark::before { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq-mark::after { left: 6px; top: 0; width: 1.5px; height: 14px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); }
.faq-item summary:hover .faq-mark::before,
.faq-item summary:hover .faq-mark::after { background: var(--accent); }

.faq-body { padding: 0 0 22px; max-width: 68ch; }
.faq-body p { font-size: 16.5px; color: var(--ink-soft); }
.faq-body p + p { margin-top: .8em; }

/* ---------- closing ---------- */

.closing {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 64px 0;
}

.closing-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.closing h2 { max-width: 24ch; }
.closing p { margin-top: 12px; max-width: 52ch; color: var(--ink-soft); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 34px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-brand .wordmark { font-size: 20px; margin: 0 0 10px; display: inline-block; }
.footer-brand p { max-width: 30ch; font-size: 14px; color: var(--muted); }

.footer-col .col-title {
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.footer-base p { margin: 0; }

/* ---------- legal pages ---------- */

.legal {
  max-width: 780px;
  padding: 44px 0 76px;
}

.legal h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin-bottom: 10px;
}

.legal .stand { font-size: 13.5px; color: var(--muted); margin: 0 0 28px; }

.legal h2 {
  font-size: 1.3rem;
  margin: 38px 0 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal h3 { font-size: 1.05rem; margin: 22px 0 8px; }

.legal p,
.legal li { font-size: 16px; color: var(--ink-soft); }

.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }

.legal a { color: var(--accent); }

.legal address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1em;
}

.draft-note {
  border: 1px solid var(--gold);
  border-left-width: 4px;
  background: #fdfaf5;
  border-radius: 4px;
  padding: 14px 18px;
  margin: 0 0 34px;
  font-size: 14px;
  color: var(--brand);
}
.draft-note strong { display: block; margin-bottom: 3px; letter-spacing: .01em; }
.draft-note p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 14px;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure { order: 2; }
  .hero h1 { max-width: 20ch; }
  .caps { grid-template-columns: 1fr; gap: 0; margin-top: 30px; }
  .cap { border-top: 1px solid var(--line); padding: 24px 0; }
  .cap:first-child { border-top: 2px solid var(--gold); }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .wide-figure img { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .header-inner { gap: 12px; }
  .nav-back {
  margin-left: auto;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav-back:hover,
.nav-back:focus-visible { color: var(--brand); border-bottom-color: var(--brand); }

.nav-toggle { display: inline-block; margin-left: auto; }
  .header-cta { display: none; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 13px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a:last-child { border-bottom: 0; }

  .band { padding: 48px 0; }
  .closing { padding: 44px 0; }
  .closing-grid { gap: 24px; align-items: flex-start; }
  .section-head h2 { font-size: 1.55rem; }
  .legal { padding: 30px 0 56px; }
  .legal h2 { margin-top: 30px; padding-top: 22px; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-copy { font-size: 17px; }
  .hero-figure figcaption { font-size: 12px; }
  .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan { padding: 22px 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .closing, .site-footer { display: none; }
  body { font-size: 12pt; }
  a { color: var(--brand); }
}
