/* Simpla utgiftskollen – the scroll page (/) only.
   Components are HTML recreations of the app's SwiftUI views (light mode). */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.motion-reduce { scroll-behavior: auto; }

/* Anchored sections and focused elements clear the fixed tab bar. */
@media (max-width: 1023px) { html { scroll-padding-top: 84px; } }
@media (min-width: 1024px) { html { scroll-padding-bottom: 96px; } }

.is-green  { color: var(--green-text); }
.is-orange { color: var(--orange-text); }
.is-red    { color: #D70015; }
.dotsep    { color: var(--text-3); }

/* ════════ Floating Liquid Glass tab bar (site navigation) ════════ */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}
.tabbar-glass,
.tab-plus {
  background: rgb(255 255 255 / .72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: var(--hair);
  box-shadow: 0 8px 30px rgb(0 0 0 / .12), 0 1px 3px rgb(0 0 0 / .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar-glass, .tab-plus { background: rgb(255 255 255 / .96); }
}
.tabbar-glass {
  position: relative;
  display: flex;
  padding: 5px;
  border-radius: 999px;
}
.tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 76px;
  height: 52px;
  border-radius: 999px;
  color: #1A1919;
  font: 600 11px/1 var(--font-text);
  letter-spacing: .01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .25s ease;
}
.tab[aria-current="true"] { color: var(--accent-text); }
.tab:focus-visible { outline-offset: -3px; }
.tab-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}
.tab-icon svg { width: 100%; height: 100%; }
.tab[aria-current="true"] .tab-icon svg { color: var(--accent); }
.tab-badge {
  position: absolute;
  top: -6px;
  right: -11px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #D70015;
  color: #fff;
  font: 700 11px/18px var(--font-text);
  text-align: center;
}
.tab-highlight {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--hl-w, 76px);
  border-radius: 999px;
  background: rgb(0 0 0 / .075);
  opacity: 0;
  transform: translateX(var(--hl-x, 0));
  transition: transform .5s cubic-bezier(.3, .8, .25, 1), width .5s cubic-bezier(.3, .8, .25, 1), opacity .3s ease;
}
.tabbar.has-active .tab-highlight { opacity: 1; }
.tab-plus {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: var(--accent);
  text-decoration: none;
}
.plus-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.plus-core svg { width: 20px; height: 20px; }
.plus-core::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: plus-pulse 2.2s ease-out 2 forwards;
}
@keyframes plus-pulse {
  from { transform: scale(1);   opacity: .5; }
  to   { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 1023px) {
  /* Top on phones/tablets so it never fights Safari's bottom toolbar. */
  .tabbar { top: max(10px, env(safe-area-inset-top)); bottom: auto; }
  .tab { width: 62px; height: 48px; }
  .tab-plus { width: 58px; height: 58px; }
}
@media (max-width: 479px) {
  .tab { width: 50px; height: 44px; }
  .tab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .tab-plus { width: 54px; height: 54px; }
  .plus-core { width: 38px; height: 38px; }
}
@media (max-width: 359px) {
  .tab { width: 46px; }
  .tabbar { gap: 6px; }
  .tab-plus { width: 50px; height: 50px; }
}
@media (min-width: 1024px) {
  body.home { padding-bottom: 96px; }
}

/* ════════ Phone frame (generic, never an Apple bezel) ════════ */
.phone {
  position: relative;
  width: var(--w, 300px);
  padding: calc(var(--w, 300px) * .03);
  border-radius: calc(var(--w, 300px) * .165);
  background: linear-gradient(150deg, #34343a, #0d0d10 45%, #1c1c20);
  box-shadow:
    inset 0 0 0 1.5px rgb(255 255 255 / .14),
    0 0 0 1px rgb(0 0 0 / .55),
    0 40px 70px -24px rgb(0 40 100 / .32),
    0 14px 30px rgb(0 0 0 / .12);
}
.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 780 / 1695;
  border-radius: calc(var(--w, 300px) * .135);
  background: #fff;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ════════ Hero ════════ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
.hero-copy { max-width: 620px; }
.hero-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 24px;
  border-radius: 22.37%;
  box-shadow: 0 18px 40px rgb(0 0 0 / .14), 0 2px 6px rgb(0 0 0 / .08);
}
.hero-eyebrow {
  margin-bottom: 10px;
  color: var(--accent-text);
  font: 600 15px/1.3 var(--font-text);
}
.hero-title {
  font: 800 clamp(46px, 7.4vw, 86px)/.98 var(--font-display);
  letter-spacing: -.045em;
}
.hero-lead {
  margin-top: 14px;
  font: 700 clamp(24px, 3.2vw, 36px)/1.15 var(--font-display);
  letter-spacing: -.025em;
  color: #86868B;
}
.w { display: inline-block; }
.hero-sub {
  margin: 16px auto 0;
  max-width: 30em;
  color: var(--text-2);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
}
.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.hero-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  background: #fff;
  border: var(--hair);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
  font: 600 14px/1.2 var(--font-text);
}
.hero-chips .chip svg { width: 16px; height: 16px; color: var(--accent); }
.hero-cta { margin-top: 30px; }
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 20px;
  border-radius: 999px;
  background: var(--accent-text);
  color: #fff;
  font: 600 16px/1.2 var(--font-text);
  box-shadow: 0 12px 26px rgb(0 98 204 / .28);
}
.soon-pill-lg { padding: 16px 30px 16px 24px; font-size: 18px; }
.soon-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.soon-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #fff;
  animation: dot-pulse 2.2s ease-out 2 forwards;
}
@keyframes dot-pulse {
  from { transform: scale(.55); opacity: .8; }
  to   { transform: scale(1.5);  opacity: 0; }
}
.soon-foot {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
}
.hero-phone { --w: min(76vw, 320px); }

