/* GoConqr · account/account.css · page parts for the ACCOUNT area (logged-out site, sign-up, plans, checkout, account).
   Linked after ../css/site.css. Every class starts with "account-" and uses site.css tokens only; no site.css
   component is restyled here. Candidates to promote to site.css are listed in coverage/account.md ("Needs"). */

/* ---------- Shared bits ---------- */

.account-checks { display: grid; gap: 10px; }
.account-checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.45; }
.account-checks .i { width: 20px; height: 20px; margin-top: 1px; color: var(--ok); }
.account-checks--muted .i { color: var(--ink-3); }
.account-checks b { font-weight: 700; }
.account-checks .meta { display: block; margin-top: 2px; }
.account-kicker { display: flex; align-items: center; gap: 8px; font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.account-kicker .i { color: var(--c, var(--accent)); }
.account-note { font-size: var(--fs-1); color: var(--ink-3); }
.account-gap { margin-top: var(--s-5); }
.account-gap-lg { margin-top: var(--s-6); }
.account-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.account-pre { white-space: pre-line; }

/* Plain FAQ (details/summary), hairlines between questions */
.account-faq > li { border-bottom: 1px solid var(--rule); }
.account-faq > li:first-child { border-top: 1px solid var(--rule); }
.account-faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; align-items: start; min-height: 44px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; line-height: 1.4; }
.account-faq summary::-webkit-details-marker { display: none; }
.account-faq summary:hover { color: var(--accent-ink); }
.account-faq summary .i { color: var(--ink-3); transition: rotate var(--t); }
.account-faq details[open] summary .i { rotate: 180deg; }
.account-faq .prose { padding: 0 0 18px; color: var(--ink-2); }
.account-faq-group + .account-faq-group { margin-top: var(--s-7); }
.account-faq-group > .h2 { margin-bottom: 10px; }

