:root {
  --blue: #2b31f0;
  --blue-soft: #b5c5ff;
  --peri: #5e6bff;
  --green: #00d460;
  --green-pill: #adffb0;
  --green-deep: #00913f;
  --orange: #ff8133;
  --ink: #141414;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --card: #f3f3f4;
  --shadow-phone: 0 26px 60px rgba(20, 20, 20, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fafafa;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  transition: background .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.nav__inner { max-width: 980px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { flex-shrink: 0; }
.nav__logo img { height: 26px; width: auto; }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__link { font-weight: 600; font-size: 15px; color: var(--ink); white-space: nowrap; }
.lang__btn { white-space: nowrap; }
.nav__link:hover { opacity: .7; }

.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0;
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; padding: 4px;
}
.lang__icon { font-size: 20px; line-height: 1; font-variation-settings: 'opsz' 20, 'wght' 400, 'FILL' 0, 'GRAD' 0; }
.lang__chev { transition: transform .2s ease; }
.lang.is-open .lang__chev { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 10px); list-style: none; background: #fff;
  border: 1px solid #ededed; border-radius: 14px; box-shadow: 0 18px 50px rgba(20, 20, 20, .14);
  padding: 6px; min-width: 170px; max-height: calc(100vh - 90px); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu li { padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.lang__menu li:hover { background: #fafafa; color: var(--ink); }
.lang__menu li.is-active { color: var(--blue); background: #f0f1ff; }

/* ---------- Hero ---------- */
.hero {
  margin-top: -78px; padding: 120px 20px 0; text-align: center;
  background: linear-gradient(180deg, #B5C5FF 0%, #ADFFB0 100%);
}
.hero__inner { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero__title { width: 100%; max-width: 600px; height: auto; }
.stores { display: flex; gap: 8px; justify-content: center; margin: 30px 0 6px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; transition: transform .18s ease, opacity .18s ease;
}
.store:hover { transform: translateY(-2px); opacity: .92; }
.store img { width: auto; display: block; }
.store--ios img { height: 48px; }
.store--android img { height: 68px; }
.hero__art { width: 100%; max-width: 760px; height: auto; margin-top: 18px; }

/* ---------- Stack wrapper ---------- */
.stack { max-width: 980px; margin: 0 auto; padding: 8px 16px 40px; }

/* ---------- 3 feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 8px; }
.fcard { background: #fff; border-radius: 22px; padding: 30px 28px; }
.fcard__icon {
  width: 80px; height: 80px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 18px;
}
.fcard__icon img { width: 100%; height: 100%; object-fit: contain; }
.fcard p { font-size: 18px; font-weight: 500; line-height: 1.3; max-width: 230px; }

/* ---------- Section divider headings ---------- */
.divider {
  text-align: center; padding: 64px 0 44px; font-size: clamp(36px, 6.4vw, 70px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.dw { display: inline-block; }
.dw--blue { color: var(--blue); }
.dw--green { color: var(--green); }
.divider__img { max-width: 900px; width: 100%; height: auto; margin: 0 auto; }

/* ---------- Colored panels ---------- */
.panel {
  position: relative; border-radius: 40px; padding: 64px 32px 0; margin: 16px 0;
  text-align: center; overflow: hidden;
}
.panel--blue { background: var(--blue); color: #fff; }
.panel--green { background: var(--green); color: #fff; }
.panel--dark { background: #2c2c2e; color: #fff; }
.flip--coffee { background: var(--orange); color: #fff; height: 630px; display: flex; flex-direction: column; align-items: center; }
.flip--coffee.is-b { background: #41c45e; }
.flip--split { background: var(--peri); color: #fff; padding-bottom: 64px; }
.flip--split.is-b { background: #f4c03d; }

.panel__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; }
.panel--blue .hl { color: var(--blue-soft); }
.panel--green .hl { color: var(--green-deep); }
.panel--dark .hl { color: var(--green); }
.panel__tag { font-size: clamp(17px, 2vw, 21px); font-weight: 400; margin-top: 12px; opacity: .96; }
.panel__sub { font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; margin-top: 8px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Flip panels (interactive toggles) ---------- */
.flip__view { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }
.flip__view--b { display: none; }
.flip.is-b .flip__view--a { display: none; }
.flip.is-b .flip__view--b { display: flex; }
.flip--coffee .flip__head { color: var(--ink); }
.flip--coffee .flip__subhead { color: var(--ink); }
.flip--coffee.is-b .flip__subhead { color: #fff; }
.mascot { width: 100%; max-width: 240px; height: auto; margin-top: auto; }

.flip__title--b { display: none; }
.flip.is-b .flip__title--a { display: none; }
.flip.is-b .flip__title--b { display: block; }
.flip--split .panel__title { color: #fff; }
.flip--split.is-b .panel__title { color: var(--ink); }
.amt--b { display: none; }
.flip.is-b .amt--a { display: none; }
.flip.is-b .amt--b { display: inline; }
.avatar--b { display: none; }
.flip.is-b .avatar--a { display: none; }
.flip.is-b .avatar--b { display: block; }
.flip--split .amt { color: #fff; }
.flip--split.is-b .amt { color: #6e5a18; }

/* phone inside panels */
.phone { display: flex; justify-content: center; margin-top: 40px; }
.phone img { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(var(--shadow-phone)); }
.panel--blue .phone, .panel--green .phone, .panel--dark .phone { margin-bottom: -8px; }

/* toggle (Expense/Income, Equally/Custom) */
.toggle {
  display: inline-flex; gap: 4px; background: rgba(0, 0, 0, .3); border-radius: 999px;
  height: 60px; padding: 5px; margin-bottom: 24px; transition: background .25s ease;
}
.toggle__opt { display: inline-flex; align-items: center; justify-content: center; border: 0; font: inherit; cursor: pointer; background: transparent; padding: 9px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #fff; transition: background .2s ease, color .2s ease; }
.toggle__opt.is-active { background: #fff; color: var(--ink); }

/* movie/dinner split */
.splitrow { position: relative; z-index: 1; display: flex; gap: 32px; justify-content: center; margin-top: 40px; }
.splitrow__person { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.avatar { width: auto; height: 86px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18)); }
.amt { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }

/* decorative background props (popcorn / taco strips) */
.flip__decor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat; background-position: center top; background-size: 100% auto;
}
.flip__decor--a { background-image: url("assets/bg_popcorn.png"); }
.flip__decor--b { background-image: url("assets/bg_taco.png"); display: none; }
.flip.is-b .flip__decor--a { display: none; }
.flip.is-b .flip__decor--b { display: block; }
.flip--split .toggle, .flip--split .panel__title { position: relative; z-index: 1; }

/* ---------- Two-column white cards ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.duo__card { background: var(--card); border-radius: 40px; padding: 48px 32px 0; text-align: center; overflow: hidden; }
.duo__text { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; line-height: 1.3; max-width: 380px; margin: 0 auto; letter-spacing: -.01em; }
.duo__text .muted { color: var(--ink-2); font-weight: 400; }
.duo__text .accent-green { color: var(--green); }
.duo__card .phone { margin-top: 36px; margin-bottom: -6px; }
.duo__card .phone img { max-width: 300px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 60px 20px 48px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.footer__links { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { color: var(--ink-3); font-size: 13px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Pricing page ---------- */
.pricing {
  padding: 24px 0 56px;
  background: radial-gradient(1100px 420px at 50% -8%, rgba(94, 107, 255, .07), transparent 70%);
}
.pricing__title {
  text-align: center; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.05; padding: 48px 0 56px;
}
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pcard {
  background: #fff; border: 1px solid #ececec; border-radius: 26px;
  padding: 34px 32px 38px; display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(20, 20, 20, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pcard:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(20, 20, 20, .13); border-color: #000000; }
.pcard__tier { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.pcard__price { font-size: clamp(36px, 4vw, 50px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 26px; }
.pcard__feats {
  list-style: none; display: flex; flex-direction: column; gap: 20px;
  border-top: 1px solid #f0f0f0; padding-top: 26px;
}
.pfeat { display: flex; align-items: flex-start; gap: 13px; }
.pfeat__icon {
  flex: none; width: 26px; height: 26px; padding: 5px; margin-top: -1px;
  border-radius: 50%; background: rgba(43, 49, 240, .12); color: var(--blue);
}
.pfeat--off .pfeat__icon { background: rgba(20, 20, 20, .06); color: var(--ink-3); }
.pfeat__text { font-size: 16px; font-weight: 400; line-height: 1.45; color: var(--ink); }
.pfeat__hl { color: var(--blue); font-weight: 700; }
.pfeat--off .pfeat__text { color: var(--ink-3); }

/* ---------- Legal / content pages ---------- */
.legal {
  max-width: 760px; margin: 0 auto; padding: 24px 24px 72px;
}
[data-lang-block][hidden] { display: none; }
.legal__title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 28px 0 6px; }
.legal__updated { color: var(--ink-3); font-size: 14px; font-weight: 600; margin-bottom: 30px; }
.legal__lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 28px; }
.legal h2 { font-size: clamp(19px, 2.4vw, 22px); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; margin: 38px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; color: var(--ink); }
.legal p { font-size: 16px; line-height: 1.72; color: var(--ink-2); margin-bottom: 12px; }
.legal ul, .legal ol { margin: 8px 0 16px; padding-left: 22px; }
.legal ul { list-style: none; padding-left: 20px; }
.legal ul li { position: relative; padding-left: 18px; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.legal ol { list-style: decimal; }
.legal li { font-size: 16px; line-height: 1.72; color: var(--ink-2); margin-bottom: 8px; }
.legal a { color: var(--blue); font-weight: 600; word-break: break-word; }
.legal a:hover { text-decoration: underline; }
.legal__note {
  margin: 24px 0; padding: 18px 22px; background: #f0f1ff;
  border: 1px solid #e0e3ff; border-radius: 16px;
}
.legal__note h2 { margin: 0 0 8px; font-size: 17px; }
.legal__note p { margin: 0; color: var(--ink-2); }
.legal__copy { margin-top: 44px; padding-top: 22px; border-top: 1px solid #ececec; color: var(--ink-3); font-size: 13px; }

/* ---------- Support / contact form ---------- */
.support {
  padding: 24px 0 72px;
  background: radial-gradient(1100px 420px at 50% -8%, rgba(94, 107, 255, .07), transparent 70%);
}
.support__inner { max-width: 560px; margin: 0 auto; padding: 0 24px; }
.cform { display: flex; flex-direction: column; gap: 18px; }
.cform__field { display: flex; flex-direction: column; gap: 8px; }
.cform__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cform input, .cform textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #e3e3e6; border-radius: 14px; padding: 14px 16px;
  width: 100%; transition: border-color .18s ease, box-shadow .18s ease;
}
.cform textarea { resize: vertical; min-height: 140px; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--ink-3); }
.cform input:focus, .cform textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 49, 240, .12);
}
.cform__submit {
  font: inherit; font-weight: 700; font-size: 16px; color: #fff; cursor: pointer;
  background: var(--ink); border: 0; border-radius: 999px; padding: 15px 28px;
  margin-top: 4px; transition: transform .18s ease, opacity .18s ease;
}
.cform__submit:hover { transform: translateY(-2px); opacity: .94; }
.cform__submit:disabled { opacity: .6; cursor: default; transform: none; }
.sent { margin: auto; width: min(340px, calc(100% - 32px)); padding: 28px 24px 20px; border: 0; border-radius: 20px; text-align: center; color: var(--ink); box-shadow: 0 24px 60px rgba(20, 20, 20, .2); }
.sent::backdrop { background: rgba(20, 20, 20, .4); }
.sent__icon { font-size: 36px; line-height: 1; }
.sent__title { margin-top: 12px; font-size: 19px; font-weight: 700; }
.sent__body { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); word-break: break-word; }
.sent__actions { display: flex; gap: 8px; margin-top: 22px; }
.sent__btn { flex: 1; padding: 13px 10px; border: 0; border-radius: 30px; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; }
.sent__btn--ghost { background: #ededf0; color: var(--ink); }
.sent__btn[hidden] { display: none; }

/* ---------- Responsive ---------- */
.hero__h1 { margin: 0; font-size: inherit; font-weight: inherit; line-height: 0; }

/* ===================== AUTOMATION ===================== */
.auto { padding: 24px 0 96px; }
.auto__inner { max-width: 560px; margin: 0 auto; padding: 0 24px; }
.auto__tabs { display: flex; border-bottom: 1px solid #ececec; margin-bottom: 36px; }
.auto__tab { flex: 1; padding: 12px 0; font: inherit; font-size: 16px; color: var(--ink-3); background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.auto__tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.auto__logo { width: 40px; height: 40px; margin-bottom: 16px; }
.auto__title { font-size: 24px; line-height: 1.22; font-weight: 700; color: var(--ink); }
.auto__beta { font-size: 13px; font-weight: 600; color: var(--blue); vertical-align: middle; }
.auto__sub { margin-top: 8px; font-size: 16px; line-height: 1.35; color: var(--ink-3); }
.auto__chips { display: flex; gap: 8px; margin-top: 16px; }
.auto__chip { font: inherit; font-size: 14px; padding: 8px 16px; border: 0; border-radius: 50px; background: #ededf0; color: var(--ink); cursor: pointer; }
.auto__chip.is-active { background: var(--ink); color: #fff; }
.auto__modes { display: flex; gap: 16px; margin-top: 16px; }
.auto__mode { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid #d7d7d7; border-radius: 16px; background: #fff; font: inherit; font-size: 14px; font-weight: 500; line-height: normal; color: #828282; text-align: left; cursor: pointer; }
.auto__mode img { flex: none; }
.auto__mode.is-active { padding: 16px; border: 2px solid var(--ink); font-weight: 600; color: var(--ink); }
.auto__shot--empty { aspect-ratio: 1414 / 1072; background: #d7d7d7; }
.auto__steps { list-style: none; padding: 0; margin: 0; }
.auto__step { margin-top: 48px; }
.auto__line { display: flex; font-size: 16px; line-height: 1.5; color: var(--ink); }
.auto__num { flex: 0 0 25px; padding-left: 7px; }
.auto__hl { font-weight: 400; color: var(--blue); }
.auto__card { margin-top: 16px; padding: 16px; border-radius: 20px; background: #ededf0; }
.auto__reqs, .auto__list { list-style: none; }
.auto__reqs li, .auto__list li { display: flex; gap: 6px; font-size: 14px; line-height: 20px; color: var(--ink); }
.auto__reqs li + li { margin-top: 4px; }
.auto__check { flex: 0 0 20px; }
.auto__shot { margin-top: 20px; border-radius: 20px; overflow: hidden; background: #adadb9; }
.auto__shot img { display: block; width: 100%; height: auto; }
.auto__status { margin-top: 32px; padding: 24px; text-align: center; font-size: 14px; line-height: 20px; color: var(--ink); }
.auto__status svg { display: block; width: 36px; height: 36px; margin: 0 auto 12px; }
.auto__status svg path { fill: currentColor; }
.auto__cta { margin-top: 20px; font-size: 16px; font-weight: 700; color: var(--ink); }
.auto__path { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.auto__list { margin: 32px 0 0; padding: 0; }
.auto__list li { gap: 8px; font-size: 16px; line-height: 22px; margin-bottom: 12px; }
.auto__list .auto__check { color: var(--blue); margin-top: 1px; }
.auto__batt { margin: 20px 0 24px; }
.auto__batt-t { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.auto__batt-d { margin-top: 6px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
[data-ver][hidden], .auto__panel[hidden] { display: none; }

@media (min-width: 769px) {
  .panel.flip--split { height: 430px; padding-top: 36px; }
  .flip--split .toggle { margin-bottom: 48px; }
  .flip--split .splitrow { margin-top: 36px; }
  .flip--split .avatar { height: 100px; }
}
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .panel { padding: 48px 22px 0; border-radius: 32px; }
  .panel--peri { padding-bottom: 48px; }
  .duo__card { padding: 40px 22px 0; border-radius: 32px; }
  .divider { padding: 48px 0 32px; }
  .flip--coffee { height: auto; min-height: 640px; }
  .panel.flip--split { padding-bottom: 48px; }
}
@media (max-width: 600px) {
  .flip__decor--a { background-image: url("assets/bg_popcorn_s.png"); }
  .flip__decor--b { background-image: url("assets/bg_taco_s.png"); }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .fcard { display: flex; align-items: center; gap: 18px; padding: 20px 22px; }
  .fcard__icon { margin-bottom: 0; flex: none; }
  .fcard p { max-width: none; font-size: 16px; }
  .splitrow { flex-direction: column; align-items: center; gap: 22px; }
  .splitrow__person { flex-direction: row-reverse; align-items: center; justify-content: center; gap: 24px; }
  .pricing__grid { grid-template-columns: 1fr; }
  .pricing__title { padding: 32px 0 36px; }
}
@media (max-width: 560px) {
  .hero { padding: 104px 16px 0; }
  .nav__inner { padding: 16px 18px; }
  .nav__right { gap: 14px; }
  .nav__link { font-size: 14px; }
  .nav__logo img { height: 22px; }
  #langLabel, .lang__chev { display: none; }
  .stores .store span { font-size: 15px; }
  .phone img { max-width: 280px; }
  .splitrow { gap: 16px; }
  .avatar { height: 96px; }
  .amt { font-size: 30px; min-width: 64px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