@media (max-width: 1023px) {
  .hero { padding-top: 96px; }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    min-height: min(100svh, 980px);
    padding: 40px 0 60px;
    text-align: left;
  }
  .hero-icon { margin-left: 0; }
  .hero-sub { margin-left: 0; }
  .hero-chips { justify-content: flex-start; }
  .hero-phone { --w: min(360px, calc((100svh - 150px) * .45)); justify-self: end; margin-right: 24px; }
}

/* Intro: hidden only when JS runs, revealed by home.js (fail-safe after 1.2 s).
   The hero phone (LCP) is never hidden. */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.intro-ready):not(.motion-reduce) :is(.intro, .tabbar-glass, .tab-plus) {
    opacity: 0;
    animation: intro-failsafe .01s 1.2s forwards;
  }
}
@keyframes intro-failsafe { to { opacity: 1; } }

/* ════════ Tour: steps + sticky phone ════════ */
.tour {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.tour-steps { min-width: 0; }
.chapter { padding-top: 10vh; }
.chapter:first-child { padding-top: 14vh; }

.step {
  display: grid;
  gap: 26px 36px;
  padding: 5vh 0;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "phone" "demo" "note";
}
.step-copy  { grid-area: copy; }
.step-phone { grid-area: phone; justify-self: center; --w: min(66vw, 270px); }
.demo       { grid-area: demo; width: 100%; max-width: 440px; justify-self: center; }
.step-note  { grid-area: note; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--accent-text);
  font: 600 15px/1.2 var(--font-text);
}
.eyebrow svg { width: 20px; height: 20px; color: var(--accent); }
.step-copy h2 {
  margin-bottom: 18px;
  font: 800 clamp(36px, 4.6vw, 58px)/1.02 var(--font-display);
  letter-spacing: -.04em;
}
.step-copy h2 span { display: block; color: #86868B; }
.step-copy h3 {
  margin-bottom: 12px;
  font: 700 clamp(26px, 2.8vw, 34px)/1.1 var(--font-display);
  letter-spacing: -.028em;
}
.step-copy p {
  max-width: 31em;
  color: var(--text-2);
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
}
.step-copy p + p { margin-top: 10px; }
.step-copy p.small { color: var(--text-2); font-size: 14px; }
.step-note {
  display: flex;
  gap: 10px;
  max-width: 34em;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.5;
}
.step-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--accent); }

@media (min-width: 640px) {
  .step {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "copy copy" "phone demo" "note note";
    align-items: center;
  }
  .step-phone { --w: 230px; }
  .demo { justify-self: start; }
}

