/* DAOx app-factory template — deep-blue brand system */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;800&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
  --bg: #f4efe6;
  --card: #fffdf8;
  --border: #e4dbc8;
  --ink: #26211a;
  --muted: #6e6553;
  --brand: #8a5a24;
  --brand-deep: #2b2015;
  --brand-bright: #b98436;
  --brand-mid: #9a6b2e;
  --brand-tint: #f3ead9;
  --gradient: linear-gradient(121deg, #241b10, #5a442a);
  --ok: #1f8a4c;
  --err: #b3261e;
  --radius: 16px;
  --shadow: 0 2px 6px rgba(43, 32, 21, .07), 0 10px 30px rgba(43, 32, 21, .11);
  --sans: "Source Sans 3", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: 0; }

/* ---------- nav ---------- */
.nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 10;
}
.nav .wrap { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -.3px; }
.logo em { font-style: normal; color: var(--brand-mid); }
.logo:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { font-family: var(--sans); color: var(--muted); font-weight: 600; font-size: 15px; }
.nav nav a:hover { color: var(--brand); text-decoration: none; }
.badge {
  font-family: var(--sans);
  background: var(--brand-tint); color: var(--brand);
  border: 1px solid #ddcdae; border-radius: 999px;
  padding: 3px 14px; font-size: 13px; font-weight: 700;
}

/* ---------- hero (brand gradient band) ---------- */
.hero {
  background: var(--gradient);
  text-align: center;
  padding: 88px 24px 130px;
  color: #fff;
}
.eyebrow {
  display: inline-block; margin-bottom: 20px;
  font-family: var(--sans);
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1.5px solid rgba(233, 199, 138, .8);
  border-radius: 999px; padding: 5px 18px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5.8vw, 62px);
  line-height: 1.12; font-weight: 600; letter-spacing: .2px;
  font-style: italic; color: #fff;
  max-width: 780px; margin: 0 auto;
}
.tagline {
  font-size: 20px; color: #f6efe2;
  max-width: 640px; margin: 20px auto 0;
}
.tagline em { font-style: italic; }
.sub { color: rgba(255, 255, 255, .85); margin-top: 12px; font-size: 15.5px; }

/* ---------- product card (overlaps the gradient) ---------- */
.product { padding: 0 24px 56px; margin-top: -72px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}
.card.center { text-align: center; }
label {
  display: block; font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  color: var(--ink); margin: 18px 0 6px; letter-spacing: .2px;
}
label:first-child { margin-top: 0; }
input, textarea, select {
  width: 100%; background: #fbf8f1; color: var(--ink);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; font: 15px/1.6 var(--sans);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus {
  outline: none; border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(154, 107, 46, .22);
  background: #fff;
}
::placeholder { color: #a89a82; }

.btn {
  display: inline-block; margin-top: 20px; cursor: pointer;
  font-family: var(--serif);
  background: var(--card); color: var(--brand);
  border: 2px solid var(--brand); border-radius: 999px;
  padding: 10px 26px; font-size: 16px; font-weight: 600;
  transition: background .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--brand-tint); text-decoration: none; }
.btn.primary {
  background: var(--gradient); border: none; color: #fff;
  width: 100%; padding: 15px 26px; font-size: 17.5px;
  box-shadow: 0 6px 18px rgba(43, 32, 21, .35);
}
.btn.primary:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: wait; }

.status { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.status.err { color: var(--err); font-weight: 600; }
.status.ok { color: var(--ok); font-weight: 600; }

.result {
  margin-top: 20px; padding: 26px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15.5px;
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 24px 56px; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 22px;
  text-align: center;
}
.step span {
  display: inline-flex; width: 38px; height: 38px;
  align-items: center; justify-content: center;
  font-family: var(--sans);
  background: var(--gradient); color: #fff;
  border-radius: 50%; font-weight: 800; font-size: 16px;
}
.step h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 700; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- pricing ---------- */
.pricing { text-align: center; padding: 24px 24px 56px; }
.pricing h2 { font-size: 32px; font-weight: 700; }
.pricing .sub { color: var(--muted); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.pack {
  position: relative;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 32px 20px 28px;
}
.pack.featured { border: 2px solid var(--brand-mid); }
.pack.featured::before {
  content: "Most popular";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans);
  background: var(--gradient); color: #fff;
  border-radius: 999px; padding: 2px 16px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .4px; white-space: nowrap;
}
.pack h3 { font-size: 16px; color: var(--muted); font-weight: 600; }
.pack .price { font-family: var(--sans); font-size: 40px; font-weight: 800; letter-spacing: -1px; margin: 12px 0 2px; }
.pack .per { color: var(--muted); font-size: 13px; }
.pack .btn { padding: 8px 30px; }

/* ---------- faq ---------- */
.faq { padding: 24px 24px 72px; }
.faq h2 { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 26px; }
details {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 12px;
  box-shadow: var(--shadow);
}
summary { cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 16px; }
summary::marker { color: var(--brand-mid); }
details p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0; color: var(--muted); font-size: 14px; text-align: center;
  background: var(--card);
  font-family: var(--sans);
}

