/**
 * CELLIARA — FIND YOUR DEVICE™
 * device-match.css — v1.4.0
 * Source: Approved canvas design. WordPress chrome suppression added.
 */

/* ══════════════════════════════════════════════════════════════════════════════
   WORDPRESS CHROME SUPPRESSION — this template only
   ══════════════════════════════════════════════════════════════════════════════ */
body.page-template-template-device-match,
body.page-template-template-device-match-php {
  background: #030303 !important;
  overflow-x: hidden;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.page-template-template-device-match .site-footer,
body.page-template-template-device-match footer.site-info,
body.page-template-template-device-match .footer-widgets,
body.page-template-template-device-match .site-header,
body.page-template-template-device-match .entry-header,
body.page-template-template-device-match #cl-nav,
body.page-template-template-device-match-php .site-footer,
body.page-template-template-device-match-php footer.site-info,
body.page-template-template-device-match-php .footer-widgets,
body.page-template-template-device-match-php .site-header,
body.page-template-template-device-match-php .entry-header,
body.page-template-template-device-match-php #cl-nav {
  display: none !important;
}

body.page-template-template-device-match .site,
body.page-template-template-device-match .site-content,
body.page-template-template-device-match .content-area,
body.page-template-template-device-match .inside-article,
body.page-template-template-device-match .entry-content,
body.page-template-template-device-match-php .site,
body.page-template-template-device-match-php .site-content,
body.page-template-template-device-match-php .content-area,
body.page-template-template-device-match-php .inside-article,
body.page-template-template-device-match-php .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   CANVAS DESIGN SYSTEM — exact from approved spec
   ══════════════════════════════════════════════════════════════════════════════ */
:root {
  --dm-bg: #030303;
  --dm-text: #f7f1e9;
  --dm-muted: #b7afa7;
  --dm-dim: #777069;
  --dm-gold: #c9a96e;
  --dm-gold-2: #f0c983;
  --dm-line: rgba(255,255,255,.12);
  --dm-gold-line: rgba(201,169,110,.52);
  --dm-max: 1840px;
}

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

.dm-shell {
  width: min(var(--dm-max), calc(100vw - 76px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 11% 10%, rgba(201,169,110,.12), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(201,169,110,.12), transparent 25%),
    linear-gradient(180deg, #010101 0%, #070707 62%, #020202 100%);
  color: var(--dm-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }

/* ── Top bar ─────────────────────────────────────────────────────────────────── */
.dm-top {
  height: 86px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
}

.dm-brand {
  color: var(--dm-gold-2);
  text-decoration: none;
  letter-spacing: .36em;
  font-weight: 700;
  font-size: 27px;
  line-height: .9;
}

.dm-brand span {
  display: block;
  margin-top: 10px;
  padding-left: 4px;
  letter-spacing: .27em;
  font-size: 13px;
  color: var(--dm-gold);
}

.dm-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #f0e9df;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.dm-nav i { color: var(--dm-gold); font-style: normal; font-size: 12px; }

.dm-orb {
  width: 54px;
  height: 54px;
  border: 1px solid var(--dm-gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dm-gold-2);
  font-size: 22px;
  box-shadow: 0 0 0 8px rgba(201,169,110,.035), inset 0 0 22px rgba(201,169,110,.06);
}

/* ── Main grid ──────────────────────────────────────────────────────────────── */
.dm-main {
  display: grid;
  grid-template-columns: minmax(610px, .92fr) minmax(760px, 1.08fr);
  gap: 58px;
  min-height: calc(100vh - 154px);
  align-items: center;
  padding: 10px 0 34px;
}

/* ── Left panel ─────────────────────────────────────────────────────────────── */
.dm-left {
  position: relative;
  z-index: 2;
  padding: 10px 0 26px;
}

.dm-kicker {
  margin: 0 0 28px;
  color: var(--dm-gold-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .27em;
  text-transform: uppercase;
}

.dm-title {
  margin: 0;
  max-width: 830px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(76px, 5.55vw, 116px);
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 600;
  text-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.dm-title em { color: var(--dm-gold-2); font-style: normal; font-weight: 600; }

.dm-subhead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #e4ddd4;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -.015em;
}

.dm-trust {
  margin: 28px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #e8ded2;
  font-size: 17px;
  line-height: 1.48;
  font-style: italic;
}

.dm-trust-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--dm-gold);
  color: var(--dm-gold-2);
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 0 0 6px rgba(201,169,110,.035);
  font-style: normal;
}

.dm-hairline {
  height: 1px;
  margin: 36px 0 28px;
  background: linear-gradient(90deg, rgba(201,169,110,.36), rgba(255,255,255,.13), transparent);
}

/* ── Progress ───────────────────────────────────────────────────────────────── */
.dm-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  margin-bottom: 31px;
  color: var(--dm-gold-2);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .23em;
  text-transform: uppercase;
}

.dm-progress-track {
  height: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.22);
}