.tour-phone { display: none; }
@media (min-width: 1024px) {
  .tour {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(40px, 6vw, 96px);
  }
  html.has-tour .tour-phone {
    --w: min(340px, calc((100svh - 150px) * .45));
    display: block;
    position: sticky;
    top: calc(50svh - var(--w) * 1.049);
    align-self: start;
    margin: 12vh 24px 0 0;
  }
  html.has-tour .step {
    min-height: 92svh;
    align-content: center;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "demo" "note";
  }
  html.has-tour .step-phone { display: none; }
  html.has-tour .demo { justify-self: start; }
}
.tour-phone .phone-screen img.screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .5s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.tour-phone .phone-screen img.screen.is-active { opacity: 1; transform: none; }

/* ════════ Shared app components ════════ */
.card {
  background: #fff;
  border: var(--hair);
  border-radius: var(--r-card);
  padding: 16px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .03), 0 14px 34px rgb(15 30 60 / .06);
}
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-hero);
  border: 1px solid rgb(0 122 255 / .2);
  background:
    radial-gradient(170px 170px at calc(100% - 30px) -20px, rgb(0 122 255 / .12), rgb(0 122 255 / 0) 70%),
    linear-gradient(#fff, #fbfcfe);
  box-shadow: 0 10px 36px rgb(0 0 0 / .10);
}
.hc-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font: 600 11px/1.3 var(--font-text);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hc-eyebrow svg { width: 14px; height: 14px; }
.hc-sub { color: var(--text-2); font-size: 12.5px; }
.hc-total {
  margin: 12px 0 4px;
  font: 700 38px/1.05 var(--font-rounded);
  letter-spacing: -.01em;
}

.tile {
  --s: 42px;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  border-radius: calc(var(--s) * .286);
  color: var(--tint, var(--accent));
  background: #F2F2F7;
  background: color-mix(in srgb, var(--tint, var(--accent)) 18%, #fff);
}
.tile svg { width: 44%; height: 44%; }
.tile.t40 { --s: 40px; border-radius: 11px; }
.tile.t32 { --s: 32px; border-radius: 9px; background: color-mix(in srgb, var(--tint, var(--accent)) 16%, #fff); }
.tile.t28 { --s: 28px; border-radius: 8px; }

.bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--fill-8);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  width: max(6px, calc(var(--p, 0) * 100%));
  max-width: 100%;
  border-radius: inherit;
  background: var(--tint, var(--green));
  transform-origin: left center;
}
.bar-fill.is-orange { background: var(--orange); }
.bar-fill.is-red { background: var(--red); }
.bar-6 { height: 6px; }
.bar-soft { background: color-mix(in srgb, var(--tint) 18%, #fff); }

.capsule {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding: 10px;
  border-radius: 999px;
  font: 600 14px/1.2 var(--font-text);
}
.capsule-gray { background: var(--fill-7); }
.capsule-accent { background: var(--accent-text); color: #fff; }
.tap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background: rgb(255 255 255 / .5);
  transform: scale(0);
  pointer-events: none;
}
.chev { color: var(--text-3); }

.seg {
  --n: 2;
  --i: 0;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  padding: 3px;
  border-radius: 999px;
  background: #EEEEEF;
}
.seg-track { position: absolute; inset: 3px; pointer-events: none; }
.seg-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--i) * 100% / var(--n));
  width: calc(100% / var(--n));
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / .12), 0 0 0 .5px rgb(0 0 0 / .04);
}
.seg-item {
  position: relative;
  padding: 7px 12px;
  text-align: center;
  font: 500 14px/1.2 var(--font-text);
  white-space: nowrap;
}
.seg-end { --i: 1; width: 220px; margin: 0 auto; }
.seg-stats { --n: 4; margin: 12px 0; }
.demo-budget .seg { margin-bottom: 12px; }

/* ── Inbox ── */
.status-chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font: 600 13px/1.2 var(--font-text);
}
.inbox-list { display: grid; gap: 12px; margin-top: 12px; }
.inbox-card { overflow: hidden; }
.ic-head { display: flex; align-items: center; gap: 12px; }
.ic-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ic-title { font: 600 16px/1.25 var(--font-text); }
.ic-sub { color: var(--text-2); font-size: 12px; }
.ic-amount { font: 700 17px/1.2 var(--font-text); white-space: nowrap; }
.suggest {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--fill-5);
  font: 500 14px/1.25 var(--font-text);
}
.suggest svg { flex: none; width: 18px; height: 18px; }
.suggest span { flex: 1; min-width: 0; }
.suggest .chev { width: 14px; height: 14px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.handled { display: none; margin-top: 14px; }
.handled-label {
  margin: 0 0 6px 4px;
  color: var(--text-2);
  font: 600 12px/1.2 var(--font-text);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.handled-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #fff;
  border: var(--hair);
  font-size: 14px;
}
.check-dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.check-dot svg { width: 13px; height: 13px; }
.show-handled {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--text-2);
  font: 500 15px/1.2 var(--font-text);
}
.show-handled svg { width: 14px; height: 14px; }