/* ---------- Logged-out home ---------- */
/* Dan, 27 Oct: what GoConqr is (three lines), then sign-up as the first action; search beside it (under it on phones) */
.account-hero { display: grid; gap: 40px; padding-top: 40px; }
.home-points { display: grid; gap: 10px; margin-top: 20px; max-width: 36em; font-size: var(--fs-3); line-height: 1.45; color: var(--ink-2); }
.home-points li { display: flex; align-items: flex-start; gap: 10px; }
.home-points .i { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.home-points strong { color: var(--ink); }
.home-join { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; }
.home-join .btn { min-width: 240px; }
.home-join .meta { color: var(--ink-2); }
.home-find { padding-top: 24px; border-top: 1px solid var(--rule-2); }
.home-find .account-search-label { margin-top: 0; }
.account-search { position: relative; display: flex; gap: 8px; margin-top: 28px; max-width: 640px; }
.account-search-label { display: block; margin-top: 28px; font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.account-search + .account-exams, .account-search-label + .account-search { margin-top: 8px; }
.account-search .field-search { flex: 1; min-width: 0; }
.account-search .field-search input { height: var(--h-lg); font-size: var(--fs-3); }
.account-search .field-search > .i { top: 26px; }
.account-search .btn { height: var(--h-lg); }
.account-exams { margin-top: 24px; }
.account-exams h2 { margin-bottom: 10px; font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
@media (max-width: 639px) {
  .home-points { font-size: var(--fs-2); }
  .home-join .btn { width: 100%; }
  .account-search .btn { width: var(--h-lg); padding: 0; }
  .account-search .btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .account-search .field-search input { font-size: var(--fs-2); }
}
@media (min-width: 640px) { .account-search .btn .i { display: none; } }
@media (min-width: 900px) {
  .account-hero { grid-template-columns: minmax(0, 1fr) 360px; -moz-column-gap: 56px; column-gap: 56px; padding-top: 64px; }
  .home-find { align-self: start; padding: 0 0 0 40px; margin-top: 10px; border-top: 0; border-left: 1px solid var(--rule-2); }
}

/* ---------- Marketing pages and tool pages ---------- */
.account-head { display: grid; gap: 14px; padding-top: 44px; }
.account-head .lead { max-width: 36em; }
.account-head .account-acts { margin-top: 10px; }
@media (min-width: 900px) { .account-head { padding-top: 64px; } }
.account-split { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 900px) { .account-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); -moz-column-gap: 64px; column-gap: 64px; align-items: start; } }

/* A real resource, shown as it looks: an image capture or its first item, with the type edge */
.account-sample { display: grid; gap: 10px; }
.account-sample-frame { display: block; overflow: hidden; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--c, var(--rule-2)); border-radius: var(--r); transition: border-color var(--t); }
a.account-sample-frame:hover { border-color: var(--rule-2); border-top-color: var(--c); }
.account-sample-frame img { width: 100%; height: auto; }
.account-sample-cap { display: grid; gap: 2px; }
.account-sample-cap a { font-weight: 600; color: var(--ink); }
.account-sample-cap a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
/* Text samples: a flashcard pair, a question, a note, a slide, a flowchart */
.account-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px; background: var(--paper-2); }
.account-card { display: grid; align-content: center; min-height: 128px; padding: 16px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r); text-align: center; line-height: 1.4; }
.account-card b { font-size: var(--fs-3); }
.account-card span { font-size: var(--fs-1); color: var(--ink-3); }
.account-q { display: grid; gap: 12px; padding: 20px; }
.account-q-text { font-size: var(--fs-3); font-weight: 600; line-height: 1.4; }
.account-q-opts { display: grid; gap: 8px; }
.account-q-opts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--rule-2); border-radius: var(--r); }
.account-q-opts li > span:first-child { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--rule-3); border-radius: var(--r-in); font-size: var(--fs-1); font-weight: 700; color: var(--ink-3); }
.account-doc { display: grid; gap: 10px; padding: 24px 24px 28px; }
.account-doc-title { font-size: var(--fs-4); font-weight: 700; line-height: 1.25; }
.account-doc p { color: var(--ink-2); }
.account-doc-lines { display: grid; gap: 8px; margin-top: 6px; }
.account-doc-lines span { display: block; height: 8px; border-radius: 4px; background: var(--paper-3); }
.account-slide { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 24px; background: var(--paper-2); text-align: center; }
.account-slide b { font-size: var(--fs-5); letter-spacing: .02em; }
.account-slide span { display: block; margin-top: 6px; font-size: var(--fs-1); color: var(--ink-3); }
.account-flow { display: grid; justify-items: center; gap: 0; padding: 24px 16px; background: var(--paper-2); }
.account-flow-box { max-width: 30em; padding: 10px 14px; background: var(--paper); border: 1px solid var(--rule-3); border-radius: var(--r); text-align: center; line-height: 1.4; font-size: var(--fs-1); }
.account-flow-box--top { border-color: var(--c); background: var(--c); color: #fff; font-weight: 700; font-size: var(--fs-2); }
.account-flow-line { width: 1px; height: 20px; background: var(--rule-3); }

/* "Other tools" strip: six quiet links with the type colour */
.account-toolnav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.account-toolnav a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--h); padding: 0 14px; border: 1px solid var(--rule-2); border-radius: var(--r); font-weight: 600; color: var(--ink); }
.account-toolnav a .i { color: var(--c); }
.account-toolnav a:hover { border-color: var(--ink-3); background: var(--paper-2); }
.account-toolnav a[aria-current="page"] { border-color: var(--ink); }

/* Feature rows on features / teachers / students: a name, a sentence, a link; hairlines (the band brings the section, site.css §19) */
.account-rows > li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.account-rows > li:last-child { border-bottom: 0; }  /* rules between rows only, like every list (the section brings its own rule) */
.account-rows h3 { display: flex; align-items: center; gap: 10px; }
.account-rows h3 .i { color: var(--c, var(--accent)); }
.account-rows p { color: var(--ink-2); max-width: 60ch; }
.account-rows .link { justify-self: start; margin-top: 4px; font-size: var(--fs-1); font-weight: 600; }
@media (min-width: 900px) {
  .account-rows > li { grid-template-columns: 260px minmax(0, 1fr); -moz-column-gap: 40px; column-gap: 40px; align-items: baseline; }
  .account-rows > li > :not(h3) { grid-column: 2; }
  .account-rows h3 { grid-row: 1 / span 3; }
}

