/* ==========================================================
   داروچین — Home 1 · Apothecary (Clinical calm)
   Idea: the pharmacy's own printed things — the dispensing label,
   the swing tag, the drawer cabinet, the receipt — become the page.
   Type: Kalameh (display) + Dana FaNum (text)
   ========================================================== */

@font-face { font-family: "Dana"; src: url("../fonts/dana/dana-fanum-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Dana"; src: url("../fonts/dana/dana-fanum-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Dana"; src: url("../fonts/dana/dana-fanum-demibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Dana"; src: url("../fonts/dana/dana-fanum-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dana"; src: url("../fonts/dana/dana-fanum-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Kalameh"; src: url("../fonts/kalameh/kalameh-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kalameh"; src: url("../fonts/kalameh/kalameh-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kalameh"; src: url("../fonts/kalameh/kalameh-black.woff") format("woff"); font-weight: 900; font-display: swap; }

.home-apothecary {
  --bg: #f3f0e8;          /* counter paper */
  --paper: #fcfbf7;       /* label stock */
  --surface: #e8e3d7;
  --surface-2: #dbd4c4;
  --ink: #1b2d32;         /* slate ink */
  --muted: #4f5f64;
  --accent: #0b6e78;      /* dispensary teal */
  --accent-ink: #ffffff;
  --field: #173a40;       /* deep teal field */
  --field-ink: #eef3f1;
  --mint: #d8e8e2;
  --kraft: #e7dcc8;
  --danger: #a8322b;
  --radius: 12px;
  --radius-sm: 10px;
  --btn-radius: 10px;
  --font-display: "Kalameh", "Dana", system-ui, sans-serif;
  --font-text: "Dana", system-ui, sans-serif;
  --step-display: clamp(2.6rem, 1.5rem + 4.4vw, 5.25rem);
  --step-head: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}

.a-only-mobile { display: none; }
@media (max-width: 899px) { .a-only-mobile { display: inline-grid; } .a-hide-mobile { display: none !important; } }

/* ---------------- strip + header ---------------- */
.a-strip { background: var(--field); color: var(--field-ink); font-size: .875rem; }
.a-strip__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.a-strip__row p { display: flex; align-items: center; gap: 8px; }
.a-strip__links { display: flex; gap: 22px; }
.a-strip__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) { .a-strip__links a:first-child { display: none; } .a-strip__row p { font-size: .8125rem; } }

.a-header { position: sticky; top: 0; z-index: 500; background: var(--bg); transition: box-shadow .3s; }
.a-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(23, 58, 64, .45); }
.a-header__row { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 84px; }

.a-logo { display: flex; align-items: center; gap: 10px; color: var(--accent); flex-shrink: 0; }
.a-logo__mark { width: 44px; height: 44px; }
.a-logo span { display: grid; line-height: 1.1; }
.a-logo b { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--ink); }
.a-logo small { font-size: .78rem; color: var(--muted); margin-top: 4px; }

.a-search { flex: 1; display: flex; align-items: stretch; height: 52px; background: var(--paper); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--surface-2); transition: box-shadow .25s; }
.a-search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.a-search select { border: 0; background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 0 14px 0 30px; font-size: .9rem; font-weight: 600; color: var(--ink); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231b2d32' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; }
.a-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 1rem; outline: none; }
.a-search button { width: 54px; display: grid; place-items: center; color: var(--accent); }
.a-search input:focus-visible, .a-search select:focus-visible { outline: none; }

.a-actions { display: flex; align-items: center; gap: 4px; }
.a-rx-btn { margin-inline-end: 8px; }

.a-nav { position: relative; }
.a-nav__row { display: flex; align-items: center; gap: 28px; min-height: 52px; border-top: 3px dotted var(--surface-2); }
.a-nav__all { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 14px; margin-inline-start: -14px; border-radius: var(--radius-sm); transition: background-color .2s; }
.a-nav__all:hover, .a-nav__all[aria-expanded="true"] { background: var(--surface); }
.a-nav__all svg:last-child { transition: rotate .3s var(--ease-out); }
.a-nav__links { display: flex; gap: 26px; font-weight: 500; color: var(--muted); }
.a-nav__links a { position: relative; padding-block: 6px; transition: color .2s; }
.a-nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.a-nav__links a:hover { color: var(--ink); }
.a-nav__links a:hover::after { transform: scaleX(1); }
.a-nav__deal { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--danger); }

.a-mega { position: absolute; inset-inline: 0; top: 100%; background: var(--paper); box-shadow: var(--shadow-float); padding-block: 32px 36px; }
.a-mega__grid { display: grid; grid-template-columns: repeat(6, 1fr) 1.4fr; gap: 28px; }
.a-mega__head { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.a-mega__col li a { display: block; padding: 5px 0; color: var(--muted); transition: color .2s, transform .2s; }
.a-mega__col li a:hover { color: var(--ink); transform: translateX(-3px); }
.a-mega__promo { display: grid; gap: 6px; padding: 12px; background: var(--mint); border-radius: var(--radius); align-content: start; }
.a-mega__promo img { width: 100%; aspect-ratio: 7/5; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface); }
.a-mega__promo strong { font-family: var(--font-display); font-size: 1.25rem; margin-top: 6px; }
.a-mega__promo span { font-size: .9rem; color: var(--muted); }

@media (max-width: 1100px) { .a-nav__links li:nth-child(n+5) { display: none; } .a-mega__grid { grid-template-columns: repeat(3, 1fr); } .a-mega__promo { grid-column: span 3; grid-template-columns: 180px 1fr; } .a-mega__promo img { grid-row: span 3; } }
@media (max-width: 899px) {
  .a-nav { display: none; }
  .a-header__row { flex-wrap: wrap; min-height: 0; padding-block: 10px; row-gap: 10px; }
  .a-logo { margin-inline-end: auto; }
  .a-logo b { font-size: 1.4rem; } .a-logo__mark { width: 38px; height: 38px; }
  .a-search { order: 5; flex-basis: 100%; height: 48px; }
  .a-search select { display: none; }
  .a-rx-btn { min-height: 40px; padding: 0 12px; font-size: .875rem; margin: 0; }
}
@media (max-width: 420px) { .a-logo small { display: none; } .a-rx-btn span, .a-rx-btn { font-size: .8125rem; } }

/* ---------------- section frame ---------------- */
.a-section { padding-block: clamp(72px, 9vw, 140px); }
.a-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 3.5vw, 48px); flex-wrap: wrap; }
.a-head h2 { font-size: var(--step-head); font-weight: 900; letter-spacing: -0.01em; }
.a-head .link-arrow { color: var(--accent); }