/* ── Notification ── */
.lockscreen {
  padding: 26px 14px;
  border-radius: 30px;
  background:
    radial-gradient(120% 90% at 20% 0%, #74B0A8 0%, rgb(116 176 168 / 0) 60%),
    linear-gradient(160deg, #5C9F9A, #3E6F8E 55%, #2D3F68);
  box-shadow: 0 18px 40px rgb(20 50 80 / .22);
}
.notif,
.notif-actions {
  background: rgb(246 246 248 / .86);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 6px 20px rgb(0 0 0 / .14);
}
.notif {
  display: flex;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 22px;
}
.notif-icon { flex: none; width: 38px; height: 38px; border-radius: 22.37%; }
.notif-body { flex: 1; min-width: 0; }
.notif-head {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: 12px;
}
.notif-title { font: 600 15px/1.3 var(--font-text); }
.notif-text { font-size: 14px; line-height: 1.35; }
.notif-actions {
  display: grid;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 20px;
}
.notif-actions span { padding: 12px 16px; font: 500 15px/1.2 var(--font-text); }
.notif-actions span + span { border-top: var(--hair); }

/* ── Budget card ── */
.bc-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bc-big { font: 700 20px/1.2 var(--font-rounded); white-space: nowrap; }
.bc-right { text-align: right; }
.bc-cap { color: var(--text-2); font-size: 11px; line-height: 1.45; }
.budget-card > .bar { margin: 12px 0 6px; }
.bc-income {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-2);
  font-size: 11px;
}
.brows { list-style: none; }
.brow {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 7px 0;
}
.brow .tile { margin-top: 2px; }
.brow-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 500 14px/1.3 var(--font-text);
}
.brow-top .num { font-size: 15px; font-weight: 600; white-space: nowrap; }
.brow-main .bar { margin: 6px 0 4px; }
.brow-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 11px;
}
.brow-sub svg { flex: none; width: 11px; height: 11px; color: var(--text-3); }
.bc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 12px;
  border-top: var(--hair);
  font-size: 14px;
}
.bc-link-icon { width: 18px; height: 18px; color: var(--accent); }
.bc-link-name { flex: 1; color: var(--accent-text); }
.bc-link .num { font-weight: 600; }
.bc-link .chev { width: 12px; height: 12px; }

/* ── Återkommande & planerat ── */
.lc-title { font: 600 17px/1.3 var(--font-text); }
.lc-total {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 10px 0;
  border-top: var(--hair);
  border-bottom: var(--hair);
  font-size: 15px;
}
.lc-total .num { font-weight: 600; }
.lc-section {
  margin: 14px 0 2px;
  color: var(--text-2);
  font: 600 13px/1.2 var(--font-text);
}
.lrows { list-style: none; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.lrow-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font: 500 15px/1.3 var(--font-text);
}
.lrow-name small { color: var(--text-2); font-size: 12px; font-weight: 400; }
.lrow-amt { font: 600 15px/1.2 var(--font-text); white-space: nowrap; }
.kommande { position: relative; display: inline-block; color: var(--orange-text); }
.uline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform-origin: left center;
}

/* ── Bankkonto ── */
.math-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
}
.math-row .num { font: 600 17px/1.2 var(--font-rounded); white-space: nowrap; }
.math-start { margin-top: 6px; }
.math-start .num { font-size: 30px; font-weight: 700; }
.is-orange-row { color: var(--orange-text); }
.op { display: inline-block; width: 1.25em; color: var(--text-3); font-weight: 600; }
.is-orange-row .op { color: inherit; }
.math-rule { height: 1.5px; margin: 8px 0 4px; border-radius: 2px; background: var(--hairline); transform-origin: left center; }
.math-total { font-weight: 600; }
.math-total .num { font-size: 30px; font-weight: 700; color: var(--green-text); }

