/* Mr Bite Food Creator Studio – sign-in, application and password pages
   (design prototype). Same tokens and fonts as the studio. */
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope_600SemiBold.subset.woff') format('woff'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope_700Bold.subset.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope_800ExtraBold.subset.woff') format('woff'); font-weight: 800; font-display: swap; }

:root {
  --night: #0C2217; --night2: #123423; --green: #1E4B34; --green-l: #2E6B4A;
  --cream: #FAF4E9; --cream2: #F6EDDB; --orange: #F3861D; --hot: #FC6C00;
  --ink: #F4EEE2; --muted: rgba(250,244,233,.66); --line: rgba(255,255,255,.12); --bad: #FF8A7A;
  /* Mr Bite's own greens (app design-system/tokens.ts, site --night): page
     --night, card greenDark (--night2), fields green, edges greenLight. */
  --card: var(--night2); --field: var(--green); --edge: var(--green-l); --bad-ring: #FF6B5B;
  --hand: "Chalkboard SE", "Chalkboard", "Marker Felt", "Comic Sans MS", cursive;
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; background: var(--night); color: var(--ink); font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 50; padding: 12px 18px; border-radius: 999px; background: var(--night); color: var(--cream); font-weight: 800; text-decoration: none; }
.skip:focus { left: 12px; }

/* ---------- Layout: example profile left, card right (desktop) ---------- */
.acc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, 560px); grid-template-areas: "show side"; min-height: 100vh; }
.acc-side { grid-area: side; display: flex; align-items: center; justify-content: center; padding: 24px 40px;
  /* Fixed to the viewport, so both gradients pick up exactly where the sticky
     left side (100vw − 560px wide) ends: its orange glow and its dark green. */
  background: radial-gradient(calc(.55 * (100vw - 560px)) 45vh at calc(.85 * (100vw - 560px)) 8vh, rgba(252,108,0,.30), transparent 70%) fixed,
    radial-gradient(60% 50% at 100% 100%, rgba(46,107,74,.45), transparent 70%), var(--night); }
.acc-show { grid-area: show; position: sticky; top: 0; height: 100vh; overflow: hidden; color: var(--cream);
  background: radial-gradient(55% 45% at 85% 8%, rgba(252,108,0,.30), transparent 70%), radial-gradient(50% 45% at 0% 100%, rgba(46,107,74,.55), transparent 70%), var(--night); }