/* ---------------- HERO: the dispensing label ---------------- */
.a-hero { background: var(--field); color: var(--field-ink); padding-block: clamp(40px, 6vw, 88px) 0; overflow: hidden; }
.a-hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 3vw, 48px); align-items: end; }

.a-label {
  --notch: 18px;
  position: relative; z-index: 2;
  background: var(--paper); color: var(--ink);
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 60px) 0;
  margin-bottom: clamp(40px, 5vw, 72px);
  /* notched label corners */
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) top left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) top right / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) bottom left / 51% 51% no-repeat,
                radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) bottom right / 51% 51% no-repeat;
  animation: a-print 1.1s var(--ease-out) both .15s;
}
@keyframes a-print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.a-label__top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .875rem; color: var(--muted); padding-bottom: 18px; margin-bottom: clamp(24px, 3vw, 40px); border-bottom: 2px solid var(--ink); }
.a-label__shop { font-weight: 700; color: var(--accent); }
.a-label__title { font-size: var(--step-display); font-weight: 900; line-height: 1.12; letter-spacing: -0.015em; }
.a-label__lead { font-size: var(--step-lead); max-width: 38ch; margin-top: clamp(16px, 2vw, 28px); color: var(--ink); line-height: 1.75; }

.a-label__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(28px, 3vw, 40px); background: var(--bg); border-radius: var(--radius-sm); }
.a-label__facts div { padding: 14px 16px; }
.a-label__facts div + div { border-inline-start: 2px dotted var(--surface-2); }
.a-label__facts dt { font-size: .8125rem; color: var(--muted); }
.a-label__facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.5; }