/* ── Kortavstämning ── */
.recon-period { margin-bottom: 4px; color: var(--text-2); font-size: 12px; }
.recon-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: var(--hair);
  font-size: 16px;
}
.recon-row span:first-child { color: var(--text-2); }
.recon-row .num { font-weight: 600; }
.recon-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}
.recon-title { color: var(--orange-text); font: 500 17px/1.2 var(--font-text); }
.warn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--orange-text);
  font: 700 19px/1.2 var(--font-rounded);
}
.warn-chip svg { width: 18px; height: 18px; color: var(--orange); }
.actions { display: grid; gap: 8px; }
.action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font: 500 15px/1.2 var(--font-text);
}
.action svg { flex: none; width: 18px; height: 18px; color: var(--accent); }

/* ── Utgifter list ── */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--fill-7);
  color: var(--text-2);
  font-size: 16px;
}
.search svg { width: 18px; height: 18px; color: var(--text); }
.chips {
  display: flex;
  gap: 8px;
  margin: 12px 0 14px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.demo .chip {
  position: relative;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--text-2);
  font: 600 13.5px/1.2 var(--font-text);
  white-space: nowrap;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.demo .chip.is-on {
  background: rgb(0 122 255 / .14);
  border-color: rgb(0 122 255 / .5);
  color: var(--accent-text);
}
.demo .chip svg { width: 15px; height: 15px; }
.demo .chip .tap { background: rgb(0 122 255 / .28); }
.list-banner {
  display: flex;
  gap: 8px;
  margin: 0 0 10px 4px;
  color: var(--text-2);
  font: 600 14px/1.2 var(--font-text);
}
.xrows { padding: 2px 16px; }
.xrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; overflow: hidden; }
.xrow + .xrow { border-top: var(--hair); }
.xr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xr-title { font: 500 17px/1.2 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xr-pm { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12.5px; }
.pm {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tint) 0 32%, color-mix(in srgb, var(--tint) 20%, #fff) 34%);
}
.xr-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.xr-amt { font: 600 17px/1.2 var(--font-text); white-space: nowrap; }
.xr-date { color: var(--text-2); font-size: 11px; }
.xrow .chev { flex: none; width: 13px; height: 13px; }

/* ── Widgets ── */
.wgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.wtile {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: var(--hair);
  box-shadow: 0 10px 24px rgb(15 30 60 / .05);
}
.wtile > :not(.tile):not(.wt-name) { grid-column: 1 / -1; }
.wt-name { font: 500 15px/1.2 var(--font-text); }
.wt-amt { margin-top: 10px; font: 700 22px/1.1 var(--font-rounded); white-space: nowrap; }
.wtile .bar { margin: 8px 0 5px; }
.wt-sub { color: var(--text-2); font-size: 11px; }

/* ── Statistik ── */
.cc-title { font: 600 17px/1.3 var(--font-text); }
.cc-sub { margin: 2px 0 14px; color: var(--text-2); font-size: 12px; }
.cc-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.hbars { list-style: none; display: grid; gap: 9px; }
.hbars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 4px;
  font-size: 13px;
}
.hb-name { display: flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); }
.hb-amt { font-weight: 600; white-space: nowrap; }
.hbars .bar { grid-column: 1 / -1; height: 6px; }

/* ── Resa ── */
.trip-when { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.trip-when svg { width: 16px; height: 16px; }
.trip-sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 10px 0 12px; }
.trip-total { font: 700 30px/1.1 var(--font-rounded); white-space: nowrap; }
.trip-left { font: 700 22px/1.1 var(--font-rounded); white-space: nowrap; }
.trip-meta { margin-top: 7px; color: var(--text-2); font-size: 12.5px; }
.trip-rows { list-style: none; margin-top: 12px; border-top: var(--hair); }
.trip-rows li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font: 500 15px/1.25 var(--font-text);
}
.trip-rows li + li { border-top: var(--hair); }
.trip-rows li > span:nth-child(2) { flex: 1; min-width: 0; }
.trip-rows small { display: block; color: var(--text-2); font-size: 11.5px; font-weight: 400; }
.trip-rows .num { font-weight: 600; white-space: nowrap; }