/* ---------- Legal pages: table of contents + text ---------- */
.account-legal { display: grid; gap: 24px; margin-top: 32px; }
.account-toc { font-size: var(--fs-1); }
.account-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: var(--r); font-weight: 700; cursor: pointer; list-style: none; }
.account-toc summary::-webkit-details-marker { display: none; }
.account-toc ol { display: grid; gap: 0; margin-top: 8px; counter-reset: toc; }
.account-toc li a { display: grid; grid-template-columns: 2em minmax(0, 1fr); align-items: center; min-height: 44px; padding: 4px 8px; border-radius: var(--r-in); color: var(--ink-2); line-height: 1.35; }
.account-toc li a::before { counter-increment: toc; content: counter(toc); font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.account-toc li a:hover { background: var(--paper-2); color: var(--ink); }
.account-toc--own li a { grid-template-columns: minmax(0, 1fr); }
.account-toc--own li a::before { content: none; }
.account-checks li { text-wrap: pretty; }
.account-legal .prose h2 { scroll-margin-top: 16px; }
.account-legal .prose h2:first-child { margin-top: 0; }
@media (min-width: 900px) {
  .account-legal { grid-template-columns: 260px minmax(0, 1fr); -moz-column-gap: 64px; column-gap: 64px; align-items: start; }
  .account-toc { position: sticky; top: 16px; }
  .account-toc summary { pointer-events: none; border: 0; padding: 0 8px; }
  .account-toc summary .i { display: none; }
}

/* ---------- Help centre ---------- */
.account-help-search { position: relative; max-width: 560px; margin-top: 24px; }
.account-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.account-help-none { padding: 24px 0; color: var(--ink-2); }

/* ---------- Focus pages: sign-in, sign-up, password, onboarding, checkout ---------- */
.account-providers { display: grid; gap: 10px; margin-top: 28px; }
/* plans: the annual card, then "Or pay once for a pass" over the passes (Dan, 27 Oct) */
.account-or-pass { margin: 20px 0 10px; font-size: var(--fs-1); font-weight: 700; color: var(--ink-2); }
.account-form { display: grid; gap: 16px; }
.account-form .account-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.account-pw { position: relative; }
.account-pw .input { padding-right: 52px; }
.account-pw .icon-btn { position: absolute; right: 0; top: 0; }
.account-links { display: grid; gap: 2px; font-size: var(--fs-1); }
.account-links a, .account-links button { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.account-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.account-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; padding: 4px 0; line-height: 1.45; font-size: var(--fs-1); color: var(--ink-2); cursor: pointer; }
.account-consent .cb { margin-top: 1px; }
.account-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.account-done { display: grid; gap: 12px; justify-items: start; }
.account-done > .i { width: 40px; height: 40px; color: var(--ok); }
.account-done--mail > .i { color: var(--accent); }

/* Onboarding: one card per step, chips for levels and subjects */
.account-ob { margin-top: 8px; }
.account-ob .steps button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.account-ob-step { display: grid; gap: 22px; }
.account-ob-step > .h1 { margin-bottom: -10px; }
.account-ob-sub { display: grid; gap: 10px; }
.account-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.account-pick .chip { font: inherit; cursor: pointer; }
.account-pick .chip .i { width: 16px; height: 16px; }
.account-other { display: flex; gap: 8px; }
.account-other .input { flex: 1; min-width: 0; }
.account-where { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

/* ---------- Plans ---------- */
.account-plans { display: grid; gap: 40px; margin-top: 28px; }
.account-plans-pick { display: grid; gap: 20px; align-content: start; }
.account-plans-pick .seg { justify-self: stretch; }
@media (min-width: 480px) { .account-plans-pick .seg { justify-self: start; } }
.account-plans .choice-card { padding-block: 14px; }
.account-plans .choice-end { text-align: right; }
.account-plans .choice-end small { display: block; font-size: var(--fs-1); font-weight: 400; color: var(--ink-3); }
.account-buy { display: grid; gap: 14px; justify-items: start; }
.account-buy .btn { min-width: 260px; }
.account-incl { display: grid; gap: 40px; align-content: start; }
.account-incl .sec-head { margin-bottom: 14px; }
.account-plan-now { font-size: var(--fs-1); font-weight: 700; color: var(--ink-3); }
.account-sum { display: grid; gap: 0; min-width: 0; }
.account-sum b { font-size: var(--fs-4); line-height: 1.15; font-variant-numeric: tabular-nums; }
.account-sum span { font-size: var(--fs-1); color: var(--ink-3); line-height: 1.3; }
.stickybar .account-sum { flex: 0 1 auto; }
.stickybar .account-sum + .btn { flex: 1 0 auto; }
@media (min-width: 900px) { .account-plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); -moz-column-gap: 80px; column-gap: 80px; align-items: start; } }
@media (max-width: 899px) { .account-buy .btn { display: none; } }

/* ---------- Checkout ---------- */
.account-order { display: grid; gap: 0; margin-top: 24px; border-block: 1px solid var(--rule-2); }
.account-order > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; }
.account-order > div + div { border-top: 1px solid var(--rule); }
.account-order dt { color: var(--ink-2); }
.account-order dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.account-order .account-total dd { font-size: var(--fs-4); }
.account-pay { display: grid; gap: 14px; margin-top: 24px; }