.dm-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dm-gold-2), #d7aa65);
  box-shadow: 0 0 24px rgba(201,169,110,.46);
  transition: width .25s ease;
}

/* ── Question ───────────────────────────────────────────────────────────────── */
.dm-question-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
}

.dm-question-title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 2.55vw, 51px);
  line-height: 1.05;
  letter-spacing: -.034em;
  font-weight: 500;
}

.dm-question-note {
  margin: 0;
  color: #cfc7bf;
  font-size: 15px;
  line-height: 1.55;
}

.dm-back {
  visibility: hidden;
  border: 1px solid rgba(201,169,110,.35);
  border-radius: 999px;
  color: var(--dm-gold-2);
  background: rgba(201,169,110,.045);
  padding: 10px 15px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.dm-back:hover { background: rgba(201,169,110,.08); border-color: rgba(201,169,110,.6); }

/* ── Answers grid ───────────────────────────────────────────────────────────── */
.dm-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  max-width: 800px;
}

.dm-answer {
  min-height: 65px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 17px;
  padding: 13px 18px;
  border: 1px solid var(--dm-line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)),
    rgba(4,4,4,.82);
  color: #fffaf3;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
  width: 100%;
  font-family: inherit;
}

.dm-answer:hover {
  transform: translateY(-2px);
  border-color: rgba(201,169,110,.68);
  background:
    linear-gradient(180deg, rgba(201,169,110,.10), rgba(201,169,110,.035)),
    rgba(4,4,4,.86);
  box-shadow: 0 18px 46px rgba(0,0,0,.35), inset 0 0 0 1px rgba(201,169,110,.07);
}

.dm-answer.is-selected {
  border-color: var(--dm-gold-2);
  background: rgba(201,169,110,.13);
  box-shadow: 0 0 0 1px rgba(201,169,110,.24), 0 18px 46px rgba(201,169,110,.08);
}

.dm-answer-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--dm-gold-2);
  font-size: 25px;
  line-height: 1;
}

.dm-answer-label { font-size: 16px; line-height: 1.25; font-weight: 500; }
.dm-answer-arrow { color: var(--dm-gold-2); font-size: 31px; line-height: 1; font-weight: 300; }

/* Answers single column (non-concern questions) */
.dm-answers--single { grid-template-columns: 1fr; }

/* Full-width answer span */
.dm-answer--full { grid-column: 1 / -1; }

.dm-reassure {
  max-width: 800px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 31px;
  color: #aaa29a;
  font-size: 15px;
}

/* ── Results ────────────────────────────────────────────────────────────────── */
.dm-result {
  display: none;
  max-width: 820px;
  border: 1px solid var(--dm-line);
  border-radius: 24px;
  background: rgba(7,7,7,.76);
  padding: 30px;
  box-shadow: 0 38px 120px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.025);
}

.dm-result.is-active { display: block; }

.dm-result-kicker {
  color: var(--dm-gold-2);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.dm-result-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 4vw, 76px);
  line-height: .95;
  letter-spacing: -.05em;
  font-weight: 600;
}

.dm-result-title em { color: var(--dm-gold-2); font-style: normal; }

.dm-result-copy {
  color: var(--dm-muted);
  font-size: 17px;
  line-height: 1.62;
  margin: 18px 0 0;
}

.dm-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.dm-metric {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  padding: 18px;
}

