@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #101049;
  --purple: #754a9c;
  --purple-dark: #4d276b;
  --lilac: #d29df6;
  --pink: #f40958;
  --orange: #ff9b20;
  --paper: #f9f9ff;
  --ink: #10103f;
  --muted: #666571;
  --line: #e7e7ef;
  --shadow: 0 10px 30px rgba(27, 25, 69, .09);
}

* { box-sizing: border-box; }
html { background: #e9e7f2; }
body { margin: 0; color: var(--ink); font-family: 'DM Sans', Arial, sans-serif; background: #e9e7f2; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.5; }

#app { max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--paper); overflow: hidden; box-shadow: 0 0 45px rgba(19,14,57,.12); }
.topbar { height: 78px; padding: max(18px, env(safe-area-inset-top)) 24px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ececf3; background: rgba(249,249,255,.96); position: relative; z-index: 5; }
.logo { width: 133px; height: auto; display: block; }
.icon-btn { width: 42px; height: 42px; border: 0; background: transparent; display: grid; place-items: center; padding: 0; }
.top-actions, .public-actions { display:flex; align-items:center; gap: 8px; }
.install-trigger { min-height:36px;border:1px solid #ead7f6;border-radius:999px;background:#f1e4fb;color:#663785;padding:0 11px;display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;box-shadow:0 4px 12px rgba(93,52,126,.09); }
.install-trigger svg { width:16px;height:16px; }
.notification { position:relative; }
.notification > span { width:7px; height:7px; border-radius:50%; background:var(--pink); position:absolute; top:7px; right:8px; border:2px solid white; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 3px solid white; box-shadow: 0 2px 10px #c9c7d3; background: linear-gradient(135deg,#f5b56e,#78452d); color:white; font-weight:700; }
.primary, .secondary, .outline { min-height: 52px; border-radius: 999px; padding: 0 24px; font-weight: 700; border: 0; }
.primary { background: var(--pink); color: white; box-shadow: 0 8px 20px rgba(244,9,88,.19); }
.secondary { background: #cfa0f4; color: #542c70; }
.outline { background: white; border: 1.5px solid var(--navy); }
.full { width: 100%; }
.rule { display: block; height: 2px; width: 50px; background: var(--pink); margin: 20px auto; }
.screen { padding: 0 24px 32px; }
.card { background: white; border: 1px solid #efeff5; border-radius: 26px; padding: 25px; box-shadow: var(--shadow); }
.section-heading { font-size: 27px; margin: 34px 0 20px; }
.card-title { display:flex; justify-content:space-between; align-items:flex-start; gap: 15px; }
.card-title h2 { margin-bottom: 3px; }
.card-title p { margin: 0; font-size: 14px; line-height:1.35; }
.page-heading { padding: 45px 15px 22px; text-align:center; }
.page-heading h1 { font-size: 31px; margin:0; }
.page-heading p { font-size: 17px; max-width:390px; margin:0 auto; }

/* landing */
.landing .topbar { position: sticky; top: 0; }
.hero { padding: 58px 24px 25px; text-align:center; }
.glow-mark { position:relative; width:150px; height:93px; margin:0 auto 18px; }
.glow-mark span { position:absolute; width:60px; height:88px; border-radius: 38px 38px 28px 28px; transform:rotate(-34deg); }
.glow-mark span:nth-child(1){left:17px;background:linear-gradient(#191951,#4f3a7d)}
.glow-mark span:nth-child(2){left:54px;background:linear-gradient(150deg,#9d4aa0,#e00661);transform:rotate(34deg)}
.glow-mark span:nth-child(3){right:12px;top:-7px;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#ffad22,#fb0759);transform:none}
.hero h1 { font-size: 34px; font-weight:400; line-height:1.14; margin-bottom:25px; }
.hero h1 b { color:var(--purple); }
.hero p { font-size: 16px; max-width:380px; margin:0 auto; }
.feature-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; padding: 0 24px 48px; }
.feature { border-radius:22px; min-height:170px; background:white; padding:22px; text-align:center; box-shadow:var(--shadow); }
.feature-main { grid-column:1/-1; min-height:140px; text-align:left; background:linear-gradient(135deg,#ed1764,#7b49a3); color:white; }
.feature-main p, .feature.dark p { color:#f4eafb; }
.feature h2 { font-size:26px; margin-bottom:5px; }
.feature h3 { margin:9px 0 4px; }
.feature p { font-size:13px; margin:0; line-height:1.35; }
.feature.dark { background:var(--navy); color:white; }
.feature.wide { grid-column:1/-1; min-height:auto; display:flex; gap:18px; align-items:center; text-align:left; }
.round { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto; }
.round.pink { background:#fde8f0; color:var(--pink); }
.round.lilac { background:#8682b3; color:white; }
.round.orange { background:#fff0d8; color:var(--orange); }
.journey { padding: 32px 24px 50px; text-align:center; background:linear-gradient(#f7f7fd,#fafaff); }
.journey > h2 { font-size:32px; line-height:1.05; }
.journey > p { margin-bottom:30px; }
.journey article { text-align:left; background:white; border:1px solid #ececf2; box-shadow:0 6px 16px rgba(22,20,55,.04); border-radius:25px; padding:28px; margin-bottom:18px; }
.journey article > span { display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:var(--navy); color:white; margin-bottom:18px; }
.journey article:nth-of-type(2)>span { background:var(--purple); }
.journey article:nth-of-type(3)>span { background:var(--pink); }
.journey article h3 { font-size:20px; }
.journey article p { margin:0; font-size:15px; }
.cta { margin: 5px 24px 40px; padding:45px 30px; border-radius:32px; text-align:center; color:white; background:linear-gradient(145deg,#68216a,#4652a7); }
.cta h2 { font-size:28px; }
.cta .secondary { width:100%; }

/* onboarding */
.onboarding { min-height:100dvh; padding-bottom:40px; }
.progress { height:8px; border-radius:99px; margin:42px 30px 32px; background:#e7e7ed; overflow:hidden; }
.progress span { display:block; height:100%; background:var(--pink); border-radius:inherit; transition:width .3s; }
.onboard-intro { text-align:center; padding:0 32px; }
.onboard-intro h1 { font-size:31px; line-height:1.2; }
.onboard-intro p { font-size:17px; }
.onboard-card { margin:38px 24px; padding:28px 24px; background:white; border:1px solid #e9e9f0; border-radius:28px; box-shadow:var(--shadow); }
.onboard-card h2 { font-size:26px; }
.choice-list { display:grid; gap:12px; }
.choice { min-height:64px; border-radius:16px; padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:15px; border:1.5px solid #e6e6ee; background:white; text-align:left; font-size:16px; }
.choice svg { color:#cac9d5; }
.choice.selected { color:white; background:var(--purple); border-color:var(--purple); }
.choice.selected svg { color:white; }
.onboard-next { width:calc(100% - 48px); margin:0 24px; }
.helper { font-size:14px; text-align:center; margin:24px 45px; }
.text-btn { border:0; background:transparent; display:block; margin:20px auto; text-decoration:underline; }
label { display:block; margin:19px 0 8px; font-weight:600; color:var(--ink); }
input, textarea { width:100%; border:1.5px solid #e3e3eb; background:white; border-radius:13px; padding:15px; margin-top:8px; color:var(--ink); outline:none; }
input:focus, textarea:focus { border-color:var(--purple); box-shadow:0 0 0 3px rgba(117,74,156,.1); }
textarea { resize:vertical; min-height:95px; }
.input-suffix { position:relative; }.input-suffix span { position:absolute; right:16px; top:24px; color:var(--muted); }

/* dashboard */
.welcome { text-align:center; padding:48px 16px 35px; }
.welcome h1 { font-size:29px; line-height:1.18; }
.welcome p { font-size:17px; margin-bottom:0; }
.evolution .badge { white-space:nowrap; border-radius:18px; background:#f2e3ff; padding:9px 12px; color:var(--purple); text-align:center; font-size:13px; }
.bars { height:205px; display:flex; align-items:flex-end; justify-content:center; gap:0; margin-top:22px; }
.bars div { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; width:31%; height:100%; font-size:13px; }
.bars i { width:100%; display:block; background:#dddde5; border-radius:10px 10px 0 0; margin:8px 0; }
.bars i.current { background:var(--purple); }
.bars i.goal { border:2px dashed #c9c8d4; background:transparent; }
.med-next { background:var(--navy); color:white; padding:29px; border-radius:26px; margin-top:24px; box-shadow:var(--shadow); }
.med-next small { display:flex; align-items:center; gap:9px; color:#aaa6e1; letter-spacing:1.5px; font-weight:700; }
.med-next h2 { font-size:25px; margin:22px 0 4px; }
.med-next p { color:#8c88bd; margin-bottom:25px; }
.med-next .secondary { width:100%; }
.quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.quick-grid button { min-height:122px; border:0; border-radius:23px; background:white; box-shadow:var(--shadow); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; }
.quick-grid button > span { display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:#f2f2f7; font-size:24px; color:var(--navy); }
.quick-grid button:nth-child(3n+2)>span { background:#edf3ff;color:#4d70e9; }
.quick-grid button:nth-child(3n)>span { background:#fff0f7;color:var(--pink); }
.quick-grid button small { color:#31a354; font-weight:700; }
.quick-grid button.done { outline:2px solid #b6e7c4; }
.missions { display:grid; gap:14px; }
.mission { min-height:105px; border:1px solid #f0f0f4; background:white; border-radius:24px; box-shadow:var(--shadow); display:grid; grid-template-columns:52px 1fr auto; gap:14px; align-items:center; text-align:left; padding:17px; }
.mission-icon { width:48px;height:48px;border-radius:50%;display:grid;place-items:center; }.mission-icon.blue{background:#edf3ff;color:#3986ff}.mission-icon.pink{background:#fff0f5;color:#fa5490}
.mission p { color:#41404b; line-height:1.3; margin-bottom:10px; }
.mission i { height:8px; background:#eeeef2; display:block; border-radius:99px; overflow:hidden; }.mission i b{display:block;height:100%;background:#3d84ff;border-radius:inherit}
.mission strong { color:#3986ff; font-weight:500; }

/* medication */
.weekly { margin-top:5px; }
.days { display:flex; justify-content:space-between; margin-top:24px; }
.days button { border:0; background:transparent; display:grid; gap:7px; justify-items:center; padding:8px; border-radius:12px; min-width:39px; }
.days button.today { color:white; background:var(--navy); box-shadow:0 5px 12px #bebbd3; }
.days button.taken { color:var(--purple); background:#f1e5ff; }.days button i{font-style:normal;font-size:10px}
.dose-form { margin-top:24px; }
.form-heading { display:flex; align-items:center; gap:12px; }.form-heading h2,.form-heading p{margin:0}.form-heading p{font-size:13px}
.success-line { display:flex; gap:12px; align-items:center; background:#c7efcc; border-radius:12px; padding:18px; margin-top:18px; color:#17602a; }
.success-line b { margin-left:auto; display:grid; place-items:center; width:22px;height:22px;border-radius:50%;background:var(--pink);color:white; }
.dose-form .primary { margin-top:18px; }
.therapy { margin-top:24px; }.therapy h2{font-size:24px}.therapy .card-title{align-items:start}
.switch { margin:0; display:flex; align-items:center; gap:8px; font-size:12px; }.switch input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;margin:0;padding:0}.switch i{width:38px;height:22px;border-radius:99px;background:#cac9d3;position:relative}.switch i:after{content:'';width:17px;height:17px;border-radius:50%;background:white;position:absolute;top:2.5px;left:3px;transition:.2s}.switch input:checked+i{background:var(--pink)}.switch input:checked+i:after{left:18px}
.info-box { background:#f0f0f4; border:1px solid #e2e2e8; border-radius:12px; padding:15px; margin-top:12px; }.info-box small{display:block;letter-spacing:1px;color:#666572;margin-bottom:6px}.info-box b{font-size:18px}
.info-panel { margin-top:24px; border-radius:26px; padding:38px 27px; text-align:center; color:white; background:linear-gradient(145deg,#68216a,#4852a8); }.info-panel p{color:#f4eafa}.info-panel .secondary{width:100%}
.alert { margin:24px 0; border:1px solid #f4d3d6; background:#fff3f4; border-radius:22px; padding:20px; display:flex; gap:15px; color:#c02b37; }.alert p{margin:0;color:#c54d58;font-size:13px}.alert b{color:#d2222e}.alert strong{font-size:15px}

/* habits */
.chips { display:flex; gap:9px; overflow:auto; padding:0 4px 10px; scrollbar-width:none; }.chips::-webkit-scrollbar{display:none}.chips button{white-space:nowrap;border:0;border-radius:99px;padding:11px 18px;background:#eeeeF4;color:#55545e}.chips button.active{color:white;background:var(--purple)}
.featured-habit { margin:25px 0 30px; padding:28px; border-radius:26px; color:white; background:linear-gradient(135deg,#71246e,#4f52aa); box-shadow:var(--shadow); }.featured-habit small{color:#e4caff;font-weight:700;letter-spacing:1px}.featured-habit h2{font-size:27px;margin:12px 0 8px}.featured-habit p{color:#f2eafa}.feature-art{font-size:46px;margin-bottom:20px}.featured-habit .secondary{width:100%}
.content-list { display:grid; gap:13px; }.content-card{width:100%;border:1px solid #eeeef3;background:white;border-radius:21px;box-shadow:var(--shadow);display:grid;grid-template-columns:55px 1fr 25px;gap:15px;align-items:center;text-align:left;padding:16px}.content-card>span{width:52px;height:52px;border-radius:15px;background:#f2eff8;display:grid;place-items:center;font-size:26px}.content-card small{color:var(--pink);font-weight:700}.content-card h3{font-size:16px;margin:5px 0 0}.content-card svg{width:20px}

/* professionals */
.pro-chips { flex-wrap:wrap; overflow:visible; }
.pro-list { display:grid; gap:18px; margin-top:24px; }.pro-card{padding:24px 20px}.pro-top{display:grid;grid-template-columns:72px 1fr auto;gap:14px;align-items:center}.pro-avatar{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;color:white;font-weight:700;font-size:20px;position:relative}.pro-avatar.peach{background:linear-gradient(135deg,#e3a97d,#7d4f45)}.pro-avatar.blue{background:linear-gradient(135deg,#7eb3c9,#324d64)}.pro-avatar.green{background:linear-gradient(135deg,#93c49d,#3f6857)}.pro-avatar i{position:absolute;right:-2px;bottom:1px;width:23px;height:23px;border-radius:50%;background:var(--purple);border:3px solid white;display:grid;place-items:center;font-size:10px}.pro-top h2{font-size:17px;margin:0 0 5px}.pro-top p{font-size:13px;color:var(--pink);margin:0}.pro-top>span{align-self:start;background:#f4e6ff;color:var(--purple);padding:6px 8px;border-radius:99px;font-size:12px;white-space:nowrap}.pro-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.pro-actions button{min-height:44px;padding:0 12px}
.map-card{background:white;border-radius:26px;padding:20px;margin-top:28px;box-shadow:var(--shadow)}.map-grid{height:280px;border-radius:19px;overflow:hidden;position:relative;background-color:#dfe5e9;background-image:linear-gradient(28deg,transparent 45%,rgba(255,255,255,.8) 46%,rgba(255,255,255,.8) 49%,transparent 50%),linear-gradient(100deg,transparent 43%,rgba(180,197,184,.8) 44%,rgba(180,197,184,.8) 48%,transparent 49%),linear-gradient(170deg,transparent 40%,rgba(255,255,255,.8) 41%,rgba(255,255,255,.8) 45%,transparent 46%);background-size:120px 100px,140px 140px,180px 180px}.map-grid span{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);background:var(--pink);color:white;border-radius:99px;padding:10px 15px;font-weight:700;box-shadow:0 6px 14px rgba(244,9,88,.3)}.map-grid b{position:absolute;right:20px;bottom:20px;width:44px;height:44px;border-radius:50%;background:var(--pink);color:white;display:grid;place-items:center;border:3px solid white}.map-card button{margin-top:15px}

/* shared footer/nav */
.footer { padding:45px 30px 115px; border-top:1px solid #ececf2; }.footer-logo{width:110px}.footer p{font-size:13px;margin:20px 0 24px}.footer strong{font-size:13px;letter-spacing:1.5px}.socials{display:flex;gap:14px;margin-top:15px}.socials span{width:38px;height:38px;border-radius:50%;background:#f0f0f5;display:grid;place-items:center;color:var(--purple);font-weight:700}
.landing .footer { padding-bottom:45px; }
.bottom-nav { position:fixed; z-index:20; bottom:0; left:50%; transform:translateX(-50%); width:min(480px,100%); height:82px; padding:8px 12px max(8px,env(safe-area-inset-bottom)); background:rgba(255,255,255,.95); backdrop-filter:blur(16px); box-shadow:0 -8px 26px rgba(22,20,55,.08); border-radius:22px 22px 0 0; display:grid;grid-template-columns:repeat(4,1fr); }
.bottom-nav button { border:0;background:transparent;border-radius:99px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#50505a;font-weight:600;font-size:12px;padding:4px}.bottom-nav button.active{background:#d7a5fa;color:#633382}.bottom-nav svg{width:24px;height:24px}

/* sheets & toast */
.sheet-backdrop { position:fixed;inset:0;z-index:50;background:rgba(14,13,48,.45);backdrop-filter:blur(3px);display:flex;align-items:flex-end;justify-content:center;animation:fade .2s ease; }
.sheet { width:min(480px,100%);max-height:83dvh;overflow:auto;background:white;border-radius:28px 28px 0 0;padding:10px 25px max(28px,env(safe-area-inset-bottom));animation:up .25s ease;box-shadow:0 -10px 40px rgba(0,0,0,.15)}
.sheet-handle{width:48px;height:5px;border-radius:9px;background:#dad9e1;margin:0 auto 15px}.sheet-title{display:flex;justify-content:space-between;align-items:center}.sheet-title h2{font-size:24px;margin:0}.sheet-copy{font-size:16px;margin:20px 0}.sheet>.primary{margin-top:20px}.notification-row{padding:18px 0;border-bottom:1px solid #eeeef3}.notification-row p{margin:4px 0 0}.menu-link{display:block;width:100%;padding:18px 0;border:0;border-bottom:1px solid #eeeef3;background:white;text-align:left;font-weight:700}.profile-big{width:86px;height:86px;border-radius:50%;margin:25px auto 12px;background:linear-gradient(135deg,#e3a97d,#78452d);display:grid;place-items:center;color:white;font-size:34px;font-weight:700}.center{text-align:center}.muted{color:var(--muted)}.article-art{height:160px;border-radius:20px;background:linear-gradient(135deg,#f3d4ff,#cce5ff);display:grid;place-items:center;font-size:50px;margin-top:20px}
.toast { position:fixed;z-index:80;left:50%;bottom:100px;transform:translate(-50%,20px);background:var(--navy);color:white;padding:13px 20px;border-radius:99px;box-shadow:0 8px 24px rgba(16,16,73,.25);opacity:0;pointer-events:none;transition:.25s;white-space:nowrap;max-width:calc(100% - 40px);overflow:hidden;text-overflow:ellipsis}.toast.show{opacity:1;transform:translate(-50%,0)}
.install-open { overflow: hidden; }
.install-overlay { position:fixed;inset:0;z-index:100;background:rgba(13,12,48,.58);backdrop-filter:blur(5px);display:flex;align-items:flex-end;justify-content:center;padding:16px 14px max(16px,env(safe-area-inset-bottom));animation:fade .2s ease; }
.install-prompt { position:relative;width:min(440px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:white;border-radius:30px;padding:27px 24px 20px;box-shadow:0 22px 60px rgba(8,7,34,.3);animation:up .3s ease; }
.install-close { position:absolute;right:15px;top:15px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f0f6;display:grid;place-items:center; }
.install-close svg { width:19px;height:19px; }
.install-brand { display:flex;align-items:center;gap:14px;padding-right:35px;margin-bottom:20px; }
.install-brand > span { color:var(--purple);font-size:11px;line-height:1.25;letter-spacing:1.2px;font-weight:700; }
.install-app-icon { width:70px;height:70px;flex:0 0 auto;border-radius:18px;background:linear-gradient(145deg,#fff,#f0eafb);box-shadow:0 8px 22px rgba(42,29,86,.14);display:grid;place-items:center;padding:11px; }
.install-app-icon img { width:100%;height:100%;border-radius:12px;object-fit:cover; }
.install-prompt h2 { font-size:27px;line-height:1.1;margin-bottom:11px;padding-right:18px; }
.install-copy { font-size:15px;line-height:1.45;margin-bottom:18px; }
.install-ready { margin:0 0 20px;padding:15px;border-radius:15px;background:#f4ecfb;color:#573570;font-size:14px; }
.install-steps { list-style:none;margin:0 0 20px;padding:0;display:grid;gap:10px; }
.install-steps li { display:grid;grid-template-columns:29px 1fr;gap:11px;align-items:center;padding:11px 12px;border-radius:14px;background:#f6f6fa; }
.install-steps li > span { width:29px;height:29px;border-radius:50%;background:var(--purple);color:white;display:grid;place-items:center;font-size:13px;font-weight:700; }
.install-steps p { margin:0;color:#45434d;font-size:14px;line-height:1.35; }
.share-symbol { display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#e8d5fa;color:var(--purple);font-style:normal;font-weight:700; }
.install-later { display:block;margin:12px auto 0;padding:8px 18px;border:0;background:transparent;color:#6c6974;font-weight:600; }
@keyframes up{from{transform:translateY(80px);opacity:0}to{transform:none;opacity:1}}@keyframes fade{from{opacity:0}to{opacity:1}}

/* Tablet: deixa de simular uma moldura de telemóvel e usa melhor a largura disponível. */
@media (min-width: 700px) {
  html, body { background: var(--paper); }
  body { padding: 0; }
  #app { max-width: none; min-height: 100dvh; border-radius: 0; box-shadow: none; }
  .screen { width: min(100%, 760px); margin-inline: auto; padding-inline: 32px; }
  .landing > section:not(.hero), .landing > .footer { width: min(calc(100% - 64px), 760px); margin-inline: auto; }
  .landing .hero { max-width: 700px; margin-inline: auto; }
  .bottom-nav { width: min(560px, calc(100% - 48px)); }
  .install-overlay, .install-trigger { display: none; }
}

/* Desktop: composição de website, com navegação superior e grelhas editoriais. */
@media (min-width: 1024px) {
  :root { --desktop-width: 1180px; }

  .topbar {
    height: 82px;
    position: sticky;
    top: 0;
    padding: 14px max(32px, calc((100vw - var(--desktop-width)) / 2));
    box-shadow: 0 4px 18px rgba(22, 20, 55, .035);
  }
  .topbar .logo { width: 145px; }

  .app-shell .screen {
    width: min(100%, calc(var(--desktop-width) + 64px));
    max-width: none;
    padding: 0 32px 90px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
  }
  .screen > .page-heading,
  .screen > .welcome,
  .screen > .alert { grid-column: 1 / -1; }
  .page-heading { padding: 66px 15px 26px; }
  .page-heading h1 { font-size: 42px; }
  .page-heading p { max-width: 670px; font-size: 18px; }
  .welcome { padding: 66px 18% 38px; }
  .welcome h1 { font-size: 42px; }
  .welcome p { max-width: 680px; margin-inline: auto; font-size: 18px; }
  .section-heading { margin-top: 0; }
  .card { border-radius: 28px; }

  .bottom-nav {
    position: fixed;
    top: 12px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 58px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    box-shadow: none;
  }
  .bottom-nav button { flex-direction: row; gap: 8px; padding: 0 16px; font-size: 14px; }
  .bottom-nav button.active { background: #ead4fb; }
  .bottom-nav svg { width: 20px; height: 20px; }

  .route-dashboard .evolution { grid-column: 1 / 8; }
  .route-dashboard .med-next {
    grid-column: 8 / -1;
    align-self: stretch;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }
  .route-dashboard .med-next .secondary { margin-top: auto; }
  .route-dashboard .screen > section:nth-of-type(4) { grid-column: 1 / 8; }
  .route-dashboard .screen > section:nth-of-type(5) { grid-column: 8 / -1; }
  .route-dashboard .quick-grid button { min-height: 132px; }

  .route-medicacao .weekly { grid-column: 1 / 6; }
  .route-medicacao .dose-form { grid-column: 6 / -1; grid-row: span 2; }
  .route-medicacao .therapy { grid-column: 1 / 6; margin-top: 0; }
  .route-medicacao .info-panel { grid-column: 1 / 6; margin-top: 0; }
  .route-medicacao .alert { grid-column: 6 / -1; align-self: end; margin: 0; }

  .route-habitos .chips { grid-column: 1 / -1; justify-content: center; }
  .route-habitos .featured-habit { grid-column: 1 / 6; margin: 0; min-height: 100%; }
  .route-habitos .screen > section:last-of-type { grid-column: 6 / -1; }
  .route-habitos .content-card { padding: 20px; }

  .route-profissionais .chips { grid-column: 1 / -1; justify-content: center; }
  .route-profissionais .pro-list { grid-column: 1 / 8; margin-top: 0; }
  .route-profissionais .map-card { grid-column: 8 / -1; margin-top: 0; }
  .route-profissionais .map-grid { height: 430px; }
  .route-profissionais .alert { margin: 0; }

  .app-shell .footer,
  .landing .footer {
    width: 100%;
    padding: 48px max(32px, calc((100vw - var(--desktop-width)) / 2));
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 36px;
  }
  .footer .footer-logo { grid-row: 1 / 3; width: 125px; }
  .footer p { grid-row: 1 / 3; margin: 0; }
  .footer strong { justify-self: end; }
  .footer .socials { justify-self: end; margin-top: 8px; }

  .landing .topbar { position: sticky; }
  .landing .hero { max-width: 880px; padding: 88px 32px 60px; }
  .landing .hero h1 { font-size: 52px; }
  .landing .hero p { max-width: 650px; font-size: 19px; }
  .landing .hero .primary { width: 330px; }
  .landing > section.feature-grid {
    width: min(calc(100% - 64px), var(--desktop-width));
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 0 0 90px;
  }
  .feature-main { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 360px; display: flex; flex-direction: column; justify-content: center; padding: 50px; }
  .feature-main h2 { font-size: 38px; }
  .feature-main p { max-width: 430px; font-size: 17px; }
  .feature-grid > .feature:nth-child(2) { grid-column: 3; grid-row: 1; }
  .feature-grid > .feature:nth-child(3) { grid-column: 4; grid-row: 1; }
  .feature.wide { grid-column: 3 / -1; grid-row: 2; }
  .landing > section.journey {
    width: 100%;
    max-width: none;
    padding: 80px max(32px, calc((100vw - var(--desktop-width)) / 2));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
  .journey > h2, .journey > .rule, .journey > p { grid-column: 1 / -1; }
  .journey > h2 { font-size: 43px; }
  .journey > p { max-width: 600px; margin-inline: auto; }
  .journey article { margin: 0; min-height: 280px; }
  .landing > section.cta { width: min(calc(100% - 64px), var(--desktop-width)); margin: 72px auto; padding: 62px; }
  .cta h2 { max-width: 650px; margin-inline: auto; font-size: 38px; }
  .cta .secondary { width: 340px; }

  .onboarding {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto auto auto auto;
    column-gap: 70px;
    align-items: start;
    padding-bottom: 80px;
  }
  .onboarding .topbar { grid-column: 1 / -1; }
  .onboarding .progress { grid-column: 1 / -1; width: min(860px, calc(100% - 64px)); margin: 54px auto 64px; }
  .onboard-intro { grid-column: 1; padding: 36px 0 0 max(32px, calc((100vw - var(--desktop-width)) / 2)); text-align: left; }
  .onboard-intro h1 { font-size: 42px; }
  .onboard-intro .rule { margin-left: 0; }
  .onboard-intro p { font-size: 18px; }
  .onboard-card { grid-column: 2; width: min(calc(100% - max(32px, calc((100vw - var(--desktop-width)) / 2))), 660px); margin: 0 max(32px, calc((100vw - var(--desktop-width)) / 2)) 28px 0; padding: 38px; }
  .onboard-next { grid-column: 2; grid-row: 4; width: min(calc(100% - max(32px, calc((100vw - var(--desktop-width)) / 2))), 660px); margin: 0 max(32px, calc((100vw - var(--desktop-width)) / 2)) 0 0; justify-self: end; }
  .onboarding .helper,
  .onboarding .text-btn { grid-column: 1; grid-row: 4; margin: 12px 0 0 max(32px, calc((100vw - var(--desktop-width)) / 2)); text-align: left; justify-self: start; }

  button, .card, .content-card { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
  button:hover { transform: translateY(-1px); }
  .card:hover, .content-card:hover { box-shadow: 0 14px 34px rgba(27, 25, 69, .12); }
}

@media (max-width: 370px) {
  .screen { padding-left:17px;padding-right:17px }.topbar{padding-left:18px;padding-right:18px}.logo{width:112px}.top-actions,.public-actions{gap:5px}.install-trigger{padding:0 9px}.page-heading{padding-left:4px;padding-right:4px}.page-heading h1{font-size:27px}.quick-grid{gap:9px}.quick-grid button{font-size:12px}.pro-top{grid-template-columns:62px 1fr}.pro-avatar{width:60px;height:60px}.pro-top>span{display:none}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
