/* /metodo: same tokens as the site (assets/css/style.css), without depending on it. */
:root{
  --bg:#FBF5F1; --bg-alt:#F2E1D9; --card:#FFFFFF;
  --plum:#55212F; --plum-soft:#7A3349; --rose:#C97B6E; --rose-deep:#934E45;
  --gold:#B08347; --gold-ink:#805B2D;
  --ink:#2B1B1D; --ink-soft:#715B58;
  --line:rgba(85,33,47,0.14); --focus:#A85D53;
  --on-plum:#FBF5F1; --error:#A3342B;
  --shadow-rgb:85,33,47;
  --shadow-card:0 2px 5px rgba(var(--shadow-rgb),0.04), 0 14px 32px -10px rgba(var(--shadow-rgb),0.18);
  --topbar-h:72px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#211015; --bg-alt:#341A20; --card:#2C161C;
    --plum:#F3DCD9; --plum-soft:#E8C3BE; --rose:#E0998C; --rose-deep:#EFB4A7;
    --gold:#D9B37E; --gold-ink:#D9B37E;
    --ink:#F5E9E5; --ink-soft:#C9AFAC;
    --line:rgba(243,220,217,0.16); --focus:#EFB4A7;
    --on-plum:#55212F; --error:#F2A097;
    --shadow-rgb:0,0,0;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#211015; --bg-alt:#341A20; --card:#2C161C;
  --plum:#F3DCD9; --plum-soft:#E8C3BE; --rose:#E0998C; --rose-deep:#EFB4A7;
  --gold:#D9B37E; --gold-ink:#D9B37E;
  --ink:#F5E9E5; --ink-soft:#C9AFAC;
  --line:rgba(243,220,217,0.16); --focus:#EFB4A7;
  --on-plum:#55212F; --error:#F2A097;
  --shadow-rgb:0,0,0;
  color-scheme:dark;
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
body{
  margin:0;min-height:100vh;min-height:100dvh;
  background:var(--bg);color:var(--ink);
  font-family:"Manrope", ui-sans-serif, system-ui, sans-serif;
  line-height:1.6;overflow-wrap:break-word;-webkit-font-smoothing:antialiased;
}
h1,h2,h3{font-family:"Fraunces", Georgia, serif;font-weight:500;line-height:1.2;color:var(--plum);text-wrap:balance;margin:0;}
a{color:inherit;}
button{font:inherit;color:inherit;}
/* the focus ring only while moving with the Tab key (html.kbd, set by app.js): never after a click, a tap or scrolling (Leo) */
:focus-visible{outline:none;}
html.kbd :focus-visible{outline:2px solid var(--focus);outline-offset:3px;}
::selection{background:var(--rose);color:#fff;}
[hidden]{display:none !important;}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ---------- top bar ---------- */
.topbar{
  position:sticky;top:0;z-index:5;height:var(--topbar-h);
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:0 max(16px, calc((100vw - 1120px) / 2));
  background:color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.brand-mark{display:flex;align-items:center;min-width:0;text-decoration:none;}
/* Amanda's logo (assets/img/logo.png trimmed above and below, gold lines kept): wine on the light page, white on the dark one */
.brand-logo{display:block;height:46px;width:auto;}
.brand-logo-dark{display:none;}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .brand-logo-light{display:none;}
  :root:not([data-theme="light"]) .brand-logo-dark{display:block;}
}
:root[data-theme="dark"] .brand-logo-light{display:none;}
:root[data-theme="dark"] .brand-logo-dark{display:block;}
@media (max-width:640px){ .brand-logo{height:34px;} }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:48px;padding:14px 26px;border-radius:100px;border:1px solid transparent;
  font-weight:700;font-size:0.95rem;text-decoration:none;cursor:pointer;text-align:center;line-height:1.45;
  transition:transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease, opacity .2s;
}
.btn:disabled{opacity:.45;cursor:not-allowed;}
.btn:not(:disabled):hover{transform:translateY(-1px);}
.btn-primary{background:var(--plum);color:var(--bg);box-shadow:0 10px 22px -12px rgba(var(--shadow-rgb),.55);}
.btn-cta{background:var(--gold);color:#3A1620;box-shadow:0 10px 22px -12px rgba(var(--shadow-rgb),.5);}
.link-btn{
  background:none;border:0;padding:10px 6px;cursor:pointer;
  font-weight:700;font-size:0.9rem;color:var(--rose-deep);text-decoration:underline;text-underline-offset:4px;
  min-height:44px;
}

/* ---------- base card (login and create-password screens) ---------- */
.card-panel{
  max-width:620px;margin:0 auto;background:var(--card);border:1px solid var(--line);
  border-radius:28px;padding:40px 36px;box-shadow:var(--shadow-card);
}
.eyebrow{font-size:0.72rem;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--rose-deep);margin:0 0 12px;}
.lede{color:var(--ink-soft);font-size:1.04rem;margin:18px 0 22px;}

/* ---------- questions ---------- */
.screen-questions{max-width:640px;margin:0 auto;padding:20px 16px 48px;}
.progress{display:flex;align-items:center;gap:12px;margin-bottom:36px;}
.back{
  width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--card);
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;color:var(--plum);
}
.progress-bar{flex:1;height:6px;border-radius:6px;background:var(--bg-alt);overflow:hidden;}
.progress-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg, var(--rose), var(--plum));border-radius:6px;transition:width .5s cubic-bezier(.22,1,.36,1);}
.counter{font-size:0.8rem;font-weight:700;color:var(--ink-soft);min-width:56px;text-align:right;font-variant-numeric:tabular-nums;}
.question h1{font-size:clamp(1.55rem, 4.6vw, 2.1rem);line-height:1.18;outline:none;}
.question .sub{color:var(--ink-soft);margin:12px 0 0;}
.field{margin-top:28px;display:grid;gap:16px;}
.error{color:var(--error);font-weight:600;font-size:0.92rem;min-height:1.4em;margin:14px 0 0;}
.actions{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:18px;}
.actions .btn{width:100%;}

.input-wrap{position:relative;}
.input{
  width:100%;min-height:56px;padding:14px 18px;border-radius:16px;
  border:1.5px solid var(--line);background:var(--card);color:var(--ink);
  font:inherit;font-size:1.1rem;transition:border-color .2s, box-shadow .2s;
}
.input::placeholder{color:var(--ink-soft);opacity:.7;}
.input:focus{outline:none;border-color:var(--plum);box-shadow:0 0 0 4px color-mix(in srgb, var(--rose) 22%, transparent);}
.input.has-suffix{padding-right:72px;}
.suffix{position:absolute;right:18px;top:50%;transform:translateY(-50%);color:var(--ink-soft);font-weight:600;pointer-events:none;}
.input-wrap + .input-wrap, .options + .input-wrap{margin-top:12px;}

/* multiple choice: one card per line, with a check mark */
.options{display:grid;gap:10px;}
.option{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  width:100%;min-height:60px;padding:14px 16px 14px 20px;border-radius:16px;text-align:left;cursor:pointer;
  border:1.5px solid var(--line);background:var(--card);color:var(--ink);
  font-weight:600;font-size:1rem;line-height:1.35;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:border-color .2s, background-color .2s, color .2s;
}
.option-text{flex:1;min-width:0;}
.checkmark{
  width:26px;height:26px;border-radius:8px;flex-shrink:0;
  border:1.5px solid color-mix(in srgb, var(--ink-soft) 55%, transparent);
  display:flex;align-items:center;justify-content:center;color:transparent;
  transition:background-color .2s, border-color .2s, color .2s;
}
.checkmark svg{width:17px;height:17px;}
@media (hover: hover){ .option:hover{border-color:var(--rose);} }
.option[aria-checked="true"]{border-color:var(--plum);background:color-mix(in srgb, var(--plum) 9%, var(--card));}
.option[aria-checked="true"] .checkmark{background:var(--plum);border-color:var(--plum);color:var(--bg);}
.option:active{transform:scale(.99);}

.chip{
  min-height:44px;padding:9px 16px;border-radius:100px;cursor:pointer;
  border:1.5px solid var(--line);background:var(--card);font-weight:600;font-size:0.92rem;
  transition:border-color .2s, background .2s;
}
@media (hover: hover){ .chip:hover{border-color:var(--rose);} }

/* ---------- offer ---------- */
/* accent block: plum in light mode, light rose in dark mode (like the accent blocks of the site) */
:root{--accent-bg:#55212F;--accent-ink:#FBF5F1;--accent-soft:rgba(251,245,241,.78);--accent-line:rgba(251,245,241,.16);--accent-eyebrow:#E0998C;--accent-gold:#D9B37E;}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--accent-bg:#F3DCD9;--accent-ink:#55212F;--accent-soft:#6B3F4B;--accent-line:rgba(85,33,47,.16);--accent-eyebrow:#934E45;--accent-gold:#805B2D;}
}
:root[data-theme="dark"]{--accent-bg:#F3DCD9;--accent-ink:#55212F;--accent-soft:#6B3F4B;--accent-line:rgba(85,33,47,.16);--accent-eyebrow:#934E45;--accent-gold:#805B2D;}

.screen-offer{max-width:1040px;margin:0 auto;padding:36px 16px 64px;}
.offer-header h1{font-size:clamp(1.75rem, 4.6vw, 2.6rem);line-height:1.1;outline:none;max-width:22ch;}
.offer-lede{color:var(--ink-soft);margin:12px 0 0;font-size:1.05rem;max-width:56ch;}

/* profile summary */
.profile{
  margin-top:24px;background:var(--card);border:1px solid var(--line);border-radius:22px;
  box-shadow:var(--shadow-card);display:grid;grid-template-columns:auto 1fr;align-items:center;
}
.profile-numbers{display:grid;grid-template-columns:repeat(4, auto);margin:0;padding:18px 8px;}
.profile-item{padding:0 20px;border-right:1px solid var(--line);}
.profile-item:last-child{border-right:0;}
.profile-item dt, .profile-label{font-size:0.68rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--ink-soft);}
.profile-item dd{margin:2px 0 0;font-family:"Fraunces",serif;font-size:1.55rem;font-weight:500;color:var(--plum);line-height:1.1;white-space:nowrap;}
.profile-item dd small{font-family:"Manrope",sans-serif;font-size:0.8rem;font-weight:600;color:var(--ink-soft);}
.profile-goals{padding:16px 22px;border-left:1px solid var(--line);align-self:stretch;display:grid;align-content:center;gap:8px;}
.tags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;}
.tags li{
  background:color-mix(in srgb, var(--rose) 16%, var(--card));color:var(--plum);
  border:1px solid color-mix(in srgb, var(--rose) 35%, transparent);
  padding:6px 14px;border-radius:100px;font-weight:700;font-size:0.9rem;
}

/* main product */
.product{
  margin-top:26px;border-radius:30px;background:var(--accent-bg);color:var(--accent-ink);
  display:grid;grid-template-columns:1.1fr 0.9fr;gap:36px;padding:40px;
  box-shadow:0 30px 60px -30px rgba(var(--shadow-rgb),.55);position:relative;overflow:hidden;
}
.product h2{color:var(--accent-ink);font-size:clamp(1.9rem, 4.4vw, 2.7rem);line-height:1.05;margin-top:14px;}
.product-lede{margin:14px 0 0;color:var(--accent-soft);font-size:1.05rem;}
.badges{display:flex;flex-wrap:wrap;gap:8px;}
.badge{
  font-size:0.68rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;
  padding:6px 12px;border-radius:100px;background:var(--accent-gold);color:var(--accent-bg);
}
.badge-outline{background:transparent;color:var(--accent-eyebrow);border:1px solid var(--accent-line);}
.steps{list-style:none;counter-reset:step;margin:22px 0 26px;padding:0;display:grid;gap:14px;}
.steps li{counter-increment:step;position:relative;padding-left:46px;color:var(--accent-soft);}
.steps li strong{color:var(--accent-ink);}
.steps li::before{
  content:counter(step);position:absolute;left:0;top:-2px;width:32px;height:32px;border-radius:50%;
  border:1px solid var(--accent-line);color:var(--accent-gold);font-family:"Fraunces",serif;font-weight:600;
  display:flex;align-items:center;justify-content:center;
}
.btn-large{min-height:48px;font-size:1rem;padding:14px 16px 14px 28px;width:100%;}
/* the product's button again, right under the profile (Leo): as wide as the product's on a phone, its own size on wide screens */
.btn-tool-quick{margin-top:18px;}
@media (min-width: 561px){ .btn-tool-quick{width:auto;min-width:320px;} }
.product .btn-cta{background:var(--gold);color:#3A1620;box-shadow:0 14px 30px -14px rgba(0,0,0,.6);}
/* price while the purchase is pending (same block as the site's "Investimento") */
.product-price{margin:-8px 0 18px;padding-top:18px;border-top:1px solid var(--accent-line);display:flex;align-items:baseline;gap:10px 14px;flex-wrap:wrap;}
.product-price .label{font-size:0.72rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--accent-gold);}
.product-price strong{font-family:"Fraunces",serif;font-size:1.7rem;font-weight:600;color:var(--accent-ink);line-height:1.2;}
.product-price small{font-size:0.82rem;color:var(--accent-soft);}
/* back from the checkout without a confirmed payment: the notice and "Já paguei" */
.product-check{margin-top:14px;display:grid;gap:8px;justify-items:start;}
.product-check p{margin:0;font-size:0.9rem;line-height:1.5;color:var(--accent-soft);}
.product-check .link-btn{color:var(--accent-gold);}

