/* AstroVedansh web app. Tokens follow the Figma design system (Foundations page).
   Two shades are darker than in Figma so they pass WCAG AA: placeholder text and the input border. */
:root {
  --bg-page: #ffffff; --bg-soft: #fff8ec; --bg-brand: #7a1128; --bg-inverse: #2b1a1d; --bg-success: #e6f4ea; --bg-warning: #fff1d6;
  --text-primary: #2b1a1d; --text-muted: #5c4a4d; --text-placeholder: #7a6b6d; --text-brand: #7a1128; --text-on-brand: #ffffff; --text-success: #17603a; --text-warning: #7a4a00; --text-error: #a3271b;
  --border-default: #eadfcb; --border-input: #9c865f; --border-brand: #7a1128; --border-accent: #e8c877;
  --sp-xs: 0.25rem; --sp-sm: 0.5rem; --sp-md: 0.75rem; --sp-lg: 1rem; --sp-xl: 1.25rem; --sp-2xl: 1.5rem;
  --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 18px;
  --head: Poppins, system-ui, sans-serif; --body: Mukta, system-ui, -apple-system, "Segoe UI", sans-serif; --hindi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f4efe6; color: var(--text-primary); font: 1rem/1.45 var(--body); -webkit-font-smoothing: antialiased; }
.app { max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg-page); display: flex; flex-direction: column; position: relative; }
.screen { flex: 1; display: flex; flex-direction: column; gap: var(--sp-lg); padding: var(--sp-xl) var(--sp-xl) var(--sp-2xl); }
.screen.soft { background: var(--bg-soft); }
.center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--sp-lg); padding: var(--sp-2xl); }
.stack { display: flex; flex-direction: column; gap: var(--sp-md); }
.row { display: flex; align-items: center; gap: var(--sp-md); }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.625rem; line-height: 1.25; }
h2 { font-size: 1.375rem; line-height: 1.3; }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--text-muted); }
.small { font-size: 0.9375rem; }
.price { font-family: var(--head); font-weight: 600; }
a { color: var(--text-brand); text-underline-offset: 3px; }
a.plain { text-decoration: none; color: inherit; }
:focus-visible { outline: 3px solid var(--border-brand); outline-offset: 2px; }
[hidden] { display: none !important; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: var(--sp-sm); min-height: 56px; padding: 0.5rem 1.75rem; border-radius: var(--r-md); border: 1.5px solid var(--bg-brand); background: var(--bg-brand); color: var(--text-on-brand); font: 600 1.125rem/1.3 var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn.secondary { background: var(--bg-page); color: var(--text-brand); }
.btn.small { min-height: 46px; padding: 0.375rem 1.125rem; font-size: 1rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0.75rem 0; color: var(--text-brand); font: 600 1rem var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* top bar and tab bar */
.topbar { display: flex; align-items: center; gap: var(--sp-xs); min-height: 56px; padding: 0 var(--sp-sm); background: var(--bg-page); position: sticky; top: 0; z-index: 5; }
.iconbtn { width: 48px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: none; color: var(--text-primary); cursor: pointer; text-decoration: none; }
.iconbtn.ring { border: 1px solid var(--border-default); color: var(--text-brand); }
.tabbar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 72px; background: var(--bg-page); border-top: 1px solid var(--border-default); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0.5rem 0.25rem; color: var(--text-muted); font: 500 0.875rem/1.2 var(--body); text-decoration: none; text-align: center; }
.tabbar a[aria-current="page"] { color: var(--text-brand); font-weight: 600; }
.bottombar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: var(--sp-lg); padding: var(--sp-lg) var(--sp-xl); padding-bottom: calc(var(--sp-lg) + env(safe-area-inset-bottom)); background: var(--bg-page); border-top: 1px solid var(--border-default); }
.bottombar .btn { flex: 1; }
.total { display: flex; flex-direction: column; line-height: 1.2; }
.total .price { font-size: 1.5rem; }

