:root {
  --bg: #f4f5f7;
  --bg-solid: #ffffff;
  --ink: #111111;
  --ink-muted: #6b7280;
  --ink-faint: #9ca3af;
  --brand: #2f9ea3;
  --brand-strong: #247d81;
  --brand-soft: #e6f5f6;
  --brand-wash: #d7eef0;
  --border: rgba(17, 17, 17, 0.08);
  --border-strong: rgba(17, 17, 17, 0.14);
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04), 0 6px 16px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 17, 17, 0.08);
  --shadow-lg: 0 24px 60px rgba(17, 17, 17, 0.1);
  --radius: 24px;
  --radius-sm: 14px;
  --font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --max: 1180px;
  --dot: radial-gradient(rgba(17, 17, 17, 0.07) 1px, transparent 1px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--dot);
  background-size: 18px 18px;
  line-height: 1.5;
}

.dot-hover {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(17, 17, 17, 0.26) 1.7px, transparent 1.7px);
  background-size: 18px 18px;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 180ms ease;
  -webkit-mask-image: radial-gradient(
    circle 150px at var(--dot-x, -400px) var(--dot-y, -400px),
    #000 0%,
    #000 32%,
    transparent 72%
  );
  mask-image: radial-gradient(
    circle 150px at var(--dot-x, -400px) var(--dot-y, -400px),
    #000 0%,
    #000 32%,
    transparent 72%
  );
}

.dot-hover.is-on {
  opacity: 1;
}

html.has-dot-hover body {
  background-attachment: fixed;
}

html.has-dot-hover main,
html.has-dot-hover .site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 245, 247, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

[data-auth][hidden] {
  display: none !important;
}

.account-menu {
  position: relative;
}

.account-menu__btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.account-menu__btn:hover {
  box-shadow: 0 0 0 4px rgba(47, 158, 163, 0.15);
}

.account-menu__avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.account-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
  z-index: 50;
  overflow: hidden;
  text-align: center;
}

.account-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem 0.5rem;
}

.account-menu__email-top {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  word-break: break-all;
  text-align: left;
}

.account-menu__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.account-menu__close:hover {
  background: rgba(0, 0, 0, 0.04);
}

.account-menu__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem 1.1rem;
}

.account-menu__avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.65rem;
  box-shadow: 0 0 0 3px rgba(47, 158, 163, 0.2);
}

.account-menu__greeting {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.account-menu__email-sub {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  word-break: break-all;
}

.account-menu__manage-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.account-menu__manage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-strong, var(--brand));
  text-decoration: none;
  text-align: center;
  transition: background 0.12s;
}

.account-menu__manage:hover {
  background: rgba(47, 158, 163, 0.06);
}

.account-menu__footer {
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.5rem 0.6rem;
}

.account-menu__footer .account-menu__logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: #e05c5c;
  background: #fff0f0;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}

.account-menu__footer .account-menu__logout:hover {
  background: #fde0e0;
  color: #c0392b;
}

.nav a.btn {
  color: inherit;
}

.nav button.btn {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.nav .nav-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-solid);
  color: var(--ink);
  margin-left: auto;
  transition: transform 160ms var(--ease-out);
}

