:root {
  --ink-bg: #15120F;
  --ink: #2B2722;
  --ink-2: #4A433A;
  --ink-3: #756B5E;
  --paper: #F4EFE5;
  --cream: #FFFCF6;
  --cream-2: #EFE7D8;
  --clay: #C15F3C;
  --clay-hi: #E27A50;
  --clay-btn: #B4532F;
  --clay-soft: rgba(193, 95, 60, 0.11);
  --line: rgba(70, 48, 24, 0.12);
  --line-strong: rgba(70, 48, 24, 0.22);
  --ok: #1E7E4E;
  --ok-soft: rgba(30, 126, 78, 0.11);
  --warn: #B84227;
  --warn-soft: rgba(184, 66, 39, 0.10);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.sr-only { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; }
html, body {
  background: #E8E1D3;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

/* ==================== STICKY TOP BAR ==================== */
.pv-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #C15F3C;
  color: #FFFCF6;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
}

.dp-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 18, 15, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 235, 223, 0.12);
  color: #F2EBDF;
}
.dp-bar-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dp-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.dp-home {
  color: #FFB494;
  text-decoration: none;
  font-weight: 700;
}
.dp-home:hover { text-decoration: underline; }
.dp-sep { color: #756B5E; }
.dp-crumb { color: #D8CEC0; font-weight: 500; }
.dp-bar-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.dp-btn:active { transform: translateY(1px); }
.dp-btn.primary {
  background: var(--clay);
  color: #FFFCF6;
}
.dp-btn.primary:hover { background: var(--clay-hi); }
.dp-btn.ghost {
  background: rgba(255, 252, 246, 0.08);
  border-color: rgba(255, 252, 246, 0.22);
  color: #F2EBDF;
}
.dp-btn.ghost:hover {
  background: rgba(255, 252, 246, 0.14);
  border-color: rgba(255, 252, 246, 0.36);
}

.dp-wrap {
  padding: 20px 14px 44px;
}
html.preview .dp-wrap {
  padding: 0;
}

.poster {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(21, 18, 15, 0.16);
}
html.preview .poster {
  border-radius: 0;
  box-shadow: none;
}

/* ==================== 1. HERO ==================== */
.hero {
  position: relative;
  background:
    radial-gradient(640px 360px at 86% -10%, rgba(226, 122, 80, 0.24), transparent 70%),
    radial-gradient(520px 300px at 12% 105%, rgba(193, 95, 60, 0.14), transparent 72%),
    var(--ink-bg);
  color: #F2EBDF;
  padding: 40px 48px 42px;
  border-bottom: 4px solid var(--clay);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand svg {
  width: 46px;
  height: 46px;
  flex: none;
  box-shadow: 0 8px 24px rgba(193, 95, 60, 0.35);
  border-radius: 11px;
}
.brand-text b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #FFFCF6;
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-size: 13px;
  color: #B8ACA0;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(226, 122, 80, 0.16);
  border: 1px solid rgba(226, 122, 80, 0.45);
  color: #FFB494;
  font-size: 13.5px;
  font-weight: 600;
}
.hero-kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--clay-hi);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #FFFCF6;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--clay-hi);
}
.hero-sub {
  font-size: 17.5px;
  color: #CFC4B4;
  line-height: 1.6;
  max-width: 920px;
  margin-bottom: 26px;
}
.hero-sub strong { color: #FFFCF6; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pillar {
  background: rgba(255, 252, 246, 0.05);
  border: 1px solid rgba(242, 235, 223, 0.12);
  border-radius: 14px;
  padding: 14px 15px;
}
.pillar .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--clay-hi);
  margin-bottom: 4px;
}
.pillar h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #FFFCF6;
  margin-bottom: 4px;
}
.pillar p {
  font-size: 12.8px;
  color: #B8ACA0;
  line-height: 1.45;
}

/* ==================== SECTION CHROME ==================== */
.sec { padding: 32px 48px 0; }
.sec-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.sec-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}
.sec-title h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.pill-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--ok-soft);
  border: 1px solid rgba(30, 126, 78, 0.28);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
}
.pill-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--warn-soft);
  border: 1px solid rgba(184, 66, 39, 0.28);
  color: var(--warn);
  font-size: 13px;
  font-weight: 700;
}

