/* Index & Ivy site catalog. Matches the main arena theme: warm paper,
 * ivy green, gold marks, plum band, hard offset shadows, Bricolage
 * Grotesque display, Instrument Sans body, Caveat handwritten notes,
 * index-card vetting cards with an Available stamp. */
:root {
  --paper: #f6f2e8;
  --paper-2: #efe9da;
  --card: #fbf8f0;
  --ink: #17130f;
  --ink-2: #3c352c;
  --ink-3: #6b6253;
  --line: #dbd2be;
  --line-strong: #b7ac92;
  --ivy: #1f6b4a;
  --ivy-dark: #0f3b2a;
  --gold: #e0a526;
  --stamp: #b5412f;
  --plum: #2E2A4F;
  --plum-deep: #201D3A;
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-lg: 6px 6px 0 var(--ink);
  --radius: 14px;
  --radius-sm: 6px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

a { color: var(--ivy); }
a:hover { color: var(--ivy-dark); }

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

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px;
}
.gold-underline {
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% .32em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  padding: 0 .08em;
}

/* Handwritten annotation, like the theme: Caveat, warm brown ink,
 * tilted a little, with a curved arrow. */
.annotation {
  display: inline-flex; align-items: flex-end; gap: 6px;
  margin: 14px 0 0; max-width: 260px;
}
.annotation__text {
  font-family: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  font-size: 1.3rem; font-weight: 600; line-height: 1.05;
  color: var(--ink-2); transform: rotate(-2deg); display: block;
}
.annotation__arrow { flex: none; }

/* Header: paper, like the theme header, with the brand mark. */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.site-header__inner { display: flex; align-items: center; gap: 12px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand__mark { flex: none; }
.brand__text {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 24px; font-weight: 800; letter-spacing: -.01em;
}
.brand__text span { color: var(--gold); }
.brand-sub {
  color: var(--ink-3); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; margin-top: 4px;
}
.header-auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.auth-user { color: var(--ivy-dark); font-size: 14px; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-auth { padding: 8px 14px; font-size: 14px; }

/* Access gate: two columns, copy left, index-drawer art right. */
.access-gate {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: clamp(24px, 3.4vw, 40px) 0;
}
.access-gate__copy h1 {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08;
  letter-spacing: -.015em; margin: 0 0 12px;
}
.access-gate__copy > p { color: var(--ink-2); margin: 0 0 20px; max-width: 520px; }
.access-gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.access-gate .auth-divider { margin: 18px 0; max-width: 420px; }
.access-gate .btn-google { max-width: 420px; }
.access-gate__media { display: flex; justify-content: center; position: relative; }
.hero-img { width: 100%; max-width: 560px; height: auto; border: 1.5px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-hard); display: block; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.trust-pill { border: 1.5px solid var(--ink); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 0.86rem; font-weight: 600; box-shadow: 2px 2px 0 var(--ink); }
.how-it-works { margin: 34px 0 8px; }
.how-it-works h2 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.08; margin: 6px 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-hard); padding: 18px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ivy); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; border: 1.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); margin-bottom: 10px; }
.steps h3 { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.access-gate .annotation { margin-top: 18px; }

/* Intro */
.intro { padding: 36px 0 8px; }
.intro h1 {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: clamp(30px, 4vw, 40px); line-height: 1.12;
  letter-spacing: -.015em; margin: 0 0 8px;
}
.intro p { color: var(--ink-2); margin: 0 0 6px; max-width: 640px; }
.intro .annotation { margin-top: 10px; }

/* Domain check */
.check { margin: 8px 0 18px; }
#domains {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  padding: 12px 14px;
  resize: vertical;
  min-height: 96px;
}
#domains:focus { outline: 2px solid var(--ivy); outline-offset: 2px; }
.check-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 10px 0 12px;
}
.domain-count { color: var(--ink-3); font-size: 14px; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--ivy); font: inherit; font-size: 14px;
  padding: 0; text-decoration: underline;
}
.link-btn:hover { color: var(--ivy-dark); }
.btn-check { font-size: 17px; padding: 13px 16px; }