/* ── Andras andel ── */
.split {
  display: flex;
  gap: 3px;
  height: 22px;
  margin: 18px 0 10px;
}
.split-a { flex: 445; border-radius: 999px 4px 4px 999px; background: var(--accent); }
.split-b {
  position: relative;
  flex: 405;
  overflow: hidden;
  border-radius: 4px 999px 999px 4px;
  background: repeating-linear-gradient(-45deg, #D8D8DD 0 6px, #EAEAEF 6px 12px);
}
.split-cover {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
}
.split-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #48484A;
  font: 700 10.5px/1 var(--font-text);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.split-legend { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 14px; }
.split-legend b { color: var(--text); font-weight: 700; }
.split-legend span:first-child b { color: var(--accent-text); }
.split-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: var(--hair);
  color: var(--text-2);
  font-size: 13px;
}
.split-foot b { color: var(--text); font-weight: 600; }

/* ── Dela ── */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; }
.mini-phone {
  padding: 6px;
  border-radius: 28px;
  background: linear-gradient(150deg, #34343a, #0d0d10 45%, #1c1c20);
  box-shadow: 0 18px 36px -12px rgb(0 40 100 / .3), 0 0 0 1px rgb(0 0 0 / .5);
}
.mini-screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  padding: 16px 9px 12px;
  border-radius: 22px;
  background: var(--grouped);
}
.mini-head { display: flex; align-items: center; gap: 6px; margin: 0 2px 2px; font: 600 13px/1.2 var(--font-text); }
.avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--tint) 45%, #fff);
  background: color-mix(in srgb, var(--tint) 16%, #fff);
  color: var(--tint);
  font: 700 11px/1 var(--font-text);
}
.mini-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 2px 7px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  font-size: 11px;
}
.mr-main { min-width: 0; display: flex; flex-direction: column; }
.mini-row b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.mini-row > .num { grid-column: 2; font-size: 13px; }
.mini-row small { color: var(--text-2); font-size: 10px; line-height: 1.25; }
.skel { display: block; height: 30px; border-radius: 12px; background: #fff; opacity: .75; }
.skel-short { width: 62%; }
.arc { width: 100%; height: 44px; overflow: visible; }
.arc path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* ════════ Integritet ════════ */
.privacy {
  max-width: 1000px;
  margin: 16vh auto 0;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  text-align: center;
}
.lock-draw { width: 72px; height: 72px; margin: 0 auto 20px; }
.lock-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.privacy h2,
.download h2 {
  font: 800 clamp(36px, 4.6vw, 58px)/1.02 var(--font-display);
  letter-spacing: -.04em;
}
.privacy h2 span,
.download h2 span { color: #86868B; }
.privacy-lead,
.download-lead {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}
.privacy-tiles {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 34px;
  text-align: left;
}
.ptile { display: flex; align-items: center; gap: 14px; padding: 18px; font: 600 16px/1.3 var(--font-text); }
@media (min-width: 760px) { .privacy-tiles { grid-template-columns: repeat(3, 1fr); } }
.privacy-link { margin-top: 24px; font-size: 16px; }

/* ════════ Ladda ner ════════ */
.download {
  max-width: 760px;
  margin: 18vh auto 0;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  text-align: center;
}
.download-icon {
  width: 116px;
  height: 116px;
  margin: 0 auto 26px;
  border-radius: 22.37%;
  box-shadow: 0 20px 44px rgb(0 0 0 / .15), 0 2px 6px rgb(0 0 0 / .08);
}
.download .soon-pill { margin-top: 30px; }
.download-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 30px;
}
.download-links a {
  color: var(--accent-text);
  font-weight: 500;
  text-decoration: none;
}
.download-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { margin-top: 14vh; }

/* ════════ Reduced motion ════════ */
@media (prefers-reduced-motion: reduce) {
  .plus-core::before, .soon-dot::after { animation: none; opacity: 0; }
  .tab-highlight, .tab, .demo .chip, .tour-phone .phone-screen img.screen { transition: none; }
  .tour-phone .phone-screen img.screen { transform: none; }
}
html.motion-reduce .plus-core::before,
html.motion-reduce .soon-dot::after { animation: none; opacity: 0; }
html.motion-reduce .tab-highlight,
html.motion-reduce .tour-phone .phone-screen img.screen { transition: none; }
html.motion-reduce .tour-phone .phone-screen img.screen { transform: none; }
