/* MarkedPaid — the public pages: home page, sign-up and sign-in, the page a customer sees when
   they open an emailed estimate or invoice, the practice checkout and the legal pages.
   Loaded after app.css, so it shares the same color tokens, buttons and form fields. */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.55;
}
.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── larger buttons for public pages ──────────────────────────────────────────────────── */
.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 16px;
  border-radius: 10px;
}
.btn-lg .icon {
  width: 18px;
  height: 18px;
}
.btn-block {
  width: 100%;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn-bright {
  background: #35c9ae;
  border-color: #35c9ae;
  color: #04201a;
}
.btn-bright:hover {
  background: #52d8bf;
  border-color: #52d8bf;
}

/* ── top navigation ───────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 22, 20, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #dfe7e5;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-brand:hover {
  text-decoration: none;
}
.site-links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.site-links a {
  color: #b7c4c0;
}
.site-links a:hover {
  color: #fff;
  text-decoration: none;
}
.site-nav .btn-quiet {
  color: #dfe7e5;
}
.site-nav .btn-quiet:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── hero ─────────────────────────────────────────────────────────────────────────────── */
.site-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(53, 201, 174, 0.22), transparent 62%),
    radial-gradient(700px 420px at 8% 96%, rgba(224, 118, 42, 0.13), transparent 60%),
    #0d1614;
  color: #e9efed;
}
.site-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 84px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(53, 201, 174, 0.14);
  color: #7fe3cf;
  font-size: 13.5px;
  font-weight: 600;
}
.eyebrow .icon {
  width: 15px;
  height: 15px;
}
.site-hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5.2vw, 58px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
}
.site-hero h1 em {
  font-style: normal;
  color: #5fdcc5;
}
.hero-lead {
  max-width: 34em;
  font-size: 18.5px;
  color: #b9c6c2;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  font-size: 14px;
  color: #93a39e;
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note .icon {
  width: 15px;
  height: 15px;
  color: #5fdcc5;
}

/* product pictures: a browser window with a phone overlapping its corner */
.hero-art {
  position: relative;
  min-height: 380px;
}
.frame-browser {
  border-radius: 12px;
  background: #1c2624;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.frame-dots {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
}
.frame-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.frame-browser img,
.frame-phone img {
  display: block;
  width: 100%;
  height: auto;
}
.frame-phone {
  position: absolute;
  right: -6px;
  bottom: -34px;
  width: 31%;
  min-width: 132px;
  padding: 7px;
  border-radius: 26px;
  background: #0a0f0e;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.frame-phone img {
  border-radius: 20px;
}
.hero-art.no-shots {
  display: none;
}

/* ── sections ─────────────────────────────────────────────────────────────────────────── */
.section {
  padding: 84px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 660px;
  margin: 0 auto 44px;
  text-align: center;
}
.kicker {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}
.section h2 {
  margin: 8px 0 12px;
  font-size: clamp(27px, 3.4vw, 38px);
  line-height: 1.12;
  font-weight: 740;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-head p {
  font-size: 17.5px;
  color: var(--ink-2);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  padding: 24px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.section-alt .feature {
  background: var(--surface-2);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.feature-icon .icon {
  width: 22px;
  height: 22px;
}
.feature h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 15.5px;
  color: var(--ink-2);
}

/* three steps, estimate → approval → paid */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
}
.step h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 680;
}
.step p {
  font-size: 15.5px;
  color: var(--ink-2);
}

/* add-ons */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.pack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pack-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.pack-top .addon-icon {
  width: 38px;
  height: 38px;
}
.pack-price {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}
.pack-price small {
  font-weight: 500;
  color: var(--ink-3);
}
.pack h3 {
  font-size: 16.5px;
  font-weight: 680;
}
.pack p {
  font-size: 14.5px;
  color: var(--ink-2);
}
.pack .pack-for {
  font-size: 13px;
  color: var(--ink-3);
}
.packs-label {
  margin: 30px 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.packs-label:first-of-type {
  margin-top: 0;
}

/* pricing */
.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: stretch;
  max-width: 940px;
  margin: 0 auto;
}
.price-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.price-card.is-main {
  border: 2px solid var(--brand);
}
.price-card h3 {
  font-size: 19px;
  font-weight: 700;
}
.price-figure {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 4px;
}
.price-figure strong {
  font-size: 50px;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.03em;
}
.price-figure span {
  color: var(--ink-3);
}
.price-card .ticks {
  margin: 18px 0 22px;
}
.price-card .ticks li {
  font-size: 15.5px;
}
.price-rows {
  margin-top: 14px;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}
.price-row:first-child {
  border-top: 0;
}
.price-row .icon {
  color: var(--brand-text);
}
.price-row b {
  margin-left: auto;
  font-weight: 650;
  white-space: nowrap;
}
.price-foot {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-3);
}

