@font-face {
  font-family: "Fraunces Local";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit Local";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 400 650;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ecdf;
  --ink: #1c1915;
  --muted: #5c564c;
  --pine: #1f3d34;
  --pine-deep: #163028;
  --copper: #c4622d;
  --copper-deep: #8d3f16;
  --line: rgba(28, 25, 21, 0.12);
  --sand: #f7f1e4;
  --pine-tint: #e4efe8;
  --copper-tint: #f8e6da;
  --ok-bg: #e5f3e6;
  --ok-ink: #1d6b3a;
  --soon-bg: #fff1d6;
  --soon-ink: #8a5a10;
  --bad-bg: #fde4dc;
  --bad-ink: #9d2c1a;
  --shadow: 0 18px 50px rgba(31, 49, 40, 0.12);
  --serif: "Fraunces Local", "Liberation Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit Local", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(196, 98, 45, 0.18), transparent 55%),
    radial-gradient(800px 480px at 100% 0%, rgba(31, 61, 52, 0.16), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}
body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--pine), var(--copper));
}
img { max-width: 100%; }
a { color: var(--pine-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 0.8rem; }
code { font-family: "Cascadia Mono", ui-monospace, monospace; font-size: 0.92em; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 5;
}
.skip:focus { top: 0.5rem; }

main, .nav, .footer, .narrow-page {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 650; }
.mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.4rem;
  background:
    linear-gradient(#f6f1e7, #f6f1e7) center 64% / 0.72rem 2px no-repeat,
    linear-gradient(#c4622d, #c4622d) center 0.22rem / 0.72rem 0.28rem no-repeat,
    #1f3d34;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.1rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--copper-deep); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--copper-deep);
  margin-bottom: 0.6rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.fine { color: var(--muted); font-size: 0.92rem; }
.optional { color: var(--muted); font-weight: 400; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0 0.6rem; }

.button, button.button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--pine);
  color: #f6f1e7;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
}
.button:hover { background: var(--pine-deep); }
.button.secondary { background: transparent; color: var(--pine-deep); box-shadow: inset 0 0 0 1.5px rgba(31, 61, 52, 0.35); }
.button.secondary:hover { background: rgba(31, 61, 52, 0.06); }
.button.copper { background: var(--copper); color: #fffaf5; }
.button.copper:hover { background: var(--copper-deep); }
.button.small { padding: 0.45rem 0.85rem; min-height: 40px; font-size: 0.95rem; }
.button:disabled { opacity: 0.6; cursor: wait; }
.text-button { background: none; border: 0; padding: 0; color: var(--pine-deep); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; }

.hero-visual { min-height: 460px; position: relative; overflow: hidden; border-radius: 28px; }
.mock { position: relative; height: 460px; }
.mock-card {
  position: absolute;
  border-radius: 22px;
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(28, 25, 21, 0.06);
}
.mock-card.back {
  background: #d7e6dc;
  inset: 24px -6px auto 34px;
  height: 78%;
  transform: rotate(-7deg);
}
.mock-card.mid {
  background: #f6d9c8;
  inset: 58px 28px auto -8px;
  height: 74%;
  transform: rotate(4.5deg);
}
.mock-card.front {
  background: #fffaf3;
  inset: 92px 12px 0 12px;
  display: flex;
  flex-direction: column;
}
.mock-kicker { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; margin: 0 0 0.35rem; }
.mock-title { font-family: var(--serif); font-size: 1.45rem; margin: 0 0 0.3rem; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; font-weight: 650; }
.mock-tag { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mock-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.mock-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.mock-list strong, .vendor-name { display: block; }
.mock-list span, .vendor-meta { display: block; color: var(--muted); font-size: 0.92rem; }

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
}
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.expiring { background: var(--soon-bg); color: var(--soon-ink); }
.chip.expired { background: var(--bad-bg); color: var(--bad-ink); }

.band { padding: 1.5rem 0 2.4rem; }
.section-head { max-width: 40rem; margin-bottom: 1.2rem; }
.card-grid, .feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tint-card, .panel {
  border-radius: 22px;
  padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid rgba(28, 25, 21, 0.06);
  box-shadow: 0 10px 30px rgba(31, 49, 40, 0.05);
}
.tint-sand { background: var(--sand); }
.tint-pine { background: var(--pine-tint); }
.tint-copper { background: var(--copper-tint); }
.num {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pine);
  color: #f6f1e7;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: center;
}
.price-card {
  background: var(--pine-deep);
  color: #f6f1e7;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.price-card ul { padding-left: 1.1rem; margin: 0 0 1.1rem; }
.price-card li { margin: 0.35rem 0; }
.price-amount { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 0.8rem; }
.price-amount span { font-size: 3.2rem; letter-spacing: -0.04em; }
.on-dark { color: rgba(246, 241, 231, 0.78); }
.price-card .button { width: 100%; margin-bottom: 0.35rem; }
.price-card .button.yearly {
  background: transparent;
  color: #f6f1e7;
  box-shadow: inset 0 0 0 1.5px rgba(246, 241, 231, 0.6);
}
.price-card .button.yearly:hover { background: rgba(246, 241, 231, 0.08); }
.price-split { height: 1px; background: rgba(246, 241, 231, 0.2); margin: 1rem 0; }

.faq { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  background: rgba(255, 250, 243, 0.76);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
}
.faq-item summary { cursor: pointer; font-weight: 650; }
.faq-item p { margin: 0.7rem 0 0.2rem; color: var(--muted); }

.app-head, .account-bar, .form-actions, .signin-row, .csv-box, .csv-actions, .banner {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}
.app-head, .csv-box, .banner { justify-content: space-between; }
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.8fr);
  gap: 0.9rem;
  margin-top: 0.9rem;
}
.list-panel { background: rgba(255, 250, 243, 0.8); min-height: 180px; }
.vendor {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.vendor:last-child { border-bottom: 0; }
.vendor-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.vendor-actions button {
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 650;
  color: var(--pine-deep);
  cursor: pointer;
  min-height: 44px;
  padding: 0 0.2rem;
}
.empty { color: var(--muted); padding: 1rem 0; }
.alert, .form-error { color: var(--bad-ink); }
.alert, .banner {
  background: #fff6ea;
  border: 1px solid rgba(196, 98, 45, 0.35);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-top: 0.8rem;
}
.banner p { margin: 0; }
form label { display: block; font-weight: 650; margin: 0.7rem 0 0.3rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid rgba(28, 25, 21, 0.16);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  min-height: 44px;
}
textarea { min-height: 72px; resize: vertical; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 600; }
.check input { width: auto; min-height: 1.1rem; margin-top: 0.25rem; }
.csv-box { margin-top: 0.9rem; background: rgba(255, 250, 243, 0.8); align-items: flex-end; }
.file-label input { margin-top: 0.35rem; }
.signin { margin-top: 0.9rem; background: rgba(255, 250, 243, 0.8); }
.signin-row input { flex: 1 1 200px; }
.disclaimer { margin-top: 1.2rem; color: var(--muted); max-width: 50rem; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.narrow-page { padding: 1.5rem 0 3rem; }
.narrow-page .panel { max-width: 40rem; }

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

@media (max-width: 860px) {
  .hero, .card-grid, .feature-list, .price-layout, .app-grid { grid-template-columns: 1fr; }
  .hero-visual, .mock { min-height: 390px; height: auto; }
  .mock { height: 390px; }
  .mock-card.back { inset: 8px 10px auto 24px; height: 70%; }
  .mock-card.mid { inset: 36px 20px auto 0; height: 68%; }
  .mock-card.front { inset: 72px 6px 0 6px; }
  .price-amount span { font-size: 2.7rem; }
}

@media (max-width: 420px) {
  .mock-list li, .vendor { flex-direction: column; align-items: stretch; }
  .chip { white-space: normal; }
  .vendor-side { width: 100%; }
  .vendor-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    width: 100%;
  }
  .vendor-actions button {
    width: 100%;
    text-align: left;
    white-space: normal;
    padding: 0.55rem 0.15rem;
  }
}

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

/* Guides */
.guide { padding: 1.5rem 0 3rem; max-width: 46rem; }
.guide .eyebrow a { color: inherit; text-decoration: none; }
.guide h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 0.9rem; }
.guide h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 1.8rem 0 0.6rem; }
.guide .answer { color: var(--ink); background: var(--pine-tint); border-radius: 18px; padding: 1rem 1.1rem; margin-bottom: 1.4rem; }
.guide-body ul, .guide-body ol { padding-left: 1.6rem; }
.guide-body ol { padding-left: 2rem; }
.guide-body li { margin-bottom: 0.45rem; }
.guide-body blockquote { margin: 0.6rem 0 1rem; }
.guide-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1.2rem; font-size: 0.97rem; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); }
.guide-table thead th { font-weight: 650; background: var(--sand); }
.guide-cta { margin-top: 2rem; }
.guide-cta h2 { margin-top: 0; }
.guide-more ul { padding-left: 1.2rem; }
.guide-list { margin-top: 1rem; }
.guide-list .tint-card h2.guide-card-title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.guide-list .tint-card h2 a { color: var(--ink); }
.guide-list .tint-card p { color: var(--muted); font-size: 0.97rem; }
main.guide:has(.guide-list) { max-width: none; }
@media (max-width: 860px) {
  .guide-table { font-size: 0.9rem; display: block; overflow-x: auto; }
  .guide-table th, .guide-table td { padding: 0.45rem 0.4rem; }
}
