/* Quoto website: charcoal, bone and amber, matching the app. */
:root {
  --charcoal: #1B1F1C;
  --charcoal-2: #242A26;
  --line: #3A423C;
  --bone: #F5F2EA;
  --paper: #FFFDF8;
  --bone-line: #E2DACB;
  --text-soft: #D9D4C7;
  --text-quiet: #B3AE9F;
  --amber: #C6841F;
  --amber-bright: #E3A33C;
  --ink: #1B1F1C;
  --ink-soft: #3F3A30;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--amber-bright); }
a:hover { color: #F0C477; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--amber-bright); outline-offset: 3px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.06em; }
.site-nav { display: flex; gap: 22px; flex: 1; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--text-quiet); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 0; }
.site-nav a:hover { color: var(--bone); }
.site-nav a.btn { color: var(--ink); padding: 11px 18px; }
.site-nav a.btn:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .site-nav.has-cta a:not(.btn) { display: none; }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 18px; padding: 16px 26px; border-radius: 14px; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-bright); color: var(--ink); }
.btn-ghost { color: var(--bone); border: 2px solid #A09B85; padding: 14px 24px; }
.btn-ghost:hover { color: var(--bone); border-color: var(--bone); }
.btn-small { font-size: 16px; padding: 11px 18px; border-radius: 12px; }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-dark:hover { background: #2C332E; color: var(--bone); }

/* Type */
.eyebrow { font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-bright); margin: 0; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 0.95; margin: 0; text-wrap: balance; }
h1.display { font-size: clamp(56px, 9vw, 104px); }
h2.display { font-size: clamp(40px, 6vw, 60px); }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-soft); margin: 0; max-width: 34em; }

/* Hero */
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 48px 88px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { font-size: 15px; color: var(--text-quiet); margin: 0; }
.hero-phone { flex: 1 1 340px; display: flex; justify-content: center; }

.phone { width: 320px; max-width: 100%; border-radius: 44px; background: #0F1210; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.phone-screen { border-radius: 34px; background: var(--charcoal); border: 1px solid var(--line); padding: 22px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.ph-card { padding: 14px 16px; border-radius: 18px; background: var(--charcoal-2); }
.ph-company { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .03em; }
.ph-sub { font-size: 12px; color: var(--text-quiet); }
.ph-total { padding: 16px; border-radius: 20px; background: var(--amber); color: var(--ink); }
.ph-total small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.ph-total strong { display: block; font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; }
.ph-total span { font-size: 13px; font-weight: 600; }
.ph-lines { padding: 6px 16px; }
.ph-line { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.ph-line:last-child { border-bottom: 0; }
.ph-send { height: 48px; border-radius: 14px; background: var(--amber); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* How it works */
.section { padding-block: 0 104px; }
.section .wrap { display: flex; flex-direction: column; gap: 40px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; border-radius: 20px; background: var(--charcoal-2); display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 44px; color: var(--amber-bright); line-height: 1; }
.step h3 { margin: 0; font-size: 24px; }
.step p { margin: 0; font-size: 17px; color: var(--text-soft); }

/* Trust band */
.band-light { background: var(--bone); color: var(--ink); }
.band-light .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-block: 96px; }
.band-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.band-copy p { margin: 0; font-size: 20px; color: var(--ink-soft); max-width: 32em; }
.trust-list { flex: 1 1 380px; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.trust-list li { padding: 20px 22px; border-radius: 16px; background: var(--paper); border: 1px solid var(--bone-line); font-size: 18px; }

/* Sample quote */
.sample .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 104px; }
.sample-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sample-copy p { margin: 0; color: var(--text-soft); font-size: 19px; }
.sample-copy .quiet { color: var(--text-quiet); font-size: 17px; }
.sample-doc-wrap { flex: 1 1 520px; min-width: 0; display: flex; justify-content: center; }
.doc { width: 100%; max-width: 560px; background: #fff; color: #1C1F1B; border-radius: 6px; padding: 40px 40px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 22px; }
.doc-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-co { font-weight: 700; font-size: 24px; }
.doc-small { font-size: 13px; color: #55524A; }
.doc-right { text-align: right; }
.doc-rule { height: 3px; background: var(--amber); }
.doc-meta { display: flex; gap: 40px; flex-wrap: wrap; }
.doc-label { font-size: 12px; font-weight: 600; color: #55524A; }
.doc-value { font-weight: 700; font-size: 17px; }
.doc-lines { font-size: 15px; }
.doc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ECE7DC; }
.doc-row.head { font-size: 12px; font-weight: 600; color: #55524A; padding: 8px 0; border-bottom-color: #DDD8CC; }
.doc-totals { align-self: flex-end; width: 240px; max-width: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.doc-totals div { display: flex; justify-content: space-between; }
.doc-totals .tax { padding-bottom: 8px; border-bottom: 2px solid #1C1F1B; }
.doc-totals .grand { font-weight: 700; font-size: 20px; }
.doc-terms { font-size: 13px; color: #3F3A30; margin: 0; }
.doc-sign { display: flex; gap: 16px; font-size: 13px; color: #55524A; align-items: flex-end; }
.doc-sign .line { flex: 1; border-bottom: 1px solid #8A867B; height: 18px; }
.doc-sign .line.short { flex: 0 0 90px; }
.doc-foot { text-align: center; font-size: 12px; color: #6B675D; }
.num { font-variant-numeric: tabular-nums; }

/* Call to action */
.cta { background: var(--amber); color: var(--ink); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-block: 88px; }
.cta-copy { flex: 1 1 420px; min-width: 0; }
.cta-copy p { margin: 14px 0 0; font-size: 19px; font-weight: 500; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding-block: 40px 56px; font-size: 15px; color: var(--text-quiet); }
.site-footer .brand-small { display: flex; align-items: center; gap: 10px; }
.site-footer .brand-small img { width: 28px; height: 28px; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--text-quiet); padding: 8px 0; }
.site-footer a:hover { color: var(--bone); }

/* Plain pages (privacy, support) */
.page .wrap { max-width: 46rem; padding-block: 24px 80px; display: flex; flex-direction: column; gap: 28px; }
.masthead { background: var(--amber); color: var(--ink); border-radius: 20px; padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.masthead .eyebrow { color: var(--ink); }
.masthead h1 { font-size: clamp(40px, 9vw, 60px); }
.masthead .meta { font-size: 15px; font-weight: 500; }
.page section { display: flex; flex-direction: column; gap: 10px; }
.page h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1.1; letter-spacing: .02em; margin: 0; text-wrap: balance; }
.page h2 .n { color: var(--amber-bright); margin-right: .35em; }
.page p, .page ul { margin: 0; max-width: 65ch; color: var(--text-soft); }
.page ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.page strong { color: var(--bone); font-weight: 600; }
.panel { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 30rem; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-soft); }
th { font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-quiet); background: var(--charcoal-2); }
tr:last-child td { border-bottom: 0; }
.email { font-weight: 700; color: var(--bone); user-select: all; word-break: break-all; }
details { background: var(--charcoal-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--bone); }
details p { margin-top: 10px; }
