/* The offer: two cards on the page, the Chassis File on paper and Chassis Plus on ink.
   Written for phones first (one column, button last); laptops put the name and price beside the list.
   Adds to .md-offer in md-home.css; the one-screen rules there still apply. */
.ofr-wrap { display: grid; gap: 14px; }
.ofr-head { margin-bottom: 6px; }
.ofr-head .md-h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.25rem); line-height: 1.08; }
.ofr-lead { margin-top: 10px; max-width: 34ch; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.45; }

.ofr-card {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "list" "cta"; row-gap: 20px;
  padding: 22px 20px 20px; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px;
  box-shadow: 0 1px 2px rgba(45, 32, 12, 0.08), 0 16px 30px -22px rgba(45, 32, 12, 0.45);
}
.ofr-main { grid-area: main; }
.ofr-list { grid-area: list; }
.ofr-cta { grid-area: cta; }
.ofr-card p, .ofr-card ul, .ofr-card h3 { margin: 0; }

.ofr-tag {
  display: inline-block; padding: 6px 10px 5px; border: 1px solid var(--rule-strong); border-radius: 2px;
  font-size: 0.8125rem; font-weight: 400; letter-spacing: 0.14em; line-height: 1; text-transform: uppercase; color: var(--burgundy);
}
.ofr-price { margin-top: 14px !important; display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 3rem; line-height: 0.95; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: lining-nums; }
.ofr-price span { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--ink-3); }
.ofr-terms { margin-top: 8px !important; color: var(--ink-3); font-size: 0.9375rem; line-height: 1.4; }
.ofr-pitch { margin-top: 12px !important; max-width: 36ch; color: var(--ink); font-size: 1.0625rem; line-height: 1.45; }

.ofr-list { padding-top: 16px; border-top: 1px solid var(--rule); }
.ofr-list-title { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.ofr-list ul { list-style: none; padding: 0; margin-top: 12px !important; display: grid; gap: 10px; }
.ofr-list li { position: relative; padding-left: 34px; font-size: 1rem; line-height: 1.4; color: var(--ink-2); }
.ofr-list li strong { color: var(--ink); font-weight: 600; }
/* The bullet: a small round seal with a tick, drawn in CSS like the site's other marks. */
.ofr-list li::before { content: ""; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border: 1px solid var(--rule-strong); border-radius: 50%; background: var(--sand); }
.ofr-list li::after { content: ""; position: absolute; left: 8px; top: 3px; width: 5px; height: 10px; border-right: 2px solid var(--burgundy); border-bottom: 2px solid var(--burgundy); transform: rotate(45deg); }

.ofr-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px 0 20px;
  background: var(--burgundy); color: var(--on-burgundy); border-radius: 2px; text-decoration: none;
  font: 600 1.0625rem/1.2 var(--sans); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 1px 2px rgba(40, 0, 4, 0.18);
  transition: background-color 180ms var(--ease-out);
}
.ofr-cta:hover { background: var(--burgundy-hover); }
.ofr-arrow { flex: none; transition: transform 220ms var(--ease-out); }
.ofr-cta:hover .ofr-arrow { transform: translate(2px, -2px); }