.a-label__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.a-label__stub {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: clamp(28px, 3vw, 40px) calc(-1 * clamp(24px, 4vw, 60px)) 0;
  padding: 18px clamp(24px, 4vw, 60px);
  background: var(--mint);
  border-top: 4px dotted var(--field);
  font-size: .95rem;
}
.a-label__stub b { letter-spacing: .06em; }
.a-label__stub button { font-weight: 700; color: var(--accent); padding: 6px 12px; border-radius: 8px; transition: background-color .2s; }
.a-label__stub button:hover { background: var(--paper); }

.a-hero__photo { position: relative; align-self: stretch; margin: 0; min-height: 520px; }
.a-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #24494f; animation: a-drift 18s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes a-drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateY(-1.5%); } }
.a-hero__photo { overflow: hidden; }
.a-hero__photo figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 48px 20px 18px; font-size: .875rem; color: #fff; background: linear-gradient(to top, rgba(10, 25, 28, .72), transparent); }

@media (max-width: 899px) {
  .a-hero { padding-top: 16px; }
  .a-hero__grid { grid-template-columns: 1fr; }
  .a-hero__photo { order: -1; min-height: 0; aspect-ratio: 4/3; margin-inline: calc(-1 * var(--gutter)); }
  .a-label { margin-top: -56px; margin-bottom: 40px; }
  .a-hero__photo figcaption { display: none; }
  .a-receipt__total { flex-wrap: wrap; }
  .a-label__facts { grid-template-columns: 1fr; }
  .a-label__facts div + div { border-inline-start: 0; border-top: 2px dotted var(--surface-2); }
  .a-label__actions .btn { flex: 1 1 auto; }
}

/* ---------------- CABINET ---------------- */
.a-cabinet {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px;
  gap: 12px; padding: 12px; background: var(--kraft); border-radius: var(--radius);
}
.a-drawer--1 { grid-column: span 2; grid-row: span 2; }
.a-drawer--4, .a-drawer--5, .a-drawer--6 { grid-column: span 2; }
.a-drawer {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 14px 14px 18px; background: var(--paper); border-radius: var(--radius-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.a-drawer:hover { transform: translateY(-6px); box-shadow: 0 22px 30px -22px rgba(23, 58, 64, .55); }
.a-drawer__window { position: relative; flex: 1; min-height: 0; overflow: hidden; border-radius: 8px; background: var(--surface); }
.a-drawer__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.a-drawer:hover .a-drawer__window img { transform: scale(1.06); }
.a-drawer__plate { align-self: center; display: grid; justify-items: center; padding: 8px 22px; background: var(--bg); border-radius: 8px; box-shadow: inset 0 0 0 2px var(--surface-2); text-align: center; }
.a-drawer__plate b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.a-drawer--1 .a-drawer__plate b { font-size: 1.6rem; }
.a-drawer__plate small { color: var(--muted); font-size: .8125rem; }
.a-drawer__pull { align-self: center; width: 64px; height: 10px; border-radius: 10px; background: var(--ink); opacity: .85; transition: width .35s var(--ease-out); }
.a-drawer:hover .a-drawer__pull { width: 84px; }
@media (max-width: 899px) {
  .a-cabinet { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; padding: 8px; gap: 8px; }
  .a-drawer--1 { grid-row: span 1; grid-column: span 2; }
  .a-drawer--4, .a-drawer--5, .a-drawer--6 { grid-column: span 1; }
  .a-drawer--6 { grid-column: span 2; }
  .a-drawer__plate b { font-size: 1rem; } .a-drawer--1 .a-drawer__plate b { font-size: 1.2rem; }
}

/* ---------------- SWING TAG CARD ---------------- */
.tag-card {
  --hole: 14px;
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border-radius: var(--radius);
  padding: 12px 12px 14px;
  transform-origin: 50% 0;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.tag-card:hover { transform: rotate(-1.2deg) translateY(-4px); box-shadow: 0 26px 36px -26px rgba(23, 58, 64, .5); }
.tag-card__hole { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: var(--hole); height: var(--hole); border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--surface-2); z-index: 2; }
.tag-card__stamp { position: absolute; z-index: 2; top: 22px; right: 20px; padding: 4px 10px; border-radius: 6px; background: var(--danger); color: #fff; font-size: .8125rem; font-weight: 800; rotate: 4deg; }
.wish { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--ink); transition: transform .2s var(--ease-out), color .2s; }
.wish:hover { transform: scale(1.08); }
.wish[aria-pressed="true"] { color: var(--danger); }
.tag-card__wish { position: absolute; z-index: 2; top: 18px; left: 18px; }
.tag-card__media { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface); }
.tag-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.tag-card:hover .tag-card__media img { transform: scale(1.05); }
.tag-card__body { display: grid; gap: 6px; padding: 14px 4px 12px; flex: 1; align-content: start; }
.tag-card__brand { font-size: .8125rem; color: var(--muted); }
.tag-card__name { font-family: var(--font-text); font-size: 1rem; font-weight: 700; line-height: 1.55; min-height: 3.1em; }
.tag-card__name a:hover { color: var(--accent); }
.tag-card__add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; border-radius: var(--btn-radius);
  background: var(--mint); color: var(--field); font-weight: 700; font-size: .925rem;
  border-top: 3px dotted var(--paper);
  transition: background-color .25s, color .25s;
}
.tag-card__add:hover { background: var(--accent); color: var(--accent-ink); }

