:root{color-scheme:light;--ink:#252140;--subtle:#5f5972;--purple:#4935a0;--line:#e5dff2;--paper:#f8f6fc}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 67% 25%,#eee8ff 0,transparent 56%),var(--paper);color:var(--ink);font:16px/1.55 system-ui,sans-serif}
.top,main{width:min(1120px,calc(100% - 56px));margin:auto}
.top{min-height:81px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}
.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-size:21px;font-weight:820;letter-spacing:-.05em;text-decoration:none}
.mark{width:38px;height:38px;display:grid;place-items:center;background:#261e51;color:#c9ffdf;border-radius:12px}
.mark svg{width:22px;height:22px}
.private{font-size:12px;font-weight:750;color:#4f3b88;padding:6px 11px;border-radius:100px;background:#eee7fa;white-space:nowrap}
.welcome{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;gap:clamp(30px,6vw,90px);padding:clamp(36px,7vw,88px) 0 46px}
.eyebrow{display:flex;align-items:center;gap:9px;color:var(--purple);font-size:11px;font-weight:800;letter-spacing:.17em;margin:0 0 15px}
.eyebrow span{width:9px;height:9px;border-radius:50%;background:#68b991;box-shadow:0 0 0 4px #dceee7}
h1{font-size:clamp(40px,6.2vw,79px);line-height:.98;letter-spacing:-.075em;margin:0;font-weight:780}
.intro-text{font-size:clamp(16px,1.7vw,19px);color:var(--subtle);max-width:37ch;margin:21px 0 24px}
.primary{display:inline-flex;align-items:center;justify-content:space-between;gap:21px;min-height:49px;padding:10px 16px;border-radius:11px;color:white;background:var(--purple);text-decoration:none;font-weight:750;box-shadow:0 7px 17px #4935a025}
.primary:hover{background:#382578}
a:focus-visible{outline:3px solid #7461c3;outline-offset:4px}
.signin-note{color:var(--subtle);font-size:13px;margin:11px 0 0}
.visual{padding:clamp(17px,4vw,40px);border-radius:29px;background:radial-gradient(ellipse at 100% 0,#6757ac,transparent 71%),#28204f;color:white;box-shadow:0 20px 40px #24194921}
.visual-inner{padding:20px;border-radius:18px;background:#ffffff0d;border:1px solid #e8dbff45}
.preview-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;letter-spacing:.14em;font-weight:750;color:#eee6ff}
.example{letter-spacing:0;border-radius:30px;padding:3px 8px;background:#eee6ff26;color:#fff}
.caption,.preview-note{margin:14px 0 2px;color:#e0d9f2;font-size:13px}
.hero-value{display:block;font-size:clamp(27px,4vw,45px);line-height:1.2;letter-spacing:-.06em}
.track{height:8px;background:#e9dbff29;border-radius:10px;margin:12px 0 6px}
.track span{display:block;height:100%;width:80%;border-radius:inherit;background:#b9ebc9}
.preview-note{margin:0;font-size:11px}
.preview-goal{display:flex;align-items:center;gap:9px;background:#ffffff14;padding:9px;border-radius:10px;margin:16px 0 0;font-size:13px}
.preview-goal small{display:block;color:#e0d9f2;font-size:10px}
.goal-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;background:#c2edd1;color:#263b32;font-size:20px;flex:none}
.goal-percent{margin-left:auto;color:#cbf5d8}
.chart{display:flex;height:58px;align-items:end;gap:7px;margin-top:9px}
.chart i{flex:1;height:22%;border-radius:4px 4px 0 0;background:#a99ae6}
.chart i:nth-child(2){height:39%}.chart i:nth-child(3){height:31%}.chart i:nth-child(4){height:56%}.chart i:nth-child(5){height:49%}.chart i:nth-child(6){height:73%}.chart i:nth-child(7){height:85%;background:#b9ebc9}
.spaces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;padding:0 0 29px}
.spaces article{display:flex;gap:12px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.space-icon{display:grid;place-items:center;min-width:33px;height:33px;background:#eee8fa;color:#4a387f;border-radius:9px;font-size:11px;font-weight:800}
.spaces h2{margin:0;font-size:16px;letter-spacing:-.02em}
.spaces p{margin:3px 0 0;color:var(--subtle);font-size:13px}
@media(max-width:720px){.top,main{width:calc(100% - 32px)}.top{min-height:64px}.brand{font-size:18px}.welcome{grid-template-columns:1fr;gap:25px;padding:35px 0 19px}.wide-break{display:none}.intro-text{margin:14px 0 18px}.spaces{grid-template-columns:1fr;gap:7px}.spaces article{padding:12px}.visual-inner{padding:15px}}

.sign-in-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0, #ece5ff, transparent 38rem), var(--paper);
}
.sign-in-shell {
  width: min(420px, calc(100% - 32px));
  padding: clamp(28px, 6vh, 64px) 0 30px;
  text-align: center;
}
.sign-in-header { margin-bottom: 24px; }
.sign-in-header .mark { width: 48px; height: 48px; margin: 0 auto 12px; }
.sign-in-header .mark svg { width: 26px; height: 26px; }
.sign-in-header h1 { font-size: clamp(26px, 6vw, 33px); letter-spacing: -.055em; line-height: 1.2; }
.sign-in-header p { margin: 6px auto 0; color: var(--subtle); font-size: 14px; }
#auth-form { text-align: start; }
#auth-status { margin: 12px 0; color: var(--subtle); font-size: 14px; }
#auth-status:empty, #auth-form:empty { display: none; }
#signed-in-panel {
  padding: 28px 20px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px #24194912;
}
#signed-in-panel h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
#signed-in-panel p { margin: 5px 0 20px; color: var(--subtle); font-size: 14px; }
#signed-in-panel .primary { justify-content: center; width: 100%; }
#clerk-sign-out {
  margin-top: 9px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--purple);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
#clerk-sign-out:disabled { opacity: .6; cursor: wait; }
#clerk-sign-out:focus-visible { outline: 3px solid #7461c3; outline-offset: 3px; }
.sign-in-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.sign-in-footer a { color: var(--subtle); font-size: 13px; text-underline-offset: 3px; }

.landing-page{
  min-height:100vh;
  background:radial-gradient(ellipse at 76% 8%,#ede6ff 0,transparent 44rem),#faf9fd;
}
.landing-top{min-height:76px}
.landing-top nav{display:flex;align-items:center;gap:clamp(12px,2.4vw,28px)}
.landing-nav-link,.landing-sign-in{font-size:14px;font-weight:700;text-decoration:none}
.landing-nav-link{color:var(--subtle)}
.landing-sign-in{padding:8px 15px;border:1px solid #d9ceef;border-radius:10px;color:var(--purple);background:#fff;white-space:nowrap}
.landing-sign-in:hover,.landing-nav-link:hover{color:#281c57;text-decoration:underline}
.landing-hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(26px,5.5vw,72px);
  padding:clamp(38px,7vw,88px) 0 clamp(36px,6vw,74px);
}
.landing-hero h1{font-size:clamp(39px,5.1vw,66px);line-height:1.03;letter-spacing:-.067em}
.landing-hero h1 em{display:block;color:var(--purple);font-style:normal}
.landing-hero .intro-text{max-width:39ch}
.landing-hero .primary svg{width:18px;height:18px}
.landing-preview{
  padding:clamp(20px,3.1vw,36px);
  border-radius:26px;
  background:radial-gradient(ellipse at top right,#514287,transparent 76%),#261e51;
  color:#fff;
  box-shadow:0 22px 42px #24194929;
}
.preview-top,.preview-savings-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.preview-top .eyebrow{margin:0 0 4px;color:#ccf3dd;letter-spacing:.13em;text-transform:uppercase}
.preview-top h2{font-size:clamp(25px,3vw,35px);line-height:1.1;letter-spacing:-.055em;margin:0}
.preview-tag{background:#ffffff18;border:1px solid #ffffff26;padding:4px 9px;border-radius:100px;font-size:11px;font-weight:700;white-space:nowrap}
.preview-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
#preview-currency{
  padding:4px 5px;
  border:1px solid #ffffff55;
  border-radius:8px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
#preview-currency:focus-visible{outline:2px solid #ccf3dd;outline-offset:3px}
.preview-currency-note{margin:12px 0 0;color:#ebe4ff;font-size:12px}
.preview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:21px 0 12px}
.preview-metrics div{padding:12px 10px;border-radius:12px;background:#ffffff12;border:1px solid #ffffff26}
.preview-metrics dt{font-size:12px;color:#ebe4ff}
.preview-metrics dd{margin:4px 0 0;font-size:clamp(14px,2vw,24px);line-height:1.2;font-weight:780;letter-spacing:-.035em;white-space:nowrap}
.preview-savings{padding:14px;border-radius:14px;background:#fff;color:var(--ink)}
.preview-savings-head{justify-content:flex-start}
.preview-savings-head p,.preview-savings>p{margin:0;color:var(--subtle);font-size:12px}
.preview-savings-head h3{font-size:16px;margin:1px 0 0}
.preview-savings-head strong{margin-left:auto;color:#215a46;font-size:19px}
.preview-savings-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px;color:#215a46;background:#dcf4e7}
.preview-savings-icon svg,.landing-spaces svg{width:19px;height:19px}
.preview-savings progress{display:block;appearance:none;width:100%;height:7px;margin:12px 0 6px;overflow:hidden;border:0;border-radius:99px;background:#e6f0ea;color:#3e896c}
.preview-savings progress::-webkit-progress-bar{background:#e6f0ea}
.preview-savings progress::-webkit-progress-value{border-radius:99px;background:#3e896c}
.preview-savings progress::-moz-progress-bar{border-radius:99px;background:#3e896c}
.landing-workspaces h2{margin:0 0 16px;font-size:clamp(22px,3.2vw,28px);letter-spacing:-.035em}
.landing-spaces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.landing-spaces article{border:1px solid var(--line);border-radius:16px;padding:17px 18px;background:#fff}
.landing-spaces article:first-child{border-color:#cfc2ed;background:#f5f0ff}
.landing-spaces .space-icon{width:36px;height:36px}
.landing-spaces h3{margin:9px 0 3px;font-size:17px;letter-spacing:-.02em}
.landing-spaces p{margin:0;color:var(--subtle);font-size:14px}
.landing-footer{width:min(1120px,calc(100% - 56px));margin:32px auto 0;padding:16px 0;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);color:var(--subtle);font-size:13px}
@media(max-width:760px){
  .landing-hero{grid-template-columns:1fr;padding-top:36px}
  .landing-hero h1{max-width:15ch}
  .preview-metrics dd{font-size:clamp(16px,4.5vw,24px)}
  .landing-spaces{grid-template-columns:1fr;gap:9px}
  .landing-footer{width:calc(100% - 32px)}
}
@media(max-width:420px){.landing-nav-link{display:none}.landing-top{min-height:64px}}

.currency-examples{margin-top:16px}
.currency-examples>p{margin:0 0 8px;color:var(--subtle);font-size:12px;font-weight:700}
.currency-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:9px}
.currency-card{
  position:relative;
  isolation:isolate;
  display:grid;
  justify-items:start;
  gap:4px;
  min-width:0;
  padding:13px 10px 17px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  text-align:left;
  cursor:pointer;
  filter:drop-shadow(0 4px 5px #24194918);
}
.currency-card::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  border-radius:inherit;
  background:var(--card-bg);
  clip-path:polygon(0 0,100% 0,100% calc(100% - 4px),92% 100%,82% calc(100% - 6px),73% calc(100% - 2px),63% calc(100% - 7px),53% 100%,43% calc(100% - 4px),32% calc(100% - 1px),21% calc(100% - 6px),11% calc(100% - 2px),0 calc(100% - 5px));
}
.currency-card-income{
  --card-bg:#edf8f2;--icon-bg:#d5eee0;--icon-ink:#226047;
  margin-top:8px;
}
.currency-card-expenses{--card-bg:#f4effd;--icon-bg:#e7ddfa;--icon-ink:#52388c}
.currency-card-expenses::before{
  clip-path:polygon(0 5px,10% 1px,20% 7px,30% 2px,40% 5px,50% 0,61% 6px,71% 2px,82% 5px,91% 1px,100% 6px,100% 100%,0 100%);
}
.currency-card-savings{
  --card-bg:#eef5fc;--icon-bg:#dcebf9;--icon-ink:#275c85;
  margin-top:12px;
}
.currency-card:hover{filter:drop-shadow(0 5px 6px #24194932)}
.currency-card[aria-pressed="true"] strong{color:var(--icon-ink)}
.currency-card[aria-pressed="true"] .currency-card-icon{background:var(--icon-ink);color:#fff}
.currency-card:focus-visible{outline:2px solid var(--icon-ink);outline-offset:3px}
.currency-card-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--icon-bg);color:var(--icon-ink)}
.currency-card-icon svg{width:16px;height:16px}
.currency-card-label{color:var(--subtle);font-size:11px;line-height:1.2}
.currency-card strong{font-size:clamp(13px,1.35vw,18px);line-height:1.2;letter-spacing:-.025em;white-space:nowrap}
@media(max-width:420px){
  .currency-cards{grid-template-columns:1fr}
  .currency-card{grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:9px;margin-top:0}
}

.subscription-note{
  position:relative;
  isolation:isolate;
  width:min(100%,378px);
  margin:23px 0 0;
  padding:12px 15px 18px;
  filter:drop-shadow(0 5px 8px #4a36671a);
}
.subscription-note::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(132deg,#fff9e8,#fffdf5 75%);
  border-radius:10px 10px 0 0;
  clip-path:polygon(0 0,100% 0,100% 98%,96% 95%,91% 99%,86% 96%,80% 100%,74% 96%,68% 98%,63% 95%,57% 99%,51% 96%,45% 100%,39% 96%,33% 99%,27% 95%,21% 98%,15% 95%,10% 99%,5% 96%,0 99%);
}
.subscription-note-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  color:#70481e;
  font-size:11px;
  font-weight:750;
}
.subscription-note-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#f7e7b9}
.subscription-note-icon svg{width:14px;height:14px}
.subscription-note-due{margin-inline-start:auto;padding:2px 8px;border-radius:99px;background:#f7ebcb}
.subscription-note h2{margin:7px 0 3px;font-size:16px;line-height:1.25;letter-spacing:-.02em}
.subscription-note p{margin:0;color:#625341;font-size:13px;line-height:1.4}

.landing-stories{
  margin-top:clamp(30px,5vw,62px);
  padding:clamp(18px,3.2vw,36px);
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(130deg,#f2ecfc,#faf9fd 68%);
}
.landing-stories .eyebrow{margin-bottom:7px;text-transform:uppercase}
.landing-stories h2{margin:0;font-size:clamp(25px,3.5vw,38px);line-height:1.15;letter-spacing:-.045em}
.stories-intro{margin:8px 0 18px;color:var(--subtle);font-size:14px}
.stories-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.story-card{
  padding:16px 17px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff;
}
.story-location{
  display:inline-block;
  padding:3px 8px;
  border-radius:20px;
  background:#eee8fa;
  color:#52388c;
  font-size:11px;
  font-weight:750;
}
.story-card h3{margin:8px 0 4px;font-size:17px;line-height:1.25;letter-spacing:-.02em}
.story-card p{margin:0;max-width:72ch;color:var(--subtle);font-size:14px}
.story-card:last-child:nth-child(odd){grid-column:1 / -1}
@media(max-width:600px){.stories-grid{grid-template-columns:1fr}}