@media (max-width: 680px) {
  .hero { padding: 56px 20px 110px; }
  .steps, .packs { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
  
}

/* ---------- print the result ---------- */
@media print {
  body * { visibility: hidden; }
  #result, #result * { visibility: visible; }
  #result { position: absolute; left: 0; top: 0; width: 100%; border: none; box-shadow: none; background: #fff; color: #000; }
}

/* ---------- ArtBuyer specifics ---------- */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-preview { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; margin-top: 10px; border: 1px solid var(--border); }
input[type="file"] { padding: 10px; background: #fbf8f1; }
input[type="file"]::file-selector-button {
  font: 600 14px var(--sans); color: var(--brand); background: #fff;
  border: 1.5px solid var(--brand); border-radius: 999px;
  padding: 7px 16px; margin-right: 12px; cursor: pointer;
}
.plan-h { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--brand-deep); margin: 22px 0 8px; border-bottom: 2px solid var(--brand-tint); padding-bottom: 5px; }
.plan-h:first-child { margin-top: 0; }
.render { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.render-note { color: var(--muted); font-size: 13.5px; margin-top: 6px; font-style: italic; }
.piece { margin-bottom: 14px; }
.piece-t { font-family: var(--sans); font-weight: 700; font-size: 15.5px; }
.piece-cost { float: right; color: var(--brand); font-weight: 700; }
.piece-d { color: var(--muted); font-size: 14.5px; }
.quote { width: 100%; border-collapse: collapse; font-size: 15px; }
.quote td { padding: 8px 4px; border-bottom: 1px solid var(--border); }
.quote td:last-child { text-align: right; font-family: var(--sans); font-weight: 600; }
.quote tr.total td { font-weight: 800; font-family: var(--sans); font-size: 16.5px; color: var(--brand-deep); }
.prep-tools .btn { margin-top: 0; padding: 7px 20px; font-size: 14px; }
@media (max-width: 680px) { .row2 { grid-template-columns: 1fr; } }
@media print {
  body * { visibility: hidden; }
  #result, #result * { visibility: visible; }
  #result { position: absolute; left: 0; top: 0; width: 100%; border: none; box-shadow: none; background: #fff; color: #000; }
  #result .prep-tools { display: none; }
}


/* gallery frames */
.framed {
  border: 10px solid #fffdf8;
  outline: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 10px 34px rgba(43, 32, 21, .28);
}
.lease-includes { color: var(--muted); font-size: 14px; margin-top: 8px; font-style: italic; }
.lease-cta { width: auto !important; padding: 12px 30px !important; }

/* ---------- funnel views ---------- */
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 6px; }
.option-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
  display: flex; flex-direction: column;
}
.option-card h4 { font-family: var(--display); font-size: 19px; margin: 12px 0 6px; }
.option-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.opt-desc { font-size: 14.5px; }
.opt-meta { color: var(--brand); font-family: var(--sans); font-size: 13px; font-weight: 700; margin-top: 6px; }
.opt-why { color: var(--muted); font-size: 13.5px; font-style: italic; margin-top: 6px; flex: 1; }
.option-card .btn { margin-top: 14px; width: 100%; padding: 11px 18px; font-size: 15px; }
.contract {
  font: 12.5px/1.6 var(--sans); white-space: pre-wrap;
  background: #fbf8f1; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; max-height: 260px; overflow-y: auto; color: var(--muted);
}
.agree-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; font-family: var(--sans); font-size: 14.5px; font-weight: 600; }
.agree-row input { width: auto; }
.preview-wide { aspect-ratio: 4/3 !important; object-fit: cover; }
