:root {
  --bg: #ffffff;
  --soft: #f5f6f8;
  --ink: #151b23;
  --body: #2f3946;
  --muted: #5a6675;
  --accent: #1F3A5F;
  --accent-d: #142843;
  --accent-soft: #EEF3F8;
  --ok-bg: #eef6f1;
  --ok-ink: #164f33;
  --warn-bg: #fdf4e8;
  --warn-ink: #7a4508;
  --line: #dfe4ec;
  --line-2: #c2cbd7;
  --radius: 8px;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--body); background: var(--bg);
  font-size: 16px; line-height: 1.66; -webkit-font-smoothing: antialiased;
}
body.pd-open { overflow: hidden; }
h1, h2 { font-family: var(--serif); color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.11; margin: 0 0 0.7rem; }
h3, h4 { font-family: var(--sans); color: var(--ink); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.25rem); max-width: 19ch; }
h2 { font-size: clamp(1.58rem, 2.7vw, 2.2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.num { font-variant-numeric: tabular-nums; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.38rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--accent); }
.hnav { display: flex; align-items: center; gap: 22px; }
.hnav a { color: var(--body); font-size: 0.91rem; font-weight: 500; text-decoration: none; }
.hnav a:hover, .hnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.hact { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-btn {
  display: none; background: #fff; border: 1.5px solid var(--line-2); border-radius: 6px;
  padding: 7px 11px; font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.15;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-p { background: var(--accent); color: #fff; }
.btn-p:hover { background: var(--accent-d); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-o { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-o:hover { background: var(--soft); color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: 0.86rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero { background: #fff; padding: clamp(34px, 5vw, 62px) 0 clamp(28px, 4vw, 46px); border-bottom: 1px solid var(--line); }
.hero-lead { font-size: clamp(1.03rem, 1.3vw, 1.15rem); color: var(--body); max-width: 60ch; margin: 0 0 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.trust-line { font-size: 0.92rem; font-weight: 600; color: var(--muted); margin: 0 0 30px; }
.stats-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 24px; list-style: none; padding: 0; margin: 0; }
.stats-4 li { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; }
.stats-4 strong { display: block; font-size: clamp(1.22rem, 1.8vw, 1.5rem); font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
.stats-4 span { display: block; font-size: 0.83rem; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* Sections */
.sec { padding: clamp(44px, 6vw, 68px) 0; background: #fff; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { max-width: 660px; margin-bottom: 26px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 1rem; }

/* Real Irish Front Porch Photography Strip */
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard {
  display: flex; flex-direction: column; text-align: left; padding: 0; margin: 0;
  background: none; border: 0; font-family: var(--sans); cursor: pointer; color: inherit;
}
.pcard-img {
  width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px;
  background: var(--soft); border: 1px solid var(--line); margin-bottom: 10px;
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pcard:hover .pcard-img img { transform: scale(1.03); }
.pcard-t { font-size: 0.99rem; font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0 0 3px; }
.pcard-p { font-size: 0.94rem; font-weight: 700; color: var(--accent); margin: 0; }
.pcard-s { font-size: 0.83rem; color: var(--muted); margin: 3px 0 0; line-height: 1.4; }

/* Grounded Editorial Photo-Designer Invitation Strip */
.pd-strip { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr); gap: 32px 44px; align-items: center; }
.pd-strip-copy h2 { margin-bottom: 12px; }
.pd-strip-copy p { color: var(--body); max-width: 52ch; margin-bottom: 18px; }
.pd-strip-note { font-size: 0.85rem; color: var(--muted); margin: 12px 0 0; }
.pd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pd-pair figure { margin: 0; }
.pd-pair .pd-frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--soft); }
.pd-pair img { width: 100%; height: 100%; object-fit: cover; }
.pd-pair figcaption { margin-top: 7px; font-size: 0.81rem; font-weight: 600; color: var(--muted); }

/* 4-Tap Quick Quote Form */
.q-shell { max-width: 740px; border: 1.5px solid var(--line-2); border-radius: 10px; padding: clamp(20px, 3vw, 30px); background: #fff; }
.q-prog-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.q-prog { flex: 1; height: 5px; background: var(--line); border-radius: 99px; overflow: hidden; }
.q-prog i { display: block; height: 100%; background: var(--accent); transition: width .2s ease; }
.q-step-lbl { font-size: 0.82rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.q-step { display: none; }
.q-step.on { display: block; }
.q-step h3 { font-family: var(--serif); font-size: 1.38rem; font-weight: 600; margin: 0 0 6px; }
.q-help { font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; }
.q-pic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.q-pic-btn {
  text-align: left; padding: 0; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: #fff; overflow: hidden; cursor: pointer; font-family: var(--sans);
  transition: border-color .15s ease;
}
.q-pic-btn:hover, .q-pic-btn.picked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.q-pic-img { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.q-pic-img img { width: 100%; height: 100%; object-fit: cover; }
.q-pic-btn .q-pic-t { display: block; padding: 10px 12px; font-weight: 600; font-size: 0.91rem; color: var(--ink); }
.q-pic-btn .q-pic-t small { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.q-opt-list { display: grid; gap: 9px; }
.q-opt {
  width: 100%; text-align: left; padding: 13px 15px; border: 1.5px solid var(--line-2);
  border-radius: 8px; background: #fff; cursor: pointer; font-family: var(--sans);
  font-size: 0.94rem; font-weight: 600; color: var(--ink);
}
.q-opt:hover, .q-opt.picked { border-color: var(--accent); background: var(--accent-soft); }
.q-opt small { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.q-price-box {
  background: var(--soft); border-left: 3px solid var(--accent); border-top: 1px solid var(--line);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  border-radius: 0 8px 8px 0; padding: 14px 16px; margin-bottom: 18px;
}
.q-price-k { font-size: 0.8rem; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
.q-price-big { font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.q-price-sub { font-size: 0.84rem; color: var(--body); margin-top: 4px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.f-field { margin-bottom: 10px; }
.f-field label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line-2);
  border-radius: 7px; font-family: var(--sans); font-size: 1rem; color: var(--ink); background: #fff;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--soft);
  font-size: 0.84rem; color: var(--body); margin: 6px 0 14px; line-height: 1.45;
}
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.q-back { background: transparent; border: 0; color: var(--muted); font-family: var(--sans); font-size: 0.91rem; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.q-err { color: #b42318; font-size: 0.88rem; font-weight: 600; min-height: 1.2em; margin: 8px 0 0; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 700; color: var(--ink); font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }

/* Comparison, Worries, Quote Band, Guides, Chips, FAQ */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cmp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cmp-box { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: #fff; }
.cmp-box.ours { border-color: var(--accent); }
.cmp-box ul { margin: 10px 0 0; padding-left: 18px; }
.cmp-box li { margin-bottom: 8px; font-size: 0.94rem; }
.worry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.worry { border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.worry p { margin: 0; font-size: 0.93rem; color: var(--body); }
.qband {
  border: 1.5px solid var(--ink); border-radius: 10px; padding: clamp(22px, 3.6vw, 34px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.qband p { margin: 4px 0 0; color: var(--muted); max-width: 56ch; }
.gcard {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  color: var(--body); text-decoration: none;
}
.gcard:hover { border-color: var(--accent); text-decoration: none; }
.gcard b { font-size: 1.03rem; color: var(--ink); line-height: 1.3; }
.gcard span { font-size: 0.91rem; color: var(--muted); }
.gcard .gmore { font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips a {
  display: inline-flex; align-items: center; padding: 7px 14px; border: 1px solid var(--line-2);
  border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 0.89rem; text-decoration: none;
}
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.faq-list { max-width: 780px; border-top: 1px solid var(--line); }
details.faq { border-bottom: 1px solid var(--line); padding: 15px 0; }
details.faq summary {
  font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.25rem; color: var(--muted); font-weight: 400; flex-shrink: 0; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin: 10px 0 0; color: var(--body); font-size: 0.95rem; }

/* Inner Prose */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 20px; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose figure.doc-fig { margin: 24px 0; max-width: 560px; }
.prose figure.doc-fig img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.prose figure.doc-fig figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 7px; }
.note-box { border-left: 3px solid var(--accent); background: var(--soft); padding: 15px 18px; border-radius: 0 8px 8px 0; margin: 22px 0; }
.facts-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.fact-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.fact-card p { margin: 0; font-size: 0.92rem; color: var(--body); }

/* Subtle Floating Designer Trigger */
.pd-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 35;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font-family: var(--sans); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; box-shadow: 0 8px 22px rgba(21, 27, 35, 0.18);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.pd-fab.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.pd-fab:hover { background: var(--accent); border-color: var(--accent); }
.pd-fab svg { width: 17px; height: 17px; flex: none; }
body.pd-open .pd-fab { display: none !important; }

/* -------------------------------------------------------------------------
   POP-OUT <dialog> ZERO-FRICTION LIVE FRONT PORCH DESIGNER & CLASS 7 GUIDE
   ------------------------------------------------------------------------- */
dialog.pd-dlg {
  border: 0; padding: 0; margin: auto;
  width: min(1040px, calc(100vw - 24px)); max-width: 1040px;
  max-height: calc(100dvh - 24px);
  border-radius: 12px; background: #fff; color: var(--body);
  box-shadow: 0 24px 64px rgba(15, 22, 32, 0.34);
  overflow: hidden;
}
dialog.pd-dlg::backdrop { background: rgba(15, 22, 32, 0.64); }
dialog.pd-dlg[open] { display: flex; flex-direction: column; }

.pd-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: #fff; flex: none;
}
.pd-hd-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-hd-title b { font-family: var(--serif); font-size: 1.18rem; font-weight: 700; color: var(--ink); letter-spacing: -0.015em; }
.pd-hd-sub { font-size: 0.78rem; font-weight: 500; color: var(--muted); }
.pd-x {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; flex: none;
  display: grid; place-items: center;
}
.pd-x:hover { background: var(--soft); }
.pd-body { overflow-y: auto; padding: 18px 20px 26px; flex: 1; -webkit-overflow-scrolling: touch; }
.pd-pane[hidden] { display: none !important; }

/* View 1: ZERO-FRICTION LIVE INSTANT VISUALISER */
.pd-live-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 22px; align-items: start; }
.pd-stage-col { position: sticky; top: 0; display: grid; gap: 10px; }
.pd-stage {
  position: relative; border-radius: 9px; overflow: hidden; border: 1px solid var(--line);
  background: #1a2128; aspect-ratio: 1000 / 746;
}
.pd-stage-svg { width: 100%; height: 100%; }
.pd-stage-svg svg { width: 100%; height: 100%; display: block; }
.pd-stage-svg .pd-live-overlay { transition: opacity .18s ease; }
.pd-stage.is-before .pd-stage-svg .pd-live-overlay { opacity: 0; }
.pd-stage-top {
  position: absolute; top: 9px; left: 9px; right: 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none;
}
.pd-stage-badge {
  padding: 4px 9px; border-radius: 999px; background: rgba(20, 26, 34, 0.78); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; backdrop-filter: blur(4px);
}
.pd-before-btn {
  pointer-events: auto; border: 1px solid rgba(255,255,255,0.28); border-radius: 999px;
  padding: 4px 10px; background: rgba(20, 26, 34, 0.78); color: #fff;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .12s ease;
}
.pd-before-btn:hover { background: rgba(20, 26, 34, 0.94); }
.pd-stage.is-before .pd-before-btn { background: var(--accent); border-color: var(--accent); }

.pd-price-bar {
  display: grid; gap: 4px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; padding: 11px 14px; background: var(--soft);
}
.pd-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pd-price-bar small { font-size: 0.76rem; font-weight: 600; color: var(--accent); }
.pd-price-bar strong { font-size: 1.4rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.pd-price-spec { font-size: 0.79rem; color: var(--muted); line-height: 1.38; }

.plan-note {
  padding: 9px 12px; border-radius: 8px; font-size: 0.8rem; line-height: 1.42;
  background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; border: 1px solid #cde4d5;
}
.plan-note.req { background: var(--warn-bg); color: var(--warn-ink); border-color: #ebd5b3; }

.pd-photo-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 10px 13px; border: 1.5px dashed var(--line-2); border-radius: 8px;
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 0.84rem; font-weight: 600;
  cursor: pointer; text-align: left; transition: border-color .15s ease, background .15s ease;
}
.pd-photo-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.pd-photo-cta-l { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pd-photo-cta svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.pd-photo-cta-tag {
  font-size: 0.71rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 3px 8px; border-radius: 999px; white-space: nowrap; flex: none;
}
.pd-mob-bar { display: none; }

.pd-ctrl-col { display: grid; gap: 13px; }
.pd-g { border: 0; margin: 0; padding: 0; }
.pd-g legend { font-size: 0.8rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; padding: 0; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px;
  border: 1.5px solid var(--line-2); border-radius: 7px; background: #fff;
  color: var(--ink); font-family: var(--sans); font-size: 0.81rem; font-weight: 600; cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.pd-chip:hover { border-color: var(--ink); }
.pd-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.pd-sw { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.24); flex: none; }

/* View 2: Optional Own-House Photo Mode */
.pd-photo-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.pd-up-wrap { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.pd-chosen-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 13px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; background: var(--soft); font-size: 0.82rem;
}
.pd-chosen-strip b { color: var(--ink); }
.pd-drop {
  position: relative; display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: 34px 20px; border: 2px dashed var(--line-2); border-radius: 10px;
  background: var(--soft); cursor: pointer; color: var(--ink); transition: border-color .15s ease, background .15s ease;
}
.pd-drop:hover { border-color: var(--accent); background: #fff; }
.pd-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pd-drop b { font-size: 1.04rem; letter-spacing: -0.01em; }
.pd-drop span { font-size: 0.86rem; color: var(--muted); max-width: 44ch; }
.pd-photo-ready { display: grid; gap: 12px; }
.pd-thumb-box { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); aspect-ratio: 4 / 3; max-height: 320px; width: 100%; }
.pd-thumb-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-go-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pd-link {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pd-fine { font-size: 0.79rem; color: var(--muted); margin: 0; line-height: 1.45; }
.pd-err { color: #b42318; font-size: 0.86rem; font-weight: 600; margin: 0; }
.pd-err:empty { display: none; }

/* View 3: Generating AI Preview */
.pd-wait-box { max-width: 560px; margin: 10px auto; display: grid; gap: 14px; text-align: center; }
.pd-scan-wrap { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--soft); }
.pd-scan-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.45) brightness(1.03); }
.pd-scan-bar {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.62), transparent);
  transform: translateX(-100%); animation: pdscan 1.7s ease-in-out infinite;
}
@keyframes pdscan { to { transform: translateX(100%); } }
.pd-wait-msg { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0; }

/* View 4: AI Side-by-Side Before/After + Compare Slider */
.pd-res-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pd-mode-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: 7px; overflow: hidden; }
.pd-mode-btn {
  border: 0; background: #fff; padding: 7px 13px; font-family: var(--sans); font-size: 0.82rem;
  font-weight: 600; color: var(--body); cursor: pointer;
}
.pd-mode-btn.on { background: var(--ink); color: #fff; }
.pd-res-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.84rem; }

.pd-sbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.pd-sbs figure { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--soft); }
.pd-sbs .pd-sbs-cap {
  padding: 7px 11px; font-size: 0.78rem; font-weight: 700; color: var(--ink);
  background: #fff; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between;
}
.pd-sbs .pd-sbs-cap span { color: var(--accent); }
.pd-sbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.pd-slider-wrap { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); margin-bottom: 14px; user-select: none; max-width: 680px; margin-inline: auto; }
.pd-slider-wrap > img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-slider-after { position: absolute; inset: 0; }
.pd-slider-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-slider-line { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.45); pointer-events: none; }
.pd-slider-wrap input[type="range"] { position: absolute; left: 12px; right: 12px; bottom: 12px; width: calc(100% - 24px); accent-color: var(--accent); cursor: ew-resize; }
.pd-tag { position: absolute; top: 10px; padding: 4px 9px; border-radius: 5px; background: rgba(21,27,35,0.82); color: #fff; font-size: 0.75rem; font-weight: 600; }
.pd-tag.l { left: 10px; }
.pd-tag.r { right: 10px; }

.pd-spec-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 15px; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0; background: var(--soft); margin-bottom: 12px;
}
.pd-spec-bar b { font-size: 1.28rem; color: var(--ink); }
.pd-spec-bar span { font-size: 0.83rem; color: var(--body); }
.pd-fallback-note {
  padding: 11px 14px; border: 1px solid #e7d4b5; background: #fdf8ef; color: #6c4608;
  border-radius: 8px; font-size: 0.88rem; margin-bottom: 14px;
}

/* Zero-Friction Sticky Lead Capture Card */
.pd-lead-box { border: 1.5px solid var(--ink); border-radius: 10px; padding: 15px 17px; background: #fff; margin-top: 6px; }
.pd-lead-box h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 0 0 3px; }
.pd-lead-box > p { font-size: 0.83rem; color: var(--muted); margin: 0 0 12px; line-height: 1.4; }
.pd-f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pd-lead-ok { border: 1.5px solid var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 18px 20px; margin-top: 14px; }
.pd-lead-ok h3 { color: var(--accent); margin-bottom: 6px; }
.pd-lead-ok p { margin: 0 0 8px; font-size: 0.94rem; color: var(--ink); }

/* Thank-you photo upload card */
.more-card { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 24px; max-width: 640px; background: #fff; }
.more-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.more-th { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: var(--soft); }
.more-th img { width: 100%; height: 100%; object-fit: cover; }
.more-th button {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,0.72); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.more-up {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px;
  border: 2px dashed var(--line-2); border-radius: 10px; background: var(--soft);
  text-align: center; cursor: pointer; color: var(--ink);
}
.more-up.has { flex-direction: row; justify-content: center; gap: 10px; padding: 14px; }
.more-up.has span { display: none; }
.more-l { display: block; margin: 16px 0 6px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.more-card textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 8px;
  font: inherit; font-size: 1rem; resize: vertical;
}
.more-st { margin: 10px 0 0; text-align: center; font-size: 0.88rem; color: var(--muted); min-height: 1.3em; }
.more-ok { font-size: 1.06rem; font-weight: 600; color: var(--accent); margin: 0; }

/* Footer */
.foot { border-top: 1px solid var(--line); background: #fff; padding: 48px 0 32px; font-size: 0.9rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.foot h4 { font-size: 0.92rem; color: var(--ink); margin-bottom: 10px; }
.foot a { display: block; color: var(--muted); margin-bottom: 7px; text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.84rem; }
.foot-legal a { display: inline; margin: 0; }

@media (max-width: 920px) {
  .photo-grid, .cards-3, .foot-grid { grid-template-columns: 1fr 1fr; }
  .pd-strip, .pd-live-grid { grid-template-columns: 1fr; gap: 0; }
  .pd-body.is-live { padding: 0 0 26px; }
  .pd-stage-col {
    position: sticky; top: 0; z-index: 6; background: #fff;
    padding: 10px 14px 10px; border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 14px rgba(15, 22, 32, 0.07); gap: 8px;
  }
  dialog.pd-dlg.pd-kb-focus .pd-stage-col { position: static; box-shadow: none; }
  .pd-stage { aspect-ratio: 16 / 10; max-height: 215px; }
  .pd-price-bar, .pd-plan-desk, .pd-photo-cta-desk { display: none; }
  .pd-mob-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .pd-mob-price { display: flex; flex-direction: column; min-width: 0; }
  .pd-mob-price strong { font-size: 0.98rem; font-weight: 700; color: var(--ink); line-height: 1.15; white-space: nowrap; }
  .pd-mob-plan { font-size: 0.68rem; font-weight: 600; color: var(--ok-ink); white-space: nowrap; }
  .pd-mob-plan.req { color: var(--warn-ink); }
  .pd-mob-acts { display: flex; align-items: center; gap: 5px; flex: none; }
  .pd-mob-photo {
    display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px;
    border: 1.5px solid var(--line-2); border-radius: 7px; background: #fff;
    color: var(--ink); font-family: var(--sans); font-size: 0.72rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  }
  .pd-mob-photo svg { width: 13px; height: 13px; color: var(--accent); flex: none; }
  .pd-mob-quote {
    padding: 6px 8px; border: 0; border-radius: 7px; background: var(--accent); color: #fff;
    font-family: var(--sans); font-size: 0.72rem; font-weight: 700; cursor: pointer; white-space: nowrap;
  }
  .pd-ctrl-col { padding: 14px 14px 4px; gap: 12px; }
  .hnav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .hnav.open { display: flex; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .stats-4 { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .photo-grid, .cards-3, .cards-2, .cmp-grid, .worry-grid, .facts-4, .foot-grid, .f-grid, .pd-f3, .pd-sbs { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .wordmark { font-size: 1.18rem; }
  .hdr .btn-sm { padding: 0 12px; font-size: 0.82rem; min-height: 36px; }
  .q-pic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  dialog.pd-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .pd-hd { padding: 10px 14px; }
  .pd-hd-title b { font-size: 1.04rem; }
  .pd-hd-sub { font-size: 0.72rem; }
  .pd-body { padding: 14px 14px 26px; }
  .pd-body.is-live { padding: 0 0 26px; }
  .pd-chip { padding: 7px 10px; font-size: 0.79rem; }
  .pd-fab { left: 14px; right: 14px; bottom: 12px; justify-content: center; }
}
