/* justmimic.ai website — shared styles. Plain CSS, no build step.
   Tokens follow the Flutter app (lib/core/theme/app_colors.dart); [data-theme=dark] on <html> switches them. */

@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Intel One Mono"; src: url("/fonts/IntelOneMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Intel One Mono"; src: url("/fonts/IntelOneMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* the icons: our own copy of Material Symbols Rounded, trimmed to the ~40 icons the site uses (12 KB instead of 3 MB),
   fill and weight still adjustable. "block": an icon never shows as its name while the font loads */
@font-face { font-family: "Material Symbols Rounded"; src: url("/fonts/MaterialSymbolsRounded.woff2") format("woff2"); font-weight: 400 700; font-display: block; }

:root {
  --lime: #BEFC5B; --lime-hover: #B0F043; --on-light: #121212;
  --ink: #121212; --muted: #9DA2A5; --secondary: #6B7075; --headline-muted: #8C8B87; /* 3:1 on the light background (large text) */ --kicker: #7FB52A;
  --bg-top: #F2F2F2; --bg-bottom: #FFFFFF; --surface: #FFFFFF; --surface-high: #F4F4F4; --border: #E6E7EB;
  --card-border: transparent; --dot-inactive: #D9D9D9; --skeleton: #E6E7EB;
  --pill: #121212; --pill-hover: #2B2B2B; --on-pill: #FFFFFF;
  --body-text: #7C8185; --legal-text: #44484C; --error: #D64545; --error-strong: #B42318;
  --shadow: 0 6px 24px rgba(0, 0, 0, .06); --shadow-strong: 0 16px 40px rgba(0, 0, 0, .10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Intel One Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #F2F3F5; --muted: #A9ADB5; --secondary: #A9ADB5; --headline-muted: #7C818B; --kicker: #BEFC5B;
  --bg-top: #0F1012; --bg-bottom: #0F1012; --surface: #17181B; --surface-high: #1F2024; --border: #2A2C31;
  --card-border: #2A2C31; --dot-inactive: #3A3D44;
  --pill: #F2F3F5; --pill-hover: #FFFFFF; --on-pill: #0F1012;
  --body-text: #A9ADB5; --legal-text: #A9ADB5; --error: #F07171; --error-strong: #F97066;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35); --shadow-strong: 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); color: var(--ink); line-height: 1.4;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed; background-color: var(--bg-bottom);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(190, 252, 91, .55); }
:root[data-theme="dark"] ::selection { background: rgba(190, 252, 91, .35); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.secondary { color: var(--secondary); }
[hidden] { display: none !important; }

/* logo: the light / dark wordmark */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 32px; width: auto; }
.logo .l-dark, :root[data-theme="dark"] .logo .l-light { display: none; }
:root[data-theme="dark"] .logo .l-dark { display: block; }

/* icons: Material Symbols Rounded (loaded per page) */
.ms { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr;
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; font-variation-settings: "FILL" 1, "wght" 500; user-select: none; }
/* a PNG icon tinted with the current colour (the feature icons are black shapes on transparent) */
.mask-icon { display: inline-block; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* --- buttons -------------------------------------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; cursor: pointer;
  text-decoration: none; font-weight: 600; font-size: 17px; height: 58px; padding: 0 26px; white-space: nowrap;
  background: var(--pill); color: var(--on-pill); transition: background .18s, box-shadow .18s, transform .18s var(--ease);
}
.pill:hover { background: var(--pill-hover); box-shadow: 0 8px 24px rgba(18, 18, 18, .28); }
.pill:active { transform: scale(.97); }
.pill[disabled], .pill.is-disabled { cursor: default; opacity: .55; box-shadow: none; transform: none; }
.pill.lime { background: var(--lime); color: var(--on-light); }
.pill.lime:hover { background: var(--lime-hover); box-shadow: 0 8px 24px rgba(190, 252, 91, .45); }
.pill.grey { background: var(--surface-high); color: var(--ink); }
.pill.grey:hover { background: var(--border); box-shadow: none; }
.pill.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.4px var(--ink); }
.pill.outline:hover { background: var(--surface); box-shadow: inset 0 0 0 1.4px var(--ink), 0 6px 16px rgba(0, 0, 0, .1); transform: scale(1.03); }
.pill.white { background: #FFFFFF; color: #121212; }
.pill.white:hover { background: #F4F4F4; }
.pill.black { background: #121212; color: #FFFFFF; }
.pill.black:hover { background: #2B2B2B; }
.pill.big { width: 310px; height: 72px; font-size: 20px; border-radius: 36px; }
.pill.big.lime { font-size: 22px; }
.pill.sm { height: 40px; padding: 0 18px; font-size: 15px; }
.pill.md { height: 46px; padding: 0 22px; font-size: 16px; }
.pill .brand { width: 20px; height: 20px; flex: none; }
.pill.loading { pointer-events: none; }
.pill.loading > :not(.spinner) { visibility: hidden; }
.pill { position: relative; }
.pill.loading .spinner { position: absolute; inset: 0; margin: auto; }
@media (max-width: 599px) { .pill.big { width: min(calc(100vw - 32px), 420px); height: 60px; } }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: var(--secondary); font-size: 15px; }
.link-btn:hover { color: var(--ink); }

/* --- cards, chips -------------------------------------------------------------------------------------------------- */
.card { background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); border: 1px solid var(--card-border); }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; background: var(--lime); color: var(--on-light); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 1.6px; color: var(--kicker); text-transform: uppercase; }

/* --- fade-in on load / when scrolled into view --------------------------------------------------------------------- */
[data-fade] { opacity: 0; transform: translateY(16px); transition: opacity .48s var(--ease), transform .48s var(--ease); transition-delay: var(--d, 0ms); }
[data-fade].in { opacity: 1; transform: none; }

/* --- theme toggle + small menus ----------------------------------------------------------------------------------- */
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--secondary); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--surface-high); color: var(--ink); }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 180px; max-width: 400px; background: var(--surface);
  border-radius: 14px; box-shadow: var(--shadow-strong); border: 1px solid var(--card-border); padding: 6px; }
