/* Extra styles for /faq, /medication-reminder-app, /medisafe-alternative and /delete. Loaded after styles.css and pages.css. */

.x-hero { max-width: 1240px; margin: 0 auto; padding: clamp(118px, 13vw, 168px) var(--gutter) clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.x-hero-copy { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; min-width: 0; }
.x-hero .display { font-size: clamp(44px, 8.4vw, 128px); overflow-wrap: anywhere; }
.x-hero .hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.x-hero-phone { display: none; }
@media (min-width: 900px) {
  .x-hero.has-phone { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 4vw, 64px); }
  .x-hero.has-phone .x-hero-phone { display: block; width: min(300px, 100%); justify-self: center; transform: rotate(3deg); transition: transform 0.4s var(--ease); }
  .x-hero.has-phone .x-hero-phone:hover { transform: rotate(0deg) translateY(-4px); }
}

.x-section { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 72px) var(--gutter); }
.x-head { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; margin-bottom: clamp(24px, 3.5vw, 48px); }
.x-head .display-md { font-size: clamp(36px, 5vw, 76px); overflow-wrap: anywhere; }

/* ---------- stats ---------- */
.x-stats { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1240px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.x-stat { background: var(--primary); color: var(--white); border-radius: 32px; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: transform 0.2s ease-out; }
.x-stat:hover { transform: translateY(-4px); }
.x-stat b { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(44px, 6vw, 88px); line-height: 0.9; color: var(--accent); }
.x-stat span { font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 760px) { .x-stats { grid-template-columns: minmax(0, 1fr); } .x-stat { flex-direction: row; align-items: center; gap: 16px; } .x-stat b { flex: none; min-width: 2.3em; } }

/* ---------- cards ---------- */
.x-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.x-card { border-radius: 32px; padding: clamp(22px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.x-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), 0 18px 36px -22px rgba(37, 70, 82, 0.45); }
.x-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 78; font-size: clamp(24px, 2.2vw, 32px); line-height: 0.95; letter-spacing: -0.01em; color: var(--primary); }
.x-card p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.x-card.coral { background: var(--orange); box-shadow: none; }
.x-card.mint { background: var(--accent); box-shadow: none; }
.x-card.pink { background: var(--pink); box-shadow: none; }
.x-card.blue { background: var(--blue); box-shadow: none; }
.x-card.yellow { background: var(--yellow); box-shadow: none; }
.x-card.coral p, .x-card.mint p, .x-card.pink p, .x-card.blue p, .x-card.yellow p { color: var(--primary); }
.x-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: var(--accent); display: grid; place-items: center; flex: none; }
.x-icon svg { width: 26px; height: 26px; }
@media (max-width: 960px) { .x-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .x-grid { grid-template-columns: minmax(0, 1fr); } .x-card { border-radius: 28px; } }

/* ---------- comparison table ---------- */
.table-card { background: var(--white); border-radius: 32px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.cmp { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: 16.5px; line-height: 1.45; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px clamp(14px, 2vw, 28px); border-bottom: 1px solid var(--line); color: var(--ink-2); }
.cmp thead th { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 78; text-transform: uppercase; letter-spacing: -0.005em; font-size: clamp(18px, 1.8vw, 24px); line-height: 1; color: var(--primary); background: var(--white); padding-top: 24px; padding-bottom: 20px; }
.cmp tbody th { width: 22%; color: var(--primary); font-weight: 700; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .us { background: var(--accent-soft); color: var(--primary); font-weight: 600; }
.cmp thead .us { background: var(--accent); }
.cmp tbody tr { transition: background 0.2s ease-out; }
.cmp tbody tr:hover th, .cmp tbody tr:hover td:not(.us) { background: var(--paper); }
.cmp tbody tr:hover .us { background: var(--accent); }
.cmp .tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--accent); font-size: 13px; font-weight: 800; margin-right: 8px; vertical-align: -3px; }
.scroll-hint { display: none; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-top: 12px; }
@media (max-width: 760px) { .scroll-hint { display: block; } .table-card { border-radius: 28px; } .cmp tbody th { width: auto; min-width: 130px; } }