/* questions */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 2px;
  font-size: 17px;
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  margin-left: auto;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink-3);
}
.faq details[open] summary::after {
  content: '–';
}
.faq p {
  padding: 0 2px 20px;
  color: var(--ink-2);
}

/* closing call to action */
.cta-band {
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(53, 201, 174, 0.22), transparent 70%),
    #0d1614;
  color: #e9efed;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
}
.cta-band p {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 17.5px;
  color: #b9c6c2;
}

.site-foot {
  margin-top: auto;
  padding: 30px 0;
  background: #0a110f;
  color: #8a9a95;
  font-size: 14px;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.site-foot a {
  color: #b7c4c0;
}
.site-foot .site-brand {
  font-size: 16px;
}

/* demo strip: one-click entry to the sample businesses */
.demo-strip {
  padding: 56px 0 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.demo-strip .section-head {
  margin-bottom: 28px;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.demo-grid .demo-card {
  height: 100%;
}

/* ── sign-up, sign-in and friends ─────────────────────────────────────────────────────── */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 40px 48px;
  background:
    radial-gradient(640px 420px at 100% 0%, rgba(53, 201, 174, 0.22), transparent 62%),
    radial-gradient(520px 380px at 0% 100%, rgba(224, 118, 42, 0.12), transparent 60%),
    #0d1614;
  color: #c6d2ce;
}
.auth-side h2 {
  margin-top: auto;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.12;
  font-weight: 740;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.auth-points {
  display: grid;
  gap: 14px;
  margin-bottom: auto;
}
.auth-points li {
  display: flex;
  gap: 12px;
  font-size: 16px;
}
.auth-points .icon {
  margin-top: 3px;
  color: #5fdcc5;
}
.auth-side small {
  font-size: 13px;
  color: #7f908b;
}
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-card {
  width: 100%;
  max-width: 430px;
}
.auth-card h1 {
  font-size: 29px;
  line-height: 1.15;
  font-weight: 740;
  letter-spacing: -0.02em;
}
.auth-card .auth-sub {
  margin: 8px 0 24px;
  font-size: 16px;
  color: var(--ink-2);
}
.auth-card .field {
  margin-bottom: 15px;
}
.auth-card .field label {
  font-size: 14px;
}
.auth-card .field input,
.auth-card .field select {
  height: 46px;
  font-size: 16px;
}
.auth-card .form-error {
  margin: 0 0 14px;
}
.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
}
.auth-fine {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
.auth-brand-top {
  display: none;
  margin-bottom: 26px;
  color: var(--ink);
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.label-row a {
  font-size: 13.5px;
}
.pw {
  position: relative;
}
.pw input {
  padding-right: 64px;
}
.pw button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.pw button:hover {
  background: var(--surface-3);
}
.notice {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
}
.notice .icon {
  margin-top: 2px;
}
.notice-good {
  background: var(--good-soft);
  color: var(--good);
}
.notice-info {
  background: var(--info-soft);
  color: var(--info);
}
.notice-warn {
  background: var(--warn-soft);
  color: var(--warn);
}

/* ── the page a customer sees: an estimate or invoice ─────────────────────────────────── */
.pubdoc {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.pubdoc-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.pubdoc-bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 900px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.pubdoc-biz {
  min-width: 0;
  font-size: 16.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pubdoc-main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 16px 40px;
}
.pubdoc-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  max-width: 820px;
  margin: 0 auto 16px;
}
.pubdoc-summary h1 {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.015em;
}
.respond {
  max-width: 820px;
  margin: 18px auto 0;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.respond h2 {
  font-size: 18.5px;
  font-weight: 700;
}
.respond p {
  margin: 4px 0 14px;
  color: var(--ink-2);
}
.respond-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.respond-row .field {
  flex: 1 1 220px;
}
.respond-row .field input {
  height: 46px;
  font-size: 16px;
}
.respond.is-done {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.respond.is-done .icon {
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--good);
}
.respond.is-declined .icon {
  color: var(--ink-3);
}
.pubdoc-foot {
  padding: 18px 16px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.center-card {
  width: 100%;
  max-width: 480px;
  margin: 14vh auto 0;
  padding: 34px 30px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  text-align: center;
}
.center-card h1 {
  margin: 10px 0 8px;
  font-size: 23px;
  font-weight: 720;
}
.center-card p {
  color: var(--ink-2);
}
.center-card .empty-icon {
  margin: 0 auto;
}

/* ── practice checkout ────────────────────────────────────────────────────────────────── */
.checkout {
  width: 100%;
  max-width: 470px;
  margin: 7vh auto 40px;
  padding: 0 16px;
}
.checkout-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
.checkout-flag {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--warn-soft);
  color: var(--warn);
  font-size: 14.5px;
  font-weight: 550;
}
.checkout h1 {
  font-size: 22px;
  font-weight: 720;
}
.checkout-lines {
  margin: 16px 0;
  border-top: 1px solid var(--line);
}
.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.checkout-line.is-total {
  font-weight: 700;
  font-size: 17px;
}
.fake-card {
  display: grid;
  gap: 4px;
  margin: 16px 0 20px;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #18332e, #0d1614);
  color: #dfe7e5;
  font-size: 14px;
}
.fake-card strong {
  font-size: 17px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.fake-card.is-paypal {
  background: linear-gradient(135deg, #0b3a82, #062257);
}

/* ── terms and privacy ────────────────────────────────────────────────────────────────── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.prose h1 {
  margin-bottom: 6px;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: -0.025em;
}
.prose h2 {
  margin: 30px 0 8px;
  font-size: 20px;
  font-weight: 700;
}
.prose p,
.prose li {
  margin-bottom: 10px;
  color: var(--ink-2);
}
.prose ul {
  padding-left: 22px;
  list-style: disc;
}
.light-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.light-nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.light-nav .site-brand {
  color: var(--ink);
}

/* ── smaller screens ──────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-hero .wrap {
    grid-template-columns: 1fr;
    padding-top: 54px;
    padding-bottom: 76px;
  }
  .hero-art {
    max-width: 640px;
  }
  .features,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .site-links {
    display: none;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-brand-top {
    display: inline-flex;
  }
  .auth-main {
    justify-content: flex-start;
    padding-top: 36px;
  }
}
@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }
  .section {
    padding: 56px 0;
  }
  .features,
  .steps,
  .packs {
    grid-template-columns: 1fr;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
  .site-nav .wrap {
    gap: 10px;
  }
  .site-nav .btn-quiet {
    padding: 0 8px;
  }
  .price-card {
    padding: 24px 20px;
  }
  .price-figure strong {
    font-size: 42px;
  }
  .pubdoc-main {
    padding: 16px 10px 32px;
  }
  .respond {
    padding: 18px 16px;
  }
  .respond-row .btn {
    flex: 1 1 auto;
  }
  .checkout-card {
    padding: 22px 18px;
  }
}

@media print {
  .pubdoc-bar,
  .respond,
  .pubdoc-foot,
  .pubdoc-summary {
    display: none !important;
  }
  .pubdoc-main {
    padding: 0;
    max-width: none;
  }
}