.nav-toggle:active {
  transform: scale(0.97);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-text {
  background: transparent;
  color: var(--ink-muted);
  padding-inline: 0.7rem;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 0.98rem;
}

/* Hero */

.hero {
  padding: 1.5rem 0 3rem;
}

.hero-stage {
  --float-gutter: 64px;
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-copy {
  max-width: 640px;
  padding: 2rem 1rem;
  z-index: 2;
}

.hero-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero h1 span {
  color: #6b7280;
}

.hero .lead {
  margin: 0 auto 1.5rem;
  color: var(--ink-muted);
  font-size: 1.08rem;
  max-width: 28rem;
}

.float-ui {
  position: absolute;
  width: min(320px, 36%);
  background: #fff;
  border-radius: 20px;
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-md);
  text-align: left;
  z-index: 3;
}

.float-ui header {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}

.float-ui strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.float-ui--tl {
  --float-rotate: -3deg;
  width: min(360px, 40%);
  top: 33px;
  left: calc((100% - 90vw) / 2 + var(--float-gutter));
  padding: 1.35rem 1.4rem;
  transform: rotate(var(--float-rotate));
}

.float-ui--tl .note {
  font-size: 1.05rem;
  padding: 1.2rem 1.05rem 1.05rem;
}

/* Hero sticky note (draggable TL card only) */
.float-ui--sticky {
  --sticky-paper: rgba(255, 242, 158, 0.74);
  background: var(--sticky-paper);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(58, 48, 6, 0.1);
  border-right-color: rgba(58, 48, 6, 0.07);
  border-radius: 4px 3px 20px 5px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 -1px 0 rgba(0, 0, 0, 0.035) inset,
    0 2px 4px rgba(74, 60, 8, 0.07),
    0 14px 32px rgba(17, 17, 17, 0.11),
    0 32px 64px rgba(17, 17, 17, 0.07);
  color: #3a3418;
  overflow: hidden;
  isolation: isolate;
}

.float-ui--sticky.float-ui--tl {
  width: min(292px, 38%);
  min-height: 172px;
  padding: 1.2rem 1.1rem 1.05rem;
}

.float-ui--sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  background-image:
    radial-gradient(ellipse 120% 80% at 12% -10%, rgba(255, 255, 255, 0.55), transparent 52%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.11) 10px,
      rgba(255, 255, 255, 0.11) 11px
    ),
    repeating-linear-gradient(
      78deg,
      transparent,
      transparent 7px,
      rgba(0, 0, 0, 0.016) 7px,
      rgba(0, 0, 0, 0.016) 8px
    );
  mix-blend-mode: multiply;
}

.float-ui--sticky::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    225deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(248, 236, 168, 0.92) 42%,
    rgba(196, 178, 98, 0.35) 100%
  );
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.06);
}

.float-ui--sticky > :not(.float-ui__glare) {
  position: relative;
  z-index: 2;
}

.float-ui--sticky .note {
  background: transparent;
  border-radius: 0;
  padding: 0.1rem 0.05rem 0;
  font-size: 1.02rem;
  color: inherit;
  box-shadow: none;
}

.float-ui--sticky .note p {
  margin: 0;
  line-height: 1.48;
  font-weight: 520;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.float-ui--sticky .note-pin {
  width: 15px;
  height: 15px;
  margin: -1px auto 0.55rem;
  background: radial-gradient(circle at 32% 28%, #ff6b88 0%, #e11d48 52%, #9f1239 100%);
  box-shadow:
    0 1px 2px rgba(159, 18, 57, 0.5),
    0 5px 10px rgba(17, 17, 17, 0.14),
    inset 0 -2px 3px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.38);
}

.float-ui--sticky .float-ui__glare {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.68) 0%,
    rgba(255, 255, 255, 0.14) 36%,
    transparent 58%
  );
  mix-blend-mode: soft-light;
}

@media (min-width: 961px) {
  .hero-stage.is-float-drag .float-ui--sticky.is-dragging {
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.78) inset,
      0 6px 16px rgba(74, 60, 8, 0.14),
      0 26px 54px rgba(17, 17, 17, 0.18),
      0 48px 96px rgba(17, 17, 17, 0.12);
  }
}

.float-ui--tr {
  --float-rotate: 3deg;
  top: 44px;
  right: calc((100% - 90vw) / 2 + var(--float-gutter));
  transform: rotate(var(--float-rotate));
}

.float-ui--bl {
  --float-rotate: 2deg;
  bottom: 12px;
  left: calc((100% - 78vw) / 2 + var(--float-gutter));
  transform: rotate(var(--float-rotate));
}

.float-ui--br {
  --float-rotate: -2deg;
  bottom: 24px;
  right: calc((100% - 70vw) / 2 + var(--float-gutter));
  transform: rotate(var(--float-rotate));
}

.float-ui__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.float-ui .chip-float {
  z-index: 5;
}

@media (min-width: 961px) {
  .hero-stage.is-float-drag {
    perspective: 3000px;
  }

  .hero-stage.is-float-drag .float-ui {
    cursor: grab;
    touch-action: none;
    transform-style: preserve-3d;
  }

  .hero-stage.is-float-drag .float-ui.is-dragging {
    cursor: grabbing;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.16);
    z-index: 6;
  }
}

