/* Stash site. Tokens follow the app's Theme.swift. Bricolage Grotesque is under the SIL Open Font License. */
@font-face { font-family: "Bricolage Display"; src: url("/stash-app/fonts/Bricolage-Display.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/stash-app/fonts/Bricolage-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("/stash-app/fonts/Bricolage-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FBF7EF; --card: #FFFFFF; --ink: #2A1F2D; --muted: #6A5E68; --rule: #EADFCF;
  --blue: #3255A4; --blue-deep: #2C4A94; --sun: #FFB511; --cream: #FBF7EF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1C151E; --card: #261D29; --ink: #F4ECDA; --muted: #B9ACB6; --rule: #43354A; --blue: #7D9BE8; color-scheme: dark; }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Bricolage", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem max(1.25rem, env(safe-area-inset-left)) 4rem; }
header.site { display: flex; align-items: center; gap: .75rem; margin-bottom: 2.5rem; }
header.site img { width: 44px; height: 33px; border-radius: 8px; }
header.site a { font: 700 1.25rem "Bricolage", sans-serif; color: var(--ink); text-decoration: none; }
nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current] { color: var(--ink); }
h1, h2 { font-family: "Bricolage Display", "Bricolage", sans-serif; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 1rem; }
h2 { font-size: 1.45rem; margin: 2.4rem 0 .6rem; }
p, li { max-width: 65ch; }
ul { padding-left: 1.2rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.date { color: var(--muted); font-size: .95rem; }
footer { border-top: 1px solid var(--rule); margin-top: 3.5rem; padding-top: 1.25rem; color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 1rem; }
footer a { color: var(--muted); }

/* Home */
.hero { background: linear-gradient(#4467BA, #2C4A94); color: var(--cream); }
.hero .wrap { padding-bottom: 3.5rem; }
.hero header.site a, .hero nav a { color: var(--cream); }
.hero nav a { opacity: .8; }
.hero h1 { color: var(--cream); max-width: 14ch; }
.hero .lede { color: #DCE3F5; }
.hero img.art { width: 100%; border-radius: 18px; margin-top: 1.5rem; display: block; }
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 1rem; }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 1.1rem 1.2rem; }
.step b { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.step span { color: var(--muted); font-size: .97rem; }

/* Stash: a square icon, and a plan list on the home page. */
header.site img { width: 36px; height: 36px; border-radius: 9px; }
.hero img.mark { width: 96px; height: 96px; border-radius: 22px; display: block; margin-bottom: 1.25rem; box-shadow: 0 8px 24px rgb(0 0 0 / .18); }
.plans { list-style: none; padding: 0; display: grid; gap: .5rem; }
.plans li { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: .7rem 1rem; display: flex; justify-content: space-between; gap: 1rem; }
.plans li span { color: var(--muted); }

/* Leaving YNAB: the export guide. Drawn phones with made-up content; the yellow ring is where to tap. */
h3 { font-size: 1.1rem; margin: 1.8rem 0 .4rem; }
.guide { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); counter-reset: guide; }
.guide li { counter-increment: guide; display: flex; flex-direction: column; gap: .75rem; max-width: none; }
.guide-text b { display: block; font-size: 1rem; }
.guide-text b::before { content: counter(guide) ". "; }
.guide-text span { color: var(--muted); font-size: .93rem; line-height: 1.5; display: block; }
.phone { --ph-bg: #FFFFFF; --ph-ink: #1F1B24; --ph-faint: #E7E3EA; --ph-navy: #1F2366;
  position: relative; aspect-ratio: 9 / 17; border-radius: 22px; border: 5px solid #2A1F2D; background: var(--ph-bg); color: var(--ph-ink);
  overflow: hidden; font: 600 10.5px/1.3 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; box-shadow: 0 10px 24px rgb(42 31 45 / .14); }
@media (prefers-color-scheme: dark) { .phone { border-color: #43354A; box-shadow: none; } }
.phone .hot { outline: 2.5px solid var(--sun); outline-offset: 2px; border-radius: 8px; box-shadow: 0 0 0 6px rgb(255 181 17 / .25); }
.ph-page { padding: 18% 12% 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.ph-page.dim { opacity: .35; }
.ph-logo { font: 800 17px/1 -apple-system, sans-serif; color: var(--ph-navy); margin-bottom: 8px; }
.ph-line { height: 7px; border-radius: 4px; background: var(--ph-faint); }
.w80 { width: 80%; } .w60 { width: 60%; }
.ph-btn { margin-top: 10px; background: #111; color: #fff; border-radius: 7px; padding: 6px 10px; font-size: 9.5px; }
.ph-bar { position: absolute; left: 6px; right: 6px; bottom: 9px; display: flex; gap: 5px; align-items: center; }
.ph-round { width: 24px; height: 24px; flex: none; border-radius: 50%; background: #F1EFF3; display: grid; place-items: center; font-size: 12px; }
.ph-url { flex: 1; height: 24px; border-radius: 12px; background: #F1EFF3; display: flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 9.5px; white-space: nowrap; overflow: hidden; }
.ph-url i { font-style: normal; font-size: 12px; }
.ph-url .hot-dot { outline: 2.5px solid var(--sun); outline-offset: 2px; border-radius: 50%; padding: 0 3px; box-shadow: 0 0 0 6px rgb(255 181 17 / .25); }
.ph-menu { position: absolute; left: 10%; right: 10%; bottom: 44px; background: #F7F6F9; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
.ph-menu span { padding: 6px 7px; }
.ph-menu span.hot { background: #E6ECFA; }
.ph-app { position: absolute; inset: 0; display: flex; }
.ph-side { width: 62%; background: var(--ph-navy); color: #fff; padding: 22% 6px 0; display: flex; flex-direction: column; gap: 6px; }
.ph-plan { padding: 4px 5px; }
.ph-plan b { display: block; font-size: 11px; }
.ph-plan small { display: block; font-weight: 400; font-size: 8px; opacity: .7; }
.ph-nav { padding: 5px; border-radius: 6px; font-size: 10px; }
.ph-nav.on { background: #3A40A0; }
.ph-acct { height: 6px; margin: 4px 5px 0; border-radius: 3px; background: rgb(255 255 255 / .18); }
.ph-main { flex: 1; padding: 22% 6px 0; display: flex; flex-direction: column; gap: 9px; }
.ph-main b { font-size: 11px; }
.ph-row { height: 6px; border-radius: 3px; background: var(--ph-faint); }
.ph-drop { position: absolute; top: 30%; left: 3%; right: 12%; background: #fff; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 6px 20px rgb(0 0 0 / .3); }
.ph-drop span { padding: 4px 6px; font-weight: 500; }
.ph-drop small { padding: 6px 6px 2px; color: #7A7480; font-size: 8.5px; border-top: 1px solid var(--ph-faint); margin-top: 3px; }
.ph-drop span.hot { background: #F3F1EC; }
.guide-text a { overflow-wrap: anywhere; }