/* plan preview (illustrative) */
.product-preview{display:flex;align-items:center;justify-content:center;}
.preview-doc{
  width:100%;max-width:340px;background:#FFFDFB;color:#2B1B1D;border-radius:18px;overflow:hidden;
  box-shadow:0 24px 50px -20px rgba(0,0,0,.55);transform:rotate(2deg);
}
.preview-cover{background:#55212F;color:#FBF5F1;padding:18px 20px;display:grid;gap:2px;}
.preview-cover span{font-size:0.6rem;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:#E0998C;}
.preview-cover strong{font-family:"Fraunces",serif;font-weight:500;font-size:1.35rem;}
.preview-cover em{font-style:normal;font-size:0.78rem;color:#F3DCD9;}
.preview-target{margin:16px 18px 6px;padding:12px 14px;border-radius:12px;background:#F6ECE7;display:grid;}
.preview-target span{font-size:0.62rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:#934E45;}
.preview-target strong{font-family:"Fraunces",serif;font-weight:500;font-size:1.3rem;color:#55212F;}
.preview-target small{font-size:0.7rem;color:#715B58;}
.preview-meals{padding:8px 18px 20px;display:grid;gap:12px;}
.preview-meals div{display:grid;gap:5px;}
.preview-meals b{font-size:0.78rem;color:#934E45;}
.preview-meals i{display:block;height:7px;border-radius:6px;background:#EADCD6;}
.preview-meals i.short{width:62%;}

/* individual follow-up */
.amanda{
  margin-top:18px;border-radius:26px;background:var(--card);
  border:1.5px solid color-mix(in srgb, var(--rose) 45%, transparent);
  box-shadow:var(--shadow-card);
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:24px;padding:26px 30px;
}
.amanda-photo{width:112px;height:112px;border-radius:50%;object-fit:cover;object-position:top;border:4px solid var(--bg-alt);}
.amanda .eyebrow{margin-bottom:6px;}
.amanda h2{font-size:1.45rem;line-height:1.2;}
.amanda-text p{margin:8px 0 0;color:var(--ink-soft);}
.btn-whats{white-space:nowrap;}
.btn-whats svg{flex-shrink:0;}
.offer-notice{font-size:0.85rem;font-weight:600;color:var(--rose-deep) !important;}

@media (max-width: 860px){
  .product{grid-template-columns:1fr;padding:30px 24px;gap:28px;}
  .preview-doc{transform:none;max-width:420px;}
  .amanda{grid-template-columns:auto 1fr;}
  .btn-whats{grid-column:1 / -1;width:100%;white-space:normal;}
  .profile{grid-template-columns:1fr;}
  .profile-goals{border-left:0;border-top:1px solid var(--line);}
}
@media (max-width: 560px){
  .screen-offer{padding-top:24px;}
  .profile-numbers{grid-template-columns:repeat(2, 1fr);padding:6px 0;}
  .profile-item{padding:12px 18px;border-right:0;border-bottom:1px solid var(--line);}
  .profile-item:nth-child(odd){border-right:1px solid var(--line);}
  .profile-item:nth-last-child(-n+2){border-bottom:0;}
  .profile-goals{padding:14px 18px 16px;}
  .product{padding:26px 18px;border-radius:24px;}
  .steps li{padding-left:42px;}
  .amanda{grid-template-columns:1fr;justify-items:start;gap:16px;padding:22px 18px;}
  .amanda-photo{width:84px;height:84px;}
}

/* ---------- conversation ---------- */
.screen-chat{
  max-width:780px;margin:0 auto;padding:24px 16px 0;
  min-height:calc(100vh - var(--topbar-h));min-height:calc(100dvh - var(--topbar-h));
  display:flex;flex-direction:column;
}
/* plan PDF: pinned at the top of the conversation */
.plan-bar{
  position:sticky;top:var(--topbar-h);z-index:3;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:18px;padding:10px 10px 10px 16px;border-radius:18px;
  background:var(--card);border:1.5px solid var(--gold);
  box-shadow:0 10px 28px -14px rgba(var(--shadow-rgb),.45);
}
.plan-bar-info{display:flex;align-items:center;gap:12px;min-width:0;color:var(--plum);}
.plan-bar-info svg{flex-shrink:0;}
.plan-bar-info div{display:grid;min-width:0;line-height:1.3;}
.plan-bar-info strong{font-size:0.95rem;}
.plan-bar-info span{font-size:0.75rem;color:var(--ink-soft);}
.plan-bar-actions{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.btn-pdf{min-height:42px;padding:8px 18px;font-size:0.88rem;}
.plan-bar.highlight{animation:highlight 1.6s ease 2;}
@keyframes highlight{50%{box-shadow:0 0 0 6px color-mix(in srgb, var(--gold) 35%, transparent);}}
@media (prefers-reduced-motion: reduce){.plan-bar.highlight{animation:none;}}
.messages{display:grid;align-content:start;gap:22px;padding-bottom:24px;flex:1;}
.loading{color:var(--ink-soft);text-align:center;padding:40px 0;}

.msg-user{display:flex;justify-content:flex-end;}
.msg-user .bubble{
  max-width:min(85%, 560px);background:var(--plum);color:var(--bg);
  padding:12px 18px;border-radius:22px 22px 6px 22px;white-space:pre-wrap;
}
.msg-intake{background:var(--bg-alt);border-radius:18px;padding:4px 18px;font-size:0.92rem;}
.msg-intake summary{cursor:pointer;font-weight:700;color:var(--plum);padding:12px 0;min-height:44px;}
.msg-intake .md{padding-bottom:10px;}

.msg-ai{display:grid;grid-template-columns:36px 1fr;gap:14px;align-items:start;}
.avatar{
  width:36px;height:36px;border-radius:50%;background:var(--plum);color:var(--bg);
  display:flex;align-items:center;justify-content:center;font-family:"Fraunces",serif;font-size:0.8rem;font-weight:600;
}
.msg-body{min-width:0;}
.msg-plan .msg-body{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px 26px;box-shadow:var(--shadow-card);}
.msg-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.action{
  background:none;border:1px solid var(--line);border-radius:100px;padding:6px 14px;min-height:36px;
  font-size:0.8rem;font-weight:700;color:var(--ink-soft);cursor:pointer;
}
.action:hover{color:var(--plum);border-color:var(--plum-soft);}
.interrupted{font-size:0.82rem;font-style:italic;color:var(--ink-soft);}

.typing{color:var(--ink-soft);display:flex;align-items:center;gap:6px;margin:6px 0;}
.dots{display:inline-flex;gap:4px;}
.dots i{width:7px;height:7px;border-radius:50%;background:var(--rose);animation:pulse 1.2s infinite ease-in-out;}
.dots i:nth-child(2){animation-delay:.15s;}
.dots i:nth-child(3){animation-delay:.3s;}
@keyframes pulse{0%,80%,100%{opacity:.25;transform:scale(.8);}40%{opacity:1;transform:scale(1);}}
@media (prefers-reduced-motion: reduce){.dots i{animation:none;opacity:.7;}}

.msg-error{background:color-mix(in srgb, var(--error) 10%, var(--card));border:1px solid color-mix(in srgb, var(--error) 35%, transparent);border-radius:18px;padding:16px 20px;}
.msg-error p{margin:0 0 12px;color:var(--error);font-weight:600;}
.msg-error p:last-child{margin:0;}

.cta-amanda{
  background:var(--bg-alt);border-radius:22px;padding:20px 22px;margin-left:50px;
  display:grid;gap:14px;
}
.cta-amanda p{margin:0;}
.cta-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;}
.cta-links .btn{min-height:46px;padding:10px 22px;font-size:0.9rem;}

/* markdown of the answers */
.md{font-size:1rem;line-height:1.65;}
.md > :first-child{margin-top:0;}
.md > :last-child{margin-bottom:0;}
.md h1,.md h2{font-size:1.35rem;margin:1.6em 0 .6em;}
.md h3{font-size:1.1rem;margin:1.4em 0 .4em;font-family:"Manrope",sans-serif;font-weight:700;}
.md h4{font-size:1rem;margin:1.2em 0 .3em;}
.md p{margin:.7em 0;}
.md ul,.md ol{padding-left:1.3em;margin:.6em 0;}
.md li{margin:.3em 0;}
.md li::marker{color:var(--rose-deep);}
.md strong{color:var(--plum);}
.md em{color:var(--ink-soft);}
.md hr{border:0;border-top:1px solid var(--line);margin:1.6em 0;}
.md a{color:var(--rose-deep);}
.md blockquote{margin:1em 0;padding:.2em 0 .2em 1em;border-left:3px solid var(--gold);color:var(--ink-soft);}
.md code{background:var(--bg-alt);padding:.1em .35em;border-radius:6px;font-size:.9em;}
.md table{display:block;overflow-x:auto;border-collapse:collapse;margin:1em 0;font-size:.92rem;max-width:100%;}
.md th,.md td{border:1px solid var(--line);padding:8px 12px;text-align:left;vertical-align:top;}
.md th{background:var(--bg-alt);color:var(--plum);font-weight:700;}

/* composer pinned at the bottom */
.composer{
  position:sticky;bottom:0;z-index:4;
  padding:12px 0 max(12px, env(safe-area-inset-bottom));
  background:linear-gradient(to bottom, transparent, var(--bg) 22px);
}
.suggestions{display:flex;flex-wrap:wrap;gap:8px;padding:4px 2px 12px;}
.suggestions::-webkit-scrollbar{display:none;}
.suggestions .chip{white-space:nowrap;flex-shrink:0;font-size:0.85rem;}
.input-box{
  display:flex;align-items:flex-end;gap:8px;background:var(--card);
  border:1.5px solid var(--line);border-radius:26px;padding:8px 8px 8px 20px;
  box-shadow:0 10px 30px -14px rgba(var(--shadow-rgb),.35);
}
.input-box:focus-within{border-color:var(--plum-soft);}
.input-box textarea{
  flex:1;border:0;background:none;resize:none;outline:none;color:var(--ink);
  font:inherit;font-size:1rem;line-height:1.5;padding:9px 0;max-height:200px;min-height:24px;
}
.input-box textarea::placeholder{color:var(--ink-soft);opacity:.75;}
.send{
  width:44px;height:44px;border-radius:50%;border:0;background:var(--plum);color:var(--bg);
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;
}
.send .i-stop{display:none;}
body.generating .send .i-send{display:none;}
body.generating .send .i-stop{display:block;}

.noscript{max-width:560px;margin:40px auto;padding:0 16px;text-align:center;}

/* ---------- phone ---------- */
@media (max-width: 560px){
  :root{--topbar-h:64px;}
  /* "Continuar" always visible, stuck to the bottom */
  .screen-questions{padding-bottom:0;}
  .screen-questions .actions{
    position:sticky;bottom:0;margin-top:4px;
    padding:14px 0 max(14px, env(safe-area-inset-bottom));
    background:linear-gradient(to bottom, transparent, var(--bg) 26%);
  }
  .plan-bar{padding:8px 8px 8px 12px;gap:8px;}
  .plan-bar-info{gap:8px;}
  .plan-bar-info svg{display:none;}
  #btn-view-plan{display:none;}
  .brand small{display:none;}
  .card-panel{padding:28px 20px;border-radius:22px;}
  .progress{margin-bottom:28px;}
  .msg-ai{grid-template-columns:1fr;gap:8px;}
  .avatar{width:30px;height:30px;font-size:0.72rem;}
  .msg-plan .msg-body{padding:18px 16px;border-radius:18px;}
  .cta-amanda{margin-left:0;}
  .md{font-size:0.98rem;}
}

/* ---------- print (the plan PDF is the main path) ---------- */
@media print{
  :root{--bg:#fff;--card:#fff;--ink:#000;--ink-soft:#444;--plum:#55212F;--line:#ccc;--bg-alt:#f3f3f3;}
  body{background:#fff;}
  .topbar,.composer,.msg-actions,.cta-amanda,.msg-error,.plan-bar{display:none !important;}
  .md table{display:table;}
}

/* offer: the error line only takes space when it has a message */
.screen-offer .error:empty{display:none;}
@media (max-width: 560px){
  .btn-large{padding:16px 18px;font-size:1rem;}
  .preview-meals div:nth-child(3){display:none;}
}

/* small link (e.g. "Ver no chat" in the PDF bar) */
.link-mini{min-height:0;padding:0;font-size:inherit;font-weight:600;}
.plan-bar .link-mini{font-size:0.85rem;}
/* "Terminando a resposta..." after reloading in the middle of an answer */
.msg-waiting{margin-left:50px;}
@media (max-width: 560px){.msg-waiting{margin-left:0;}}

/* ---------- account: "Entrar" at the top + login and create-password screens ---------- */
.topbar-actions{display:flex;align-items:center;gap:14px;flex-shrink:0;}
.topbar-btn{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:100px;
  border:1.5px solid var(--plum);background:transparent;color:var(--plum);
  font-weight:700;font-size:0.82rem;cursor:pointer;transition:background-color .2s, color .2s;
}
@media (hover: hover){ .topbar-btn:hover{background:var(--plum);color:var(--bg);} }
.topbar-actions .link-mini{font-size:0.88rem;}

.screen-form{padding:40px 16px 64px;}
.form-card{max-width:480px;}
.form-card h1{font-size:clamp(1.8rem, 5vw, 2.3rem);}
.form-card .lede{margin:12px 0 24px;}
.account-form{display:grid;gap:8px;}
.field-label{font-weight:700;font-size:0.9rem;color:var(--plum);margin-top:8px;}
.input.has-button{padding-right:96px;}
.toggle-password{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  min-height:40px;padding:6px 12px;border:0;border-radius:10px;background:transparent;
  color:var(--rose-deep);font-weight:700;font-size:0.82rem;cursor:pointer;
}
.hint{margin:0;font-size:0.8rem;color:var(--ink-soft);}
.account-form .error{margin:4px 0 0;}
.account-form .btn{width:100%;margin-top:8px;}
.form-footer{margin:22px 0 0;text-align:center;color:var(--ink-soft);font-size:0.9rem;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 10px;}
.form-footer .link-mini{font-size:0.9rem;}
@media (max-width: 560px){
  .topbar-btn{padding:8px 14px;min-height:40px;}
  .screen-form{padding-top:20px;}
}
.error.error-info{color:var(--ink-soft);font-weight:500;}

/* phone: fewer fixed things on screen (the keyboard already takes half) */
@media (max-width: 560px){
  body.composing .suggestions{display:none !important;}
  .plan-bar{border-radius:0 0 14px 14px;margin:0 -16px 14px;padding:6px 10px 6px 16px;}
  .plan-bar-info span{display:none;}
  .btn-pdf{min-height:38px;padding:6px 14px;}
}

/* ---------- first screen: highlight in the same style as the offer ---------- */
.screen-start{max-width:1080px;margin:0 auto;padding:32px 16px 64px;}
.start-hero{margin-top:0;}
.start-hero h1{color:var(--accent-ink);font-size:clamp(2.1rem, 5vw, 3.2rem);line-height:1.04;margin-top:16px;max-width:14ch;}
/* on desktop the button sits below the steps; on the phone it moves up (see below) */
.start-hero .product-text{display:flex;flex-direction:column;}
.start-hero .btn-large{order:5;}

.preview-stack{position:relative;width:100%;max-width:340px;padding-bottom:28px;}
.preview-stack .preview-doc{max-width:none;}
.preview-targets{display:grid;grid-template-columns:repeat(3, 1fr);gap:8px;margin:16px 18px 4px;}
.preview-targets div{background:#F6ECE7;border-radius:10px;padding:10px 10px 12px;display:grid;gap:8px;}
.preview-targets b{font-size:0.62rem;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:#934E45;}
.preview-targets i{display:block;height:9px;width:70%;border-radius:6px;background:#E3CFC8;}
.preview-amanda{
  position:absolute;left:-22px;bottom:0;margin:0;display:flex;align-items:center;gap:10px;
  background:#FFFDFB;color:#2B1B1D;border-radius:100px;padding:6px 18px 6px 6px;
  box-shadow:0 16px 30px -14px rgba(0,0,0,.5);transform:rotate(-2deg);
}
/* the price as a tag on the plan's picture, at its lower right corner, tilted like Amanda's (Leo, 2026-10-01): in the
   wine of the plan's cover, the figure in cream and the words in its rose */
.preview-price{
  position:absolute;right:-16px;bottom:10px;z-index:1;margin:0;display:grid;justify-items:center;gap:0;
  padding:10px 20px 11px;border-radius:20px;background:#55212F;color:#FBF5F1;text-align:center;
  box-shadow:0 16px 30px -14px rgba(0,0,0,.6);transform:rotate(4deg);
}
.preview-price span{font-size:0.66rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:#E0998C;}
.preview-price strong{font-family:"Fraunces",Georgia,serif;font-weight:600;font-size:1.9rem;line-height:1.05;color:#FBF5F1;}
@media (max-width: 860px){ .preview-price{right:10px;} }
/* phone: smaller and above Amanda's badge (it would cover her name) */
@media (max-width: 560px){ .preview-price{right:-4px;bottom:86px;padding:8px 14px 9px;border-radius:16px;} .preview-price strong{font-size:1.5rem;} .preview-price span{font-size:0.6rem;} }
.preview-amanda img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center;aspect-ratio:1 / 1;flex-shrink:0;} /* the square avatar (assets/img/amanda-avatar.jpg): nothing to crop or squash */
.preview-amanda figcaption{display:grid;line-height:1.25;}
.preview-amanda strong{font-family:"Fraunces",serif;font-weight:500;font-size:1rem;color:#55212F;}
.preview-amanda span{font-size:0.7rem;color:#715B58;}


@media (max-width: 860px){
  .preview-stack{margin:0 auto;max-width:420px;}
  .preview-amanda{left:12px;}
}
@media (max-width: 560px){
  .screen-start{padding-top:16px;}
  .start-hero .btn-large{order:0;margin-top:22px;} /* phone: "Começar" before the steps, no scrolling */
  .start-hero .steps{order:1;margin-bottom:0;}
}

/* first screen: bigger plan preview, filling the column */
.start-hero{grid-template-columns:1fr 1fr;align-items:center;}
.start-hero .preview-stack{max-width:480px;}
.start-hero .preview-cover{padding:28px 30px;gap:4px;}
.start-hero .preview-cover span{font-size:0.7rem;}
.start-hero .preview-cover strong{font-size:1.9rem;}
.start-hero .preview-cover em{font-size:0.95rem;}
.start-hero .preview-targets{margin:22px 26px 8px;gap:12px;}
.start-hero .preview-targets div{padding:16px 14px;gap:12px;}
.start-hero .preview-targets b{font-size:0.7rem;}
.start-hero .preview-targets i{height:12px;}
.start-hero .preview-meals{padding:14px 26px 40px;gap:20px;}
.start-hero .preview-meals b{font-size:0.95rem;}
.start-hero .preview-meals i{height:10px;}
.start-hero .preview-amanda{padding:8px 22px 8px 8px;}
.start-hero .preview-amanda img{width:60px;height:60px;}
.start-hero .preview-amanda strong{font-size:1.1rem;}
@media (max-width: 860px){
  .start-hero{grid-template-columns:1fr;}
  .start-hero .preview-stack{max-width:460px;}
}
@media (max-width: 560px){
  .start-hero .preview-cover strong{font-size:1.5rem;}
  .start-hero .preview-targets{margin:16px 16px 4px;gap:8px;}
  .start-hero .preview-meals{padding:10px 16px 34px;}
}


/* ---------- first screen split in two: text on the accent panel, plan preview floating on the page ---------- */
.start-hero{
  background:transparent;box-shadow:none;border-radius:0;overflow:visible;
  padding:0;gap:56px;align-items:stretch;
}
.start-hero .product-text{
  background:var(--accent-bg);border-radius:30px;padding:48px 44px;justify-content:center;
  box-shadow:0 30px 60px -30px rgba(var(--shadow-rgb),.55);
}
.start-hero .product-preview{padding:24px 24px 24px 0;}
@media (min-width: 861px){ .start-hero{grid-template-columns:1.35fr 1fr;} }
/* no clipping on the rotated card: a clipped rounded box blends its white background into the edge
   (a light fringe around the wine cover). Each part draws its own background and corners instead. */
.start-hero .preview-doc{background:transparent;overflow:visible;}
.start-hero .preview-cover{border-radius:18px 18px 0 0;}
.start-hero .preview-targets{margin:-1px 0 0;padding:23px 26px 8px;background:#FFFDFB;}
.start-hero .preview-meals{background:#FFFDFB;border-radius:0 0 18px 18px;margin-top:-1px;}
@media (max-width: 560px){ .start-hero .preview-targets{margin:-1px 0 0;padding:17px 16px 4px;} }
@media (max-width: 860px){
  .start-hero{gap:36px;}
  .start-hero .product-text{padding:34px 26px;}
  .start-hero .product-preview{padding:0 8px 8px;}
}
@media (max-width: 560px){
  .start-hero .product-text{padding:26px 18px;border-radius:24px;}
}

/* ---------- first screen: sections below the hero (focus on the tool) ---------- */
.start-section{margin-top:96px;}
.start-head{max-width:640px;margin:0 auto 36px;text-align:center;}
.start-section h2{font-size:clamp(1.7rem, 3.6vw, 2.4rem);line-height:1.15;}
.start-lede{color:var(--ink-soft);font-size:1.04rem;margin:14px 0 0;}

.features{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3, 1fr);gap:18px;}
.feature{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:26px 24px;box-shadow:var(--shadow-card);}
.feature-icon{
  width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;
  background:color-mix(in srgb, var(--gold) 16%, var(--card));color:var(--gold-ink);
}
.feature-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.feature h3{font-size:1.2rem;margin:16px 0 0;}
.feature p{margin:8px 0 0;color:var(--ink-soft);font-size:0.95rem;line-height:1.55;}

.start-demo{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:start;}
/* the calorie counter: the picture (assets/img/tool-count.png, served as the lighter .jpg) beside the text */
.demo-photo{margin:0;width:100%;border-radius:26px;overflow:hidden;}
.demo-photo img{display:block;width:100%;height:auto;aspect-ratio:3 / 2;object-fit:cover;}

.demo-list{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:10px;}
.demo-list li{display:flex;gap:12px;align-items:baseline;font-weight:600;color:var(--plum);}
.demo-list li::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--gold);flex-shrink:0;transform:translateY(-2px);}
.demo-chat{
  background:var(--card);border:1px solid var(--line);border-radius:26px;padding:22px 22px 26px;
  box-shadow:var(--shadow-card);display:grid;gap:14px;
}
.demo-tag{margin:0;justify-self:start;font-size:0.68rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--ink-soft);border:1px solid var(--line);border-radius:100px;padding:4px 10px;}
.demo-msg{font-size:0.95rem;line-height:1.55;}
.demo-user{justify-self:end;max-width:85%;background:var(--plum);color:var(--bg);padding:10px 16px;border-radius:20px 20px 6px 20px;}
.demo-ai{display:grid;grid-template-columns:32px 1fr;gap:12px;}
.demo-ai .avatar{width:32px;height:32px;font-size:0.72rem;}
.demo-ai p{margin:0 0 8px;}
.demo-ai p:last-child{margin:8px 0 0;}
.demo-ai ul{margin:0;padding-left:1.2em;}
.demo-ai li{margin:3px 0;}
.demo-ai li::marker{color:var(--rose-deep);}

.start-method{
  display:grid;grid-template-columns:auto 1fr;gap:36px;align-items:center;
  background:var(--card);border:1px solid var(--line);border-radius:28px;padding:36px 40px;box-shadow:var(--shadow-card);
}
.method-photo{width:160px;height:160px;border-radius:50%;object-fit:cover;object-position:top;border:5px solid var(--bg-alt);}
.method-points{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:8px;}
.method-points li{position:relative;padding-left:28px;color:var(--ink);}
.method-points li::before{
  content:"";position:absolute;left:0;top:5px;width:16px;height:16px;border-radius:50%;
  background:color-mix(in srgb, var(--gold) 22%, var(--card));box-shadow:inset 0 0 0 5px color-mix(in srgb, var(--gold) 22%, var(--card));
  border:1.5px solid var(--gold);
}

.start-faq{max-width:760px;margin:0 auto;display:grid;gap:12px;}
.start-faq details{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:0 22px;}
.start-faq summary{
  cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;
  min-height:60px;font-weight:700;color:var(--plum);
}
.start-faq summary::-webkit-details-marker{display:none;}
.start-faq summary::after{content:"+";font-family:"Fraunces",serif;font-size:1.5rem;font-weight:400;color:var(--gold-ink);line-height:1;}
.start-faq details[open] summary::after{content:"–";}
.start-faq details p{margin:0 0 18px;color:var(--ink-soft);}

.start-final{
  margin-top:96px;text-align:center;border-radius:30px;padding:56px 32px;
  background:var(--accent-bg);color:var(--accent-ink);box-shadow:0 30px 60px -30px rgba(var(--shadow-rgb),.55);
}
.start-final h2{color:var(--accent-ink);font-size:clamp(1.7rem, 3.6vw, 2.4rem);}
.start-final p{color:var(--accent-soft);margin:12px auto 26px;max-width:52ch;}
.start-final .btn-large{width:auto;min-width:280px;}

@media (max-width: 860px){
  .features{grid-template-columns:1fr 1fr;}
  .start-demo{grid-template-columns:1fr;gap:28px;}
  .start-method{grid-template-columns:1fr;justify-items:start;gap:20px;padding:28px 24px;}
  .method-photo{width:112px;height:112px;}
  .start-method .method-photo{margin-top:0;}
}
@media (max-width: 560px){
  .start-section{margin-top:64px;}
  .start-head{text-align:left;margin-bottom:24px;}
  .features{grid-template-columns:1fr;gap:12px;}
  .feature{padding:20px 18px;}
  .start-final{margin-top:64px;padding:40px 20px;border-radius:24px;}
  .start-final .btn-large{width:100%;min-width:0;}
}


/* demo chat: bigger, the protagonist of the section */
.start-demo{grid-template-columns:0.85fr 1.15fr;align-items:center;}
.demo-chat{padding:30px 32px 36px;gap:18px;border-radius:30px;}
.demo-msg{font-size:1.05rem;line-height:1.6;}
.demo-user{padding:12px 20px;border-radius:22px 22px 6px 22px;}
.demo-ai{grid-template-columns:38px 1fr;gap:14px;}
.demo-ai .avatar{width:38px;height:38px;font-size:0.8rem;}

/* FAQ: title centered on top, questions using the same width as the other sections */
.start-faq-section .start-faq{max-width:none;}


@media (max-width: 860px){
  .start-demo{grid-template-columns:1fr;}
  .demo-chat{padding:24px 20px 28px;}
  .demo-msg{font-size:1rem;}
}

/* method card: benefits with a check, vertically centered with the text */
.method-points{gap:12px;}
.method-points li{display:flex;align-items:center;gap:12px;padding-left:0;line-height:1.45;}
.method-points li::before{
  position:static;flex-shrink:0;width:22px;height:22px;border:0;box-shadow:none;top:auto;
  background:var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233A1620' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.start-method{align-items:start;}
.start-method .method-photo{margin-top:30px;} /* the photo starts at the title, not the eyebrow (Leo) */

/* ---------- motion and interaction: same effects as the site (assets/css/style.css) ---------- */
:root{--shadow-raised:0 8px 16px -8px rgba(var(--shadow-rgb),0.22), 0 28px 48px -16px rgba(var(--shadow-rgb),0.32);}
html{scrollbar-color:var(--plum-soft) var(--bg-alt);scrollbar-width:thin;}
::-webkit-scrollbar{width:12px;height:12px;}
::-webkit-scrollbar-track{background:var(--bg-alt);}
::-webkit-scrollbar-thumb{background:var(--plum-soft);border:3px solid var(--bg-alt);border-radius:20px;}
::-webkit-scrollbar-thumb:hover{background:var(--plum);}

.btn{transition:transform 0.45s cubic-bezier(0.22,1,0.36,1),box-shadow 0.45s ease,background 0.35s ease,opacity .2s;}
.btn:not(:disabled):active{transform:translateY(1px);}
.feature,.demo-chat,.start-method,.profile,.amanda,.option{transition:transform 0.55s cubic-bezier(0.22,1,0.36,1),box-shadow 0.55s ease,border-color 0.55s ease,background-color .2s,color .2s;}
.method-photo,.amanda-photo{transition:transform 0.9s cubic-bezier(0.22,1,0.36,1);}

/* FAQ like the site's: the open question gets the rose border and the "+" turns into an "x" */
.start-faq details{box-shadow:var(--shadow-card);transition:border-color 0.45s ease,box-shadow 0.45s ease;}
.start-faq details[open]{border-color:var(--rose);box-shadow:var(--shadow-raised);}
.start-faq summary::after{
  content:"+";width:34px;height:34px;border-radius:50%;border:1px solid var(--line);flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-family:"Manrope",sans-serif;font-size:1.3rem;font-weight:400;line-height:1;color:var(--plum);
  transition:transform 0.35s ease,background 0.35s ease,color 0.35s ease,border-color 0.35s ease;
}
.start-faq details[open] summary::after{content:"+";transform:rotate(45deg);background:var(--plum);color:var(--bg);border-color:var(--plum);}

@media (hover:hover) and (pointer:fine){
  .feature:hover,.demo-chat:hover,.start-method:hover,.amanda:hover{transform:translateY(-3px);box-shadow:var(--shadow-raised);border-color:var(--rose);}
  .btn:not(:disabled):hover{transform:translateY(-2px);box-shadow:var(--shadow-raised);}
  .btn-cta:not(:disabled):hover{background:#C39558;}
  .start-method:hover .method-photo,.amanda:hover .amanda-photo{transform:scale(1.025);}
  .start-faq details:not([open]):hover{border-color:var(--rose);}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition:none!important;}
  .btn:hover,.btn:active,.feature:hover,.demo-chat:hover,.start-method:hover,.amanda:hover,
  .start-method:hover .method-photo,.amanda:hover .amanda-photo{transform:none!important;}
}

/* ---------- parity with the site (assets/css/style.css): texture, container, CTA, sections ---------- */
/* paper texture on the page background */
body{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
img{max-width:100%;height:auto;}

/* same container as the site's .wrap: 1120px with a 24px gutter (20px on small phones) */
.topbar{padding:0 max(24px, calc((100vw - 1120px) / 2 + 24px));box-shadow:0 4px 20px -12px rgba(var(--shadow-rgb),0.2);}
.screen-start,.screen-offer{max-width:1120px;padding-left:24px;padding-right:24px;}
/* soft light in the top right corner, like the site's hero: on the whole page (not the container,
   which would cut it into a rectangle), only on the start and offer screens */
body[data-screen="screen-start"],body[data-screen="screen-offer"]{
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E"),
    radial-gradient(120% 900px at 88% -10%, var(--bg-alt) 0%, transparent 55%);
  background-repeat:repeat,no-repeat;
}

/* gold CTA with the wine arrow circle (the site's signature button) */
.btn-cta{color:#2B1B1D;gap:14px;padding-right:16px;padding-left:28px;
  box-shadow:0 6px 14px -6px rgba(var(--shadow-rgb),0.3),0 18px 36px -14px rgba(var(--shadow-rgb),0.4);}
.btn-cta::after{
  content:"";width:30px;height:30px;border-radius:50%;flex:0 0 30px;
  background:#55212F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h11M9.5 4l4 4-4 4' fill='none' stroke='%23FBF5F1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px 15px no-repeat;
  transition:transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.btn-cta:focus-visible{outline-color:var(--gold-ink);}
/* small PDF button keeps its compact look, without the arrow */
.btn-pdf{padding:8px 18px;}
.btn-pdf::after{content:none;}
.btn-primary{box-shadow:0 4px 8px -4px rgba(var(--shadow-rgb),0.25),0 14px 28px -10px rgba(var(--shadow-rgb),0.4);}
@media (hover:hover) and (pointer:fine){ .btn-cta:not(:disabled):hover::after{transform:translateX(3px);} }

/* section headings with the site's scale */
.start-section h2,.start-final h2{font-size:clamp(1.6rem, 3.2vw, 2.25rem);line-height:1.16;}
.start-lede{font-size:1.02rem;line-height:1.6;}
.start-section{margin-top:84px;}

/* feature cards in the site's pillar format */
.feature{border-radius:18px;}
.feature h3{font-size:1.15rem;}
.feature p{font-size:0.9rem;}

/* "A rotina mudou?" as a full-width alternate band, like the site's .alt sections */
.start-demo{
  position:relative;padding-block:64px;background:var(--bg-alt);
  box-shadow:0 0 0 100vmax var(--bg-alt);clip-path:inset(0 -100vmax);
}
/* the calorie-counter band right under the conversation band: a deeper tone, no page background showing between them */
/* a shade deeper than the band above it (cream with a hint of wine on the light page; between the band and the page on the dark one) */
.start-photo{--band:color-mix(in srgb, var(--bg-alt) 88%, var(--plum));background:var(--band);box-shadow:0 0 0 100vmax var(--band);}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .start-photo{--band:color-mix(in srgb, var(--bg-alt) 55%, var(--bg));} }
:root[data-theme="dark"] .start-photo{--band:color-mix(in srgb, var(--bg-alt) 55%, var(--bg));}
.start-demo + .start-photo{margin-top:0;}
/* the bioimpedance band right under the calorie counter: back to the lighter band, again with no gap between them */
.start-photo + .start-bio{margin-top:0;}
/* its example: the file she sent, then the chat's own analysis card (bodyScanCard) */
.demo-file{display:flex;align-items:center;gap:10px;}
.demo-file svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.estimate.demo-scan{max-width:none;} /* (cards.css loads after this file) */

/* method card with the gold top border of the site's credential card */
.start-method{border-top:3px solid var(--gold);border-radius:18px;box-shadow:var(--shadow-raised);}

/* FAQ exactly like the site's: numbered, question in the serif */
.start-faq details{border-radius:18px;padding:0;}
.start-faq summary{display:grid;grid-template-columns:28px 1fr auto;gap:20px;padding:22px 26px;min-height:0;}
.start-faq .n{font-family:"Fraunces",serif;font-size:1rem;font-weight:400;color:var(--gold-ink);letter-spacing:0.04em;}
.start-faq .q{font-family:"Fraunces",serif;font-size:1.15rem;font-weight:500;line-height:1.3;color:var(--plum);}
.start-faq details p{margin:0;padding:0 26px 26px 74px;font-size:1rem;line-height:1.65;max-width:80ch;}

/* final call with the gold rule under the title, like the site's break band */
.start-final h2::after{content:"";display:block;width:56px;height:2px;background:var(--accent-gold);margin:22px auto 0;}

@media (max-width: 480px){
  .topbar{padding:0 20px;}
  .screen-start,.screen-offer{padding-left:20px;padding-right:20px;}
  .start-demo{padding-block:48px;}
  .start-faq summary{grid-template-columns:24px 1fr auto;gap:12px;padding:18px;}
  .start-faq .q{font-size:1.05rem;}
  .start-faq summary::after{width:30px;height:30px;font-size:1.15rem;}
  .start-faq details p{padding:0 18px 20px 18px;}
  .btn-cta{padding-left:18px;}
}

/* ---------- conversation: fluid like a chat app; the plan card on the right on wide screens ---------- */
.screen-chat{max-width:none;padding:0 24px;}
.screen-chat .messages,.screen-chat .composer{width:100%;max-width:760px;margin-inline:auto;}
.screen-chat .messages{gap:30px;padding:32px 0 36px;}
.plan-bar-eyebrow{display:none;}
.plan-bar.pending .plan-bar-actions{display:none;}

/* answers flow freely (no avatar, no box), the customer's messages are soft bubbles */
.msg-ai{grid-template-columns:1fr;}
.msg-ai .avatar{display:none;}
.msg-plan .msg-body{background:none;border:0;border-radius:0;padding:0;box-shadow:none;}
.msg-user .bubble{
  max-width:min(80%, 560px);background:var(--bg-alt);color:var(--ink);
  padding:12px 20px;border-radius:24px;line-height:1.55;
}
.cta-amanda,.msg-waiting{margin-left:0;}
.msg-intake{border-radius:20px;}

/* icon actions under each answer */
.msg-actions{gap:2px;margin-top:6px;}
.action{
  width:34px;height:34px;min-height:0;padding:0;border:0;border-radius:10px;background:none;
  display:inline-flex;align-items:center;justify-content:center;color:var(--ink-soft);
}
.action svg{width:18px;height:18px;}
.action:hover{background:var(--bg-alt);color:var(--plum);}
.action[aria-busy="true"]{opacity:.5;cursor:progress;}

/* composer: a floating pill, like a chat app */
.composer{padding-top:14px;}
.input-box{
  border:1px solid var(--line);border-radius:30px;padding:10px 10px 10px 24px;background:var(--card);
  box-shadow:0 2px 6px rgba(var(--shadow-rgb),0.05),0 16px 36px -14px rgba(var(--shadow-rgb),0.4);
}
.input-box:focus-within{border-color:color-mix(in srgb, var(--plum-soft) 60%, transparent);}
.input-box textarea{font-size:1.02rem;}
.send{width:42px;height:42px;}

@media (min-width: 1100px){
  .screen-chat{
    max-width:1240px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;
    grid-template-rows:1fr auto;column-gap:48px;align-items:start;
  }
  .screen-chat .messages{grid-column:1;grid-row:1;}
  .screen-chat .composer{grid-column:1;grid-row:2;}
  /* the plan card: a sticky side column */
  .plan-bar{
    grid-column:2;grid-row:1 / span 2;position:sticky;top:calc(var(--topbar-h) + 32px);margin:32px 0 0;
    flex-direction:column;align-items:stretch;gap:16px;padding:24px;border-radius:22px;
    background:var(--card);box-shadow:var(--shadow-raised);
  }
  .plan-bar-eyebrow{display:block;margin:0;font-size:0.68rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--rose-deep);}
  .plan-bar-info{align-items:flex-start;gap:12px;}
  .plan-bar-info svg{margin-top:2px;}
  .plan-bar-info strong{font-family:"Fraunces",serif;font-weight:500;font-size:1.2rem;}
  .plan-bar-info span{font-size:0.82rem;margin-top:4px;}
  .plan-bar-actions{flex-direction:column-reverse;align-items:stretch;gap:12px;}
  .plan-bar .btn-pdf{min-height:48px;width:100%;font-size:0.95rem;}
  .plan-bar .link-mini{align-self:center;}
  .plan-bar.pending{border:1.5px dashed var(--line);box-shadow:none;background:transparent;}
  .plan-bar.pending .plan-bar-info{color:var(--ink-soft);}
}
/* narrow screens: the card stays at the top, and only once the plan exists */
@media (max-width: 1099px){
  .plan-bar{margin-top:16px;}
  .plan-bar.pending{display:none !important;}
}
@media (max-width: 560px){
  .screen-chat{padding:0 16px;}
  .plan-bar{margin-top:0;}
  .screen-chat .messages{padding-top:20px;gap:24px;}
  .msg-user .bubble{max-width:88%;}
}

/* ---------- profile: questionnaire answers, access and password ---------- */
.screen-profile{max-width:1120px;margin:0 auto;padding:40px 24px 72px;}
.profile-head{display:flex;align-items:center;gap:20px;}
.profile-avatar{
  width:72px;height:72px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;
  background:var(--plum);color:var(--bg);font-family:"Fraunces",serif;font-size:1.6rem;font-weight:500;
  box-shadow:0 10px 24px -10px rgba(var(--shadow-rgb),0.5);
}
.profile-head .eyebrow{margin:0 0 6px;}
.profile-head h1{font-size:clamp(1.7rem, 3.6vw, 2.4rem);line-height:1.1;outline:none;}
.profile-email{margin:6px 0 0;color:var(--ink-soft);overflow-wrap:anywhere;}

.profile-grid{margin-top:32px;display:grid;grid-template-columns:1.15fr 1fr;gap:20px;align-items:start;}
.profile-card{
  background:var(--card);border:1px solid var(--line);border-radius:22px;padding:28px;box-shadow:var(--shadow-card);
  display:grid;gap:14px;align-content:start;
}
.profile-card-data{grid-row:span 2;}
.profile-card h2{font-size:1.35rem;}
.profile-note{margin:0;color:var(--ink-soft);font-size:0.92rem;line-height:1.55;}
.profile-card .profile-numbers{grid-template-columns:repeat(4, auto);justify-content:start;padding:6px 0 10px;margin:0;}
.profile-card .profile-item:first-child{padding-left:0;}
.profile-card .profile-label{margin-top:4px;}

.profile-facts{margin:0;display:grid;}
.profile-facts > div{display:grid;grid-template-columns:130px 1fr;gap:12px;align-items:baseline;padding:12px 0;border-bottom:1px solid var(--line);}
.profile-facts > div:first-child{padding-top:0;}
.profile-facts dt{font-size:0.68rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--ink-soft);}
.profile-facts dd{margin:0;color:var(--ink);font-weight:600;}
.access-badge{
  display:inline-block;padding:4px 12px;border-radius:100px;font-size:0.82rem;font-weight:700;
  background:color-mix(in srgb, var(--gold) 18%, var(--card));color:var(--gold-ink);
}
.access-badge[data-access="paid"]{background:color-mix(in srgb, var(--plum) 12%, var(--card));color:var(--plum);}
.profile-card .btn-cta{justify-self:start;margin-top:6px;}
.profile-card .account-form .btn{margin-top:4px;}
.success{margin:0;color:var(--gold-ink);font-weight:700;font-size:0.92rem;}
.success:empty{display:none;}
.profile-card .error:empty{display:none;}

@media (max-width: 860px){
  .profile-grid{grid-template-columns:1fr;}
  .profile-card-data{grid-row:auto;}
}
@media (max-width: 560px){
  .screen-profile{padding:24px 20px 56px;}
  .profile-avatar{width:56px;height:56px;font-size:1.25rem;}
  .profile-card{padding:22px 18px;}
  .profile-card .profile-numbers{grid-template-columns:repeat(2, 1fr);}
  .profile-card .profile-item{padding:10px 0;border-right:0;}
  .profile-facts > div{grid-template-columns:1fr;gap:4px;}
  .profile-card .btn-cta{justify-self:stretch;}
  .topbar-actions #btn-profile{padding:8px 12px;}
}
/* profile balance: the data card on top across the width, access and password side by side below */
.profile-grid{grid-template-columns:1fr 1fr;}
.profile-card-data{grid-column:1 / -1;grid-row:auto;grid-template-columns:auto 1fr;column-gap:48px;align-items:start;}
.profile-card-data h2,.profile-card-data > .profile-note:first-of-type{grid-column:1 / -1;}
.profile-card-data .profile-numbers{grid-column:1;grid-row:3 / span 3;align-self:center;}
.profile-card-data .profile-label,.profile-card-data .tags,.profile-card-data > .profile-note:last-child{grid-column:2;}
@media (max-width: 860px){
  .profile-card-data{grid-template-columns:1fr;}
  .profile-card-data .profile-numbers,.profile-card-data .profile-label,.profile-card-data .tags,.profile-card-data > .profile-note:last-child{grid-column:1;grid-row:auto;}
}

/* ---------- profile v2: tabs in the main column, access card floating on the right ---------- */
.profile-layout{margin-top:32px;display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start;}
.profile-main{display:grid;gap:20px;min-width:0;}
.profile-side{position:sticky;top:calc(var(--topbar-h) + 24px);}
.access-card{box-shadow:var(--shadow-raised);border-top:3px solid var(--gold);border-radius:18px;}
.access-card .eyebrow{margin:0;}
.access-card .profile-facts > div{grid-template-columns:1fr;gap:4px;}
.access-card .btn-cta{justify-self:stretch;margin-top:4px;}

.tabs{display:flex;gap:6px;padding:5px;border-radius:100px;background:var(--bg-alt);width:max-content;max-width:100%;overflow-x:auto;scrollbar-width:none;}
.tabs::-webkit-scrollbar{display:none;}
.tab{
  border:0;background:none;cursor:pointer;white-space:nowrap;min-height:40px;padding:8px 18px;border-radius:100px;
  font-weight:700;font-size:0.9rem;color:var(--ink-soft);transition:background-color .25s, color .25s, box-shadow .25s;
}
.tab[aria-selected="true"]{background:var(--card);color:var(--plum);box-shadow:0 4px 12px -6px rgba(var(--shadow-rgb),0.35);}
.tab:not([aria-selected="true"]):hover{color:var(--plum);}
.tab-panel{display:grid;gap:20px;}
.tab-panel[hidden]{display:none !important;}

/* progress chart */
.progress-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;}
.progress-head .profile-note{margin-top:6px;}
.metric-switch{display:flex;flex-wrap:wrap;gap:6px;}
.chip-toggle{
  min-height:36px;padding:6px 14px;border-radius:100px;border:1px solid var(--line);background:none;cursor:pointer;
  font-weight:700;font-size:0.82rem;color:var(--ink-soft);transition:background-color .2s,color .2s,border-color .2s;
}
.chip-toggle[aria-pressed="true"]{background:var(--plum);border-color:var(--plum);color:var(--bg);}
.chart{width:100%;height:260px;}
.chart svg{width:100%;height:100%;display:block;overflow:visible;}
.chart-grid{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke;}
.chart-axis{fill:var(--ink-soft);font-size:11px;font-family:"Manrope",sans-serif;}
.chart-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;}
.chart-dot{fill:var(--card);stroke:var(--gold-ink);stroke-width:2.5;vector-effect:non-scaling-stroke;}
.chart-empty{fill:var(--ink-soft);font-size:14px;font-family:"Manrope",sans-serif;}

/* record a measurement */
.measure-form{display:grid;grid-template-columns:repeat(5, minmax(0,1fr));gap:12px;align-items:end;}
.measure-field{display:grid;gap:6px;min-width:0;}
.measure-field .field-label{margin:0;font-size:0.82rem;}
.measure-field .input{min-height:48px;font-size:1rem;padding:10px 14px;}
.measure-field .input.has-suffix{padding-right:44px;}
.measure-field .suffix{right:14px;font-size:0.85rem;}
.measure-actions{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.measure-actions .error{margin:0;}
.measure-actions .btn{min-height:46px;padding:10px 24px;}

/* history */
.history-wrap{overflow-x:auto;}
.history{width:100%;border-collapse:collapse;font-size:0.92rem;}
.history th{text-align:left;font-size:0.68rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:var(--ink-soft);padding:0 10px 10px;border-bottom:1px solid var(--line);white-space:nowrap;}
.history td{padding:10px;border-bottom:1px solid var(--line);white-space:nowrap;}
.history tr:last-child td{border-bottom:0;}
.history td:last-child{text-align:right;width:44px;}
.history .action{font-size:1.2rem;line-height:1;}
.history-empty{color:var(--ink-soft);text-align:center;}

/* top bar: "Acessar Método" on the profile */
.topbar-btn-cta{background:var(--plum);color:var(--bg);border-color:var(--plum);}
@media (hover: hover){ .topbar-btn-cta:hover{background:var(--plum-soft);border-color:var(--plum-soft);} }

@media (max-width: 1023px){
  .profile-layout{grid-template-columns:1fr;}
  .profile-side{position:static;order:-1;}  /* phone/tablet: the access card comes first, compact */
  .access-card .profile-facts{grid-template-columns:repeat(2, minmax(0,1fr));column-gap:16px;}
  .access-card .profile-facts > div{border-bottom:0;padding:6px 0;}
}
@media (max-width: 700px){
  .measure-form{grid-template-columns:repeat(2, minmax(0,1fr));}
  .measure-field:first-child{grid-column:1 / -1;}
  .measure-actions{flex-direction:column;align-items:stretch;}
  .chart{height:220px;}
}
@media (max-width: 560px){
  .tabs{width:100%;}
  .tab{flex:1;padding:8px 10px;}
}
/* the date needs more room than the numbers (the calendar icon) */
.measure-form{grid-template-columns:minmax(150px,1.5fr) repeat(4, minmax(0,1fr));}
.measure-field input[type="date"]{padding-right:10px;}
@media (max-width: 700px){ .measure-form{grid-template-columns:repeat(2, minmax(0,1fr));} }
/* measurement form in two rows: date + weight, then the three optional ones */
@media (min-width: 701px){
  .measure-form{grid-template-columns:repeat(6, minmax(0,1fr));}
  .measure-field:nth-child(1),.measure-field:nth-child(2){grid-column:span 3;}
  .measure-field:nth-child(n+3){grid-column:span 2;}
}

/* ---------- profile "Seus dados": stat tiles, goals below, note as footer ---------- */
.profile-card.profile-card-data{grid-template-columns:1fr;column-gap:0;gap:18px;}
.profile-card-data > *{grid-column:1 / -1 !important;grid-row:auto !important;}
.profile-card-data > .profile-note:first-of-type{margin-top:-10px;}
.profile-card-data .profile-numbers{
  display:grid;grid-template-columns:repeat(4, minmax(0,1fr));gap:12px;padding:0;margin:0;align-self:stretch;
}
.profile-card-data .profile-item{
  padding:16px 18px !important;border:0 !important;border-radius:14px;background:var(--bg-alt);
  display:grid;gap:4px;align-content:start;
}
.profile-card-data .profile-item dd{font-size:1.7rem;}
.profile-card-data .profile-label{margin:6px 0 -6px;}
.profile-card-data .tags{gap:8px;}
.profile-card-data > .profile-note:last-child{padding-top:16px;border-top:1px solid var(--line);}

/* selected tab: the same wine/rose highlight as the chart switch (no outline look) */
.tab[aria-selected="true"]{background:var(--plum);color:var(--bg);box-shadow:0 6px 16px -8px rgba(var(--shadow-rgb),0.5);}
.tab:focus-visible{outline-offset:2px;}

@media (max-width: 700px){
  .profile-card-data .profile-numbers{grid-template-columns:repeat(2, minmax(0,1fr));}
  .profile-card-data .profile-item dd{font-size:1.45rem;}
}

/* profile home: progress summary card */
.chart-small{height:170px;}
.chart-empty-box{height:120px;}
.home-progress .progress-head{align-items:center;}
.home-progress-empty{display:grid;justify-items:start;gap:14px;padding:18px 20px;border-radius:14px;background:var(--bg-alt);}
.home-progress-empty p{margin:0;color:var(--ink-soft);}
#panel-data{display:grid;gap:20px;}

/* ---------- conversation: full page like a chat app; the plan card fixed on the right ---------- */
html,body{overflow-x:clip;}
@media (min-width: 1100px){
  .screen-chat{display:block;max-width:none;margin:0;padding:0 24px;}
  .screen-chat .messages,.screen-chat .composer{max-width:760px;margin-inline:auto;}
  .plan-bar{
    position:fixed;top:calc(var(--topbar-h) + 28px);right:32px;width:300px;margin:0;z-index:5;
    max-height:calc(100vh - var(--topbar-h) - 56px);overflow:auto;
  }
}
/* between 1100 and 1480px the centered conversation would run under the card: center it in the space left of it */
@media (min-width: 1100px) and (max-width: 1479px){
  .screen-chat{padding-right:364px;}
}
/* the composer's background goes edge to edge, with the page texture (no rectangle around the column) */
.composer{background:none;isolation:isolate;}
.composer::before{
  content:"";position:absolute;inset:0 -100vmax;z-index:-1;pointer-events:none;
  background-color:var(--bg);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-mask-image:linear-gradient(to bottom, transparent, #000 26px);mask-image:linear-gradient(to bottom, transparent, #000 26px);
}


/* the meal plan answer stands out as a document card, like the PDF (wine band on top) */
.screen-chat .msg-plan .msg-body{
  border-radius:20px;padding:0 30px 24px;background:var(--card);
  box-shadow:var(--shadow-raised);overflow:hidden;
}
.screen-chat .msg-plan .msg-body::before{
  content:"Método Amanda de Pauli · Seu plano alimentar";display:block;margin:0 -30px 22px;padding:14px 30px;
  background:#55212F;color:#E0998C;font-size:0.66rem;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;
}
.screen-chat .msg-plan .msg-actions{margin-top:16px;padding-top:12px;border-top:1px solid var(--line);}
@media (max-width: 560px){
  .screen-chat .msg-plan .msg-body{padding:0 18px 18px;border-radius:16px;}
  .screen-chat .msg-plan .msg-body::before{margin:0 -18px 18px;padding:12px 18px;}
}
/* message box: no visible scrollbar inside the field (it still scrolls when the text is long) */
.input-box textarea{scrollbar-width:none;overflow-y:auto;}
.input-box textarea::-webkit-scrollbar{display:none;width:0;height:0;}

/* ---------- chat aligned with the top bar: same container (1120px, 24px gutter), edge to edge of it ---------- */
.screen-chat{display:block;max-width:1120px;margin:0 auto;padding:0 24px;}
.screen-chat .messages,.screen-chat .composer{max-width:none;margin-inline:0;}
@media (min-width: 1100px){
  /* the plan card sits inside the same container, right edge aligned with "Meu perfil" */
  .screen-chat{padding-right:calc(24px + 300px + 32px);}
  .plan-bar{right:max(24px, calc((100vw - 1120px) / 2 + 24px));}
}
@media (max-width: 1099px) and (min-width: 481px){
  .screen-chat{padding:0 24px;}
  .plan-bar{margin-left:-24px;margin-right:-24px;}
}
@media (max-width: 480px){
  .screen-chat{padding:0 20px;}
  .plan-bar{margin-left:-20px;margin-right:-20px;}
}
/* margins from the width without the scrollbar (100vw includes it): top bar, chat and card line up exactly */
.topbar{padding:0 max(24px, calc((100% - 1120px) / 2 + 24px));}
@media (min-width: 1100px){ .plan-bar{right:max(24px, calc((100% - 1120px) / 2 + 24px));} }
@media (max-width: 480px){ .topbar{padding:0 20px;} }
/* chat spans the top bar (logo to "Sair"); the plan card floats at the right edge of the window.
   Only where the two would meet, the chat pulls in just enough (percent padding = window width). */
@media (min-width: 1100px){
  .screen-chat{padding-right:max(24px, calc(24px + 300px + 56px - (100% - 1120px) / 2));}
  .plan-bar{right:32px;}
}
/* profile: latest plan PDF under the access card */
.profile-side{display:grid;gap:20px;align-content:start;}
.pdf-card-head{display:flex;gap:12px;align-items:flex-start;color:var(--plum);}
.pdf-card-head svg{flex-shrink:0;margin-top:3px;}
.pdf-card-head h2{font-size:1.2rem;}
.pdf-card-head .profile-note{margin-top:4px;}
.pdf-card .btn{justify-self:stretch;}

/* ---------- follow-up questions in the chat: one at a time, quick options or typed ---------- */
.msg-question .msg-body > p:first-child{margin-top:0;}
.follow-count{margin:0 0 6px;font-size:0.68rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--rose-deep);}
.follow-text{margin:0;font-size:1.08rem;font-weight:600;color:var(--plum);}
.follow-options{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.follow-chip{font-size:0.92rem;}
.follow-chip[aria-pressed="true"]{background:var(--plum);border-color:var(--plum);color:var(--bg);}
.follow-foot{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:14px;}
.follow-send{min-height:44px;padding:10px 24px;}
.follow-skip{font-size:0.85rem;}
.msg-question + .msg-user,.msg-user + .msg-question{margin-top:-6px;}

/* message field: more room above and below the text */
.input-box{padding-top:14px;padding-bottom:14px;align-items:center;}
.input-box textarea{padding:12px 0;}
.composer{padding-top:18px;padding-bottom:max(20px, env(safe-area-inset-bottom));}

/* phone: wider side margins, and the plan card as a floating card with room around it */
@media (max-width: 1099px){
  .plan-bar{margin:14px 0 18px;border-radius:18px;padding:12px 12px 12px 16px;}
}
@media (max-width: 560px){
  .screen-chat{padding:0 18px;}
  .plan-bar{margin:12px 0 16px;border-radius:16px;padding:10px 10px 10px 14px;}
  .screen-chat .messages{padding-top:24px;gap:26px;}
  .input-box{padding:12px 10px 12px 18px;}
}
@media (max-width: 1099px){ .plan-bar{top:calc(var(--topbar-h) + 10px);box-shadow:0 12px 28px -14px rgba(var(--shadow-rgb),.55);} }
.home-progress .chart + .home-progress-empty{margin-top:4px;}
.home-progress-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap;}
.home-progress-links #btn-home-measure{color:var(--ink-soft);text-decoration-color:color-mix(in srgb, var(--ink-soft) 50%, transparent);}
@media (hover:hover){ .home-progress-links #btn-home-measure:hover{color:var(--plum);} }

/* profile: the right column starts at the top (header moved into the main column) */
.screen-profile .profile-layout{margin-top:0;}
.profile-main > .profile-head{margin-bottom:12px;}
.profile-side{position:static;}
/* individual follow-up with Amanda: accent card at the top of the right column */
.amanda-promo{
  border-radius:22px;padding:24px 24px 26px;background:var(--accent-bg);color:var(--accent-ink);
  box-shadow:0 24px 50px -26px rgba(var(--shadow-rgb),.6);display:grid;gap:10px;justify-items:start;
}
.amanda-promo img{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid var(--accent-gold);}
.amanda-promo .eyebrow{margin:6px 0 0;color:var(--accent-eyebrow);}
.amanda-promo h2{color:var(--accent-ink);font-size:1.3rem;line-height:1.2;}
.amanda-promo p:not(.eyebrow){margin:0;color:var(--accent-soft);font-size:0.92rem;line-height:1.55;}
.amanda-promo .btn-cta{margin-top:6px;justify-self:stretch;}
@media (max-width: 1023px){
  .amanda-promo{order:3;} /* phone/tablet: after the access and PDF cards */
}

/* composer: more room above (the fade over the last message) and below the field */
.composer{padding-top:34px;padding-bottom:max(28px, env(safe-area-inset-bottom));}
.composer::before{-webkit-mask-image:linear-gradient(to bottom, transparent, #000 34px);mask-image:linear-gradient(to bottom, transparent, #000 34px);}
@media (max-width: 560px){ .composer{padding-top:26px;padding-bottom:max(18px, env(safe-area-inset-bottom));} }

/* phone: the plan card sits on a soft fade of the page color, so the text scrolling behind does not show */
@media (max-width: 1099px){
  .plan-bar{box-shadow:0 0 22px 20px var(--bg), 0 12px 28px -14px rgba(var(--shadow-rgb),.55);}
}
/* composer: a taller solid band above the field (short fade at its top), so the text ends well before it */
.composer{padding-top:56px;padding-bottom:max(28px, env(safe-area-inset-bottom));}
.composer::before{-webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 22px);mask-image:linear-gradient(to bottom, transparent 0, #000 22px);}
.screen-chat .messages{padding-bottom:12px;}
@media (max-width: 560px){ .composer{padding-top:44px;padding-bottom:max(20px, env(safe-area-inset-bottom));} }

/* plan PDF cards (chat and profile): same look, no gold border */
.plan-bar{border-color:var(--line);}
.pdf-card{gap:16px;}
.pdf-card .eyebrow{margin:0;font-size:0.68rem;letter-spacing:0.14em;}
.pdf-card-head h2{font-family:"Fraunces",serif;font-weight:500;font-size:1.2rem;}
.pdf-card-head .profile-note{font-size:0.82rem;margin-top:4px;}
.pdf-card .btn-pdf-large{justify-self:stretch;min-height:48px;padding:10px 18px;font-size:0.95rem;}
.pdf-card .btn-pdf-large::after{content:none;}
.pdf-card .link-mini{justify-self:center;font-size:0.85rem;}
.composer{padding-top:51px;}
@media (max-width: 560px){ .composer{padding-top:40px;} }

/* Amanda promo card v2: clear blocks (who, title, benefits, button) */
.amanda-promo{gap:0;padding:24px;}
.amanda-promo > .eyebrow{margin:0 0 16px;font-size:0.68rem;letter-spacing:0.14em;}
.promo-who{display:flex;align-items:center;gap:12px;padding-bottom:16px;border-bottom:1px solid var(--accent-line);width:100%;}
.promo-who img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center;aspect-ratio:1 / 1;border:2px solid var(--accent-gold);flex-shrink:0;}
.promo-who div{display:grid;line-height:1.3;}
.promo-who strong{font-family:"Fraunces",serif;font-weight:500;font-size:1.05rem;color:var(--accent-ink);}
.promo-who span{font-size:0.72rem;font-weight:700;letter-spacing:0.08em;text-transform:uppercase;color:var(--accent-soft);margin-top:2px;}
.amanda-promo h2{margin:16px 0 12px;font-size:1.25rem;line-height:1.25;}
.promo-list{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:8px;width:100%;}
.promo-list li{display:flex;align-items:center;gap:10px;font-size:0.92rem;color:var(--accent-ink);}
.promo-list li::before{
  content:"";width:18px;height:18px;border-radius:50%;flex-shrink:0;
  background:var(--accent-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FBF5F1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat;
}
.promo-btn{
  justify-self:stretch;width:100%;min-height:50px;padding:12px 20px;gap:10px;
  background:var(--accent-ink);color:var(--accent-bg);box-shadow:0 12px 24px -12px rgba(0,0,0,.5);
}
@media (hover:hover) and (pointer:fine){ .promo-btn:hover{transform:translateY(-2px);opacity:.92;} }
/* "+ Registrar medida": a small outlined button */
.chip-btn{
  display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 14px;border-radius:100px;cursor:pointer;
  border:1px solid var(--line);background:var(--bg-alt);color:var(--plum);font-weight:700;font-size:0.82rem;
  transition:background-color .2s,border-color .2s,color .2s;
}
@media (hover:hover){ .chip-btn:hover{border-color:var(--plum);} }
.home-progress-links .chip-btn{color:var(--plum);text-decoration:none;}
/* "+ Registrar medida": gold, like the site's CTA */
.home-progress-links .chip-btn{background:var(--gold);border-color:var(--gold);color:#2B1B1D;}
@media (hover:hover){ .home-progress-links .chip-btn:hover{background:#C39558;border-color:#C39558;} }
/* the older link rule (#btn-home-measure) was stronger: the dark text wins now */
.home-progress-links #btn-home-measure{color:#2B1B1D;text-decoration:none;}
@media (hover:hover){ .home-progress-links #btn-home-measure:hover{color:#2B1B1D;} }
.composer{padding-top:41px;}
@media (max-width: 560px){ .composer{padding-top:30px;} }

/* access card: smaller text; the status badge in green (active access) */
:root{--ok-bg:#E3F1E6;--ok-ink:#2F6B3F;--ok-line:rgba(47,107,63,.22);}
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){--ok-bg:rgba(111,191,131,.14);--ok-ink:#8FD3A1;--ok-line:rgba(143,211,161,.25);} }
:root[data-theme="dark"]{--ok-bg:rgba(111,191,131,.14);--ok-ink:#8FD3A1;--ok-line:rgba(143,211,161,.25);}
.access-card h2{font-size:1.15rem;}
.access-card .profile-facts > div{padding:10px 0;}
.access-card .profile-facts dt{font-size:0.62rem;}
.access-card .profile-facts dd{font-size:0.88rem;font-weight:600;line-height:1.4;}
.access-badge,.access-badge[data-access="paid"]{background:var(--ok-bg);color:var(--ok-ink);border:1px solid var(--ok-line);font-size:0.75rem;padding:3px 10px;}
.access-badge[data-access="pending"]{background:color-mix(in srgb, var(--gold) 16%, var(--card));color:var(--gold-ink);border-color:color-mix(in srgb, var(--gold) 45%, transparent);}
.access-card .btn-cta{min-height:48px;font-size:0.92rem;}

/* ---------- parity with the site (the reference): buttons, top bar, hero lede, eyebrow on phones ---------- */
.product-lede{font-size:1.08rem;line-height:1.6;}
.btn-cta{font-size:1rem;}
.start-hero .btn-large{min-height:48px;padding:14px 16px 14px 28px;font-size:1rem;}
@media (max-width: 560px){
  .start-hero .btn-large{padding:14px 14px 14px 20px;}
  .topbar-btn{padding:10px 14px;min-height:44px;}
}
@media (max-width: 480px){
  .btn{padding:14px 18px;}
  .eyebrow{letter-spacing:0.12em;}
  .product-lede{font-size:1rem;}
}

/* ---------- "Seus dados": the start beside today's number, the IMC range in its color, the progress pill ---------- */
:root{--tone-ok:#2F6B3F;--tone-gold:#805B2D;--tone-rose:#934E45;--tone-danger:#A3342B;--tone-plum:#7A3349;}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--tone-ok:#8CC79B;--tone-gold:#D9B37E;--tone-rose:#EFB4A7;--tone-danger:#F2A097;--tone-plum:#E8C3BE;}
}
:root[data-theme="dark"]{--tone-ok:#8CC79B;--tone-gold:#D9B37E;--tone-rose:#EFB4A7;--tone-danger:#F2A097;--tone-plum:#E8C3BE;}
.profile-item-sub{display:block;margin-top:2px;font-family:"Manrope",sans-serif;font-size:0.76rem;font-weight:600;line-height:1.35;color:var(--ink-soft);}
.profile-item-sub.tone-ok{color:var(--tone-ok);} .profile-item-sub.tone-gold{color:var(--tone-gold);}
.profile-item-sub.tone-rose{color:var(--tone-rose);} .profile-item-sub.tone-danger{color:var(--tone-danger);}
.progress-status{
  margin:-6px 0 0;justify-self:start;display:inline-flex;align-items:center;padding:6px 14px;border-radius:100px;
  font-weight:700;font-size:0.86rem;line-height:1.3;
  background:color-mix(in srgb, var(--tone-plum) 14%, var(--card));color:var(--tone-plum);border:1px solid color-mix(in srgb, var(--tone-plum) 35%, transparent);
}
.progress-status[data-tone="ok"]{background:color-mix(in srgb, var(--tone-ok) 14%, var(--card));color:var(--tone-ok);border-color:color-mix(in srgb, var(--tone-ok) 35%, transparent);}
.progress-status[data-tone="gold"]{background:color-mix(in srgb, var(--tone-gold) 14%, var(--card));color:var(--tone-gold);border-color:color-mix(in srgb, var(--tone-gold) 40%, transparent);}
.progress-status[hidden]{display:none !important;}

/* ---------- long conversations: the newest messages first, older ones on demand ---------- */
.msg-older{text-align:center;}
.btn-older{min-height:40px;padding:8px 18px;font-size:0.85rem;background:var(--bg-alt);color:var(--plum);box-shadow:none;}
/* the latest plan pinned above the window of messages (older than what is on screen) */
.pinned-note{text-align:center;font-size:0.8rem;color:var(--ink-soft);margin:6px 0 10px;}

/* ---------- Amanda's own messages (written from her dashboard): a gold card, with her photo and name ---------- */
.msg-amanda{display:grid;grid-template-columns:36px 1fr;gap:14px;align-items:start;}
.avatar-amanda{object-fit:cover;object-position:top;box-shadow:0 0 0 2px var(--gold);}
.msg-amanda .msg-body{
  background:color-mix(in srgb, var(--gold) 14%, var(--card));
  border:1px solid color-mix(in srgb, var(--gold) 55%, transparent);border-left:4px solid var(--gold);
  border-radius:22px;padding:16px 20px;
}
.amanda-who{margin:0 0 6px;font-size:0.72rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:var(--gold-ink);}
.amanda-who small{font-size:0.72rem;font-weight:600;letter-spacing:0.04em;text-transform:none;color:var(--ink-soft);}
.amanda-msg{white-space:pre-wrap;line-height:1.6;} /* Amanda's message in the chat (not the offer's .amanda-text) */

/* ---------- "Outro" in a follow-up question: the field opens right under the options ---------- */
.follow-chip-other{border-style:dashed;}
.follow-chip-other[aria-pressed="true"]{border-style:solid;}
.follow-other{margin-top:12px;}
.follow-other .input{min-height:48px;padding:10px 16px;font-size:1rem;border-radius:14px;}

/* ---------- meal photos: the camera button, the photo waiting to be sent, the photo in the conversation ---------- */
.attach{
  width:44px;height:44px;border-radius:50%;border:0;background:none;color:var(--plum);
  display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;margin-left:-6px;
}
@media (hover: hover){ .attach:hover{background:var(--bg-alt);} }
.input-box:has(.attach:not([hidden])){padding-left:10px;}
.photo-preview{
  display:flex;align-items:center;gap:12px;margin:0 0 10px;padding:8px 10px 8px 8px;border-radius:18px;
  background:var(--card);border:1.5px solid var(--gold);box-shadow:0 10px 30px -14px rgba(var(--shadow-rgb),.35);
}
.photo-preview img{width:56px;height:56px;object-fit:cover;border-radius:12px;flex-shrink:0;background:var(--bg-alt);}
.photo-preview-text{flex:1;min-width:0;display:grid;gap:2px;font-size:0.85rem;line-height:1.35;}
.photo-preview-text strong{color:var(--plum);}
.photo-preview-text span{color:var(--ink-soft);}
.photo-preview .link-btn{padding:6px 4px;min-height:36px;flex-shrink:0;}
.msg-photo .bubble{padding:6px;max-width:min(85%, 360px);}
.msg-photo .photo{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:18px 18px 4px 18px;background:var(--bg-alt);}
.msg-photo .photo-caption{display:block;padding:8px 12px 6px;}
@media (max-width: 560px){ .msg-photo .bubble{max-width:92%;} }
body.sending-photo .send{opacity:.55;cursor:progress;}

/* suggestions: wrap on wide screens; on the phone a single row that scrolls sideways, fading at the edge
   (so a cut chip reads as "there is more", not as a mistake) */
@media (max-width: 860px){
  .suggestions{flex-wrap:nowrap;overflow-x:auto;padding-right:40px;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(to right, #000 calc(100% - 40px), transparent);mask-image:linear-gradient(to right, #000 calc(100% - 40px), transparent);}
  .suggestions::-webkit-scrollbar{display:none;}
}

/* the photo large, on the page */
.photo-open{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:18px 18px 4px 18px;overflow:hidden;}
.lightbox{position:fixed;inset:0;z-index:50;background:rgba(20,8,12,.92);display:flex;align-items:center;justify-content:center;padding:24px;cursor:zoom-out;}
.lightbox img{max-width:100%;max-height:100%;border-radius:16px;box-shadow:0 30px 80px rgba(0,0,0,.6);}
.lightbox-close{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:28px;line-height:1;cursor:pointer;}
body.lightbox-open{overflow:hidden;}

/* when each message was sent (under it; on the right for hers) */
.msg-user{flex-direction:column;align-items:flex-end;}
.msg-time{display:block;font-size:0.72rem;color:var(--ink-soft);opacity:.85;margin-top:6px;}
.msg-user .msg-time{text-align:right;}
.msg-ai .msg-time{margin-top:8px;}
.msg-amanda .msg-time{margin-top:8px;}

/* "Verificar agora": the payment waiting for Kiwify's confirmation (pix, boleto) */
.pending-card .pending-status{margin:0 0 18px;min-height:1.4em;font-size:0.92rem;font-weight:600;color:var(--gold-ink);}
.pending-card .pending-status.is-error{color:var(--rose-deep);}
.pending-card .btn{width:100%;}
.pending-card .pending-method{margin:18px 0 0;padding:14px 16px;border-radius:16px;background:color-mix(in srgb, var(--gold) 16%, var(--card));border-left:4px solid var(--gold);color:var(--ink);font-size:1.02rem;line-height:1.5;}
.pending-card .pending-method strong{color:var(--gold-ink);}
.pending-card .pending-method + .lede{margin-top:14px;}
.pending-card .btn-secondary{margin-top:10px;background:transparent;border:1.5px solid var(--gold);color:var(--gold-ink);box-shadow:none;}

/* ---- Profile, "Pagamentos": the renewal and the charges ---- */
.renewal-card{display:grid;gap:16px;}
/* the title on the left, the state's pill on the right */
.renewal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;}
.renewal-head .eyebrow{margin:0 0 4px;}
.renewal-head h2{margin:0;}
.renewal-card .progress-status{margin:0;}
/* the facts as tiles, side by side */
.renewal-facts{margin:0;display:grid;grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));gap:12px;}
.renewal-facts[hidden]{display:none !important;}
.renewal-facts > div{padding:14px 16px;border-radius:16px;background:color-mix(in srgb, var(--bg-alt) 55%, var(--card));border:1px solid var(--line);display:grid;gap:6px;}
.renewal-facts dt{font-size:0.66rem;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;color:var(--ink-soft);}
.renewal-facts dd{margin:0;font-weight:700;font-size:1rem;color:var(--ink);white-space:nowrap;}
.renewal-card > .profile-note{margin:0;}
/* the way out, quiet: a line, the question, an outlined button */
.renewal-cancel{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--line);}
/* the renewal's pill in a neutral color, whatever the state (Leo) */
.progress-status[data-tone="neutral"]{background:color-mix(in srgb, var(--ink-soft) 10%, var(--card));color:var(--ink-soft);border-color:color-mix(in srgb, var(--ink-soft) 28%, transparent);}
.renewal-cancel p{margin:0;color:var(--ink-soft);font-size:0.92rem;}
.renewal-btn{min-height:42px;padding:10px 20px;background:transparent;color:var(--ink);border-color:var(--line);font-size:0.9rem;}
.renewal-btn svg{color:#25D366;}
@media (hover:hover) and (pointer:fine){ .renewal-btn:hover{border-color:var(--rose-deep);color:var(--rose-deep);} }
@media (max-width: 560px){ .renewal-cancel{flex-direction:column;align-items:stretch;} .renewal-btn{width:100%;} }
.progress-status[data-tone="plum"]{background:color-mix(in srgb, var(--tone-plum) 14%, var(--card));color:var(--tone-plum);border-color:color-mix(in srgb, var(--tone-plum) 35%, transparent);}
.renewal-cancel[hidden]{display:none !important;}
.history.payments td:last-child{text-align:left;width:auto;}
.payment-status{display:inline-flex;padding:3px 10px;border-radius:100px;font-size:0.78rem;font-weight:700;
  background:color-mix(in srgb, var(--tone-ok) 14%, var(--card));color:var(--tone-ok);border:1px solid color-mix(in srgb, var(--tone-ok) 35%, transparent);}
.payment-status[data-status="refunded"]{background:color-mix(in srgb, var(--tone-danger) 12%, var(--card));color:var(--tone-danger);border-color:color-mix(in srgb, var(--tone-danger) 35%, transparent);}

/* ---- Chat: a PDF sent (a report), waiting or in the history ---- */
.photo-preview-doc{width:56px;height:56px;border-radius:12px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--bg-alt);color:var(--rose-deep);}
.photo-preview-doc[hidden]{display:none !important;}
.photo-preview img[hidden]{display:none !important;}
.msg-doc .bubble{padding:6px;max-width:min(85%, 320px);}
.doc-chip{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:color-mix(in srgb, var(--bg) 40%, transparent);color:inherit;text-decoration:none;}
a.doc-chip:hover{background:color-mix(in srgb, var(--bg) 60%, transparent);}
.doc-icon{width:38px;height:38px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--card);color:var(--rose-deep);}
.doc-icon svg{width:22px;height:22px;}
.doc-text{display:grid;gap:1px;line-height:1.25;}
.doc-text strong{font-size:0.92rem;}
.doc-text small{font-size:0.74rem;opacity:.8;}
.msg-doc .photo-caption{display:block;padding:8px 12px 6px;}


/* ---- Profile history: a row read from a report says so ---- */
.history-source{display:block;font-size:0.68rem;font-weight:700;letter-spacing:.04em;color:var(--rose-deep);}

/* message field (Leo, 2026-09-30): the camera and the send button the same size, with the same gap to the border on
   every side (the pill's height is the button plus the two gaps; the text sits centered between them) */
.input-box{padding:14px;gap:12px;align-items:flex-end;border-radius:38px;}
.input-box:not(:has(.attach:not([hidden]))){padding-left:24px;}
.input-box textarea{padding:10px 0;}
.input-box .attach,.input-box .send{width:44px;height:44px;margin:0;}
.input-box .attach{background:color-mix(in srgb, var(--plum) 10%, transparent);color:var(--plum);}
@media (hover: hover){ .input-box .attach:hover{background:color-mix(in srgb, var(--plum) 18%, transparent);} }
@media (max-width: 560px){
  .input-box{padding:10px;gap:10px;border-radius:32px;}
  .input-box:not(:has(.attach:not([hidden]))){padding-left:18px;}
  .input-box textarea{padding:9px 0;}
  .input-box .attach,.input-box .send{width:42px;height:42px;}
}

/* profile history (Leo, 2026-09-30): fits the card without a side scroll; the long headings go on two lines, at the
   bottom of the header row, and the cells are a little tighter */
.history th{vertical-align:bottom;line-height:1.35;padding:0 8px 10px;}
.history td{padding:12px 8px;}
.history th:first-child,.history td:first-child{padding-left:0;}
.history td:last-child{padding-right:0;width:32px;}

/* progress chart (Leo, 2026-09-30): a smooth line in a rose-to-gold gradient over an area that fades to nothing,
   dashed guides, small points and the latest one highlighted with its value above it */
.chart-grid{stroke-dasharray:3 5;opacity:.7;}

.chart-area-top{stop-color:var(--rose);stop-opacity:.34;}
.chart-area-bottom{stop-color:var(--rose);stop-opacity:0;}
.chart-line{stroke-width:3;filter:drop-shadow(0 6px 10px color-mix(in srgb, var(--rose) 45%, transparent));}
.chart-line-start{stop-color:var(--rose);}
.chart-line-end{stop-color:var(--gold);}
.chart-dot{fill:var(--card);stroke:var(--rose);stroke-width:2;}
.chart-dot-last{fill:var(--gold);stroke:var(--card);stroke-width:2.5;filter:drop-shadow(0 0 6px color-mix(in srgb, var(--gold) 70%, transparent));}
.chart-value{fill:var(--plum);font-size:12px;font-weight:700;font-family:"Manrope",sans-serif;}


/* a fresh estimate or report analysis being written out (writeOut in app.js): the blocks not reached yet */
.write-wait{display:none !important;}

/* the meal plan PDF at the top of the access card (Leo, 2026-09-30: one card), a divider below it */
.access-plan{display:grid;gap:16px;margin-bottom:4px;padding-bottom:20px;border-bottom:1px solid var(--line);}

/* profile on the computer (Leo, 2026-09-30): the left column ends level with the card on the right; the evolution
   card takes the room left and its chart grows with it */
@media (min-width: 1024px){
  .profile-main{align-self:stretch;display:flex;flex-direction:column;gap:20px;}
  .profile-main > #panel-data:not([hidden]){flex:1;display:flex;flex-direction:column;gap:20px;}
  #panel-data .home-progress{flex:1;display:flex;flex-direction:column;gap:16px;}
  #panel-data .home-progress .chart:not([hidden]){flex:1;height:auto;min-height:170px;}
}


/* the top bar on a phone (Leo): the logo and a hamburger (/assets/css/menu.css, /assets/js/menu.js); the account's
   actions (Entrar, Meu Perfil, Acessar o Protocolo, Sair) open under the bar, one per line. No action to show (the
   questions): no hamburger either. */
@media (max-width: 480px){ .brand-logo{height:26px;} }
@media (max-width: 640px){
  .topbar:not(:has(.topbar-actions > :not([hidden]))) .menu-toggle{display:none;}
  .topbar .topbar-actions{
    display:none;position:absolute;top:calc(100% + 6px);left:16px;right:16px;z-index:40;
    flex-direction:column;align-items:stretch;gap:2px;padding:10px;border-radius:22px;
    background:var(--card);box-shadow:var(--shadow-raised);
  }
  .topbar.menu-open .topbar-actions{display:flex;}
  .topbar-actions > .topbar-btn,.topbar-actions > #btn-profile,.topbar-actions > .link-btn{
    width:100%;justify-content:flex-start;gap:12px;min-height:48px;padding:0 14px;border:0;border-radius:14px;
    background:transparent;color:var(--ink);font-size:1rem;font-weight:600;text-decoration:none;
  }
  .topbar-actions > .topbar-btn-cta{background:var(--plum);color:var(--bg);justify-content:center;margin-top:4px;}
  .topbar-actions > [hidden]{display:none !important;}
  .topbar-actions > #btn-logout{color:var(--rose-deep);}
  @media (hover: hover){ .topbar-actions > .topbar-btn:not(.topbar-btn-cta):hover,.topbar-actions > .link-btn:hover{background:color-mix(in srgb, var(--plum) 8%, transparent);color:var(--ink);} }
}


/* no thin borders on the cards (Leo, 2026-09-30): the fill and the shadow set them apart. The fields, the options of the
   questions, the buttons, the chips and the badges keep theirs (they are things to touch), and so does Amanda's own message */
.card-panel,.profile,.amanda,.feature,.demo-chat,.start-method,.start-faq details,.profile-card,.renewal-facts > div,.msg-plan .msg-body{border-width:0;}

/* drag and drop on the chat (Leo, 2026-09-30: no modal): while a file is dragged over the chat the message field shows,
   dashed, that it takes it (outline: the field does not move); a little stronger with the file over it */
.input-box.drop-ready{outline:2px dashed var(--gold);outline-offset:-2px;background:color-mix(in srgb, var(--gold) 7%, var(--card));}
.input-box.drop-over{background:color-mix(in srgb, var(--gold) 15%, var(--card));}

/* the plan's "Download" buttons (Leo): the download icon on the right of the word */
.btn-icon{display:block;flex:0 0 18px;width:18px;height:18px;}

/* ---------- 2026-10-29: more calls to start (the hero's note, a call after the features, the phone's bar) ---------- */
.start-note{margin:12px 0 0;font-size:0.88rem;line-height:1.5;color:var(--accent-soft);order:6;}
.start-cta{margin-top:32px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;}
.start-cta .btn-large{width:auto;min-width:280px;}
.start-cta p{margin:0;font-size:0.9rem;color:var(--ink-soft);}
.start-sticky{display:none;}
@media (max-width: 860px){
  .start-note{order:0;} /* right under "Começar Agora", which the phone moves above the steps */
  .start-cta .btn-large{width:100%;min-width:0;}
  .start-sticky{
    position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;align-items:center;gap:12px;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));
    background:var(--card);border-top:1px solid var(--line);box-shadow:0 -12px 30px -14px rgba(var(--shadow-rgb),.45);
  }
  .start-sticky p{margin:0;flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px;line-height:1.25;}
  .start-sticky strong{font-size:0.92rem;color:var(--ink);}
  .start-sticky span{font-size:0.74rem;color:var(--ink-soft);}
  .start-sticky .btn{flex:0 0 auto;min-height:44px;padding:10px 10px 10px 18px;font-size:0.9rem;}
  body[data-screen="screen-start"] .screen-start{padding-bottom:110px;} /* room for the bar */
}

/* WhatsApp question: the country (flag + code) inside the field and the list in the app's colors (intl-tel-input,
   vendor/intl-tel-input; .tel is the field's wrapper, .tel-popup the list when it opens over the page on the phone) */
.tel,.tel-popup{
  --iti-spacer-horizontal:14px;--iti-arrow-padding:8px;--iti-border-color:var(--line);--iti-icon-color:var(--ink-soft);
  --iti-hover-color:color-mix(in srgb, var(--plum) 8%, transparent);--iti-country-selector-bg:var(--card);--iti-mobile-popup-margin:40px;
}
.tel{display:block;width:100%;}
.tel-popup.iti--fullscreen-popup{z-index:10000;} /* over the top bar: the close button sits in the margin above the list */
.tel .iti__country-container{padding:2px;}
.tel .iti__selected-country,.tel .iti__selected-country-primary{color:var(--ink);border-radius:14px 0 0 14px;}
.tel .iti__selected-dial-code{color:var(--ink-soft);font-weight:600;}
.tel .iti__country-selector,.tel-popup .iti__country-selector{
  border-radius:16px;background:var(--card);color:var(--ink);border:1.5px solid var(--line);box-shadow:var(--shadow-raised);overflow:hidden;
}
.tel.iti--inline-country-selector .iti__country-list{max-height:280px;}
.tel .iti__search-input,.tel-popup .iti__search-input{background:transparent;color:var(--ink);font:inherit;font-size:1rem;padding-top:12px;padding-bottom:12px;outline:none;}
.tel .iti__search-input::placeholder,.tel-popup .iti__search-input::placeholder{color:var(--ink-soft);opacity:.7;}
.tel .iti__country,.tel-popup .iti__country{padding-top:10px;padding-bottom:10px;font-size:1rem;color:var(--ink);}
.tel .iti__dial-code,.tel-popup .iti__dial-code{color:var(--ink-soft);}
.tel .iti__no-results,.tel-popup .iti__no-results{color:var(--ink-soft);}
/* on the phone the close button sits above the list, outside it: the card must not clip; the corners come from the search and the list */
.tel-popup .iti__country-selector{overflow:visible;}
.tel-popup .iti__search-input-wrapper{border-radius:16px 16px 0 0;}
.tel-popup .iti__country-list{border-radius:0 0 14px 14px;}