.dm-metric small {
  color: var(--dm-gold-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dm-metric strong {
  display: block;
  margin-top: 9px;
  font-size: 20px;
  line-height: 1.2;
}

.dm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.dm-cta {
  border-radius: 999px;
  border: 1px solid var(--dm-gold-line);
  padding: 15px 22px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  transition: opacity .15s;
}

.dm-cta:hover { opacity: .85; }

.dm-cta-primary { background: var(--dm-gold-2); color: #050505; }
.dm-cta-secondary { background: rgba(201,169,110,.035); color: var(--dm-gold-2); }

.dm-email {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border: 1px solid rgba(201,169,110,.26);
  border-radius: 16px;
  padding: 12px;
  background: rgba(201,169,110,.045);
}

.dm-email input {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(0,0,0,.38);
  color: #fff;
  padding: 0 17px;
  outline: none;
}

.dm-email input:focus { border-color: rgba(201,169,110,.5); }
.dm-email input::placeholder { color: rgba(255,255,255,.3); }

.dm-email button {
  border: 0;
  border-radius: 999px;
  background: var(--dm-gold-2);
  color: #050505;
  font-weight: 800;
  padding: 0 20px;
  cursor: pointer;
  min-height: 48px;
  font-family: inherit;
}

/* ── Visual / hero panel ────────────────────────────────────────────────────── */
.dm-visual {
  position: relative;
  min-height: min(850px, calc(100vh - 132px));
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  background: #050505;
  box-shadow: 0 55px 180px rgba(0,0,0,.68), inset 0 0 0 1px rgba(255,255,255,.028);
  isolation: isolate;
}

.dm-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: saturate(1.02) contrast(1.02);
}

.dm-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.06), transparent 45%),
    linear-gradient(0deg, rgba(0,0,0,.22), transparent 45%);
}

.dm-badge {
  position: absolute;
  top: 52px;
  right: 52px;
  z-index: 5;
  width: 156px;
  height: 156px;
  border-radius: 50%;
  border: 1px solid var(--dm-gold-2);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  color: #fff9ee;
  background: rgba(0,0,0,.30);
  box-shadow: 0 0 0 8px rgba(201,169,110,.05), inset 0 0 0 1px rgba(201,169,110,.17);
  text-align: center;
  padding: 14px;
}

.dm-badge span { color: var(--dm-gold-2); font-size: 15px; }
.dm-badge strong { font-size: 12px; letter-spacing: .14em; line-height: 1.08; display: block; }

.dm-preview {
  position: absolute;
  right: 50px;
  bottom: 58px;
  z-index: 5;
  width: 360px;
  border: 1px solid rgba(201,169,110,.42);
  border-radius: 18px;
  background: rgba(4,4,4,.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px;
  box-shadow: 0 32px 90px rgba(0,0,0,.58);
}

.dm-preview-title {
  margin: 0 0 20px;
  color: var(--dm-gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
  text-align: center;
}

.dm-preview-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: center;
  color: #efe7df;
  font-size: 14px;
  line-height: 1.48;
  margin: 20px 0;
}

.dm-preview-row b {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.46);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 19px;
  font-weight: 400;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.dm-footer {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #9a928b;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,.055);
}

.dm-footer a { color: #b7afa7; text-decoration: none; transition: color .15s; }
.dm-footer a:hover { color: var(--dm-gold-2); }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1360px) {
  .dm-shell { width: min(980px, calc(100vw - 44px)); }
  .dm-main { grid-template-columns: 1fr; gap: 30px; padding-top: 20px; }
  .dm-visual { order: -1; min-height: 560px; }
  .dm-title { font-size: clamp(64px, 9vw, 98px); max-width: 950px; }
  .dm-left { padding-bottom: 36px; }
  .dm-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .dm-shell { width: min(100vw - 28px, 520px); }
  .dm-top { height: 70px; grid-template-columns: 1fr auto; }
  .dm-brand { font-size: 19px; }
  .dm-brand span { font-size: 9px; }
  .dm-nav { display: none; }
  .dm-orb { width: 40px; height: 40px; }
  .dm-main { min-height: auto; padding-top: 16px; }
  .dm-visual { min-height: 400px; border-radius: 20px; }
  .dm-badge { width: 92px; height: 92px; top: 18px; right: 18px; }
  .dm-badge strong { font-size: 7px; }
  .dm-preview { display: none; }
  .dm-title { font-size: clamp(47px, 13vw, 66px); }
  .dm-subhead { font-size: 16px; }
  .dm-kicker { font-size: 11px; margin-bottom: 18px; }
  .dm-trust { align-items: flex-start; font-size: 14px; }
  .dm-progress { grid-template-columns: 1fr auto; gap: 12px; font-size: 11px; }
  .dm-progress-track { grid-column: 1 / -1; order: 3; }
  .dm-question-row { display: block; }
  .dm-back { margin-top: 14px; }
  .dm-question-title { font-size: clamp(34px, 9vw, 42px); }
  .dm-answers { grid-template-columns: 1fr; }
  .dm-answer { min-height: 62px; }
  .dm-reassure { flex-direction: column; gap: 8px; align-items: center; }
  .dm-metrics { grid-template-columns: 1fr; }
  .dm-email { grid-template-columns: 1fr; }
  .dm-email button { min-height: 48px; }
  .dm-footer { height: auto; padding: 18px 0; justify-content: center; flex-wrap: wrap; gap: 14px; }
}
