/* MindMyCosts website. Colours follow the app icon: soft greys, slate lids, blue iris. */

:root {
  --bg: #F6F7FA;
  --bg-alt: #EDF0F5;
  --card: #FFFFFF;
  --ink: #1F2430;
  --ink-2: #4B5263;
  --ink-3: #6B7280;
  --line: #E1E6EE;
  --accent: #1D4ED8;
  --accent-2: #3B82F6;
  --accent-soft: #E0EAFF;
  /* accent inside the phone mockups (always a light app screen) */
  --app-accent: #1D4ED8;
  --app-accent-2: #3B82F6;
  --app-accent-soft: #E0EAFF;
  --app-accent-ink: #1E3A8A;
  --app-accent-light: #BFD3FF;
  --ok: #15803D;
  --ok-soft: #DCFCE7;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --due: #B91C1C;
  --due-soft: #FEE2E2;
  --shadow: 0 1px 2px rgba(31, 36, 48, .06), 0 8px 24px rgba(31, 36, 48, .08);
  --shadow-lg: 0 30px 60px -20px rgba(31, 36, 48, .35), 0 12px 24px -12px rgba(31, 36, 48, .25);
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171F;
    --bg-alt: #1A1E28;
    --card: #20252F;
    --ink: #EEF1F6;
    --ink-2: #C3C9D4;
    --ink-3: #9AA2B1;
    --line: #2E3441;
    --accent: #93B4FF;
    --accent-2: #BFD3FF;
    --accent-soft: #1B2744;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 100; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand em { font-style: normal; color: var(--accent); }
.brand img { border-radius: 10px; }
.site-header .brand { gap: 14px; font-size: 1.65rem; }
.site-header .brand img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 2px 8px rgba(31, 36, 48, .12); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  background: var(--ink); color: var(--bg);
  border: 1px solid transparent;
}
.nav a.btn { color: var(--bg); }
.btn-small { padding: 9px 16px; font-size: .9rem; border-radius: 11px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-store { line-height: 1.1; padding: 10px 22px 10px 18px; }
.btn-store small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; margin-bottom: 18px; padding: 7px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-weight: 800; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
}
.accent { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--ink-3); font-size: .92rem; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }

.hero-visual { position: relative; display: flex; justify-content: flex-end; padding: 20px 0 40px; }
.notif {
  position: absolute; display: flex; gap: 10px; align-items: flex-start;
  width: 255px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  font-size: .8rem; line-height: 1.35; color: var(--ink);
}
.notif img { border-radius: 7px; flex: none; }
.notif b { display: block; font-size: .84rem; }
.notif span { color: var(--ink-3); }
.notif-1 { top: 90px; left: -24px; }
.notif-2 { top: 290px; left: 8px; }
.notif-3 { top: 470px; left: -24px; }
@media (max-width: 960px) and (min-width: 761px) {
  .hero-visual { justify-content: center; }
  .notif-1, .notif-3 { left: 0; }
  .notif-2 { left: auto; right: 0; }
}