.a-new { background: var(--surface); }
.a-new .tag-card__hole { background: var(--surface); }
.a-new__swiper { overflow: visible; }
.a-new .container { overflow: hidden; padding-block: 8px 24px; margin-block: -8px -24px; }
@media (max-width: 899px) { .a-new .container { overflow: visible; } .a-new { overflow: hidden; } }

/* ---------------- STACKING SHEETS ---------------- */
.a-sheets { padding-bottom: 0; }
.a-sheets__title { font-size: var(--step-head); font-weight: 900; margin-bottom: 40px; max-width: 18ch; }
.a-sheet { position: sticky; top: 140px; border-radius: 28px 28px 0 0; min-height: 70svh; padding-block: 28px 56px; }
.a-sheet:nth-child(2) { top: 196px; }
.a-sheet:nth-child(3) { top: 252px; }
.a-sheet--mint { background: var(--mint); }
.a-sheet--kraft { background: var(--kraft); }
.a-sheet--deep { background: var(--field); color: var(--field-ink); }
.a-sheet--deep .btn { background: var(--paper); color: var(--field); }
.a-sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.a-sheet__text { display: grid; gap: 22px; align-content: start; justify-items: start; }
.a-sheet__text h3 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); font-weight: 900; line-height: 1.25; min-height: 56px; }
.a-sheet__text > p { font-size: 1.075rem; max-width: 46ch; line-height: 1.85; }
.a-sheet__photo { margin: 0; aspect-ratio: 5/4; max-height: 58svh; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.a-sheet__photo img { width: 100%; height: 100%; object-fit: cover; }
.a-ticks { display: grid; gap: 10px; }
.a-ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.a-ticks svg { color: var(--accent); }
.a-sheet--deep .a-ticks svg { color: #8fd3c9; }

.a-rx { display: grid; gap: 12px; width: 100%; max-width: 520px; }
.a-rx__drop {
  display: flex; align-items: center; gap: 14px; padding: 22px; cursor: pointer;
  background: var(--paper); border-radius: var(--radius); outline: 2.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: -8px;
  transition: background-color .25s, outline-color .25s;
}
.a-rx__drop:hover, .a-rx__drop.is-over { background: #fff; outline-color: var(--accent); }
.a-rx__drop.has-file { outline-style: solid; }
.a-rx__drop svg { color: var(--accent); }
.a-rx__drop u { text-underline-offset: 4px; color: var(--accent); font-weight: 700; }
.a-rx__drop:has(input:focus-visible) { outline: 3px solid var(--accent); }
.a-rx__row { display: flex; gap: 10px; }
.a-rx__row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 0; border-radius: var(--btn-radius); background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--surface-2); outline: none; }
.a-rx__row input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.a-rx__hint { color: var(--muted); font-size: .875rem; }
.a-rx__done { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: start; padding: 22px; background: var(--paper); border-radius: var(--radius); max-width: 520px; }
.a-rx__done > svg { color: var(--accent); }
.a-rx__done .link-arrow { grid-column: 2; color: var(--accent); justify-self: start; }

@media (max-width: 899px) {
  .a-sheet { top: 64px; min-height: 0; border-radius: 22px 22px 0 0; padding-block: 24px 48px; }
  .a-sheet:nth-child(2) { top: 96px; } .a-sheet:nth-child(3) { top: 128px; }
  .a-sheet__grid { grid-template-columns: 1fr; }
  .a-sheet__photo { order: -1; aspect-ratio: 4/3; }
  .a-sheet__text h3 { min-height: 0; }
}

/* ---------------- BESTSELLERS ---------------- */
.a-tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface); border-radius: 12px; }
.a-tabs button { padding: 9px 16px; border-radius: 9px; font-weight: 600; color: var(--muted); transition: background-color .25s, color .25s; }
.a-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 4px 10px -6px rgba(23, 58, 64, .4); }
.a-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .a-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .a-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .a-tabs { width: 100%; overflow-x: auto; } .a-tabs button { flex: 1; white-space: nowrap; padding: 9px 10px; } .tag-card__name { font-size: .925rem; } }

