/* Edapt public site: rules for the Features, Pricing, and Safety pages
   (16 November 2026). Loads after book.css and site.css and reads their
   tokens only. Shared chrome stays in site.css; the home page has home.css. */

/* ---- On this page: a row of links under a page title ---- */
.page-index { margin-top: var(--line); }
.page-index ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.site main .page-index a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-soft); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; transition: background 150ms var(--ease), border-color 150ms var(--ease); }
.site main .page-index a:not(.btn):hover { border-color: var(--ink); background: color-mix(in srgb, var(--yellow) 40%, var(--card)); }

/* ---- Pricing: what every buyer asks first ---- */
.assure-row { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--ink-2); font-size: 15px; font-weight: 700; }
.assure-row li { display: inline-flex; align-items: center; gap: 8px; min-height: var(--line); }
.assure-row svg { flex: none; color: var(--mint-ink); }

/* The plan cards: name, price, then the one thing that differs. */
.price-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.price-card { padding: 28px 24px 24px; border-radius: 18px; transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease); }
.price-card:hover { border-color: color-mix(in srgb, var(--ink) 32%, transparent); box-shadow: var(--shadow-lift); }
.price-card h2 { font-size: 20px; letter-spacing: -0.01em; }
.price-card .price-amount { margin-top: 12px; font-size: 48px; line-height: 56px; letter-spacing: -0.03em; }
.price-card .price-period { line-height: 24px; }
.allowance { flex: 1; margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.allowance-text { margin: 0; font-weight: 700; font-size: 17px; line-height: 24px; text-wrap: pretty; }
.allowance-meter { display: block; height: 8px; margin-top: 14px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.allowance-meter span { display: block; height: 100%; border-radius: 4px; background: var(--sky-deep); }
.price-card-basic .allowance-meter span { width: 5%; }
.price-card-standard .allowance-meter span { width: 25%; }
.price-card-max .allowance-meter span { width: 50%; }
.price-card-super .allowance-meter span { width: 100%; }
.price-card .btn { margin-block: 0; }
.allowance-key { margin: 16px 0 0; text-align: center; font-size: 15px; color: var(--ink-3); }

/* Every plan includes: one panel, so the cards stay short. */
.includes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; align-items: start; margin-top: calc(var(--line) * 1.5); padding: 32px; border: 1px solid var(--line-soft); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-soft); }
.includes-head h3 { margin: 0; font-size: 24px; line-height: var(--line); letter-spacing: -0.015em; }
.includes-head p { margin: 8px 0 0; color: var(--ink-2); text-wrap: pretty; }
.includes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.includes-list li { min-height: var(--line); }
.price-note { margin-top: calc(var(--line) * 1.5); }