.menu button, .menu .mi { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); }
.menu button:hover { background: var(--surface-high); }
.menu .on { font-weight: 700; }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu .mi { cursor: default; flex-direction: column; align-items: flex-start; gap: 2px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-light); font-weight: 700; font-size: 16px; cursor: pointer; }
.tip { position: relative; }
.tip[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--pill); color: var(--on-pill); font-size: 13px; padding: 5px 9px; border-radius: 8px; white-space: nowrap; z-index: 70; pointer-events: none; }

/* --- cookie banner ------------------------------------------------------------------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: var(--surface);
  border-radius: 20px; box-shadow: 0 10px 34px rgba(0, 0, 0, .18); border: 1px solid var(--card-border); padding: 20px 16px 16px 20px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.consent p { margin: 0; flex: 1 1 320px; font-size: 13.5px; line-height: 1.45; color: var(--secondary); }
.consent .acts { display: flex; gap: 8px; margin-left: auto; }
.consent .decline { background: none; border: 0; cursor: pointer; padding: 12px 16px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.consent .decline:hover { background: var(--surface-high); }
.consent .accept { background: var(--lime); color: #121212; border: 0; cursor: pointer; padding: 14px 22px; border-radius: 999px; font-weight: 700; }

/* --- dialog, snackbar ---------------------------------------------------------------------------------------------- */
.dialog-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px;
  animation: fadein .2s ease; }
.dialog { position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: 28px; padding: 32px 28px 26px; text-align: center; box-shadow: var(--shadow-strong); }
.dialog h2 { margin: 18px 0 10px; font-size: 24px; }
.dialog p { margin: 0 0 20px; color: var(--secondary); font-size: 15.5px; line-height: 1.5; }
.dialog .x { position: absolute; top: 12px; right: 12px; }
.dialog .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.snackbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; background: var(--pill); color: var(--on-pill);
  padding: 14px 20px; border-radius: 14px; font-size: 15px; box-shadow: var(--shadow-strong); max-width: min(560px, calc(100vw - 32px)); animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } }

