/* ============================================================================
   MILK — new pricing page (draft). Rides on new.css: same blue hero, Barlow
   Condensed caps headings, square 2px corners, Clover-style buttons, grey
   band with dividers. Only what the pricing page adds lives here.
   ========================================================================== */

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.price-num {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: clamp(54px, 6vw, 76px);
  line-height: .9;
  letter-spacing: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-unit { font-size: 15px; font-weight: 600; color: var(--fg2); }
.price-incl { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--fg2); }

/* Extra blue under the title: the base card is pulled up over it. */
.page-hero { padding-bottom: clamp(128px, 14vw, 190px); }

/* ---- The base: a navy card pulled up over the blue ---------------------- */
.base { margin-top: calc(-1 * clamp(84px, 10vw, 132px)); position: relative; z-index: 2; }
.base-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4.4vw, 60px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -36px rgba(15, 27, 45, .6);
}
.base-main { display: flex; flex-direction: column; align-items: flex-start; }
.base-name {
  margin: 12px 0 0;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}
.base-blurb { margin: 16px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.base .price { margin-top: 28px; }
.price-on-ink .price-num { color: #fff; font-size: clamp(72px, 8vw, 104px); }
.price-on-ink .price-unit { color: rgba(255, 255, 255, .78); }
.base .price-incl { color: rgba(255, 255, 255, .7); }
.base .btn { margin-top: 28px; }
.base-list { align-self: center; columns: 1; }
.ticks-on-ink li { color: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ticks-on-ink li:last-child { border-bottom: 0; }

/* ---- Modules ------------------------------------------------------------- */
.modules { padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.mod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 20px;
  margin-top: clamp(36px, 4.4vw, 56px);
}
/* Each card is six rows (tag, name, price, note, button, list) on a subgrid,
   so the prices, lists and buttons line up across cards in a row even when
   one card's note runs longer (Mobile Ordering's launch offer). */
.mod {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  justify-items: start;
  align-content: start;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color .12s, box-shadow .2s, transform .2s var(--ease);
}
.mod:hover { border-color: var(--fg2); }
.mod.is-on {
  border-color: var(--ink);
  box-shadow: 0 16px 30px -18px rgba(15, 27, 45, .4);
  transform: translateY(-4px);
}
.mod-name {
  margin: 14px 0 0;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}
.mod .price { margin-top: 18px; }
.mod .price-num { font-size: 56px; }
.mod .price-unit { font-size: 14px; }
.mod .ticks { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }
.mod .ticks li { font-size: 14px; padding-block: 5px; }
.mod .ticks li::before { top: 11px; }

.mod-add {
  align-self: start;
  width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px;
  margin-top: 18px;
  font: 600 16px/1 var(--font);
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .12s, color .12s;
}
.mod-add svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mod-add-tick { display: none; }
.mod-add:hover { background: var(--mist); }
.mod-add[aria-pressed="true"] { background: var(--ink); color: #fff; }
.mod-add[aria-pressed="true"] .mod-add-plus { display: none; }
.mod-add[aria-pressed="true"] .mod-add-tick { display: block; }
.mod-add-on { display: none; }
.mod-add[aria-pressed="true"] .mod-add-off { display: none; }
.mod-add[aria-pressed="true"] .mod-add-on { display: inline; }

/* ---- Running total ------------------------------------------------------- */
.total {
  position: sticky; bottom: 14px; z-index: 5;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px 32px;
  padding: 12px 14px 12px 24px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgba(15, 27, 45, .55);
}
.total-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.total-title { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--milk); }
.total-sub { font-size: 14px; color: rgba(255, 255, 255, .8); }
.total-offer { font-size: 13px; color: rgba(255, 255, 255, .7); }
.total-offer[hidden] { display: none; }
.total-amount { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.total-num {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: 48px; line-height: .9;
  font-variant-numeric: tabular-nums;
}
.total-num.bump { animation: total-bump .16s var(--ease); }
@keyframes total-bump { from { transform: translateY(3px); opacity: .5; } to { transform: none; opacity: 1; } }
.total-unit { font-size: 14px; color: rgba(255, 255, 255, .78); }
.total-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.total-cta .btn { min-height: 50px; font-size: 17px; }
.total-fine { font-size: 12px; color: rgba(255, 255, 255, .7); white-space: nowrap; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { padding: clamp(72px, 9vw, 120px) 0 0; }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) 2fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.faq-title { margin: 0; text-align: left; position: sticky; top: 96px; }
.faq-list { border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px;
  font-size: 18px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round;
  transition: transform .14s var(--ease);
}
.faq-list details[open] .faq-icon { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--action); }
.faq-list details p {
  margin: 0;
  padding: 0 40px 22px 2px;
  max-width: 68ch;
  font-size: 16px; line-height: 1.65; color: var(--fg);
}
.faq-list details[open] p { animation: faq-in .14s var(--ease) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.faq-list a { color: var(--action); font-weight: 600; }
.faq-list a:hover { color: var(--action-hover); }

/* ---- Narrower screens ---------------------------------------------------- */
@media (max-width: 1100px) {
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .base-card { grid-template-columns: 1fr; }
  .total { grid-template-columns: 1fr auto; }
  .total-cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-title { position: static; }
}
@media (max-width: 600px) {
  .mod-grid { grid-template-columns: 1fr; }
  .total { grid-template-columns: 1fr; padding: 16px 18px; gap: 10px; bottom: 8px; }
  .total-amount { order: -1; }
  .total-num { font-size: 46px; }
  .total-label { gap: 2px; }
  .total-cta { flex-direction: column; align-items: stretch; }
  .total-cta .btn { width: 100%; }
  .total-fine { text-align: center; white-space: normal; }

  /* Following you down the page: just the price and the button. */
  .total.is-stuck { grid-template-columns: 1fr auto; padding: 10px 10px 10px 16px; gap: 12px; }
  .total.is-stuck .total-label,
  .total.is-stuck .total-fine { display: none; }
  .total.is-stuck .total-amount { flex-direction: column; align-items: flex-start; gap: 3px; }
  .total.is-stuck .total-num { font-size: 36px; }
  .total.is-stuck .total-unit { font-size: 12px; }
  .total.is-stuck .total-cta { grid-column: auto; flex-direction: row; }
  .total.is-stuck .total-cta .btn { width: auto; min-height: 46px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
  .total.is-stuck .total-cta .btn-arrow { display: none; }
}
.total-slot { height: 0; }

@media (prefers-reduced-motion: reduce) {
  .mod, .mod.is-on { transition: none; transform: none; }
  .total-num.bump, .faq-list details[open] p { animation: none; }
  .faq-icon { transition: none; }
}