/* ==================== 2. MONTHLY PLANS ==================== */
.monthly-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pcard {
  position: relative;
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px 20px 18px;
  display: flex;
  flex-direction: column;
}
.pcard.featured {
  border: 2px solid var(--clay);
  box-shadow: 0 12px 30px rgba(193, 95, 60, 0.13);
  background: linear-gradient(180deg, #FFFDF9 0%, #FFF7EE 100%);
}
.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.pname {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pbadge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--ok-soft);
  color: var(--ok);
  white-space: nowrap;
}
.pcard.featured .pbadge {
  background: var(--clay);
  color: #FFFCF6;
}
.price-box {
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
}
.dealer-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.dealer-price-row .lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.dealer-price-row .val {
  font-size: 32px;
  font-weight: 800;
  color: var(--clay-btn);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.dealer-price-row .val small {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}
.retail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
}
.retail-row span { color: var(--ink-3); }
.retail-row b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.specs li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}
.specs li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--clay);
  font-weight: 900;
}
.specs strong, .specs b {
  color: var(--ink);
  font-weight: 700;
}
.api-value {
  margin-top: auto;
  background: var(--ink-bg);
  color: #F2EBDF;
  border-radius: 10px;
  padding: 10px 12px;
}
.api-value .k {
  font-size: 11.5px;
  color: #BDB2A2;
  margin-bottom: 2px;
}
.api-value .v {
  font-size: 14.5px;
  font-weight: 800;
  color: #FFB494;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.api-value .note {
  font-size: 11px;
  color: #9E9386;
  margin-top: 2px;
}

