/* justmimic.ai website — plans, downloads (js/plans.js; also used by the landing page), /pricing and /signin.
   Sizes and colours from the Flutter app (lib/features/pricing/**, lib/features/account/**, core/widgets/sign_in_buttons.dart). */

/* --- pills used here (the Flutter _Pill: full width unless sized, label 18 / 15 on short ones, no hover lift) ---------- */
.pl-pill { width: 100%; padding: 0 18px; font-size: 18px; }
.pl-pill.pl-62 { height: 62px; }
.pl-pill.pl-54 { height: 54px; }
.pl-pill.pl-48 { height: 48px; font-size: 15px; }
.pl-pill.pl-40 { height: 40px; width: 104px; font-size: 15px; }
.pl-pill.pl-38 { height: 38px; width: 130px; font-size: 15px; }
.pl-pill.pl-w130 { width: 130px; }
.pl-pill.pl-w170 { width: 170px; }
.pl-pill.pl-lime { background: var(--lime); color: var(--on-light); }
.pl-pill.pl-lime:hover { background: var(--lime-hover); box-shadow: 0 8px 24px rgba(190, 252, 91, .45); }
.pl-pill.pl-grey { background: #EFEFEF; color: var(--ink); }
.pl-pill.pl-grey:hover { background: #E4E4E4; box-shadow: none; }
:root[data-theme="dark"] .pl-pill.pl-grey { background: #1F2024; }
:root[data-theme="dark"] .pl-pill.pl-grey:hover { background: #2A2C31; }
.pl-pill[disabled] { opacity: .6; }
.pl-pill.loading { opacity: 1; }

.pl-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 9px; background: var(--lime); color: var(--on-light);
  font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }

/* --- the plans section ---------------------------------------------------------------------------------------------- */
.pl { width: 100%; display: flex; flex-direction: column; align-items: center; }
.pl-toggle-wrap { position: relative; width: 296px; }
.pl-toggle { display: flex; height: 52px; border-radius: 999px; background: #E8E8E8; border: 1px solid var(--card-border); }
:root[data-theme="dark"] .pl-toggle { background: #17181B; }
.pl-tab { flex: 1; margin: 4px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: 17px; font-weight: 500;
  color: var(--muted); transition: background .2s ease-out, box-shadow .2s ease-out, color .2s ease-out; }
.pl-tab:hover { color: var(--ink); }
.pl-tab.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
:root[data-theme="dark"] .pl-tab.on { background: #2A2C31; }
.pl-off { position: absolute; right: -18px; top: -12px; pointer-events: none; }

.pl-acct { margin-top: 18px; max-width: 820px; background: var(--surface); border: 1px solid var(--card-border); border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05); padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px; font-size: 15px; line-height: 1.3; text-align: center; }
.pl-acct.in { gap: 10px 12px; }
.pl-acct-wait { width: min(560px, 100%); height: 66px; }
.pl-marks { display: inline-flex; gap: 14px; align-items: center; }
.pl-marks .brand { display: inline-block; height: 18px; }
.pl-g { width: 18px; } .pl-a { width: 16px; color: var(--ink); }
.pl-acct .avatar { width: 32px; height: 32px; font-size: 14px; }
.pl-acct .menu { text-align: left; }
.pl-acct .menu-wrap .menu { left: 0; right: auto; }

.pl-cards { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; width: 100%; }
.pl-card { position: relative; width: 306px; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 22px 26px; background: var(--surface); border-radius: 30px; border: 1px solid var(--card-border); box-shadow: 0 8px 24px rgba(0, 0, 0, .04); }
.pl-card.popular { border: 1.6px solid var(--lime); }
.pl-card.max { border: 1.6px solid rgba(190, 252, 91, .45); }
.pl-popular { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.pl-name { margin: 0; font-size: 32px; line-height: 1.1; font-weight: 700; }
.pl-tag { margin: 10px 0 0; font-size: 15.5px; line-height: 1.35; color: var(--muted); white-space: pre-line; }
.pl-price { position: relative; margin-top: 22px; }
.pl-amount { font-size: 44px; line-height: 1.05; font-weight: 700; }
.pl-save { position: absolute; left: calc(100% + 6px); top: -8px; }
.pl-caption { margin: 4px 0 0; font-size: 14px; line-height: 1.3; color: var(--muted); min-height: 18px; }
.pl-feats { list-style: none; margin: 22px 0 0; padding: 0 0 0 10px; width: 100%; text-align: left; }
.pl-feats li { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; font-size: 15.5px; line-height: 1.35; }
.pl-check { flex: none; width: 21px; height: 21px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(190, 252, 91, .45); color: var(--on-light); }
:root[data-theme="dark"] .pl-check { color: #FFFFFF; }
.pl-card.free .pl-check { background: #9DA2A5; color: #FFFFFF; }
:root[data-theme="dark"] .pl-card.free .pl-check { background: #3A3D44; }
.pl-check .ms { font-variation-settings: "FILL" 1, "wght" 700; }
.pl-btn { width: 100%; margin-top: auto; padding-top: 13px; }

.pl-yours { width: 100%; max-width: 520px; text-align: center; background: var(--surface); border: 1.6px solid var(--lime); border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .04); padding: 30px 32px 28px; }
.pl-yours-title { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 700; }
.pl-yours-sub { margin: 10px 0 0; font-size: 15.5px; line-height: 1.4; color: var(--muted); }
.pl-yours .pl-pill { margin-top: 22px; }

.pl-dialog { text-align: left; }
.pl-dialog h2 { margin-top: 4px; font-size: 24px; line-height: 1.2; padding-right: 28px; }
.pl-dialog p { font-size: 16px; }
.pl-dialog .row { justify-content: flex-end; }

@media (max-width: 599px) {
  .pl-acct { border-radius: 26px; }
  .pl-cards { margin-top: 40px; flex-direction: column; align-items: center; gap: 28px; }
  .pl-card { max-width: 100%; }
  .pl-yours { padding: 26px 22px 24px; }
  .pl-yours-title { font-size: 26px; }
}

/* --- the downloads ("Get justmimic.ai") ------------------------------------------------------------------------------- */
.dl { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dl-heading { margin: 0; font-size: 40px; line-height: 1.2; font-weight: 700; }
.dl-sub { margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); }
.dl-cards { margin-top: 36px; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 28px; }
.dl-card { width: min(400px, 100%); min-height: 300px; display: flex; flex-direction: column; align-items: center; padding: 30px 28px 22px;
  background: var(--surface); border: 1px solid var(--card-border); border-radius: 30px; box-shadow: 0 10px 28px rgba(0, 0, 0, .06); }
.dl-tile { width: 72px; height: 72px; padding: 16px; border-radius: 22px; background: var(--surface-high); color: var(--ink); display: inline-flex; flex: none; }
.dl-tile .brand { display: block; width: 100%; height: 100%; }
.dl-title { margin: 18px 0 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.dl-text { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.dl-btn { width: 100%; padding-top: 22px; }
.dl-intel { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); padding: 4px 8px; }
.dl-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 599px) {
  .dl-heading { font-size: 30px; }
  .dl-cards { margin-top: 24px; }
  .dl-card { padding: 26px 20px 20px; }
}

/* --- /pricing ----------------------------------------------------------------------------------------------------- */
/* Flutter: the header, then 70 px (40 phone) to the heading — the shell already pads the top, so no extra 56 here */
.pricing-main.scroll-page { padding-top: 0; }
.pricing-main .heading { max-width: 760px; }
.pricing-body { width: 100%; padding-top: 32px; display: flex; flex-direction: column; align-items: center; }
.pricing-body > .dl { margin-top: 56px; scroll-margin-top: 24px; }
@media (max-width: 599px) {
  .pricing-body { padding-top: 24px; }
  .pricing-body > .dl { margin-top: 32px; }
  .page-sub br.d { display: none; }
}

/* --- /signin ----------------------------------------------------------------------------------------------------- */
.si-main { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 32px 0 48px; }
.si-main .heading { padding: 0 8px; }
.si-body { width: 100%; padding-top: 36px; display: flex; flex-direction: column; align-items: center; }

/* Website · Extension · Buddy · Mac app · Your plan — scaled down (never wrapped) when the screen is narrow */
.si-ew { position: relative; width: 100%; height: 106px; }
.si-ew-row { position: absolute; left: 50%; top: 0; display: flex; align-items: center; transform-origin: 50% 0; transform: translateX(-50%); white-space: nowrap; }
.si-place { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; }
.si-tile { width: 58px; height: 58px; border-radius: 18px; background: var(--surface); border: 1px solid var(--card-border);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .06); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.si-tile .ms { font-size: 26px; }
.si-place.lit .si-tile { border: 2px solid var(--lime); }
.si-place figcaption { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.si-link { display: inline-flex; padding: 0 6px 22px; }
.si-link i { width: 5px; height: 5px; margin: 0 2.5px; border-radius: 50%; background: var(--lime); opacity: .5; }
.si-link i:nth-child(2) { opacity: .75; } .si-link i:nth-child(3) { opacity: 1; }
.si-hub { width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--lime); box-shadow: 0 0 26px rgba(190, 252, 91, .55);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; }

/* the card, with a soft lime glow behind it (a box-shadow: it never widens the page) */
.si-card { position: relative; width: 100%; max-width: 420px; margin-top: 34px; padding: 32px 28px 26px; background: var(--surface);
  border: 1px solid var(--card-border); border-radius: 30px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06), 0 0 120px 40px rgba(190, 252, 91, .14); }
.si-card .notice { padding: 12px 16px; font-size: 14px; line-height: 1.4; margin-bottom: 20px; align-items: center; }
.si-card .notice .ms, .si-done .notice .ms { font-size: 18px; font-variation-settings: "FILL" 0, "wght" 500; }
.si-wait { height: 126px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.si-wait .spinner { width: 28px; height: 28px; border-width: 2px; }
.si-msg { margin: 0; padding: 18px 0 6px; text-align: center; font-size: 16px; line-height: 1.4; color: var(--muted); }
.si-msg.none { padding: 30px 0; }
.si-retry { display: block; margin: 0 auto 12px; color: var(--ink); font-weight: 500; padding: 8px 12px; }
.si-retry:hover { color: var(--ink); opacity: .8; }
.si-btns { display: flex; flex-direction: column; gap: 14px; }

/* the brand buttons, the way Google and Apple ask for them */
.sib { position: relative; width: 100%; height: 56px; border-radius: 999px; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 12px; font-size: 16.5px; font-weight: 600; transition: background .15s, box-shadow .15s, transform .12s; }
.sib .brand { width: 20px; height: 20px; display: inline-block; flex: none; }
.sib:hover:not([disabled]) { box-shadow: 0 4px 14px rgba(0, 0, 0, .1); }
.sib:active:not([disabled]) { transform: scale(.98); }
.sib[disabled] { cursor: default; }
.sib[disabled]:not(.loading) { opacity: .6; }
.sib.loading > :not(.spinner) { visibility: hidden; }
.sib.loading .spinner { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-width: 2.2px; }
.sib.google { background: #FFFFFF; color: #1F1F1F; box-shadow: inset 0 0 0 1px #747775; }
.sib.google:hover:not([disabled]) { background: #F7F8F8; box-shadow: inset 0 0 0 1px #747775, 0 4px 14px rgba(0, 0, 0, .1); }
.sib.apple { background: #000000; color: #FFFFFF; }
.sib.apple:hover:not([disabled]) { background: #2B2B2B; }
:root[data-theme="dark"] .sib.google { background: #131314; color: #E3E3E3; box-shadow: inset 0 0 0 1px #8E918F; }
:root[data-theme="dark"] .sib.google:hover:not([disabled]) { background: #1F1F20; box-shadow: inset 0 0 0 1px #8E918F, 0 4px 14px rgba(0, 0, 0, .1); }
:root[data-theme="dark"] .sib.apple { background: #FFFFFF; color: #000000; }
:root[data-theme="dark"] .sib.apple:hover:not([disabled]) { background: #E8E8E8; }

.si-private { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 24px; text-align: center; font-size: 13px; line-height: 1.45; color: var(--muted); }
.si-private img { width: 22px; height: 22px; flex: none; }
.si-private p { margin: 0; }
.si-private p + p { margin-top: 4px; }
.si-private a { color: var(--ink); }

/* "You're in!" */
.si-done { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.si-pic { position: relative; width: 260px; height: 190px; display: flex; align-items: center; justify-content: center; }
.si-pic::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  box-shadow: 0 0 140px 90px rgba(190, 252, 91, .2); pointer-events: none; }
.si-pic img { position: relative; width: 190px; height: auto; }
.si-pic .bud { position: absolute; right: 0; bottom: 0; }
.si-done .notice { margin-top: 24px; max-width: 440px; }
.si-done-text { margin: 24px 0 0; max-width: 440px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.si-done .notice + .si-done-text { margin-top: 16px; }
.si-done .pill { margin-top: 32px; }
.si-small { margin: 12px 0 0; max-width: 440px; font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 599px) {
  .si-main { padding-top: 24px; }
  .si-card { padding: 28px 20px 22px; border-radius: 26px; }
}

/* a hidden Back link still holds its grid cell, so the logo stays centred (site.css [hidden] takes it out of the grid) */
.shell-head > .back[hidden] { display: inline-flex !important; visibility: hidden; }

/* icon glyphs keep their box while the icon font loads (its ligature names are wide words until then) */
.pl-check .ms, .si-tile .ms, .si-card .notice .ms, .si-done .notice .ms, .shell-head .icon-btn .ms, .shell-head .back .ms { width: 1em; height: 1em; overflow: hidden; flex: none; }