/* ---------- FAQ page ---------- */
.faq-page { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 8vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.cat-nav { min-width: 0; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: block; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 700; font-size: 15px; color: var(--primary); transition: background 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out; }
.cat-nav a:hover { background: var(--accent-soft); transform: translateY(-2px); }
.cat-nav a.on { background: var(--primary); color: var(--accent); box-shadow: none; }
.faq-cats { display: flex; flex-direction: column; gap: clamp(36px, 5vw, 64px); min-width: 0; }
.faq-cat { scroll-margin-top: 96px; }
.faq-cat-h { font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 75, "opsz" 96; text-transform: uppercase; letter-spacing: -0.015em; line-height: 0.9; color: var(--primary); font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 20px; overflow-wrap: anywhere; }
.faq-group { display: flex; flex-direction: column; gap: 12px; }
.faq-group details { box-shadow: inset 0 0 0 1px var(--line); transition: background 0.3s, transform 0.2s ease-out; }
.faq-group details:hover { transform: translateY(-2px); }
.faq-group details[open] { box-shadow: none; }
.faq-group summary { min-height: 72px; padding: 14px 0; font-size: clamp(19px, 1.9vw, 26px); line-height: 1.05; text-wrap: balance; }
.faq-group details p { padding-bottom: 24px; }
.faq-group details p a, .x-link { color: var(--primary); font-weight: 700; text-decoration: underline; text-decoration-color: var(--primary-light); text-underline-offset: 3px; }
.faq-group details p a:hover, .x-link:hover { text-decoration-thickness: 2px; }
.faq-group details p strong { color: var(--ink); }
@media (min-width: 1024px) {
  .faq-page { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; }
  .cat-nav { position: sticky; top: 96px; background: var(--white); border-radius: 28px; padding: 14px; box-shadow: inset 0 0 0 1px var(--line); }
  .cat-nav ul { flex-direction: column; overflow: visible; gap: 2px; padding: 0; }
  .cat-nav a { white-space: normal; background: transparent; box-shadow: none; border-radius: 16px; padding: 12px 14px; }
  .cat-nav a:hover { transform: none; }
  .cat-nav a.on { background: var(--primary); }
}
@media (max-width: 640px) { .faq-group details { border-radius: 22px; } .faq-group summary { gap: 12px; } }

/* ---------- reasons list ---------- */
.why-lead { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 90, "opsz" 36; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; color: var(--primary); max-width: 24em; text-wrap: balance; }

/* ---------- delete page ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step-card { position: relative; border-radius: 32px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 12px; min-width: 0; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.2s ease-out; }
.step-card:hover { transform: translateY(-4px); }
.step-card:nth-child(1) { background: var(--accent); box-shadow: none; }
.step-card:nth-child(2) { background: var(--orange); box-shadow: none; }
.step-card:nth-child(3) { background: var(--pink); box-shadow: none; }
.step-card:nth-child(4) { background: var(--yellow); box-shadow: none; }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 26px; font-variation-settings: "wdth" 80; }
.step-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 78; font-size: clamp(26px, 2.6vw, 36px); line-height: 0.95; letter-spacing: -0.01em; color: var(--primary); }
.step-card p { font-size: 17px; line-height: 1.55; color: var(--primary); }
.step-card p strong { font-weight: 800; }
.reason-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.reason-list li { font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.7); color: var(--primary); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } .step-card { border-radius: 28px; } }

.split-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list-card { border-radius: 32px; padding: clamp(24px, 3vw, 40px); min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.list-card.gone { background: var(--primary); color: var(--white); }
.list-card.stays { background: var(--accent); color: var(--primary); }
.list-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 78; font-size: clamp(26px, 2.8vw, 38px); line-height: 0.95; }
.list-card.gone h3 { color: var(--accent); }
.list-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-card li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.5; }
.list-card li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
.list-card.stays li::before { background: var(--primary); }
.list-card.gone li { color: rgba(255, 255, 255, 0.88); }
@media (max-width: 760px) { .split-lists { grid-template-columns: minmax(0, 1fr); } .list-card { border-radius: 28px; } }

.mail-card { background: var(--white); border-radius: 40px; box-shadow: inset 0 0 0 1px var(--line); padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.mail-card .x-icon { width: 72px; height: 72px; }
.mail-card .x-icon svg { width: 34px; height: 34px; }
.mail-copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.mail-copy h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 78; font-size: clamp(30px, 3.6vw, 52px); line-height: 0.95; color: var(--primary); overflow-wrap: anywhere; }
.mail-copy p { font-size: 17px; color: var(--ink-2); max-width: 40em; }
.mail-copy .btn { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 640px) { .mail-card { grid-template-columns: minmax(0, 1fr); border-radius: 28px; } }

.note-strip { background: var(--accent-soft); border-radius: 24px; padding: 18px 22px; font-size: 16px; color: var(--primary); box-shadow: inset 0 0 0 1px rgba(37, 70, 82, 0.15); }
.note-strip a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* related links */
.x-related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.x-related a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 700; color: var(--primary); transition: background 0.2s ease-out, transform 0.2s ease-out; }
.x-related a:hover { background: var(--accent); transform: translateY(-2px); }
.x-cta { padding-bottom: clamp(24px, 4vw, 48px); }
.x-cta .cta-copy { gap: 28px; }

@media (prefers-reduced-motion: reduce) {
  .x-stat:hover, .x-card:hover, .step-card:hover, .faq-group details:hover, .cat-nav a:hover, .x-related a:hover, .x-hero.has-phone .x-hero-phone:hover { transform: none; }
  .x-hero.has-phone .x-hero-phone { transition: none; }
}