body.is-card-grabbing,
body.is-card-grabbing * {
  cursor: grabbing !important;
}

.note {
  background: #fff6c8;
  border-radius: 12px;
  padding: 1rem 0.9rem 0.85rem;
  font-size: 0.88rem;
  color: #3f3a1f;
}

.note-pin {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e11d48;
  margin: -4px auto 8px;
  box-shadow: 0 4px 8px rgba(225, 29, 72, 0.3);
}

.vat-line {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--brand-strong);
  background: var(--brand-soft);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}

.chip-float {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}

.chip-float svg {
  width: 18px;
  height: 18px;
}

.chip-ok {
  right: -14px;
  bottom: -12px;
  color: var(--brand);
}

.chip-scan {
  right: -12px;
  top: -14px;
  color: var(--brand);
}

.mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}

.mini-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0;
}

.mini-ok {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--brand-strong);
}

.integ-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.integ-row .squircle {
  width: 48px;
  height: 48px;
  border-radius: 5px;
}

.squircle--logo {
  padding: 0;
  overflow: hidden;
}

.squircle--logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.av-1 { background: #2f9ea3; }
.av-2 { background: #0f766e; }
.av-3 { background: #c2410c; }
.av-4 { background: #7c3aed; }
.av-5 { background: #1d4ed8; }
.av-add { background: #e5e7eb; color: #374151; }

.bar {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #eef1f3;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0.7rem 0 0.35rem;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-head p {
  margin: 0 auto;
  color: var(--ink-muted);
  max-width: 28rem;
}

.badge {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: #eceef1;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

.page-hero {
  text-align: center;
  padding: 3.4rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0.7rem 0 0.45rem;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.page-hero p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.35rem auto 0;
}

.error-page {
  padding-bottom: 2.4rem;
}

.error-page__art {
  display: block;
  width: min(36rem, 100%);
  height: auto;
  margin: 1.2rem auto 0.35rem;
  border-radius: 28px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0;
  color: var(--ink-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.04);
}

/* Feature mosaic */

.dash-wrap {
  position: relative;
  padding: 0.8rem 0.4rem 2.8rem;
  overflow: visible;
}

.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 1.8rem;
  row-gap: 0;
  align-items: start;
}

.mosaic-card {
  --tilt: 0deg;
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 1.55rem 1.6rem 1.65rem;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--tilt));
}

.mosaic-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.mosaic-card p {
  margin: 0 0 1.15rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.mosaic-card--capture {
  --tilt: -2.6deg;
  margin: 0 4% 1.4rem 0;
}

.mosaic-card--vat {
  --tilt: 3.4deg;
  margin: 3.4rem 0 0 6%;
}

.mosaic-card--share {
  --tilt: 1.7deg;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem 1.2rem;
  align-items: start;
  margin: 0.2rem 8% 0 0;
}

.mosaic-card--share p {
  margin-bottom: 0;
}

.mosaic-card--slips {
  --tilt: -3.1deg;
  margin: 2.6rem 0 0 4%;
}

.slip-stage {
  position: relative;
  background: #e8f0f6;
  border-radius: 16px;
  padding: 1.1rem 1.2rem 0.4rem;
  overflow: hidden;
}

.slip {
  width: min(220px, 88%);
  margin: 0 auto;
  background: #fff;
  border-radius: 8px 8px 0 0;
  padding: 0.85rem 0.9rem 1.1rem;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.06);
  font-size: 0.72rem;
}

.slip-store {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.slip-meta {
  display: block;
  color: var(--ink-faint);
  margin: 0.15rem 0 0.55rem;
}

.slip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px dashed #d7dde3;
}

.slip li,
.slip-total {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.28rem 0;
}

.slip-total {
  border-top: 1px dashed #d7dde3;
  margin-top: 0.2rem;
  padding-top: 0.45rem;
  font-size: 0.78rem;
}

.mosaic-chip {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.mosaic-chip svg {
  width: 18px;
  height: 18px;
}

.mosaic-chip--cam {
  top: -14px;
  right: 18px;
}

.mosaic-chip--ok {
  right: -10px;
  bottom: 28px;
  background: #ecfdf5;
  color: #059669;
}

.vat-box {
  width: min(230px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fafbfc;
}

.vat-box div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
}

.vat-box div + div {
  border-top: 1px solid var(--border);
}

.vat-box span {
  color: var(--ink-muted);
}

.mini-cal {
  position: absolute;
  right: -12px;
  bottom: -22px;
  width: 168px;
  background: #fff;
  border-radius: 16px;
  padding: 0.7rem 0.75rem 0.8rem;
  box-shadow: var(--shadow-md);
}

.mini-cal header {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.mini-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.18rem;
  text-align: center;
  font-size: 0.58rem;
  color: var(--ink-faint);
}

.mini-cal-days b {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}

.mini-cal-days .is-on {
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
}

.share-people .mini-list {
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.share-people .avatar {
  width: 30px;
  height: 30px;
  font-size: 0.64rem;
}

.slip-stack {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 118px;
  padding: 0.4rem 0 1.4rem;
}

.doc-tile {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #eef3f6;
  color: #3d5a66;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
}

.doc-tile svg {
  width: 22px;
  height: 22px;
}

.doc-tile--pdf {
  background: #e8f4f4;
  color: var(--brand-strong);
}

.search-pill {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 200px;
  background: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.search-pill svg {
  width: 16px;
  height: 16px;
  color: var(--ink-muted);
}

/* Bento */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-sm);
}

.bento-card--wide {
  grid-column: 1 / 3;
}

.bento-card--vat {
  grid-column: 2 / -1;
}

.bento-card h3 {
  margin: 0.9rem 0 0.3rem;
  font-size: 1.08rem;
}

.bento-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.ph-ui {
  min-height: 140px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f8fa, #eef1f3);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.ph-ui--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.ph-ui--wide {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: block;
}

.ph-ui--wide img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.ph-ui--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.ph-ui--grid span {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  min-height: 48px;
}

.ph-people {
  display: flex;
  gap: 0.35rem;
}

.ph-people .avatar {
  width: 36px;
  height: 36px;
  font-size: 0.72rem;
}

.ph-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  margin-top: 0.4rem;
}

.ph-lines span:first-child { width: 80%; }
.ph-lines span:last-child { width: 55%; }

.ph-cal,
.ph-gauge,
.ph-timeline,
.ph-slip {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  min-height: 100%;
}

.ph-gauge {
  display: grid;
  place-items: center;
}

.ph-gauge i {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 75%, #e5e7eb 75%);
  mask: radial-gradient(transparent 16px, #000 17px);
}

/* VAT bento */
.ph-ui--vat {
  gap: 0.5rem;
  justify-content: space-evenly;
}

.ph-vat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow-sm);
}

.ph-vat-row--highlight {
  background: var(--brand-soft);
}

.ph-vat-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.ph-vat-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.ph-vat-value--brand {
  color: var(--brand-strong);
}

/* Devices bento */
.ph-ui--devices {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.ph-device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-sm);
  flex: 1;
}

.ph-device svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand);
}