/* ---------- phone mockups ---------- */
.phone {
  width: 300px; aspect-ratio: 300 / 620; flex: none;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(145deg, #3A3F4B, #111318);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #565C6A;
  position: relative;
}
.phone::before { /* camera punch-hole */
  content: ""; position: absolute; top: 22px; left: 50%; width: 12px; height: 12px;
  margin-left: -6px; border-radius: 50%; background: #0B0C10; z-index: 2;
}
.screen {
  height: 100%; border-radius: 37px; overflow: hidden;
  background: #F7F8FB; color: #1F2430; font-size: 12px; line-height: 1.35;
  padding: 44px 14px 14px;
}
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.app-title { font-weight: 800; font-size: 18px; letter-spacing: -.02em; flex: 1; }
.app-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #D5DCE6, #A6B0C0); }
.back { font-size: 22px; line-height: 1; color: #4B5263; }

.summary {
  display: grid; gap: 2px; padding: 14px; border-radius: 16px; margin-bottom: 12px;
  background: linear-gradient(135deg, #2B3140, #1F2430); color: #fff;
}
.summary-label { font-size: 11px; opacity: .75; }
.summary-total { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.summary-sub { font-size: 10.5px; color: var(--app-accent-light); }

.cost-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.cost-list li {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 9px; align-items: center;
  background: #fff; border-radius: 13px; padding: 8px 10px; box-shadow: 0 1px 2px rgba(31, 36, 48, .06);
}
.cost-list b { display: block; font-size: 12.5px; }
.cost-list em { font-style: normal; font-weight: 700; font-size: 12.5px; }
.ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-style: normal; font-size: 14px; color: #fff; font-weight: 700;
}
.ico-energy { background: linear-gradient(135deg, #FBBF24, #D97706); }
.ico-wifi { background: linear-gradient(135deg, #38BDF8, #0369A1); }
.ico-tv { background: linear-gradient(135deg, #F87171, #B91C1C); font-size: 11px; }
.ico-star { background: linear-gradient(135deg, #818CF8, #3730A3); }
.ico-car { background: linear-gradient(135deg, #94A3B8, #475569); font-size: 11px; }
.ico-gym { background: linear-gradient(135deg, #34D399, #047857); font-size: 10px; }

.chip {
  display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: 999px;
  font-size: 9.5px; font-weight: 600; background: #EEF1F6; color: #4B5263;
}
.chip.ok { background: #DCFCE7; color: #15803D; }
.chip.warn { background: #FEF3C7; color: #B45309; }
.chip.due { background: #FEE2E2; color: #B91C1C; }

.phone-sm { width: 250px; }
.phone-sm .screen { font-size: 11px; padding-top: 40px; }

/* timeline */
.timeline { display: grid; gap: 6px; }
.t-day { margin: 6px 0 0; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--app-accent); }
.t-item {
  display: grid; grid-template-columns: 28px 1fr 8px; gap: 8px; align-items: center;
  background: #fff; border-radius: 12px; padding: 7px 9px; box-shadow: 0 1px 2px rgba(31, 36, 48, .06);
}
.t-item .ico { width: 28px; height: 28px; font-size: 12px; }
.t-item b { display: block; font-size: 11.5px; }
.t-item span { color: #6B7280; font-size: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #CBD2DC; }
.dot.due { background: #EF4444; }
.dot.warn { background: #F59E0B; }

/* detail */
.detail-head { display: grid; gap: 6px; justify-items: start; margin-bottom: 12px; }
.detail-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.detail-price small { font-size: 12px; font-weight: 500; color: #6B7280; margin-left: 3px; }
.chart { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(31, 36, 48, .06); margin-bottom: 10px; }
.chart-title { margin: 0 0 8px; font-weight: 700; font-size: 11px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.b { flex: 1; border-radius: 5px 5px 2px 2px; background: #D5DCE6; }
.b.hi { background: linear-gradient(180deg, var(--app-accent-2), var(--app-accent)); }
.h4 { height: 50%; } .h5 { height: 60%; } .h6 { height: 70%; } .h7 { height: 82%; } .h8 { height: 100%; }
.bar-labels { display: flex; justify-content: space-between; color: #9AA2B1; font-size: 9.5px; margin-top: 4px; }
.payments { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(31, 36, 48, .06); }
.payments li { display: flex; justify-content: space-between; padding: 8px 12px; border-top: 1px solid #EEF1F6; }
.payments li:first-child { border-top: 0; }
.payments span { color: #6B7280; }

/* settings */
.settings { display: grid; gap: 8px; }
.s-label { margin: 6px 0 0; font-weight: 700; font-size: 11px; color: #4B5263; }
.pills { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { padding: 5px 9px; border-radius: 999px; background: #fff; border: 1px solid #E1E6EE; font-size: 10.5px; font-weight: 600; color: #4B5263; }
.pill.on { background: #1F2430; border-color: #1F2430; color: #fff; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 9px 11px; box-shadow: 0 1px 2px rgba(31, 36, 48, .06); font-weight: 600; }
.toggle { width: 30px; height: 18px; border-radius: 999px; background: #CBD2DC; position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.toggle.on { background: var(--app-accent); }
.toggle.on::after { left: 14px; }
.s-note { margin-top: 4px; padding: 9px 11px; border-radius: 12px; background: var(--app-accent-soft); color: var(--app-accent-ink); font-size: 10px; }

/* lock screen */
.lock .screen {
  background: radial-gradient(120% 80% at 20% 0%, #5B6B86 0%, #2A3245 45%, #141822 100%);
  color: #fff; text-align: center;
}
.lock-time { font-size: 52px; font-weight: 300; letter-spacing: -.02em; margin-top: 18px; }
.lock-date { font-size: 12px; opacity: .85; margin-bottom: 26px; }
.lock-notifs { display: grid; gap: 7px; text-align: left; }
.ln {
  display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); font-size: 10px;
}
.ln img { border-radius: 6px; flex: none; }
.ln b { display: block; font-size: 10.5px; }
.ln span { opacity: .8; }

/* ---------- category band ---------- */
.band { padding: 28px 0 8px; }
.band-title { text-align: center; color: var(--ink-3); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cats li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .92rem; color: var(--ink-2); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head p:last-child { color: var(--ink-2); font-size: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature p { color: var(--ink-2); margin: 0; }
.f-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); margin-bottom: 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); }
.steps p { color: var(--ink-2); margin: 0; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 16px; }

.tour { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; justify-items: center; }
.tour figure { margin: 0; display: grid; justify-items: center; gap: 18px; }
.tour figcaption { text-align: center; color: var(--ink-2); font-size: .95rem; max-width: 250px; }
.tour figcaption b { display: block; color: var(--ink); font-size: 1.05rem; }

.privacy { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.privacy p { color: var(--ink-2); font-size: 1.08rem; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; color: var(--ink-2); }
.privacy-list b { display: block; color: var(--ink); }
.privacy-list b::before { content: "✓ "; color: var(--ok); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-2); padding-bottom: 6px; }

.final-cta { padding: 96px 0; text-align: center; background: linear-gradient(180deg, var(--bg), var(--bg-alt)); }
.final-inner { display: grid; justify-items: center; }
.final-inner img { border-radius: 22px; box-shadow: var(--shadow-lg); margin-bottom: 24px; }
.final-inner p { color: var(--ink-2); font-size: 1.1rem; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-3); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; }
.site-footer .brand { font-size: 1rem; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--ink-3); }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found img { margin: 0 auto 24px; border-radius: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tour { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .header-inner { height: 72px; }
  .site-header .brand { font-size: 1.4rem; gap: 11px; }
  .site-header .brand img { width: 46px; height: 46px; border-radius: 12px; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { justify-content: center; margin-top: 12px; border: 0; }
  .notif { position: relative; inset: auto; width: 100%; max-width: 330px; margin: 0 auto; }
  .hero-visual { flex-direction: column; align-items: center; gap: 12px; }
  .notif-1 { order: -1; }
  .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .tour { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Legal pages: the header only has a back link, keep it visible on mobile. */
@media (max-width: 760px) {
  .nav.nav-plain { display: flex; position: static; flex-direction: row; padding: 0; background: none; border: 0; }
  .nav.nav-plain a { border: 0; padding: 0; }
}

.pill-add { border-style: dashed; color: #6B7280; }
.toggle-row .value { color: #6B7280; font-weight: 600; }