/* Results card */
.results-card {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  padding: 28px;
  margin-bottom: 8px;
}
.results-empty { text-align: center; padding: 20px 12px; }
.results-empty-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.results-empty-title { font-family: "Bricolage Grotesque", Georgia, serif; font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.results-empty-text { color: var(--ink-3); margin: 0; }
.results-summary { font-weight: 600; margin: 0 0 16px; }

.bulk-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 0 0 16px;
}
.result-count { color: var(--ink-3); font-size: 14px; }
.bulk-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Vetting cards: index cards with a ruled head, a metric grid and a stamp. */
.vcards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.vcard {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hard);
  color: var(--ink-2);
  padding: 0;
  overflow: hidden;
}
.vcard::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 54px; height: 1px;
  background: #d9b7ae; pointer-events: none;
}
.vcard__head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px 12px; min-height: 55px;
}
.vcard__domain {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.15;
  letter-spacing: -.015em; color: var(--ink);
  overflow-wrap: anywhere; margin: 0;
}
.stamp {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 5px;
  border: 2px solid var(--stamp); border-radius: 3px;
  color: var(--stamp); background: transparent;
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; transform: rotate(2deg);
  pointer-events: none;
}
.stamp--ivy {
  border-color: var(--ivy); color: var(--ivy);
  box-shadow: inset 0 0 0 1.5px rgba(31, 107, 74, .2);
}
.vcard__metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 14px; margin: 0; padding: 14px 16px;
}
.vcard__metrics div { min-width: 0; }
.vcard__metrics dt {
  font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 2px;
}
.vcard__metrics dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.vcard__foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
}
.vcard__sample { font-size: 14px; }
.vcard__sample .muted { color: var(--ink-3); }
.vcard__check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  margin-left: auto;
}
.vcard__check input { accent-color: var(--ivy); width: 16px; height: 16px; cursor: pointer; }

.notfound-title { font-weight: 700; margin: 22px 0 4px; }
.notfound-text { color: var(--ink-2); margin: 0 0 10px; }
.notfound-list { margin: 0; padding-left: 20px; color: var(--ink-2); }
.notfound-list li { margin-bottom: 3px; }

/* Buttons */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; font: inherit; font-weight: 600; padding: 10px 16px;
  text-decoration: none; display: inline-block;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ivy); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--ivy-dark); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: #c98f1b; }
.btn--gold:hover:not(:disabled) { background: #c98f1b; color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ivy); color: var(--ivy-dark); }
.btn-block { width: 100%; margin-top: 6px; }

.price-btn {
  background: var(--gold); color: var(--ink); border: 1px solid #c98f1b;
  border-radius: var(--radius-sm); cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 700; padding: 7px 12px; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.price-btn:hover { background: #c98f1b; color: #fff; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

/* Outreach: plum band, like the theme's agencies band. */
.outreach {
  background: var(--plum); color: #f6f2e8;
  border-radius: var(--radius); padding: 28px; margin: 36px 0 48px;
  box-shadow: var(--shadow-hard);
}
.outreach h2 {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 26px; margin: 0 0 8px; color: #f6f2e8;
}
.outreach p { margin: 0; color: #e8e2d2; max-width: 720px; }
.outreach p + p { margin-top: 14px; }
.outreach a { color: var(--gold); }
.outreach a:hover { color: #f0c25e; }
.outreach a.btn--gold { color: var(--ink); }
.outreach a.btn--gold:hover { color: #fff; }
.outreach-cta { margin-top: 12px !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--ink-3); font-size: 14px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(23, 19, 15, .55);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; background: var(--card); color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius); max-width: 560px; width: 100%;
  padding: 28px; box-shadow: var(--shadow-hard-lg);
}
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 28px; line-height: 1; color: var(--ink-3);
}
.modal-card h2 {
  font-family: "Bricolage Grotesque", Georgia, serif;
  font-size: 26px; margin: 0 0 6px;
}
.modal-text { color: var(--ink-2); margin: 0 0 18px; }
.modal-text a { color: var(--ivy); }

.form-error {
  background: #fbe9e5; border: 1px solid #e5b3a9; color: #7a2a1d;
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px;
}
.form-success {
  background: #e3efe7; border: 1px solid #bcd8c6; color: var(--ivy-dark);
  border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px;
}
.form-success p { margin: 4px 0 0; }

#price-form fieldset, #auth-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; margin: 0 0 16px; }
#price-form legend { font-weight: 700; padding: 0 6px; }
.selected-sites { list-style: none; margin: 0 0 10px; padding: 0; }
.selected-sites li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--paper-2); border-radius: var(--radius-sm);
  padding: 7px 10px; margin-bottom: 6px; font-size: 14px;
}
.selected-sites .remove {
  background: none; border: none; cursor: pointer; color: var(--stamp);
  font-weight: 700; font-size: 14px; padding: 2px 6px;
}
.selected-sites .muted { color: var(--ink-3); }
.custom-add { display: flex; gap: 8px; }
.custom-add input { flex: 1; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field input { width: 100%; }
.field .optional { font-weight: 400; color: var(--ink-3); font-size: 14px; }

input[type="search"], input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}
input:focus, select:focus { outline: 2px solid var(--ivy); outline-offset: 1px; }

.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 14px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.google-g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-strong);
  color: #4285f4; font-weight: 800; font-size: 14px;
}
.auth-forgot { margin: 0 0 12px; text-align: right; }
.auth-switch { text-align: center; color: var(--ink-2); margin: 14px 0 0; }

@media (max-width: 820px) {
  .access-gate { grid-template-columns: 1fr; }
  .access-gate__media { order: -1; }
  .hero-img { max-width: 520px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .intro h1 { font-size: 27px; }
  .outreach { padding: 22px; }
  .modal { padding: 16px 10px; }
  .modal-card { padding: 22px 18px; }
  .brand-sub { display: none; }
  .auth-user { display: none; }
}