/* Chassis Plus on ink. */
.ofr-dark { background: var(--ink); border-color: var(--ink); color: var(--sand); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 24px 40px -24px rgba(0, 0, 0, 0.6); }
.ofr-dark .ofr-tag { border-color: #5a574f; color: #e6cfcb; }
.ofr-dark .ofr-price { color: var(--sand); }
.ofr-dark .ofr-price span, .ofr-dark .ofr-terms { color: #c9c5b9; }
.ofr-dark .ofr-pitch, .ofr-dark .ofr-list-title, .ofr-dark .ofr-list li strong { color: var(--sand); }
.ofr-dark .ofr-list { border-top-color: #3d3c37; }
.ofr-dark .ofr-list li { color: #c9c5b9; }
.ofr-dark .ofr-list li::before { background: #1c1d1a; border-color: #5a574f; }
.ofr-dark .ofr-list li::after { border-color: var(--sand); }
.ofr-dark .ofr-cta { background: var(--sand); color: var(--ink); box-shadow: none; }
.ofr-dark .ofr-cta:hover { background: var(--paper); }

.ofr-soon { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.45; }
.ofr-soon .md-mono { display: inline-block; margin-right: 8px; padding: 3px 7px 2px; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* Phones: each card is a block of its own, never taller than the screen. */
@media (max-width: 640px) {
  .ofr.md-offer { padding-block: 32px; }
  .ofr-card { scroll-margin-top: 80px; }
}
/* Short phones: a little tighter, nothing taken away. */
@media (max-width: 640px) and (max-height: 720px) {
  .ofr-card { row-gap: 14px; padding: 16px 16px 16px; }
  .ofr-price { margin-top: 10px !important; font-size: 2.5rem; }
  .ofr-pitch { margin-top: 8px !important; }
  .ofr-list { padding-top: 12px; }
  .ofr-list ul { margin-top: 8px !important; gap: 6px; }
  .ofr-list li { font-size: 0.9375rem; line-height: 1.35; }
  .ofr-list li::before { width: 20px; height: 20px; }
  .ofr-list li::after { left: 7px; top: 2px; }
  .ofr-cta { min-height: 50px; }
}

/* The smallest phones (320 wide): the line above the list repeats it, so it steps aside; the rest tightens. */
@media (max-width: 360px) and (max-height: 640px) {
  .ofr-pitch { display: none; }
  .ofr-card { padding: 14px; row-gap: 12px; }
  .ofr-price { font-size: 2.25rem; }
  .ofr-list ul { gap: 4px; }
  .ofr-list li { padding-left: 30px; line-height: 1.28; }
  .ofr-cta { min-height: 48px; font-size: 1rem; }
  .ofr-tag { padding: 4px 8px 3px; }
  .ofr-price { margin-top: 8px !important; }
  .ofr-terms { margin-top: 6px !important; }
  .ofr-list { padding-top: 10px; }
  .ofr-list ul { margin-top: 6px !important; }
}

/* Tablets and laptops: name, price and button on the left, what is included on the right. */
@media (min-width: 641px) {
  .ofr-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-areas: "main list" "cta list"; column-gap: clamp(28px, 5vw, 80px); row-gap: 18px; padding: 28px 32px; }
  .ofr-cta { align-self: end; max-width: 26rem; }
  .ofr-list { padding-top: 0; border-top: 0; }
}
@media (min-width: 961px) {
  .ofr-wrap { gap: clamp(10px, 1.8svh, 16px); max-width: 1180px; margin-inline: auto; width: 100%; }
  .ofr-head { margin-bottom: clamp(6px, 1.6svh, 18px); text-align: center; }
  .ofr-head .md-h2 { font-size: clamp(2.2rem, min(1.2rem + 2.4vw, 6.6svh), 3.5rem); }
  .ofr-lead { max-width: none; margin-inline: auto; font-size: 1.1875rem; }
  .ofr-card { padding: clamp(18px, 3svh, 32px) clamp(28px, 3vw, 44px); row-gap: clamp(12px, 2svh, 20px); }
  .ofr-price { margin-top: clamp(8px, 1.6svh, 16px) !important; font-size: clamp(2.6rem, min(1.6rem + 2.2vw, 7.6svh), 4rem); }
  .ofr-pitch { font-size: 1.125rem; }
  .ofr-list ul { gap: clamp(6px, 1.1svh, 11px); margin-top: clamp(8px, 1.4svh, 14px) !important; }
  .ofr-list li { font-size: 1.0625rem; }
  .ofr-cta { min-height: clamp(50px, 6.4svh, 60px); font-size: 1.125rem; }
  .ofr-soon { text-align: center; }
}
