/* The Pricing page (views/pricing.html), on the
   reading page of ethos.css: wider, for its grid and table. */
main.managed { width: min(100%, 62rem); padding-top: 3.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The promise, with the brand's brush stroke under what it is about. */
.mm-hero { max-width: 46rem; }
.mm-hero h1 { font-size: clamp(2.375rem, 6vw, 3.75rem); line-height: 1.08; margin-bottom: 1.5rem; }
.brushed { position: relative; isolation: isolate; white-space: nowrap; }
.brushed::after { content: ""; position: absolute; left: -.25rem; right: -.375rem; bottom: .02em; height: .32em; z-index: -1;
  background: var(--accent); opacity: 0.55;
  -webkit-mask: url(/brush-underline.svg) center / 100% 100% no-repeat; mask: url(/brush-underline.svg) center / 100% 100% no-repeat; }
.mm-hero .lead { max-width: 40rem; }
.mm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.mm-actions [hidden] { display: none; }

/* The one filled button, as on the home page: where everything starts. */
.dl { display: inline-flex; align-items: center; gap: .75rem; font: 500 1.1875rem/1 var(--font-brand); font-variation-settings: 'opsz' 48, 'SOFT' 30; letter-spacing: -0.01em;
  color: var(--bg); text-decoration: none; padding: .9375rem 1.875rem 1rem; border-radius: .75rem; background: var(--fg); border: 1px solid var(--fg);
  transition: background 0.18s, border-color 0.18s, transform 0.18s; }
.dl:hover { color: var(--bg); background: var(--fg-strong); border-color: rgba(var(--accent-strong-rgb),0.6); transform: translateY(-1px); }
.dl:active { transform: translateY(0); background: var(--fg-soft); }
.dl:focus-visible { outline: 2px solid var(--accent); outline-offset: .25rem; }
.dl svg { width: 1.125rem; height: 1.125rem; fill: currentColor; margin-top: -2px; }

.mm-section { margin-top: 5rem; }
.mm-section h2, .mm-last h2 { font-family: var(--font-brand); font-weight: 500; font-variation-settings: 'opsz' 72, 'SOFT' 30; font-size: clamp(1.75rem, 3.6vw, 2.25rem); letter-spacing: -0.02em; margin: 0 0 1.75rem; }

/* What you get: six short points, each opened with a stroke of the brush. */
.mm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
/* An odd one out spans the row, so no card sits alone beside a gap. */
.mm-grid > .mm-point:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mm-point { padding: 1.5rem 1.625rem 1.375rem; border-radius: 1rem; border: 1px solid var(--ui-border); background: rgba(var(--raised-rgb),0.7); }
.mm-point h3 { position: relative; margin: 0 0 .625rem; padding-top: .875rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ui-text); }
.mm-point h3::before { content: ""; position: absolute; left: -.125rem; top: 0; width: 2.25rem; height: .4375rem; background: var(--accent);
  -webkit-mask: url(/brush-underline.svg) center / 100% 100% no-repeat; mask: url(/brush-underline.svg) center / 100% 100% no-repeat; }
.mm-point p { margin: 0; font-size: 1rem; line-height: 1.6; }
/* What Managed Models cost: each price on its own lines above what it means. */
.mm-amount { display: block; margin-bottom: .5rem; font-weight: 600; color: var(--ui-text); }
.mm-crypto { margin: 1.125rem 0 0; }
.mm-link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9375rem; text-decoration: underline; text-underline-offset: .1875rem; cursor: pointer; }
.mm-link:hover { color: var(--ui-text); }
.mm-crypto-list { margin-top: 1rem; }
.mm-note { margin: 1.125rem 0 0; font-size: .9375rem; color: var(--muted); }