.acc-show::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(rgba(250,244,233,.08) 1px, transparent 1.2px) 0 0 / 22px 22px; mask-image: linear-gradient(transparent, #000 40%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 40%, transparent); }
.show-in { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 372px; grid-template-rows: 1fr auto auto auto 1fr; column-gap: 44px; align-items: start; padding: 32px 48px; }
.show-kick { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 13px; font-weight: 700; color: rgba(250,244,233,.72); }
.fc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: rgba(252,108,0,.16); box-shadow: inset 0 0 0 1px rgba(252,108,0,.45); color: #FFB066; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.fc-pill svg { width: 13px; height: 13px; color: var(--hot); }
.show-h { grid-column: 1; grid-row: 3; margin-top: 18px; font-weight: 800; font-size: clamp(30px, 2.7vw, 42px); line-height: 1.04; letter-spacing: -.02em; }
.show-h span { display: block; white-space: nowrap; }
.show-h .hot { color: var(--hot); }
.show-sub { grid-column: 1; grid-row: 4; max-width: 34ch; margin-top: 16px; font-size: 15.5px; line-height: 1.55; color: rgba(250,244,233,.78); }
.show-stage { grid-column: 2; grid-row: 1 / -1; align-self: center; position: relative; }
.show-stage::before { content: ''; position: absolute; inset: 8% -14% 4%; z-index: 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(252,108,0,.35), transparent); filter: blur(10px); }
/* Same phone frame as the studio's live preview; the screen inside is the real preview. */
.device { position: relative; z-index: 1; padding: 10px; border-radius: 52px; background: linear-gradient(145deg, #2c2c2c, #0b0b0b 40%); box-shadow: 0 0 0 1.5px #3a3a3a inset, 0 40px 80px -30px rgba(0,0,0,.8); }
#showcase { width: 352px; height: min(760px, calc(100vh - 84px)); border: 0; border-radius: 42px; background: #fff; color-scheme: normal; }
.swatches { grid-column: 1; grid-row: 5; align-self: start; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 26px; max-width: 336px; }
.sw { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.sw i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1.5px rgba(250,244,233,.35); transition: transform .25s var(--ease), box-shadow .25s; }
.sw:hover i { transform: scale(1.08); }
.sw[aria-checked="true"] i { box-shadow: 0 0 0 2.5px var(--night), 0 0 0 4.5px var(--cream); transform: scale(1.06); }
.show-note { display: none; }
.m-hero { display: none; }

/* ---------- The card ---------- */
.acc-card { position: relative; width: 100%; max-width: 460px; padding: 30px 38px 20px; border-radius: 32px; overflow: hidden;
  background: radial-gradient(80% 32% at 50% 0%, rgba(252,108,0,.12), transparent 70%), linear-gradient(160deg, rgba(46,107,74,.35), transparent 45%), var(--card);
  box-shadow: inset 0 1px 0 rgba(250,244,233,.06), 0 0 0 1px var(--edge), 0 40px 90px -36px rgba(0,0,0,.75), 0 0 70px -40px rgba(252,108,0,.35); }
.acc-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.acc-brand img { width: 62px; height: auto; margin: -6px -2px -6px -6px; }
.acc-brand p { display: flex; flex-direction: column; line-height: 1.15; }
.acc-brand b { font-weight: 800; font-size: 15px; letter-spacing: .2em; color: #fff; }
.acc-brand span { margin-top: 3px; font-weight: 800; font-size: 11.5px; letter-spacing: .17em; color: var(--orange); }

.view { animation: in .45s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } * { transition: none !important; } }
h1 { font-weight: 800; font-size: 31px; line-height: 1.12; letter-spacing: -.02em; color: #fff; outline: none; }
h1.display { font-size: 30px; letter-spacing: -.01em; text-transform: uppercase; }
/* Headings take focus on a view change only so screen readers start there;
   they are not controls (not in the Tab order), so they show no ring. */
h1:focus, h1:focus-visible { outline: none; }
/* Logga in: the welcome line centred; balanced, so the 👋 never ends up alone on a line. */
#h-login { text-align: center; text-wrap: balance; }
.fc-star { display: inline-block; vertical-align: -2px; color: var(--hot); }
.fc-star svg { width: .92em; height: .92em; }
.lead { margin-top: 8px; font-size: 16px; color: var(--muted); }
.lead--strong { color: #fff; font-weight: 800; }
.desc { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.acct { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.acct svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.nobr { white-space: nowrap; }

.form { display: grid; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 800; color: var(--ink); }
.field label small { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border: 1.5px solid var(--edge); border-radius: 16px; background: var(--field); font-size: 16px; font-weight: 600; color: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: rgba(250,244,233,.66); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: rgba(250,244,233,.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--hot); background: var(--field); box-shadow: 0 0 0 4px rgba(252,108,0,.2); }
.field.bad input, .field.bad textarea { border-color: var(--bad-ring); }
.field input:-webkit-autofill { -webkit-text-fill-color: #fff; box-shadow: inset 0 0 0 100px var(--field); caret-color: #fff; }
.err { display: flex; gap: 6px; font-size: 13px; font-weight: 700; color: var(--bad); }
.err::before { content: '!'; flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--bad-ring); color: var(--card); font-size: 11px; font-weight: 800; }
.help, .count { font-size: 12.5px; color: var(--muted); }
.count { text-align: right; margin-top: -2px; }
.pass { position: relative; }
.pass input { padding-right: 56px; }
.eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: rgba(250,244,233,.8); }
.eye svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye .eye-shut { display: none; }
.eye[aria-pressed="true"] .eye-open { display: none; }
.eye[aria-pressed="true"] .eye-shut { display: inline; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 16px; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-decoration: none; text-align: center; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; min-height: 56px; font-size: 16px; }
.btn .t { text-wrap: balance; }
/* Orange with deep green text: 5.8:1 (white on this orange is only 2.9:1). */
.btn-hot { background: var(--hot); color: var(--night); box-shadow: 0 14px 26px -14px rgba(252,108,0,.9); }
.btn-hot:hover { background: #FF7A14; box-shadow: 0 18px 30px -14px rgba(252,108,0,.95); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(250,244,233,.5); }
.btn-line:hover { background: var(--cream); color: var(--card); }
.btn-soft { background: var(--green); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.btn-soft:hover { background: var(--green-l); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 14px; letter-spacing: 0; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(252,108,0,.6); }
.link:hover { text-decoration-color: var(--hot); }
.link-center { justify-self: center; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 8px; font-size: 14px; font-weight: 800; color: var(--ink); text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }

.or { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; font-size: 14px; font-weight: 800; color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.invite { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

.notice { padding: 13px 15px; border-radius: 16px; background: rgba(252,108,0,.10); box-shadow: inset 4px 0 0 var(--hot); font-size: 14px; color: var(--ink); }
.notice b { color: #fff; }
.notice--info { margin-top: 18px; display: grid; gap: 2px; }
.proto { display: grid; gap: 10px; justify-items: start; margin-top: 16px; padding: 12px 16px; border-radius: 18px; background: rgba(12,34,23,.55); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); }
.proto b { color: var(--ink); }
.proto-line { margin-top: -6px; font-size: 12.5px; color: var(--muted); text-align: center; }

.steps { list-style: none; display: grid; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 18px; background: rgba(12,34,23,.55); box-shadow: inset 0 0 0 1px var(--line); }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.steps b { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hot); color: var(--orange); font-size: 13px; font-weight: 800; }
.fine { display: grid; gap: 6px; padding: 2px 2px 0; font-size: 13px; color: var(--muted); }

.view--thanks { position: relative; }
.view--thanks h1, .view--thanks .lead { padding-right: 84px; } /* clear of the mascot */
.peek { position: absolute; z-index: 1; right: -34px; top: -84px; width: 96px; height: auto; pointer-events: none; animation: peek .8s .15s var(--ease) both; }
@keyframes peek { from { transform: translateX(70px) rotate(8deg); } }
.actions { display: grid; gap: 10px; margin-top: 22px; }

.motto { margin-top: 16px; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 15px; color: var(--ink); opacity: .62; }

/* ---------- Tablet + mobile: the card first, the example profile under it ---------- */
@media (max-width: 1100px) {
  .acc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "side" "show"; }
  .acc-side { flex-direction: column; justify-content: flex-start; padding: 0 16px 24px;
    background: var(--night); }
  .m-hero { position: relative; display: block; align-self: stretch; margin: 0 -16px -64px; padding: 26px 20px 92px; overflow: hidden; color: var(--cream);
    -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
    background: radial-gradient(70% 90% at 100% 0%, rgba(252,108,0,.38), transparent 70%), radial-gradient(60% 80% at 0% 100%, rgba(46,107,74,.6), transparent 70%), var(--night); }
  .m-slogan { position: relative; z-index: 1; margin-top: 14px; font-weight: 800; font-size: clamp(25px, 7.4vw, 38px); line-height: 1.04; letter-spacing: -.02em; }
  .m-slogan span { display: block; white-space: nowrap; }
  .m-slogan .hot { color: var(--hot); }
  .m-peek { position: absolute; right: -6px; top: 18px; width: 92px; height: auto; animation: peek .9s .2s var(--ease) both; }
  .acc-side .acc-card { position: relative; z-index: 1; }
  body:not([data-view="logga-in"]) .m-hero { display: none; } /* only Logga in has the brand band */
  body:not([data-view="logga-in"]) .acc-side { padding-top: 16px; }
  .acc-show { position: relative; height: auto; overflow: hidden; } /* clips the glow behind the phone */
  /* A soft start: the card's dark green fades into the profile section (no edge). */
  .acc-show::after { content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 0; height: 200px; pointer-events: none; background: linear-gradient(var(--night), rgba(12,34,23,0)); }
  .show-in { z-index: 1; }
  .show-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 16px 36px; }
  .show-kick { justify-content: center; }
  .show-h { font-size: clamp(30px, 9vw, 44px); }
  .show-sub { margin-inline: auto; }
  .show-stage { order: 6; margin-top: 26px; width: 100%; display: flex; justify-content: center; }
  .device { width: min(372px, 100%); }
  #showcase { width: 100%; height: 700px; pointer-events: none; }
  .swatches { order: 5; justify-content: center; max-width: 340px; margin-top: 22px; }
  .show-note { display: block; order: 7; margin-top: 14px; font-size: 12.5px; color: rgba(250,244,233,.6); }
}
@media (max-width: 520px) {
  .acc-side { padding: 0 12px 20px; }
  body:not([data-view="logga-in"]) .acc-side { padding-top: 12px; }
  .m-hero { margin: 0 -12px -60px; padding: 22px 16px 86px; }
  .m-peek { width: 80px; }
  .acc-card { padding: 24px 20px 20px; border-radius: 26px; }
  .acc-brand { margin-bottom: 20px; }
  h1 { font-size: 27px; }
  h1.display { font-size: 26px; }
  .view--thanks h1, .view--thanks .lead { padding-right: 64px; }
  .peek { width: 84px; right: -30px; top: -76px; }
  .device { padding: 8px; border-radius: 44px; }
  #showcase { height: 640px; border-radius: 36px; }
}
@media (max-width: 350px) {
  .acc-card { padding: 22px 16px 18px; }
  h1 { font-size: 25px; }
  h1.display { font-size: 23px; }
  .btn-block { font-size: 15px; letter-spacing: .02em; }
  .peek { width: 70px; right: -40px; top: -58px; }
  .view--thanks h1, .view--thanks .lead { padding-right: 52px; }
  .acc-brand b { letter-spacing: .14em; }
  .acc-brand span { letter-spacing: .1em; }
}