/* --- form fields (contact, waitlist) ------------------------------------------------------------------------------- */
.field { position: relative; display: block; margin-bottom: 16px; }
.field input, .field textarea, .field select { width: 100%; border: 1.6px solid transparent; background: var(--surface-high); color: var(--ink);
  border-radius: 16px; padding: 24px 16px 10px; font: 16px/1.4 var(--font); outline: none; resize: vertical; appearance: none; }
.field select { cursor: pointer; }
.field textarea { min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field > span.lbl { position: absolute; left: 17px; top: 8px; font-size: 12.5px; color: var(--secondary); pointer-events: none; }
.field .help, .field .count { display: block; font-size: 12.5px; color: var(--secondary); margin: 6px 4px 0; }
.field .count { text-align: right; margin-top: -2px; }
.field .ferr { display: block; font-size: 13px; color: var(--error-strong); margin: 6px 4px 0; }
.field.bad input, .field.bad textarea { border-color: var(--error-strong); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 16px; padding: 14px 16px; font-size: 14.5px; line-height: 1.45;
  background: #FFF4E5; color: #92400E; text-align: left; }
.notice .ms { color: #B45309; font-size: 20px; }
:root[data-theme="dark"] .notice { background: #2A2113; border: 1px solid #4A3818; color: #F5C88A; }
:root[data-theme="dark"] .notice .ms { color: #F0A94B; }

/* --- the page shell (every page except the landing page) ----------------------------------------------------------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px 48px; }
.shell-head { width: 100%; max-width: 960px; height: 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; flex: none; }
.shell-head .back { justify-self: start; display: inline-flex; align-items: center; gap: 2px; font-size: 20px; line-height: 26px; font-weight: 500;
  color: var(--muted); text-decoration: none; }
.shell-head .back:hover { color: var(--ink); }
.shell-head .back .ms { font-size: 28px; }
.shell-head .logo { justify-self: center; }
.shell-head .end { justify-self: end; display: flex; gap: 6px; align-items: center; }
.page-title { font-size: 36px; line-height: 44px; font-weight: 700; margin: 0; text-align: center; }
.page-sub { font-size: 20px; line-height: 26px; color: var(--muted); margin: 10px 0 0; text-align: center; white-space: pre-line; }
.scroll-page { width: 100%; display: flex; flex-direction: column; align-items: center; padding: 56px 0 64px; }
.scroll-page > .heading { margin: 70px 0 36px; padding: 0 8px; }
@media (max-width: 599px) {
  .shell { padding: 16px 16px; }
  .logo img { height: 26px; }
  .page-title { font-size: 28px; line-height: 34px; }
  .page-sub { font-size: 17px; line-height: 23px; }
  .scroll-page { padding-top: 24px; }
  .scroll-page > .heading { margin: 40px 0 24px; }
}

/* a card holding a form or a document (contact, waitlist, legal) */
.panel { width: 100%; max-width: 640px; background: var(--surface); border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--card-border); padding: 44px; }
@media (max-width: 599px) { .panel { padding: 24px 20px; border-radius: 24px; } }
.done-check { width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: #121212; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-fade] { opacity: 1; transform: none; }
}

/* --- Buddy (js/buddy.js) ------------------------------------------------------------------------------------------- */
.bud { display: inline-block; position: relative; line-height: 0; cursor: pointer; }
.bud-in { display: block; width: 100%; height: 100%; transform-origin: 50% 90%; }
.bud .buddy-svg { width: 100%; height: 100%; overflow: visible; }
.tour-bud { position: absolute; left: 0; top: 0; z-index: 5; will-change: transform; }
.tour-hit { position: absolute; z-index: 3; }
.bud-in.joy { animation: bud-joy .65s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bud-joy { 0% { transform: none; } 25% { transform: translateY(4px) scale(1.12, .86); } 55% { transform: translateY(-30px) scale(.92, 1.1); } 80% { transform: translateY(0) scale(1.1, .9); } 100% { transform: none; } }

/* a fixed-size design canvas scaled to fit its stage (JM.fit) */
.stage { position: relative; width: 100%; }
.stage > .canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.canvas > .layer { position: absolute; }
.glow-lime { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(190, 252, 91, .14) 0%, rgba(190, 252, 91, .056) 45%, rgba(190, 252, 91, 0) 70%); }

/* --- Online AI / Local AI cards ------------------------------------------------------------------------------------ */
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
@media (max-width: 639px) { .mode-cards:not(.compact) { grid-template-columns: 1fr; gap: 14px; } }
.mode-card { background: var(--surface); border-radius: 26px; padding: 26px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.mode-card.on { border: 2px solid var(--lime); box-shadow: 0 0 28px rgba(190, 252, 91, .28); }
.mc-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.mc-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-high); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.mode-card.on .mc-ico { background: var(--lime); color: #121212; }
.mc-name { font-size: 21px; font-weight: 700; }
.mc-tag { font-size: 14px; color: var(--muted); }
.mode-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mode-card li { display: flex; gap: 8px; font-size: 15px; line-height: 1.4; }
.mode-card li .ms { color: var(--muted); font-size: 18px; margin-top: 1px; }
.mode-card.on li .ms { color: #7FB52A; }
.mode-cards.compact .mode-card { padding: 18px; border-radius: 20px; }
.mode-cards.compact .mc-ico { width: 34px; height: 34px; } .mode-cards.compact .mc-ico .ms { font-size: 19px; }
.mode-cards.compact .mc-name { font-size: 17px; } .mode-cards.compact .mc-tag { font-size: 12px; }
.mode-cards.compact li { font-size: 13px; } .mode-cards.compact li .ms { font-size: 15px; }
.mode-cards.always-light .mode-card { background: #FFFFFF; color: #121212; border-color: #E6E7EB; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.mode-cards.always-light .mode-card.on { border-color: var(--lime); }
.mode-cards.always-light .mc-ico { background: #F4F4F4; color: #121212; } .mode-cards.always-light .on .mc-ico { background: var(--lime); }
.mode-cards.always-light .mc-tag, .mode-cards.always-light li .ms { color: #9DA2A5; }
.mode-cards.always-light .on li .ms { color: #7FB52A; }

/* --- the Add to Chrome dialog -------------------------------------------------------------------------------------- */
.handoff { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.handoff .tile { width: 64px; height: 64px; border-radius: 18px; background: var(--surface-high); display: inline-flex; align-items: center; justify-content: center; padding: 14px; }
.linkrow { display: flex; align-items: center; gap: 10px; background: var(--surface-high); border-radius: 999px; padding: 6px 6px 6px 16px; text-align: left; color: var(--secondary); }
.linkrow .u { flex: 1; color: var(--ink); font-weight: 500; }
.dialog .small { font-size: 14px; margin: 16px 0 0; }
/* phones: the header's Back is just the chevron, so it never crowds the logo */
@media (max-width: 599px) { .shell-head .back { font-size: 0; } .shell-head .back .ms { font-size: 30px; } }
/* the header keeps its three columns when Back is hidden (the logo stays centred) */
.shell-head > .back[hidden] { display: inline-flex !important; visibility: hidden; }
/* icon ligatures ("brightness_auto") are wide text until the icon font arrives: never wider than the icon */
.icon-btn .ms, .shell-head .back .ms { width: 1em; height: 1em; overflow: hidden; }
/* scrolling pages: 70 px between the header and the title (the shell already pads the top) */
.scroll-page { padding-top: 0; }

/* wide screens: the cookie card sits in the bottom-right corner, clear of the hero's buttons (they're on the left) */
@media (min-width: 900px) {
  .consent { left: auto; right: 20px; bottom: 20px; max-width: 400px; margin: 0; padding: 18px 18px 16px; }
  .consent p { flex-basis: 100%; }
  .consent .acts { margin-left: 0; width: 100%; justify-content: flex-end; }
}