/* ---- Questions and answers: two columns of short entries ---- */
.qa-grid { max-width: var(--wrap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; align-items: start; }
.qa-grid > .section-title { grid-column: 1 / -1; margin-bottom: 24px; }
.qa-grid > .section-title + .faq-item { margin-top: 0; }
.faq-item { padding: 24px 0 28px; border-top: 1px solid var(--line-soft); }
.faq .faq-item h3 { margin: 0; font-size: 19px; line-height: 28px; letter-spacing: -0.01em; text-wrap: balance; }
.faq .faq-item p { margin-top: 8px; max-width: 62ch; text-wrap: pretty; }

/* ---- Features: safety and access as a two-column list ---- */
.access-grid { list-style: none; margin: var(--line) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.access-item { display: flex; gap: 12px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.access-item svg { flex: none; margin-top: 4px; color: var(--mint-ink); }
.access-item p { margin: 0; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.access-item strong { display: block; color: var(--ink); font-size: 18px; line-height: 28px; }
.access-item-wide { grid-column: 1 / -1; }

/* ---- Safety: the facts at a glance ---- */
.glance { list-style: none; margin: calc(var(--line) * 1.5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: left; }
.glance li { padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-soft); }
.glance strong { display: block; font-size: 20px; line-height: 28px; letter-spacing: -0.015em; color: var(--ink); }
.glance span { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--ink-2); text-wrap: pretty; }

/* The long page: a contents list beside the text. */
.doc-layout { display: grid; grid-template-columns: 232px minmax(0, 70ch); gap: 64px; justify-content: center; align-items: start; }
.doc-toc { position: sticky; top: 88px; }
.doc-toc-title { margin: 0 0 8px; font-size: 13px; line-height: 24px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-soft); }
.site main .doc-toc a:not(.btn) { display: flex; align-items: center; min-height: 36px; padding: 4px 0 4px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: 15px; font-weight: 700; line-height: 22px; text-decoration: none; }
.site main .doc-toc a:not(.btn):hover { border-left-color: var(--ink); color: var(--ink); }
.prose h2[id] { scroll-margin-top: 88px; }
.doc-layout .prose > .guide-date:first-child { margin-top: 0; }

/* Who Edapt tells: the welfare rules as one table. */
.who-told { margin: var(--line) 0 0; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-soft); overflow: hidden; }
.who-told table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.who-told caption { padding: 16px 20px 12px; text-align: left; font-weight: 700; font-size: 17px; color: var(--ink); }
.who-told th, .who-told td { height: auto; padding: 14px 20px; text-align: left; vertical-align: top; white-space: normal; border-top: 1px solid var(--line-soft); border-bottom: 0; font-variant-numeric: normal; }
.who-told tbody th { font-size: 15px; letter-spacing: normal; text-transform: none; }
.who-told thead th { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: color-mix(in srgb, var(--sky) 14%, var(--card)); }
.who-told tbody th { font-weight: 700; color: var(--ink); width: 34%; }
.who-told td { color: var(--ink-2); }
.tell { display: block; width: fit-content; margin-bottom: 4px; padding: 0 8px; border-radius: 6px; font-weight: 700; color: var(--ink); }
.tell-yes { background: color-mix(in srgb, var(--yellow) 55%, transparent); }
.tell-no { background: color-mix(in srgb, var(--ink) 9%, transparent); }

/* ---- Narrower screens ---- */
@media (max-width: 1100px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: var(--line); }
  .doc-toc { position: static; padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); }
  .doc-toc ol { border-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .site main .doc-toc a:not(.btn) { min-height: 44px; padding-left: 0; border-left: 0; }
  .includes { grid-template-columns: minmax(0, 1fr); padding: 24px; }
}

@media (max-width: 860px) {
  .qa-grid, .access-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .who-told thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .who-told table, .who-told tbody, .who-told tr, .who-told th, .who-told td { display: block; width: auto; }
  .who-told tbody tr { padding: 16px 20px; border-top: 1px solid var(--line-soft); }
  .who-told tbody th, .who-told td { padding: 0; border-top: 0; }
  .who-told tbody th { width: auto; font-size: 17px; line-height: 24px; }
  .who-told caption { display: block; }
  .who-told td { margin-top: 12px; }
  .who-told td::before { content: attr(data-label); display: block; font-size: 12px; line-height: 20px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
}

@media (max-width: 640px) {
  .price-grid { grid-template-columns: minmax(0, 1fr); }
  .includes-list { grid-template-columns: minmax(0, 1fr); }
  .assure-row { flex-direction: column; align-items: center; gap: 0; }
  .page-index ul { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .glance { gap: 12px; }
  .glance li { padding: 16px 14px; }
  .glance strong { font-size: 17px; line-height: 24px; }
  .glance span { font-size: 14px; line-height: 20px; }
  .doc-toc ol { gap: 0 16px; }
  .site main .doc-toc a:not(.btn) { font-size: 14px; line-height: 20px; }
}

@media (max-width: 359px) {
  .glance, .doc-toc ol { grid-template-columns: minmax(0, 1fr); }
}

@media not all and (hover: hover) {
  .price-card:hover { box-shadow: var(--shadow-soft); border-color: var(--line-soft); }
}