/* ---------- Settings and billing (app layout) ---------- */
.account-page-head { display: grid; gap: 8px; }
.account-set { display: grid; gap: 0; }
.account-set + .account-set { margin-top: 48px; }
.account-set > .h2 { padding-bottom: 6px; }
.account-item { display: grid; gap: 10px 32px; padding: 18px 0; border-top: 1px solid var(--rule); }
.account-item:last-child { border-bottom: 1px solid var(--rule); }
.account-item-text { display: grid; gap: 4px; }
.account-item-text .h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.account-item-text p { color: var(--ink-2); font-size: var(--fs-1); max-width: 56ch; }
.account-item-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-item-val { font-weight: 600; overflow-wrap: anywhere; }
.account-item .fieldset .choice { padding-block: 8px; }
.account-item .account-open { display: grid; gap: 14px; max-width: 420px; }
@media (min-width: 760px) {
  .account-item { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .account-item--stack { grid-template-columns: minmax(0, 1fr); }
  .account-item-end { justify-content: flex-end; }
}
.account-form-grid { display: grid; gap: 16px; max-width: 640px; }
@media (min-width: 640px) { .account-form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.account-save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.account-avatar { display: flex; align-items: center; gap: 16px; }
.account-quota { display: grid; gap: 8px; max-width: 460px; }
.account-quota .progress { height: 8px; }
.account-quota-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-1); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.account-method { display: flex; align-items: center; gap: 14px; }
.account-method .i { width: 28px; height: 28px; color: var(--ink-2); }
.account-plan-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.account-plan-name .h2 { font-size: var(--fs-4); }
.account-table td .badge { vertical-align: middle; }
.account-dlg-steps > [hidden] { display: none; }
.account-reasons .choice { padding-block: 8px; }

/* Institution members: a compact table that scrolls inside its own frame on phones */
.account-members { min-width: 760px; }
.account-members th, .account-members td { vertical-align: middle; white-space: nowrap; }
.account-members .account-acts { flex-wrap: nowrap; gap: 4px; }
.account-members tbody th { font-size: var(--fs-2); color: var(--ink); text-align: left; }
.account-members .cb { margin: 0; }

/* App-layout account pages read as one ~760 px column (the footer inside main stays full width) */
.main[data-account] > .account-page-head, .main[data-account] > [data-tabs], .main[data-account] > .sec,
.main[data-account] > .notice, .main[data-account] > .crumbs, .main[data-account] > .h1, .main[data-account] > .meta { max-width: 760px; }
.account-card--long b { font-size: var(--fs-1); font-weight: 600; }
.account-checks li:has(.tap) { align-items: center; }
.account-checks li:has(.tap) .i { margin-top: 0; }
.account-doc-text { display: grid; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: var(--fs-1); color: var(--ink-2); line-height: 1.5; }
.account-slide-img { display: block; width: 100%; height: auto; aspect-ratio: 798 / 447; -o-object-fit: cover; object-fit: cover; }
.tabpanel > .account-order:first-child { margin-top: 0; border-top: 0; }  /* the tab strip is the rule */

/* ---------- Sign-up from a study page: each step's main button on the first screen (usability checks 21 Oct, item 10) ----------
   - the email form, once opened, takes the place of the Google/Microsoft buttons (the "with your email" link closes it again);
   - onboarding: each step's button and the offer's button + skip link stay at the bottom of the screen while the step is
     longer than the screen (sticky; nothing moves when it fits). */
[data-account="signup"]:has(#correo:not([hidden])) :is(.account-providers, .account-gap.divider) { display: none; }
[data-account="signup"]:has(#correo:not([hidden])) .account-terms { margin-top: 20px; }
[data-account-signup] > button[type="submit"] { position: sticky; bottom: 12px; z-index: 2; box-shadow: 0 0 0 12px var(--paper); }
.account-ob-step > div:last-child, .account-ob-offer .account-pay { position: sticky; bottom: 0; z-index: 2; margin-inline: -8px; padding: 12px 8px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); }
.account-ob-offer .account-pay { gap: 6px; }
.account-ob-offer .account-pay > p { margin: 0; }
/* Settings on phones, an account that can upgrade: one plan line under the title, as today's "Actualizar a Otro Plan" was
   on the first screen (usability checks 21 Oct, item 19); the Plan block below is unchanged. Wider screens show it already. */
.account-plan-line { display: none; }
@media (max-width: 639px) { .account-plan-line { display: block; margin-top: 6px; color: var(--ink-2); } }
/*
 * Redesign: the mock-up's ACCOUNT area stylesheet (logged-out home, marketing, sign-in/up, plans, settings),
 * loaded after redesign.css by the pages that need it. Verbatim copy of goconqr-design/full-site/account/account.css.
 *

 */