/* cards, rows, tiles */
.card { border: 1px solid var(--border-default); border-radius: var(--r-lg); padding: var(--sp-lg); display: flex; flex-direction: column; gap: var(--sp-md); }
.card.soft { background: var(--bg-soft); border-color: transparent; border-radius: var(--r-xl); }
.card.accent { background: var(--bg-soft); border-color: var(--border-accent); }
.card.dark { background: var(--bg-inverse); color: var(--text-on-brand); border-color: transparent; border-radius: var(--r-xl); }
.listrow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); min-height: 76px; padding: 0.875rem 0.75rem 0.875rem 1rem; border: 1px solid var(--border-default); border-radius: var(--r-lg); text-decoration: none; color: var(--text-primary); background: var(--bg-page); }
.listrow.accent { background: var(--bg-soft); border-color: var(--border-accent); }
.listrow .title { font: 600 1.1875rem/1.3 var(--head); }
.listrow .trail { display: flex; align-items: center; gap: 6px; flex: none; color: var(--text-brand); }
.listrow .trail .price { color: var(--text-primary); font-size: 1.0625rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-md); }
.tile { min-height: 126px; padding: 0.875rem; border: 1px solid var(--border-default); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text-primary); }
.tile .title { font: 600 1.0625rem/1.3 var(--head); }
.tile.accent { background: var(--bg-soft); border-color: var(--border-accent); }
.tile .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); }
.tile .price { color: var(--text-brand); font-size: 1.0625rem; }
.tile.accent .price { font-size: 0.9375rem; white-space: nowrap; }
.tile { position: relative; }
.tile .pdf { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--border-accent); color: var(--text-brand); font: 600 0.75rem/1.4 var(--body); letter-spacing: 0.04em; }
.ghic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); color: var(--text-brand); display: flex; align-items: center; justify-content: center; }
/* consultation packages: a row on phones, a card on desktop */
.ctiles { display: grid; gap: var(--sp-md); }
.ctile { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: var(--sp-md); row-gap: 2px; align-items: center; padding: 0.875rem; border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-page); color: var(--text-primary); text-decoration: none; }
.ctile .ic { grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); color: var(--text-brand); display: flex; align-items: center; justify-content: center; }
.ctile .mins { grid-column: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--text-brand); }
.ctile .mins .chip { padding: 1px 8px; font-size: 0.8125rem; }
.ctile .title { grid-column: 2; font: 600 1.0625rem/1.3 var(--head); }
.ctile .desc { grid-column: 2; font-size: 0.9375rem; }
.ctile .foot { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-sm); }
.ctile .price { color: var(--text-brand); font-size: 1.0625rem; }
.tile .ic { width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; background: var(--bg-soft); color: var(--text-brand); display: flex; align-items: center; justify-content: center; }
.tile .ask { font-size: 0.9375rem; color: var(--text-muted); }
.go { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-brand); color: var(--text-on-brand); font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 10px; border-radius: 999px; font: 600 0.875rem/1.3 var(--body); flex: none; }
.chip.ok { background: var(--bg-success); color: var(--text-success); }
.chip.wait { background: var(--bg-warning); color: var(--text-warning); }
.avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.kv { display: flex; justify-content: space-between; gap: var(--sp-lg); }
.kv > :last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.divide > * + * { border-top: 1px solid var(--border-default); padding-top: var(--sp-md); }
.dark .divide > * + *, .card.dark .kv + .kv { border-color: rgba(255, 255, 255, 0.18); }
.check { display: flex; gap: var(--sp-md); align-items: flex-start; font-size: 1.125rem; }
.check svg { flex: none; margin-top: 2px; color: var(--text-brand); }
.notice { border-radius: var(--r-md); padding: var(--sp-md) var(--sp-lg); background: var(--bg-warning); color: var(--text-warning); }
.notice.err { background: #fdecea; color: var(--text-error); }
.rashi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-md); }
.rashi a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 78px; padding: 0.625rem 0.25rem; border: 1px solid var(--border-default); border-radius: var(--r-lg); text-decoration: none; color: var(--text-primary); }
.rashi .hi { font: 1.25rem/1.4 var(--hindi); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label, legend { font-weight: 600; padding: 0; }
.opt { font-weight: 400; color: var(--text-muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
input, textarea, select { width: 100%; min-height: 52px; padding: 0.625rem 0.875rem; border: 1px solid var(--border-input); border-radius: var(--r-md); background: var(--bg-page); color: var(--text-primary); font: 1.0625rem/1.4 var(--body); }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-placeholder); opacity: 1; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--border-brand); outline-offset: 1px; border-color: var(--border-brand); }
[aria-invalid="true"] { border-color: var(--text-error); border-width: 2px; }
.err { color: var(--text-error); font-size: 0.9375rem; font-weight: 600; }
.hint { color: var(--text-muted); font-size: 0.9375rem; }
.cols { display: grid; gap: var(--sp-sm); }
.cols.c3 { grid-template-columns: 1fr 1fr 1.4fr; }
.cols.time { grid-template-columns: 1fr 1fr 1.2fr; }
.cols.phone { grid-template-columns: minmax(104px, 0.9fr) 2fr; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--sp-md); }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0.375rem 0.5rem; border: 1px solid var(--border-input); border-radius: var(--r-md); font-size: 1.0625rem; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; min-height: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--bg-soft); border: 2px solid var(--border-brand); color: var(--text-brand); font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--border-brand); outline-offset: 2px; }
.places { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-input); border-radius: var(--r-md); overflow: hidden; }
.places button { display: block; width: 100%; min-height: 48px; padding: 0.625rem 0.875rem; border: 0; border-top: 1px solid var(--border-default); background: var(--bg-page); color: var(--text-primary); font: 1rem/1.35 var(--body); text-align: left; cursor: pointer; }
.places li:first-child button { border-top: 0; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); min-height: 52px; padding: 0.5rem 0.5rem 0.5rem 0.875rem; border: 2px solid var(--border-brand); border-radius: var(--r-md); background: var(--bg-soft); font-weight: 600; }
.badge { width: 96px; height: 96px; border-radius: 50%; background: var(--bg-success); color: var(--text-success); display: flex; align-items: center; justify-content: center; }
.badge.wait { background: var(--bg-warning); color: var(--text-warning); }
.badge.bad { background: #fdecea; color: var(--text-error); }
.big { font: 600 4.5rem/1 var(--head); }

/* home page sections and the footer */
.wrap { width: 100%; margin: 0 auto; padding: 0 var(--sp-xl); }
.home { flex: 1; display: flex; flex-direction: column; }
.band { padding: var(--sp-xl) 0; }
.band.soft { background: var(--bg-soft); }
.band > .wrap { display: flex; flex-direction: column; gap: var(--sp-lg); }
.lead { font-size: 1.125rem; }
.rows { display: flex; flex-direction: column; gap: var(--sp-lg); }
.steps { display: grid; gap: var(--sp-lg); }
.step { display: flex; gap: var(--sp-md); align-items: flex-start; }
.step .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-brand); color: var(--text-on-brand); display: flex; align-items: center; justify-content: center; font: 600 1.125rem/1 var(--head); }
.step h3 { font-size: 1.125rem; }
.pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-md); }
.pages img { display: block; width: 100%; height: auto; border: 1px solid var(--border-default); border-radius: var(--r-sm); background: var(--bg-soft); }
.quotes { display: grid; gap: var(--sp-md); }
.quote { margin: 0; padding: var(--sp-lg); background: var(--bg-page); border: 1px solid var(--border-default); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: var(--sp-sm); }
.quote blockquote { margin: 0; font-size: 1.125rem; }
.faq { display: flex; flex-direction: column; gap: var(--sp-sm); }
.faq details { background: var(--bg-page); border: 1px solid var(--border-default); border-radius: var(--r-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); min-height: 56px; padding: 0.75rem 1rem; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 600 1.5rem/1 var(--head); color: var(--text-brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1rem 1rem; color: var(--text-muted); }
.daycar { position: relative; padding: 0; overflow: hidden; }
.daycar .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.daycar .track::-webkit-scrollbar { display: none; }
.daycar .slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-md); padding: var(--sp-lg); }
.daycar .day { flex: 1; min-width: 0; gap: 2px; }
.daycar .day > * { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.daycar .day h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; min-height: 2.6em; font-size: 1.0625rem; line-height: 1.3; }
.daycar .slide { min-height: 106px; }
.daycar .slide:focus-visible { outline-offset: -3px; border-radius: var(--r-xl); }
.daycar .dots { position: absolute; right: 10px; bottom: 6px; display: flex; }
.daycar .dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.daycar .dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--border-accent); transition: width 0.2s ease, background-color 0.2s ease; }
.daycar .dots button[aria-current="true"]::before { width: 18px; background: var(--bg-brand); }
.daylink { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--border-input); border-radius: var(--r-md); color: var(--text-primary); text-decoration: none; font-weight: 600; }
.daylink[aria-current="page"] { background: var(--bg-soft); border: 2px solid var(--border-brand); color: var(--text-brand); }
.cta { display: flex; flex-direction: column; gap: var(--sp-md); }
.anchor { scroll-margin-top: 16px; }
.choose { display: grid; gap: var(--sp-md); }
.pick { display: flex; align-items: flex-start; gap: var(--sp-md); padding: var(--sp-lg); border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-page); }
.pick h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.pick .arrow { flex: none; align-self: center; color: var(--text-brand); }
/* Marriage 360 site */
.tabbar.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eyebrow { font: 600 0.875rem/1.2 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-brand); }
.cta-price { margin-left: 4px; padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.45); }
.parts { display: grid; gap: var(--sp-md); }
.part { display: flex; gap: var(--sp-md); align-items: flex-start; padding: var(--sp-md) var(--sp-lg); border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-page); }
.part .num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--border-accent); color: var(--text-brand); display: flex; align-items: center; justify-content: center; font: 600 0.9375rem/1 var(--head); }
.part h3 { font-size: 1.0625rem; }
.example { padding: var(--sp-lg); background: var(--bg-page); border: 1px solid var(--border-accent); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: var(--sp-sm); font-size: 1.0625rem; line-height: 1.6; }
.example h3 { font: 600 1.125rem/1.4 var(--body); color: var(--text-brand); }
.example .basis { font-size: 0.9375rem; color: var(--text-muted); }
.pages.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pages.three img:last-child { grid-column: 1 / -1; max-width: calc(50% - var(--sp-md) / 2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.chipbtn { min-height: 44px; padding: 0 1rem; border: 1px solid var(--border-input); border-radius: 999px; background: var(--bg-page); color: var(--text-primary); font: 600 1rem/1.2 var(--body); cursor: pointer; }
.chipbtn[aria-pressed="true"] { background: var(--bg-brand); border-color: var(--bg-brand); color: var(--text-on-brand); }
.posts { display: flex; flex-direction: column; gap: var(--sp-md); }
.post { display: flex; align-items: center; gap: var(--sp-md); padding: 10px; border: 1px solid var(--border-default); border-radius: var(--r-lg); background: var(--bg-page); color: var(--text-primary); text-decoration: none; }
.post img { flex: none; width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg-soft); }
.post .grow { display: flex; flex-direction: column; gap: 2px; }
.post .ptitle { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-weight: 600; line-height: 1.35; }
.post:nth-child(n+7) { display: none; }
.posts.all .post:nth-child(n+7) { display: flex; }
.post .ex { display: none; }
.vcard { flex-direction: row; align-items: center; }
.vcard .avatar { width: 64px; height: 64px; }
.vcard h3 { font-size: 1.0625rem; }
.sitefoot { padding: var(--sp-2xl) 0; background: var(--bg-page); border-top: 1px solid var(--border-default); }
.cols4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2xl) var(--sp-lg); align-items: start; }
.cols4 > :first-child { grid-column: 1 / -1; }
.sitefoot h3 { font-size: 1rem; margin-bottom: 4px; }
.sitefoot a { color: var(--text-primary); text-decoration: none; padding: 6px 0; overflow-wrap: anywhere; }
.sitefoot a:hover { color: var(--text-brand); text-decoration: underline; }