/* ==================== 3. SHORT TERM + RED LINE ==================== */
.short-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.scard {
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 15px 17px;
}
.scard-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.scard-hd b {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}
.scard-hd .days {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--cream-2);
  color: var(--ink-2);
}
.sprice {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.sprice .in {
  font-size: 25px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sprice .in small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.sretail {
  font-size: 13px;
  font-weight: 700;
  color: var(--clay-btn);
  background: var(--clay-soft);
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.sretail.flat {
  color: var(--warn);
  background: var(--warn-soft);
}
.smeta {
  font-size: 12.3px;
  color: var(--ink-3);
  line-height: 1.45;
}
.smeta strong { color: var(--ink-2); }

.redline-box {
  background: linear-gradient(90deg, #9C381C 0%, #B4532F 100%);
  color: #FFF8EF;
  border-radius: 14px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.redline-badge {
  flex: none;
  background: #15120F;
  color: #FFB494;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 13px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}
.redline-text {
  font-size: 13.8px;
  line-height: 1.55;
}
.redline-text strong, .redline-text b {
  color: #FFFFFF;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 3px;
}

.bonus-box {
  margin-top: 12px;
  background: linear-gradient(90deg, #1E1914 0%, #2C231B 100%);
  color: #FFF8EF;
  border: 1.5px solid #D99B4E;
  border-radius: 14px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.bonus-badge {
  flex: none;
  background: linear-gradient(135deg, #F0B663 0%, #D98A36 100%);
  color: #1A140E;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 13px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}
.bonus-text {
  font-size: 13.8px;
  line-height: 1.55;
  color: #EAE0D2;
}
.bonus-text strong, .bonus-text b {
  color: #FFD18C;
  font-weight: 800;
}

/* ==================== 4. COMPARE TABLE ==================== */
.tbl-wrap {
  background: var(--cream);
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
}
.tbl-scroll { overflow-x: auto; }
table.cmp {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}
table.cmp th, table.cmp td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.cmp thead th {
  background: #EFE7D8;
  color: var(--ink);
  font-weight: 800;
  font-size: 13.5px;
  border-bottom: 1.5px solid var(--line-strong);
}
table.cmp thead th:first-child { width: 21%; color: var(--ink-2); }
table.cmp thead th:not(:first-child) { width: 26.3%; }
table.cmp tbody td:first-child {
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(239, 231, 216, 0.35);
}
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .hi { font-weight: 800; color: var(--clay-btn); }
table.cmp .ok { font-weight: 700; color: var(--ok); }
.cmp-note {
  margin-top: 9px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}
.cmp-note strong { color: var(--ink-2); }

/* ==================== 5. WARRANTY & FOOTER ==================== */
.warranty-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}
.wcard {
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 18px;
  border: 1.5px solid rgba(30, 126, 78, 0.32);
}
.wcard.no {
  border-color: var(--line-strong);
  background: #EFEAE0;
}
.wcard h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.wcard:not(.no) h3 { color: var(--ok); }
.wcard.no h3 { color: var(--ink-2); }
.wcard ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.wcard ul strong, .wcard ul b { color: var(--ink); }

.wcard.ex {
  margin-top: 14px;
  border-color: rgba(184, 66, 39, 0.38);
  background: #FFF7F4;
}
.wcard.ex h3 {
  color: var(--warn);
  justify-content: space-between;
}
.wcard.ex .ex-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
}
.ex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin-bottom: 10px;
}
.ex-item {
  font-size: 12.8px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.ex-item::before {
  content: "×";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--warn);
  font-weight: 900;
  font-size: 14px;
}
.ex-item b { color: var(--ink); }
.ex-rule {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(184, 66, 39, 0.08);
  border: 1px solid rgba(184, 66, 39, 0.22);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ex-rule strong, .ex-rule b { color: var(--warn); }
.ex-rule .rights {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  background: rgba(255, 252, 246, 0.85);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(70, 48, 24, 0.14);
}

.footer {
  margin-top: 28px;
  background: var(--ink-bg);
  color: #F2EBDF;
  padding: 24px 48px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-left { flex: 1; min-width: 280px; }
.foot-left h3 {
  font-size: 22px;
  font-weight: 800;
  color: #FFFCF6;
  margin-bottom: 6px;
}
.foot-left p {
  font-size: 13.5px;
  color: #BDB2A2;
  line-height: 1.6;
}
.foot-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.foot-tags span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.08);
  border: 1px solid rgba(255, 252, 246, 0.14);
  color: #E6DDD0;
}
.foot-cta {
  flex: none;
  background: rgba(226, 122, 80, 0.14);
  border: 1px solid rgba(226, 122, 80, 0.42);
  border-radius: 14px;
  padding: 16px 22px;
  text-align: right;
}
.foot-cta b {
  display: block;
  font-size: 16px;
  color: #FFFCF6;
  margin-bottom: 4px;
}
.foot-cta span {
  display: block;
  font-size: 13px;
  color: #E2D5C5;
  line-height: 1.5;
}
.foot-mail-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(226, 122, 80, 0.35);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.foot-mail {
  color: #FFB494;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  font-family: var(--mono);
}
.foot-mail:hover { text-decoration: underline; }
.dp-copy-btn {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 148, 0.45);
  background: rgba(226, 122, 80, 0.16);
  color: #FFFCF6;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.dp-copy-btn:hover { background: rgba(226, 122, 80, 0.32); }
.foot-extra {
  margin-top: 6px;
  font-size: 12.5px;
  color: #D8CEC0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .hero { padding: 28px 24px 30px; }
  .hero h1 { font-size: 32px; }
  .sec { padding: 24px 24px 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monthly-grid, .short-grid, .warranty-grid, .ex-grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding: 22px 24px 26px; }
  .foot-cta { width: 100%; text-align: left; }
  .foot-mail-row { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .dp-wrap { padding: 10px 8px 30px; }
  .hero h1 { font-size: 26px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .redline-box, .bonus-box { flex-direction: column; align-items: flex-start; }
}

/* ==================== PRINT / PDF EXPORT ==================== */
@page {
  size: A4 portrait;
  margin: 8mm;
}
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  html, body {
    background: var(--paper) !important;
    width: 100% !important;
  }
  .dp-bar, .pv-bar, .dp-copy-btn {
    display: none !important;
  }
  .dp-wrap {
    padding: 0 !important;
  }
  .poster {
    max-width: none !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .hero { padding: 24px 28px 26px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 13.5px; margin-bottom: 18px; }
  .sec { padding: 18px 28px 0; }
  .sec-title h2 { font-size: 18px; }
  .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
  .monthly-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px; }
  .short-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px; }
  .warranty-grid { grid-template-columns: 1.25fr 0.75fr !important; gap: 10px; }
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tbl-scroll { overflow: visible !important; }
  table.cmp { min-width: 0 !important; font-size: 11px; }
  table.cmp th, table.cmp td { padding: 7px 9px; }
  .dealer-price-row .val { font-size: 24px; }
  .pname { font-size: 20px; }
  .footer { padding: 18px 28px 20px; margin-top: 18px; }
  .pillar, .pcard, .scard, .redline-box, .bonus-box, .wcard, .footer, table.cmp tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