.ph-device span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.ph-device-sync {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.ph-device-sync span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.4;
}

.ph-device-sync span:nth-child(2) { opacity: 0.7; }
.ph-device-sync span:nth-child(3) { opacity: 1; }

.ph-timeline {
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(90deg, #e5e7eb 0 2px, transparent 2px 18%) border-box;
  background-size: 100% 8px, 100% 100%;
  background-position: center, 0 0;
  background-repeat: no-repeat, repeat;
}

.more-line {
  text-align: center;
  color: var(--ink-faint);
  margin: 1.6rem 0 0;
  font-size: 0.95rem;
}

.more-line a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.more-line a:hover {
  color: var(--ink);
}

/* Integrations */

.integ {
  position: relative;
  text-align: center;
  padding: 1.4rem 0 0.8rem;
}

.integ-diagram {
  max-width: 640px;
  margin: 0 auto;
}

.integ-hub {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.integ-hub img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.integ-lines {
  display: block;
  width: 100%;
  height: 118px;
  margin-top: -2px;
}

.integ-lines path {
  fill: none;
  stroke: #9aa1a8;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.integ-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-items: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.integ-grid .squircle--logo {
  /* background: #fff; */
}

.integ-grid .squircle--dark {
  /* background: #111; */
}

.integ-grid .imap {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.squircle {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.squircle svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.imap { background: #111; }

.integ-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.integ-cards--single {
  grid-template-columns: 1fr;
  max-width: 36rem;
  margin-inline: auto;
}

.integ-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
}

.integ-card header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.integ-card header .squircle {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  flex-shrink: 0;
}

.integ-card h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.integ-kind {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
}

.integ-card p {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.integ-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.integ-card li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.1rem;
  font-size: 0.88rem;
  color: var(--ink);
}

.integ-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.integ-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.integ-card .imap {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

/* Quotes */

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: minmax(140px, auto);
  gap: 1rem;
}

.quote {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.quote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.quote footer .avatar {
  width: 36px;
  height: 36px;
  font-size: 0.7rem;
}

.quote footer div {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
}

.quote footer span {
  color: var(--ink-muted);
}

/* Pricing */

.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.35rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

.plan__head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 1.4rem;
}

.plan__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plan__badge {
  flex-shrink: 0;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--brand);
  color: #fff;
}

.plan__badge--muted {
  background: #eceef1;
  color: var(--ink-muted);
}

.plan h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0;
  line-height: 1;
}

.plan__amount {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.plan__period {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.plan__desc {
  margin: 0.15rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.plan__features {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  border-top: 1px solid var(--border);
}

.plan__features li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.7rem;
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.plan__features li:last-child {
  border-bottom: 0;
}

.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: var(--brand-soft);
}

.plan__features li::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  top: 0.9rem;
  width: 0.28rem;
  height: 0.48rem;
  border-right: 1.7px solid var(--brand-strong);
  border-bottom: 1.7px solid var(--brand-strong);
  transform: rotate(45deg);
}

.plan__foot {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.plan .btn {
  width: 100%;
}

.plan__more {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.plan__more:hover {
  color: var(--ink);
}

.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, #f4fbfb 0%, #fff 2.8rem);
}

.plan--soon {
  background: #fafbfc;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: stretch;
  }

  .plan {
    min-height: 100%;
  }

  .plan__features {
    flex: 1;
  }
}

/* Legal */

.legal {
  max-width: 720px;
  margin: 3rem auto 4.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem 2.2rem;
  box-shadow: var(--shadow-sm);
}

.legal h1 {
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 1.8rem 0 0.45rem;
  font-size: 1.1rem;
  color: var(--brand-strong);
}

.legal p,
.legal li {
  color: var(--ink-muted);
}

.legal ol {
  padding-left: 1.25rem;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.legal-actions .btn {
  text-decoration: none;
}

.muted {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* Footer */

.site-footer {
  padding: 0 0 2.2rem;
}

.footer-panel {
  background: #eceef1;
  background-image: var(--dot);
  background-size: 18px 18px;
  border-radius: 32px;
  padding: 2.2rem 1.8rem 1.4rem;
}

.legal-page .footer-panel {
  padding: 1.2rem 1.4rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-tag {
  max-width: 16rem;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0.9rem 0 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 2rem;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a::before {
  content: "↗ ";
  color: var(--ink-faint);
  font-size: 0.75rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 2.2rem 0 1.8rem;
}

.footer-icons .squircle {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.footer-bottom a {
  color: var(--ink-faint);
  text-decoration: none;
  margin-left: 0.9rem;
}

/* Motion */

.reveal {
  opacity: 1;
  transform: none;
}

html.has-js .reveal {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

html.has-js .reveal.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-copy {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 620ms var(--ease-out) 80ms forwards;
}

.float-ui--tl { animation: float-card-in 700ms var(--ease-out) 180ms both; }
.float-ui--tr { animation: float-card-in 700ms var(--ease-out) 240ms both; }
.float-ui--bl { animation: float-card-in 700ms var(--ease-out) 300ms both; }
.float-ui--br { animation: float-card-in 700ms var(--ease-out) 360ms both; }

.bento-card:nth-child(1) { transition-delay: 0ms; }
.bento-card:nth-child(2) { transition-delay: 50ms; }
.bento-card:nth-child(3) { transition-delay: 100ms; }
.bento-card:nth-child(4) { transition-delay: 150ms; }

.plan:nth-child(1) { transition-delay: 0ms; }
.plan:nth-child(2) { transition-delay: 60ms; }
.plan:nth-child(3) { transition-delay: 120ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-card-in {
  from { opacity: 0; transform: rotate(var(--float-rotate)) translateY(12px) scale(0.97); }
  to { opacity: 1; transform: rotate(var(--float-rotate)) translateY(0) scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover,
  .btn-text:hover {
    color: var(--ink);
    background: rgba(17, 17, 17, 0.04);
  }

  .btn-primary:hover {
    background: var(--brand-strong);
    box-shadow: var(--shadow-md);
  }

  .btn-ghost:hover,
  .btn-light:hover {
    background: rgba(17, 17, 17, 0.03);
  }

  .mosaic-card {
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  }

  .mosaic-card:hover {
    transform: translateY(-4px) rotate(var(--tilt));
    box-shadow: var(--shadow-lg);
  }

  .plan__more:hover,
  .footer-nav a:hover,
  .footer-bottom a:hover {
    color: var(--ink);
  }
}

@media (max-width: 960px) {
  .hero-stage {
    min-height: 0;
    padding-bottom: 1rem;
  }

  .float-ui {
    position: static;
    width: 100%;
    transform: none;
    animation: none;
    opacity: 1;
  }

  .float-ui.float-ui--sticky {
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 0;
    inset: auto;
  }

  .hero-stage {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-copy {
    order: -1;
  }

  .hero .chip-scan {
    display: none;
  }

  .bento,
  .quotes,
  .plans,
  .detail-grid,
  .integ-cards,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic {
    row-gap: 2rem;
  }

  .mosaic-card--capture,
  .mosaic-card--vat,
  .mosaic-card--share,
  .mosaic-card--slips {
    margin: 0.45rem 0.65rem 0.55rem;
  }

  .mosaic-card--share {
    grid-template-columns: 1fr;
  }

  .integ-lines {
    height: 88px;
  }

  .integ-grid .squircle {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .mini-cal {
    right: 12px;
    bottom: -16px;
  }

  .bento-card--wide,
  .bento-card--vat {
    grid-column: auto;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    display: none;
  }

  .site-header__inner.is-signed-in {
    grid-template-columns: 1fr auto auto;
  }

  .site-header__inner.is-signed-in .header-actions {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    inset: 72px 16px auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    display: flex;
  }

  .nav .nav-cta {
    display: inline-flex;
    margin-top: 0.3rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .mosaic-card--vat {
    padding-bottom: 2.4rem;
  }
}

@media (max-width: 520px) {
  .integ-hub {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .integ-hub img {
    width: 34px;
    height: 34px;
  }

  .integ-lines {
    height: 72px;
  }

  .integ-grid .squircle {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 0.72rem;
  }
}

/* ─── Cloud section ──────────────────────────────────────────────────────── */

.cloud-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 2.8rem 2.4rem;
  box-shadow: var(--shadow-sm);
}

.cloud-copy .badge {
  margin-bottom: 0.75rem;
}

.cloud-copy h2 {
  margin: 0 0 0.8rem;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.cloud-copy > p {
  color: var(--ink-muted);
  line-height: 1.65;
  margin: 0 0 1.4rem;
}

.cloud-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cloud-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.45;
}

.cloud-list svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: var(--brand);
  margin-top: 0.1rem;
}

.cloud-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.cloud-device img {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.cloud-reassure {
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 860px) {
  .cloud-band {
    grid-template-columns: 1fr;
  }
  .cloud-visual {
    order: -1;
  }
}

/* ─── Android Widgets section ─────────────────────────────────────────────── */

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.widget-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.6rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}

.widget-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shared widget chrome */
.wdg {
  background: #191c1b;
  border-radius: 20px;
  padding: 1rem 1.1rem;
  width: 190px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #e8f1ee;
  font-size: 0.82rem;
}

.wdg-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #8da59e;
  font-weight: 600;
}

.wdg-amount {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #e8f1ee;
  line-height: 1.15;
}

.wdg-sub {
  font-size: 0.72rem;
  color: #8da59e;
}

/* Month spend widget */
.wdg--month .wdg-amount { color: #7dd3b8; }

.wdg-meta-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.1rem;
}

.wdg-meta-item {
  font-size: 0.72rem;
  color: #8da59e;
}

.wdg-meta-l {
  color: #c4d8d2;
  font-weight: 600;
  margin-right: 0.2rem;
}

.wdg-trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: 99px;
  margin-top: 0.2rem;
  width: fit-content;
}

.wdg-trend-pill svg {
  width: 12px;
  height: 12px;
}

.wdg-trend-pill--up {
  background: #3a1a0d;
  color: #ff8a65;
  stroke: #ff8a65;
}

.wdg-trend-pill--down {
  background: #0a2922;
  color: #7dd3b8;
  stroke: #7dd3b8;
}

.wdg-flagged {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  margin-top: 0.2rem;
}

.wdg-flagged svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.wdg-flagged--none {
  background: #2a3330;
  color: #8da59e;
  stroke: #8da59e;
}

.wdg-flagged--alert {
  background: #3a1a0d;
  color: #ff8a65;
  stroke: #ff8a65;
}

/* Quick scan widget */
.wdg--scan {
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.wdg-scan-icon {
  width: 52px;
  height: 52px;
  background: var(--brand);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wdg-scan-icon svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
}

.wdg-scan-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e8f1ee;
}

/* Shortcuts widget */
.wdg--shortcuts {
  padding: 0.8rem;
}

.wdg-shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.wdg-shortcut-tile {
  background: #2a3330;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 0.5rem;
  font-size: 0.65rem;
  color: #c4d8d2;
}

.wdg-shortcut-tile svg {
  width: 20px;
  height: 20px;
  stroke: #7dd3b8;
}

/* Spend trend widget */
.wdg--trend .wdg-trend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.1rem;
}

.wdg-trend-pct {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 99px;
}

.wdg-trend-pct--up   { background: #3a1a0d; color: #ff8a65; }
.wdg-trend-pct--down { background: #0a2922; color: #7dd3b8; }

.wdg-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 60px;
  margin: 0.4rem 0 0.3rem;
}

.wdg-trend-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

.wdg-trend-col span {
  font-size: 0.6rem;
  color: #8da59e;
}

.wdg-trend-bar {
  width: 100%;
  height: var(--h, 50%);
  background: #2a3330;
  border-radius: 4px 4px 2px 2px;
  flex-shrink: 0;
}

.wdg-trend-bar--active {
  background: var(--brand);
}

/* Widget description */
.widget-desc h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.widget-desc p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.widget-cta {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 1020px) {
  .widgets-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .widget-card {
    grid-template-columns: 1fr;
  }
  .widget-preview {
    justify-content: flex-start;
  }
}

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

  .reveal,
  .hero-copy,
  .float-ui,
  .bento-card,
  .plan {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .plan--featured {
    transform: none;
  }
}

/* App download confirmation modal */
body.download-modal-open {
  overflow: hidden;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.download-modal[hidden] {
  display: none !important;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}

.download-modal__dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.download-modal.is-open .download-modal__backdrop {
  opacity: 1;
}

.download-modal.is-open .download-modal__dialog {
  opacity: 1;
  transform: none;
}

.download-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.download-modal__close:hover {
  background: var(--brand-soft);
  color: var(--ink);
}

.download-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0.2rem auto 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.download-modal__dialog h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.download-modal__dialog p {
  margin: 0 auto 1.35rem;
  max-width: 32ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.download-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.download-modal__actions .btn {
  min-width: 7.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .download-modal__backdrop,
  .download-modal__dialog {
    transition: none;
  }
}

/* Coming soon elements */
.btn--coming {
  opacity: 0.7;
  cursor: default;
  pointer-events: none;
}

.footer-coming {
  color: var(--ink-muted);
}

.footer-coming em {
  font-style: normal;
  color: var(--ink-faint);
}

.footer-coming::before {
  content: "↗ ";
  color: var(--ink-faint);
}

.integ-coming {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  background: var(--brand-soft);
  color: var(--ink-muted);
  border-radius: 6px;
}
