/* ==========================================================================
   BidFern — bidfern.com
   Global stylesheet
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --green: #15803D;
  --green-dark: #106232;
  --green-soft: #E7F1E9;
  --orange: #EA580C;
  --orange-dark: #C2470A;
  --ink: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F5F7F4;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .05);
  --shadow: 0 4px 16px rgba(17, 24, 39, .07), 0 1px 3px rgba(17, 24, 39, .05);
  --shadow-lg: 0 18px 44px rgba(17, 24, 39, .12), 0 4px 12px rgba(17, 24, 39, .06);

  --font-display: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --wrap: 1160px;
  --header-h: 72px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.15rem, 6vw, 3.55rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.6vw, 1.3rem); }
h4 { font-size: 1.05rem; }

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

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

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .35rem; }

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

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

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

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

.section { padding: 64px 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 44px 0; }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }

.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--bg-alt); color: var(--ink); border-color: #cfd6cf; }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); color: #fff; }

.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex: none; }

.nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  text-decoration: none;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--green); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .login-link {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.header-actions .login-link:hover { color: var(--green); background: var(--bg-alt); }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.burger span {
  display: block;
  position: relative;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .18s ease, top .18s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav a:hover { color: var(--green); }
.mobile-nav .btn { margin-top: 4px; }

@media (min-width: 940px) {
  .nav { display: block; }
  .burger { display: none; }
  .mobile-nav, .mobile-nav.is-open { display: none; }
  .header-actions .login-link { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 64px; background: var(--bg); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-micro { font-size: .92rem; color: var(--muted); margin: 0; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 56px; }
}

/* ---------- Hero mockup: notes + phone ---------- */
.showcase { position: relative; padding: 8px 0 24px; }

.notes-scrap {
  position: relative;
  z-index: 1;
  max-width: 250px;
  margin: 0 0 -26px 0;
  padding: 18px 20px 24px;
  background:
    repeating-linear-gradient(180deg, transparent, transparent 27px, #DDE5DC 27px, #DDE5DC 28px),
    #FFFDF5;
  border: 1px solid #E7E2CE;
  border-radius: 4px 4px 10px 4px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  font-family: var(--font-hand);
  font-size: 1.24rem;
  line-height: 28px;
  color: #2A3A2C;
}
.notes-scrap .notes-label {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9AA79B;
  line-height: 28px;
}

.phone {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 310px;
  margin-left: auto;
  padding: 12px;
  background: #111827;
  border-radius: 34px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
}
.phone-bar {
  background: var(--green);
  color: #fff;
  padding: 16px 18px 14px;
}
.phone-bar .brandline {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
}
.phone-bar .brandline svg { width: 20px; height: 20px; }
.phone-bar .doc-title { font-size: 1.05rem; font-weight: 700; font-family: var(--font-display); margin-top: 10px; }
.phone-bar .doc-sub { font-size: .78rem; opacity: .85; }

.phone-body { padding: 14px 18px 18px; }
.qline {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
}
.qline span:first-child { color: var(--ink); }
.qline .qty { color: var(--muted); font-size: .74rem; display: block; }
.qline span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.qtotal {
  display: flex; justify-content: space-between;
  padding: 12px 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}
.qsub { display: flex; justify-content: space-between; padding: 6px 0; font-size: .8rem; color: var(--muted); }
.fake-btn {
  margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px;
  border-radius: var(--radius-pill);
}
.phone-caption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 14px; }

@media (min-width: 560px) {
  .notes-scrap { max-width: 290px; margin-bottom: -70px; }
}

/* ---------- Social proof ---------- */
.proof { background: var(--bg-alt); padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof p {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  font-size: .95rem;
  margin: 0 0 18px;
}
.proof-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 34px;
}
.proof-logos img { height: 34px; width: auto; filter: grayscale(1); opacity: .55; }

/* ---------- Problem cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 16px;
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--orange { background: #FDEBDD; color: var(--orange); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 22px; list-style: none; padding: 0; margin: 0 0 44px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .98rem; }

.photo-card { padding: 0; overflow: hidden; }
.photo-card img { width: 100%; height: auto; }
.photo-card figcaption { padding: 16px 20px; color: var(--muted); font-size: .95rem; }

.cookie-prefs .btn { margin-top: 14px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 980px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: 2px solid var(--green);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan-price .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
}
.plan-price .unit { color: var(--muted); font-size: .98rem; font-weight: 500; }
.plan-billing { font-size: .86rem; color: var(--muted); margin: 0 0 12px; }
.plan-best {
  font-size: .92rem;
  color: var(--ink);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 0 0 18px;
}
.plan--featured .plan-best { background: var(--green-soft); }
.plan-features { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: .96rem;
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2315803D'%3E%3Cpath d='M8.1 15.2 3.4 10.5l1.6-1.6 3.1 3.1 6.9-6.9 1.6 1.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.plan-features li.is-lead { font-weight: 600; padding-left: 0; }
.plan-features li.is-lead::before { display: none; }

.pricing-note { max-width: 780px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: .9rem; }
.pricing-compare {
  max-width: 780px;
  margin: 16px auto 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.section--alt .pricing-compare { background: #fff; }

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { display: flex; gap: 2px; margin-bottom: 14px; color: #EA580C; }
.stars svg { width: 18px; height: 18px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 1.02rem; }
.quote-card figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.quote-card figcaption strong { display: block; color: var(--ink); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath d='M10 14 3.5 7.5 5 6l5 5 5-5 1.5 1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] summary { background: var(--bg-alt); }
.faq-answer { padding: 4px 20px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 20px; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 42em; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 52px 0 28px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1.5fr; gap: 30px; } }

.footer-col h4 {
  font-size: .84rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 4px; }
.footer-col ul a,
.footer-col ul .linklike {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--ink);
  font-size: .96rem;
  text-decoration: none;
}
.footer-col ul a:hover,
.footer-col ul .linklike:hover { color: var(--green); text-decoration: underline; }
.footer-about p { color: var(--muted); font-size: .95rem; margin: 14px 0 0; }
.footer-about .brand { margin-bottom: 4px; }
.footer-contact address {
  font-style: normal;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
}
.footer-contact address strong { color: var(--ink); font-weight: 600; }
.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 150;
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h2 { font-size: 1.12rem; margin-bottom: 6px; }
.cookie-banner p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-prefs { display: none; margin: 4px 0 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.cookie-prefs.is-open { display: block; }
.cookie-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cookie-row:last-child { border-bottom: 0; }
.cookie-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green); }
.cookie-row .cookie-row-text { font-size: .92rem; }
.cookie-row strong { display: block; font-family: var(--font-display); }
.cookie-row span { color: var(--muted); }

/* ---------- Auth page ---------- */
.auth { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 940px) { .auth { grid-template-columns: 1fr 1fr; } }