/* How it compares: Managed Models' column in the accent. */
.mm-table-wrap { border-radius: 1rem; border: 1px solid var(--ui-border); background: rgba(var(--raised-rgb),0.7); overflow: hidden; }
.mm-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.mm-table th, .mm-table td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(var(--fg-rgb),0.07); line-height: 1.5; }
.mm-table thead th { font-family: var(--font-brand); font-weight: 500; font-variation-settings: 'opsz' 36, 'SOFT' 30; font-size: 1.0625rem; color: var(--muted); background: rgba(var(--raised-rgb),0.85); }
.mm-table tbody th { font-weight: 500; color: var(--ui-text); width: 22%; }
.mm-table td { color: var(--muted); }
.mm-table .ours { background: rgba(var(--accent-rgb),0.07); color: var(--ui-text); }
.mm-table thead .ours { color: var(--accent); border-bottom: 2px solid rgba(var(--accent-rgb),0.45); }
.mm-table tbody tr:last-child th, .mm-table tbody tr:last-child td { border-bottom: 0; }

/* How it works: three steps, numbered in the brand's serif. */
.mm-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding: 0; }
.mm-steps li { counter-increment: step; margin: 0; }
.mm-steps li::before { content: counter(step); display: block; font: 500 2.75rem/1 var(--font-brand); font-variation-settings: 'opsz' 96, 'SOFT' 30; color: var(--accent); margin-bottom: .75rem; }
.mm-steps h3 { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 600; color: var(--ui-text); }
.mm-steps p { margin: 0; font-size: 1rem; line-height: 1.6; }

/* Questions people ask: each opens in place. */
.mm-faq details { border-bottom: 1px solid var(--ui-border); }
.mm-faq details:first-child { border-top: 1px solid var(--ui-border); }
.mm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: .875rem 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 500; color: var(--ui-text); }
.mm-faq summary::-webkit-details-marker { display: none; }
.mm-faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--font-ui); color: var(--accent); transition: transform 0.2s; }
.mm-faq details[open] summary::after { transform: rotate(45deg); }
.mm-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: .25rem; }
.mm-faq details p { margin: 0 0 1.25rem; max-width: 44rem; }

/* The last word: the free days, and the one button again. */
.mm-last { margin-top: 5rem; padding: 2.75rem 2rem; text-align: center; border-radius: 1.25rem; border: 1px solid var(--ui-border); background: rgba(var(--raised-rgb),0.7); }
.mm-last h2 { margin-bottom: .75rem; }
.mm-last p { margin: 0 auto; max-width: 32rem; }
.mm-last .mm-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) { .dl, .mm-faq summary::after { transition: none; } }
@media (max-width: 760px) {
  .mm-grid, .mm-steps { grid-template-columns: 1fr; }
  .mm-steps li { display: grid; grid-template-columns: 3rem 1fr; column-gap: .75rem; }
  .mm-steps li::before { grid-row: span 2; font-size: 2.25rem; margin: 0; }
  /* The table as one card per question, each answer under its column's name. */
  .mm-table thead { display: none; }
  .mm-table, .mm-table tbody, .mm-table tr, .mm-table th, .mm-table td { display: block; width: auto; }
  .mm-table tbody tr { border-bottom: 1px solid var(--ui-border); }
  .mm-table tbody tr:last-child { border-bottom: 0; }
  .mm-table tbody th { width: auto; padding: 1.125rem 1.25rem .5rem; border: 0; font-family: var(--font-brand); font-size: 1.0625rem; }
  .mm-table td { padding: .5rem 1.25rem; border: 0; }
  .mm-table td::before { content: attr(data-label); display: block; font-size: .8125rem; color: var(--dim); }
  .mm-table td.ours { margin: .25rem .75rem 1rem; padding: .625rem .5rem .625rem .75rem; border-radius: .625rem; }
  .mm-table td.ours::before { color: var(--accent); }
}
@media (max-width: 600px) {
  main.managed { padding-top: 2rem; }
  .mm-section, .mm-last { margin-top: 3.5rem; }
  .dl { width: 100%; justify-content: center; gap: .625rem; padding: .9375rem .875rem 1rem; font-size: clamp(1rem, 4.4vw, 1.1875rem); white-space: nowrap; }
  .mm-last { padding: 2.25rem 1.25rem; }
}
/* The foot lines up with the page above it. */
footer { width: min(100%, 62rem); }