/* ---------------- DEAL: receipt ---------------- */
.a-deal { background: var(--kraft); }
.a-deal__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.a-deal__photo { margin: 0; height: 100%; min-height: 420px; overflow: hidden; border-radius: var(--radius); background: #e2c94f; }
.a-deal__photo img { width: 100%; height: 100%; object-fit: cover; }
.a-receipt {
  position: relative; background: var(--paper); padding: 40px clamp(22px, 3vw, 44px) 48px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 22px 100%;
  display: grid; gap: 18px;
}
.a-receipt h2 { font-size: var(--step-head); font-weight: 900; }
.a-receipt__sub { color: var(--muted); margin-top: -8px; }
.a-receipt__lines { display: grid; gap: 4px; padding-block: 14px; border-block: 2px dashed var(--surface-2); }
.a-receipt__lines li { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.a-receipt__lines label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.a-receipt__lines input { width: 20px; height: 20px; accent-color: var(--accent); }
.a-receipt__lines i { flex: 1; border-bottom: 2px dotted var(--surface-2); translate: 0 -4px; }
.a-receipt__lines li:has(input:not(:checked)) span, .a-receipt__lines li:has(input:not(:checked)) b { color: var(--muted); text-decoration: line-through; }
.a-receipt__sum { display: grid; gap: 8px; }
.a-receipt__sum > div { display: flex; justify-content: space-between; gap: 12px; }
.a-receipt__sum del { color: var(--muted); }
.a-receipt__total strong { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.a-receipt__total small { color: var(--danger); font-weight: 700; }
.a-receipt__fine { font-size: .875rem; color: var(--muted); }
.a-receipt__fine b { color: var(--ink); }
@media (max-width: 899px) { .a-deal__grid { grid-template-columns: 1fr; } .a-deal__photo { min-height: 0; aspect-ratio: 4/3; } }

/* ---------------- LETTER ---------------- */
.a-letter-wrap { background: var(--field); }
.a-letter {
  position: relative; max-width: 660px; margin-inline: auto;
  background: var(--paper); padding: 60px clamp(24px, 5vw, 64px) 0;
  display: grid; gap: 18px; font-size: 1.075rem; line-height: 1.95;
}
.a-letter__seal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--accent); margin-bottom: 6px; }
.a-letter mark { background: #f2dd8c; color: inherit; padding: 0 4px; border-radius: 3px; }
.a-letter__sign { display: grid; margin-top: 8px; }
.a-letter__sign strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.a-letter__sign small { color: var(--muted); }
.a-letter__stub { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px calc(-1 * clamp(24px, 5vw, 64px)) 0; padding: 22px clamp(24px, 5vw, 64px); background: var(--mint); border-top: 5px dotted var(--field); font-weight: 600; }
.a-letter__stub a { color: var(--accent); font-weight: 700; }

/* ---------------- JOURNAL ---------------- */
.a-journal__grid { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; gap: 24px; }
.a-post { display: grid; gap: 14px; align-content: start; }
.a-post img { width: 100%; aspect-ratio: 16/11; object-fit: cover; border-radius: var(--radius); background: var(--surface); transition: transform .7s var(--ease-out); }
.a-post:hover img { transform: scale(1.015); }
.a-post--lead { grid-row: span 2; }
.a-post:not(.a-post--lead) { grid-template-columns: 200px 1fr; align-items: center; }
.a-post:not(.a-post--lead) img { aspect-ratio: 1; }
.a-post__meta { font-size: .875rem; color: var(--muted); }
.a-post h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-top: 4px; transition: color .2s; }
.a-post--lead h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); }
.a-post:hover h3 { color: var(--accent); }
.a-post p { margin-top: 8px; max-width: 52ch; }
@media (max-width: 899px) { .a-journal__grid { grid-template-columns: 1fr; } .a-post:not(.a-post--lead) { grid-template-columns: 120px 1fr; } .a-post h3 { font-size: 1.15rem; } }

