/* Cura Core · records.css
   The 90-day access rule (October 20, 2026): "Your data" (#/records), the "Your access" countdown card,
   the slim amber banner, the "Keep your records safe" dialog, the portal-closed page, and the new
   Plan page parts. Same Bento plates, tokens and buttons as the rest of the portal. Colour keeps one
   meaning each: blue is the action (download), gold is Premium only, amber means the time is running
   short. Plates that are links lift straight up; nothing tilts. */

/* ---------------- the "Your access" card ---------------- */

.acc-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px 26px;
  padding: 22px 28px; margin-bottom: 22px; background: #fff;
}
.acc-card .acc-ring { flex: none; display: grid; place-items: center; }
.acc-card .acc-ring .ring text:first-of-type { fill: var(--ink); }
.acc-card .acc-copy { min-width: 0; }
.acc-card h2 { font-size: 23px; line-height: 1.2; margin: 6px 0 6px; text-wrap: balance; }
.acc-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 64ch; }
.acc-card .acc-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.acc-card .acc-actions .btn { justify-content: center; }
.acc-card.is-ending { --sh: 0 0 0 1px var(--amber-line), var(--plate); background: linear-gradient(180deg, #fff, #FFFBF2); }
.acc-card.is-ending .acc-eyebrow { color: var(--amber-ink); }
.acc-card.is-subscribed { --sh: 0 0 0 1px var(--gold-line), var(--plate); }
.acc-ring-ok {
  width: 76px; height: 76px; border-radius: 22px; color: #fff; background: linear-gradient(145deg, #2BB39F, #0B6B5E);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 10px 18px -8px rgba(11, 107, 94, .5);
}
.acc-ring-ok .i { width: 34px; height: 34px; stroke-width: 2.2; }

.acc-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1.2 var(--font-sans); letter-spacing: .09em;
  text-transform: uppercase; color: var(--ink-3);
}
.acc-eyebrow .i { width: 14px; height: 14px; }

/* ---------------- the slim amber banner (30 days or fewer left) ---------------- */

.acc-banner {
  display: flex; align-items: center; gap: 12px; margin: 12px 24px 0; padding: 8px 8px 8px 16px;
  border-radius: 18px; background: var(--amber-soft); color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--amber-line) inset, 0 8px 20px -14px rgba(138, 75, 0, .45);
  font-size: 14px; line-height: 1.45; animation: page-in .2s var(--ease) both;
}
.acc-banner p { margin: 0; flex: 1; min-width: 0; }
.acc-banner strong { color: var(--ink); font-weight: 600; }
.acc-banner-days { color: var(--amber-ink); font-weight: 600; }
.acc-banner-ico { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #D08A1E, #8A4B00); }
.acc-banner-ico .i { width: 16px; height: 16px; }
.acc-banner-act { display: flex; align-items: center; gap: 8px; flex: none; }
.acc-banner-act .icon-btn { width: 34px; height: 34px; color: var(--amber-ink); }
.acc-banner-act .icon-btn:hover { background: rgba(138, 75, 0, .08); }

/* ---------------- the "Keep your records safe" dialog ---------------- */

.modal:has(.acc-dialog) { max-width: 720px; }
.modal:has(.acc-dialog) .modal-foot .btn:first-child { margin-right: auto; }
.acc-dialog p { margin: 0 0 10px; color: var(--ink-2); }
.acc-dialog p:last-child { margin-bottom: 0; }
.acc-dialog-top { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; padding: 14px 16px; border-radius: var(--r-plate-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.acc-dialog-top .ring { flex: none; }
.acc-dialog-top p { margin: 0; font-size: 16px; color: var(--ink); }
.acc-fine { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.acc-fine .i { width: 16px; height: 16px; margin-top: 2px; flex: none; }
.modal-foot .btn-gold, .modal-foot .btn-primary { white-space: nowrap; }

/* ---------------- #/records: Your data ---------------- */

.rec-hero {
  display: flex; gap: 24px; align-items: flex-start; padding: 30px 32px; background: #fff;
  --sh: 0 0 0 1px var(--blue-line), var(--plate);
}
.rec-hero-ico {
  flex: none; width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #2A80B8, #134B70);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 -3px 0 rgba(0, 0, 0, .18) inset, 0 10px 18px -8px rgba(19, 75, 112, .55);
}
.rec-hero-ico .i { width: 30px; height: 30px; }
.rec-hero-copy { min-width: 0; flex: 1; }
.rec-hero h2 { font-size: 30px; line-height: 1.15; margin: 8px 0 8px; }
.rec-hero p { margin: 0; max-width: 68ch; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.rec-hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }

.rec-parts { list-style: none; margin: 0; padding: 6px 0; }
.rec-part { display: flex; align-items: center; gap: 16px; padding: 15px 26px; border-top: 1px solid var(--line); }
.rec-part:first-child { border-top: 0; }
.rec-part .ico-chip { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 12px; }
.rec-part .ico-chip .i { width: 19px; height: 19px; }
.rec-part .grow { flex: 1; min-width: 0; }
.rec-part .t { font-family: var(--font-serif); font-weight: 500; font-size: 17px; line-height: 1.3; color: var(--ink); }
.rec-part .d { margin-top: 2px; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; max-width: 72ch; }
.rec-part-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; }

.rec-time { margin-top: 22px; }
.rec-track { position: relative; height: 6px; margin: 6px 6px 0; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); }
.rec-track > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); }
.rec-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rec-step { position: relative; display: flex; flex-direction: column; gap: 3px; padding-top: 22px; }
.rec-step .dot { position: absolute; top: -10px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--line-2); }
.rec-step:nth-child(2) .dot { left: 50%; margin-left: -7px; }
.rec-step:nth-child(3) .dot { left: auto; right: 0; }
.rec-step:nth-child(2) { text-align: center; align-items: center; }
.rec-step:nth-child(3) { text-align: right; align-items: flex-end; }
.rec-step.done .dot { background: var(--blue); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--blue); }
.rec-step.next .dot { background: var(--amber); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--amber); }
.rec-step.last .dot { background: #fff; box-shadow: 0 0 0 2px var(--red-line); }
.rec-step .when { font: 600 11.5px/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rec-step strong { font-family: var(--font-serif); font-weight: 500; font-size: 18px; color: var(--ink); }
.rec-step .txt { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; max-width: 34ch; }

.rec-premium { margin-top: 22px; flex-wrap: wrap; }
.rec-premium p { max-width: 64ch; }
.rec-premium-act { display: flex; gap: 10px; flex-wrap: wrap; }

.rec-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 4px 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.rec-note .i { width: 16px; height: 16px; margin-top: 2px; flex: none; }

/* ---------------- the Plan page ---------------- */

.plan-state {
  display: flex; align-items: center; gap: 16px; padding: 18px 24px; margin-bottom: 22px; background: #fff;
  --sh: 0 0 0 1px var(--gold-line), var(--plate);
}
.plan-state .ico-chip { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 13px; }
.plan-state .ico-chip .i { width: 21px; height: 21px; }
.plan-state .grow { flex: 1; min-width: 0; }
.plan-state h2 { font-size: 20px; line-height: 1.25; }
.plan-state p { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.plan-state .btn-group { flex: none; }
.plan-state.is-ending { --sh: 0 0 0 1px var(--amber-line), var(--plate); }

.plan-cards { align-items: start; }
.plan-cards .pkg-card .keep { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--teal-ink); }
.plan-cards .pkg-card .keep .i { width: 15px; height: 15px; }
.plan-cards .pkg-card .ticks .plus { color: var(--ink-3); font-size: 13px; padding-top: 8px; }
.plan-subs { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.plan-subs .btn { justify-content: center; }
.plan-fine { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.plan-cancel { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink-3); font-size: 13.5px; }

/* the locked Premium page offers to subscribe */
.locked-subs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.locked-ask { margin-top: 14px; }

/* ---------------- access ended: the portal-closed page ---------------- */

.acc-closed { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.acc-closed-top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 24px 0; padding: 8px 10px 8px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(227, 221, 209, .9) inset, 0 10px 30px -14px rgba(22, 34, 44, .28);
}
.acc-closed-top .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.acc-closed-top .brand .logo-mark { width: 28px; height: 28px; }
.acc-closed-top .brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 19px; }
.acc-closed-top .brand-name .core { color: var(--teal-ink); }
.acc-closed-top .grow { flex: 1; }
.acc-closed-main { flex: 1; display: grid; place-items: center; padding: 32px 20px 56px; }
.acc-closed-card { width: 100%; max-width: 680px; padding: 40px 44px; text-align: center; background: #fff; }
.acc-closed-ico {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #34495A, #16222C);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 -3px 0 rgba(0, 0, 0, .25) inset, 0 10px 18px -8px rgba(22, 34, 44, .55);
}
.acc-closed-ico .i { width: 30px; height: 30px; color: var(--mint); }
.acc-closed-card h1 { font-size: 32px; line-height: 1.15; margin: 10px auto 10px; max-width: 20ch; text-wrap: balance; }
.acc-closed-card .lead { color: var(--ink-2); font-size: 16px; line-height: 1.55; margin: 0 auto 24px; max-width: 52ch; }
.acc-closed-subs { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.acc-closed-subs .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
.acc-closed-del {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; margin: 26px 0 0; padding: 14px 16px; border-radius: var(--r-plate-md);
  background: var(--amber-soft); box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--ink-2); font-size: 14px; line-height: 1.55;
}
.acc-closed-del > .i { width: 18px; height: 18px; color: var(--amber-ink); margin-top: 2px; flex: none; }
.acc-closed-del strong { color: var(--ink); }
.acc-closed-admin { margin-top: 14px; text-align: left; }
.acc-closed-help { margin: 18px 0 0; }

/* ---------------- phones and tablets ---------------- */

@media (max-width: 900px) {
  .acc-card { grid-template-columns: auto minmax(0, 1fr); padding: 20px 22px; }
  .acc-card .acc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .acc-banner { margin: 10px 16px 0; flex-wrap: wrap; }
  .acc-banner-act { width: 100%; justify-content: flex-end; }
}
@media (max-width: 640px) {
  .acc-card { grid-template-columns: 1fr; justify-items: start; gap: 14px; }
  .acc-card h2 { font-size: 21px; }
  .acc-card .acc-actions { flex-direction: column; width: 100%; }
  .acc-card .acc-actions .btn { width: 100%; }
  .acc-banner { align-items: flex-start; padding: 12px 12px 10px 14px; }
  .acc-banner-act { justify-content: flex-start; flex-wrap: wrap; }
  .acc-banner-act .icon-btn { margin-left: auto; }
  .acc-dialog-top { flex-direction: column; align-items: flex-start; }
  .rec-hero { flex-direction: column; padding: 24px 20px; gap: 16px; }
  .rec-hero h2 { font-size: 25px; }
  .rec-hero-act .btn { width: 100%; }
  .rec-part { flex-wrap: wrap; padding: 15px 18px; }
  .rec-part-act { width: 100%; justify-content: flex-start; padding-left: 54px; }
  .rec-steps { grid-template-columns: 1fr; gap: 16px; }
  .rec-track { display: none; }
  .rec-step, .rec-step:nth-child(2), .rec-step:nth-child(3) { text-align: left; align-items: flex-start; padding: 0 0 0 26px; }
  .rec-step .dot, .rec-step:nth-child(2) .dot, .rec-step:nth-child(3) .dot { top: 3px; left: 0; right: auto; margin-left: 0; }
  .rec-premium-act { width: 100%; flex-direction: column; }
  .rec-premium-act .btn { width: 100%; }
  .plan-state { flex-wrap: wrap; padding: 18px; }
  .plan-state .btn-group { width: 100%; }
  .acc-closed-top { margin: 10px 12px 0; padding-left: 14px; }
  .acc-closed-top .badge { display: none; }
  .acc-closed-card { padding: 30px 20px; }
  .acc-closed-card h1 { font-size: 26px; }
  .acc-closed-subs .btn { width: 100%; }
}
@media print {
  .acc-banner { display: none; }
  .acc-card, .rec-hero { box-shadow: none !important; }
}