@media (min-width: 481px) { .app { box-shadow: 0 0 0 1px var(--border-default); } }
@media (prefers-reduced-motion: no-preference) { .btn, .listrow, .tile { transition: transform 0.08s ease; } .btn:active, .listrow:active, .tile:active { transform: scale(0.985); } }

/* phones and small tablets: no desktop-only parts */
@media (max-width: 899.98px) { .only-desktop, .sitehead { display: none !important; } }

/* desktop: a bar across the top, wide pages, forms in a centred column */
@media (min-width: 900px) {
  .only-mobile, .tabbar { display: none !important; }
  body { background: var(--bg-page); }
  .app { max-width: none; box-shadow: none; }
  .wrap { max-width: 1160px; padding: 0 2rem; }
  h1 { font-size: 2rem; }
  .sitehead { position: sticky; top: 0; z-index: 10; background: var(--bg-page); border-bottom: 1px solid var(--border-default); }
  .sitehead .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
  .brand { display: flex; align-items: center; gap: var(--sp-md); font: 600 1.25rem/1 var(--head); }
  .sitehead nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
  .sitehead nav a { padding: 0.5rem 0.875rem; border-radius: 999px; color: var(--text-primary); text-decoration: none; font-size: 1.0625rem; font-weight: 500; white-space: nowrap; }
  .sitehead nav a:hover { background: var(--bg-soft); }
  .sitehead nav a[aria-current="page"] { background: var(--bg-soft); color: var(--text-brand); font-weight: 600; }
  .sitehead .btn { flex: none; }
  .topbar { position: static; padding-top: 1rem; }
  .app > .screen, .app > .center, .app > .topbar, .app > .bottombar { width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; }
  .app > .screen.wide { max-width: 1160px; padding: 2.5rem 2rem 3.5rem; }
  .bottombar { border: 1px solid var(--border-default); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .tile.accent .price { font-size: 1.1875rem; }
  .rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { padding: 3.5rem 0; }
  .band > .wrap { gap: 1.5rem; }
  .band h2 { font-size: 1.75rem; }
  .hero { padding: 3rem 0; }
  .hero > .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem; }
  .hero h1 { font-size: 2.75rem; line-height: 1.18; letter-spacing: -0.02em; }
  .hero .lead { font-size: 1.25rem; max-width: 44ch; }
  .cta { flex-direction: row; }
  .anchor { scroll-margin-top: 100px; }
  .choose { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .pick { padding: 1.5rem; }
  .pick h3 { font-size: 1.25rem; }
  .pick:hover { border-color: var(--border-brand); }
  .hero .btn { flex: none; }
  .hero .portrait { justify-self: end; width: 100%; max-width: 380px; height: auto; border-radius: 24px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  /* report cards: the question is the headline, the name a label above it, and a solid button */
  .tile { min-height: 320px; padding: 1.5rem; gap: 8px; border: 1.5px solid var(--border-accent); box-shadow: 0 10px 28px rgba(122, 17, 40, 0.07); }
  .tile .ic { order: 0; width: 52px; height: 52px; margin-bottom: 8px; }
  .tile .title { order: 1; font: 600 0.9375rem/1.3 var(--body); letter-spacing: 0.02em; color: var(--text-brand); }
  .tile .ask { order: 2; font: 600 1.375rem/1.25 var(--head); letter-spacing: -0.01em; color: var(--text-primary); }
  .tile .desc { order: 3; }
  .tile .foot { order: 4; padding-top: 0.75rem; }
  .tile .price { font-size: 1.5rem; color: var(--text-primary); }
  .go { width: auto; height: auto; min-height: 44px; padding: 0 0.875rem 0 1.125rem; border-radius: var(--r-md); font-size: 1rem; }
  .ctiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .ctile { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 280px; padding: 1.5rem; border: 1.5px solid var(--border-accent); box-shadow: 0 10px 28px rgba(122, 17, 40, 0.07); }
  .ctile .ic { margin-bottom: 8px; }
  .ctile .title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; }
  .ctile .foot { flex-direction: row; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.75rem; }
  .ctile .price { font-size: 1.5rem; color: var(--text-primary); }
  .ctile:hover { border-color: var(--border-brand); box-shadow: 0 14px 34px rgba(122, 17, 40, 0.13); }
  .tile .pdf { top: 1.5rem; right: 1.5rem; }
  .tile:hover { border-color: var(--border-brand); box-shadow: 0 14px 34px rgba(122, 17, 40, 0.13); }
  .listrow:hover, .rashi a:hover { border-color: var(--border-brand); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .step h3 { font-size: 1.1875rem; }
  .pages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
  .quote { padding: 1.5rem; }
  .rashi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .band .rashi { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .posts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
  .post { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
  .post:nth-child(n+7) { display: flex; }
  .post img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .post .grow { padding: 0.875rem 1rem 1rem; gap: 4px; }
  .post:hover { border-color: var(--border-brand); }
  .post .ex { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .example { max-width: 820px; padding: 1.5rem; }
  .pages.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; }
  .pages.three img:last-child { grid-column: auto; max-width: none; }
  .hero .cover { justify-self: end; width: 100%; max-width: 330px; height: auto; border: 1px solid var(--border-default); border-radius: 10px; box-shadow: 0 18px 40px rgba(43, 26, 29, 0.16); }
  .faq { max-width: 780px; }
  .vcard { padding: 1.5rem; gap: 1.25rem; }
  .vcard .avatar { width: 96px; height: 96px; }
  .vcard h3 { font-size: 1.375rem; }
  .sitefoot { padding: 3rem 0 2rem; }
  .cols4 { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
  .cols4 > :first-child { grid-column: auto; }
}

/* small laptops and tablets held sideways: keep the top bar inside the screen */
@media (min-width: 900px) and (max-width: 1179.98px) {
  .sitehead .btn { display: none; }
  .sitehead .wrap { gap: 1rem; }
  .sitehead nav a { padding: 0.5rem 0.5rem; font-size: 0.9375rem; }
  .brand span { font-size: 1.125rem; }
  .hero h1 { font-size: 2.25rem; }
  .cta { flex-direction: column; align-items: flex-start; }
  .hero > .wrap { gap: 2rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 260px; }
  .ctiles { grid-template-columns: 1fr; }
  .ctile { min-height: 0; }
}