/* ---------------- FAQ ---------------- */
.a-faq { padding-top: 0; }
.a-faq__grid { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; }
.a-faq__grid h2 { font-size: var(--step-head); font-weight: 900; }
.a-faq__text { columns: 2; column-gap: 56px; }
.a-faq__text p { break-inside: avoid; margin-bottom: 22px; line-height: 1.85; }
.a-faq__text b { font-weight: 700; color: var(--ink); }
@media (max-width: 899px) { .a-faq__grid { grid-template-columns: 1fr; gap: 20px; } .a-faq__text { columns: 1; } }

/* ---------------- FOOTER (curtain) ---------------- */
@media (min-width: 900px) and (min-height: 760px) {
  main { position: relative; z-index: 1; background: var(--bg); }
  .a-footer { position: sticky; bottom: 0; z-index: 0; }
}
.a-footer { background: var(--field); color: var(--field-ink); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.a-footer__top { display: grid; grid-template-columns: 1.2fr 1.6fr 1.1fr; gap: clamp(28px, 4vw, 64px); }
.a-footer__reach { display: grid; gap: 10px; align-content: start; }
.a-footer__reach a { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2rem); font-weight: 700; color: #9fdcd2; width: fit-content; }
.a-footer__reach a:hover { color: #fff; }
.a-footer__reach p { display: flex; gap: 8px; align-items: start; margin-top: 10px; color: #c3d3d0; }
.a-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.a-footer h3 { font-family: var(--font-text); font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.a-footer__cols a { display: block; padding: 4px 0; color: #c3d3d0; transition: color .2s; }
.a-footer__cols a:hover { color: #fff; }
.a-footer__news p { color: #c3d3d0; margin-bottom: 14px; }
.a-footer__news > div:first-of-type { display: flex; gap: 8px; }
.a-footer__news input { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: var(--btn-radius); padding: 0 14px; background: rgba(255, 255, 255, .1); color: #fff; outline: none; }
.a-footer__news input::placeholder { color: #a9bdba; }
.a-footer__news input:focus { background: rgba(255, 255, 255, .16); }
.a-footer__news .btn { background: #9fdcd2; color: var(--field); }
.a-footer__trust { display: flex; gap: 10px; margin-top: 18px; }
.a-footer__trust span { display: grid; place-items: center; width: 92px; height: 92px; padding: 8px; text-align: center; font-size: .78rem; line-height: 1.5; background: rgba(255, 255, 255, .08); border-radius: var(--radius-sm); color: #c3d3d0; }
.a-footer__word { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 22vw, 20rem); line-height: .8; color: rgba(255, 255, 255, .08); text-align: center; margin-top: clamp(40px, 5vw, 72px); height: .62em; overflow: hidden; user-select: none; }
.a-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; font-size: .8125rem; color: #a9bdba; border-top: 4px dotted rgba(255, 255, 255, .14); }
.a-footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .a-footer__top { grid-template-columns: 1fr; } .a-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .a-footer__cols { grid-template-columns: 1fr 1fr; } .a-footer__cols > div:last-child { grid-column: span 2; } }

/* theming the shared drawer for this home */
.home-apothecary .drawer { background: var(--paper); }
.home-apothecary .drawer__head, .home-apothecary .drawer__foot { background: var(--bg); }