.auth-form-side {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px 64px;
  background: var(--bg);
  order: 1;
}
.auth-panel {
  background: var(--green);
  color: #fff;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 0;
}
@media (min-width: 940px) {
  .auth-panel { order: 1; padding: 56px 48px; }
  .auth-form-side { order: 0; padding: 56px 40px 72px; align-items: center; }
}
.auth-panel .brand { color: #fff; }
.auth-panel .panel-line {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 26px 0 14px;
}
.auth-panel .panel-sub { color: rgba(255,255,255,.85); max-width: 34em; margin-bottom: 28px; }
.auth-panel .panel-list { list-style: none; margin: 24px 0 0; padding: 0; color: rgba(255,255,255,.92); }
.auth-panel .panel-list li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .96rem; }
.auth-panel .panel-list li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M8.1 15.2 3.4 10.5l1.6-1.6 3.1 3.1 6.9-6.9 1.6 1.6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.quote-preview {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  max-width: 360px;
}
.quote-preview img { border-radius: 8px; width: 100%; height: auto; }
.quote-preview .qp-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--green);
  padding-bottom: 10px; margin-bottom: 12px;
}
.quote-preview .qp-head strong { font-family: var(--font-display); }
.quote-preview .qp-head span { font-size: .78rem; color: var(--muted); }

.auth-card { width: 100%; max-width: 480px; }
.auth-card h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); margin-bottom: 8px; }
.auth-intro { color: var(--muted); margin-bottom: 24px; }

.auth-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 26px;
}
.auth-toggle button {
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--muted);
  cursor: pointer;
}
.auth-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .94rem;
  margin-bottom: 6px;
}
.field .hint { display: block; font-weight: 400; font-family: var(--font-body); color: var(--muted); font-size: .84rem; margin-top: 2px; }

.input, .select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.input:hover, .select:hover { border-color: #cfd6cf; }
.input:focus, .select:focus { border-color: var(--green); outline: 3px solid rgba(21,128,61,.22); outline-offset: 0; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236B7280'%3E%3Cpath d='M10 14 3.5 7.5 5 6l5 5 5-5 1.5 1.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 42px;
}

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 82px; }
.toggle-pass {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
}
.toggle-pass:hover { background: var(--bg-alt); }

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .95rem;
  margin-bottom: 18px;
}
.checkbox input[type="checkbox"] {
  width: 22px; height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--green);
}

.field-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.field-row .checkbox { margin-bottom: 0; }
.link-plain { font-size: .95rem; }

.error-msg {
  display: none;
  color: #B42318;
  font-size: .87rem;
  margin-top: 6px;
}
.field.has-error .input,
.field.has-error .select { border-color: #B42318; }
.field.has-error .error-msg,
.checkbox-field.has-error .error-msg { display: block; }

.form-note { color: var(--muted); font-size: .92rem; margin-top: 18px; text-align: center; }

.form-success {
  display: none;
  background: var(--green-soft);
  border: 1px solid #BFDDC7;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #14532D;
  font-size: .95rem;
  margin-bottom: 20px;
}
.form-success.is-visible { display: block; }

.auth-form[hidden] { display: none; }

/* ---------- Policy pages ---------- */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .updated { color: var(--muted); font-size: .95rem; margin: 0; }
.page-head .intro { color: var(--muted); margin-top: 14px; max-width: 60ch; }

.legal { padding: 48px 0 72px; }
.legal-inner { max-width: 780px; margin: 0 auto; }
.legal h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin: 40px 0 12px;
  padding-top: 8px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #374151; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .5rem; }

.toc {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 36px;
}
.toc h2 { font-size: 1rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 1; }
@media (min-width: 700px) { .toc ol { columns: 2; column-gap: 30px; } }
.toc li { margin-bottom: .3rem; font-size: .95rem; }

.contact-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 16px;
}
.contact-block address { font-style: normal; line-height: 1.8; }
.contact-block address strong { font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--line); border-radius: var(--radius); }
table.cookies { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
table.cookies th, table.cookies td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cookies th { background: var(--bg-alt); font-family: var(--font-display); font-size: .86rem; }
table.cookies tr:last-child td { border-bottom: 0; }

.callout {
  background: #FDEBDD;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 20px 0;
}
.callout p { margin: 0; color: #7C2D12; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 0 110px; }
.notfound .code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 10px;
}
.notfound p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.notfound .btn { margin: 0 6px 10px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover { transform: none; }
}

/* ---------- Inline button that reads as a link (cookie settings) ---------- */
.linklike {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer .linklike { text-decoration: none; }
.site-footer .linklike:hover,
.linklike:hover { color: var(--orange); text-decoration: underline; }
