/* Self-hosted Source Serif 4 (complete Latin, Latin-Ext for AZ/TR/DE/FR/ES, and Cyrillic for RU) */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/source-serif-4-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/source-serif-4-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/source-serif-4-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/source-serif-4-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url('fonts/source-serif-4-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/source-serif-4-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/source-serif-4-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/source-serif-4-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/source-serif-4-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('fonts/source-serif-4-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --font-main: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --bg-app: #08131E;
  --bg-surface: rgba(13, 25, 38, 0.78);
  --bg-surface-raised: rgba(19, 34, 50, 0.86);
  --bg-surface-hover: rgba(27, 46, 66, 0.92);
  --bg-surface-subtle: #060F18;
  --header-bg: rgba(5, 13, 21, 0.86);

  --border-subtle: rgba(176, 212, 242, 0.09);
  --border-strong: rgba(176, 212, 242, 0.18);

  --text-primary: #f2f6fa;
  --text-muted: #9eb0c2;
  --text-dim: #738699;

  --accent: #f59e0b;
  --accent-text: #f59e0b;
  --on-accent: #040b12;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-border: rgba(245, 158, 11, 0.42);
  --glow: radial-gradient(ellipse 80% 42% at 50% -8%, rgba(56, 132, 198, 0.14), transparent 72%);

  --income-green: #22c55e;
  --expense-red: #f87171;
  --day-fill-expense: rgba(248, 113, 113, 0.18);
  --day-fill-income: rgba(34, 197, 94, 0.18);
  --day-fill-even: rgba(242, 246, 250, 0.1);
  --cat-1: #ff8a2b;
  --cat-2: #3d7dff;
  --cat-3: #ffe14a;
  --shadow-lg: 0 24px 60px rgba(0, 2, 6, 0.62);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-app: #f7f0df;
  --bg-surface: #fbf8ef;
  --bg-surface-raised: #fcf9f2;
  --bg-surface-hover: #ede5d2;
  --bg-surface-subtle: #f3ead6;
  --header-bg: rgba(247, 240, 223, 0.9);

  --border-subtle: rgba(28, 25, 23, 0.09);
  --border-strong: rgba(28, 25, 23, 0.18);

  --text-primary: #1c1917;
  --text-muted: #57534e;
  --text-dim: #736c67;

  --accent: #c17c08;
  --accent-text: #92400e;
  --on-accent: #ffffff;
  --accent-soft: rgba(193, 124, 8, 0.12);
  --accent-border: rgba(193, 124, 8, 0.38);
  --glow: none;

  --income-green: #166534;
  --expense-red: #b21a1a;
  --day-fill-expense: rgba(178, 26, 26, 0.16);
  --day-fill-income: rgba(22, 101, 52, 0.16);
  --day-fill-even: rgba(28, 25, 23, 0.1);
  --cat-1: #e8590c;
  --cat-2: #1c5fe0;
  --cat-3: #b2810b;
  --shadow-lg: 0 20px 50px rgba(28, 25, 23, 0.1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html.is-theme-switching,
html.is-theme-switching body,
html.is-theme-switching .site-header,
html.is-theme-switching .site-footer,
html.is-theme-switching .card,
html.is-theme-switching .pricing-card,
html.is-theme-switching .specs-card,
html.is-theme-switching .form-card,
html.is-theme-switching .faq-item,
html.is-theme-switching .pill-btn,
html.is-theme-switching .btn-secondary {
  transition:
    background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    color 240ms ease,
    border-color 240ms ease !important;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-app);
  background-image: var(--glow);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-variant-numeric: lining-nums tabular-nums;
  font-kerning: normal;
  font-optical-sizing: auto;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea, a {
  touch-action: manipulation;
}

button, input, select, textarea {
  font-family: inherit;
  font-variant-numeric: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

.container-narrow {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .container, .container-narrow {
    padding-inline: 24px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: opacity 280ms ease, transform 280ms ease;
}

body[data-page="home"] .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.site-header.is-hero-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.header-inner {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (min-width: 480px) {
  .header-inner {
    height: 64px;
    gap: 12px;
  }
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  min-width: 0;
  transition: opacity 160ms ease;
}

.brand-link:active {
  opacity: 0.78;
}

.brand-link svg {
  flex-shrink: 0;
}

@media (max-width: 360px) {
  .brand-link svg {
    width: 70px;
    height: auto;
  }
  .header-controls {
    gap: 6px;
  }
  .pill-btn {
    padding: 0 9px;
  }
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-surface-raised);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 820px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pill-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
}

.pill-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-label {
  display: none;
}

@media (min-width: 520px) {
  .theme-label {
    display: inline;
  }
}

.btn-primary.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .btn-primary.header-cta {
    display: inline-flex;
  }
}

.btn-primary {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease, transform 150ms ease;
}

.btn-primary.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-raised);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
}

/* Language Dropdown — smooth animated popover */
.lang-wrap {
  position: relative;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(196px, calc(100vw - 32px));
  border-radius: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 6px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top right;
  transition:
    opacity 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 180ms ease;
}

.lang-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.lang-option {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms ease, transform 120ms ease;
}

.lang-option:active {
  transform: scale(0.98);
}

.lang-option:hover {
  background: var(--bg-surface-hover);
}

.lang-option.is-selected {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

.lang-code {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  width: 24px;
  display: inline-block;
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
}

@media (min-width: 820px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  border-top: 1px solid transparent;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition:
    grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    border-color 220ms ease;
}

.mobile-drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  border-top-color: var(--border-subtle);
}

.mobile-drawer-inner {
  overflow: hidden;
  min-height: 0;
}

.mobile-drawer-pad {
  padding: 14px max(16px, env(safe-area-inset-left, 0px)) 20px max(16px, env(safe-area-inset-right, 0px));
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  font-size: 15px;
  text-decoration: none;
  color: var(--text-primary);
}

.mobile-nav-link.is-muted {
  color: var(--text-muted);
  font-size: 14px;
}

.mobile-nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

.mobile-divider {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 12px 0;
}

.mobile-group-label {
  padding: 0 14px 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Main */
main {
  flex: 1;
}

/* Badges & Typography */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
}

.eyebrow-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-text);
}

/* Scroll-Driven Pennot Dot Gathering Stage (deeper midnight-navy, darkest at bottom-right) */
.scroll-stage-runway {
  position: relative;
  width: 100%;
  height: 240vh;
  min-height: 1400px;
  background-color: #02060B;
  background-image:
    radial-gradient(circle at 100% 100%, rgba(0, 1, 3, 0.72) 0%, rgba(1, 3, 6, 0.28) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(135deg, #030A11 0%, #02060B 52%, #000204 100%);
}

/* Feather the very bottom edge of the animation runway seamlessly into the next flow */
.scroll-stage-runway::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 11, 0) 0%,
    rgba(2, 6, 11, 0.65) 55%,
    #02060B 100%
  );
}

.scroll-stage-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background-color: #02060B;
  background-image:
    radial-gradient(circle at 100% 100%, rgba(0, 1, 3, 0.72) 0%, rgba(1, 3, 6, 0.28) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(135deg, #030A11 0%, #02060B 52%, #000204 100%);
}

/* Light (Day) mode opening stage: warm light backdrop matching Day palette, dark #040E16 dots & wordmark */
html[data-theme="light"] .scroll-stage-runway {
  background-color: #F7F0DF;
  background-image:
    radial-gradient(circle at 100% 100%, rgba(214, 198, 166, 0.42) 0%, rgba(226, 212, 184, 0.16) 45%, rgba(247, 240, 223, 0) 75%),
    linear-gradient(135deg, #FCF9F1 0%, #F7F0DF 52%, #ECE1C8 100%);
}

html[data-theme="light"] .scroll-stage-runway::after {
  background: linear-gradient(
    to bottom,
    rgba(247, 240, 223, 0) 0%,
    rgba(247, 240, 223, 0.72) 55%,
    #F7F0DF 100%
  );
}

html[data-theme="light"] .scroll-stage-sticky {
  background-color: #F7F0DF;
  background-image:
    radial-gradient(circle at 100% 100%, rgba(214, 198, 166, 0.42) 0%, rgba(226, 212, 184, 0.16) 45%, rgba(247, 240, 223, 0) 75%),
    linear-gradient(135deg, #FCF9F1 0%, #F7F0DF 52%, #ECE1C8 100%);
}

/* Continuous gradual lightening flow from the animation stage down through the rest of the home page */
.home-flow-surface {
  position: relative;
  width: 100%;
  background: linear-gradient(
    to bottom,
    #02060B 0%,
    #030B13 10%,
    #06111C 26%,
    #091724 46%,
    #0C1C2B 68%,
    #0F2131 86%,
    #112435 100%
  );
}

html[data-theme="light"] .home-flow-surface {
  background: linear-gradient(
    to bottom,
    #F7F0DF 0%,
    #FAF5E8 28%,
    #F7F0DF 100%
  );
}

html[data-theme="light"] .home-flow-surface #overview {
  padding-top: 88px;
}

.home-flow-surface .site-section {
  border-top: 0;
  position: relative;
}

.home-flow-surface .site-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 48px, 1032px);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--border-subtle) 18%,
    var(--border-subtle) 82%,
    transparent 100%
  );
}

/* Match footer seamlessly to the bottom of the home gradient flow in dark mode */
html[data-theme="dark"] body[data-page="home"] .site-footer {
  margin-top: 0;
  background: linear-gradient(to bottom, #112435 0%, #0C1A27 100%);
  border-top: 1px solid var(--border-subtle);
}

html[data-theme="light"] body[data-page="home"] .site-footer {
  margin-top: 0;
}

.scroll-stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Mobile-only minimal white "scroll down" cue at bottom */
.mobile-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  transform: translateX(-50%);
  z-index: 3;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 380ms ease;
}

/* Desktop-only custom "scroll" text cursor replacing mouse pointer */
.desktop-scroll-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  margin-left: -24px;
  margin-top: -10px;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  transition: opacity 180ms ease;
  will-change: transform, opacity;
}

html[data-theme="light"] .mobile-scroll-hint,
html[data-theme="light"] .desktop-scroll-cursor {
  color: #040E16;
}

.desktop-scroll-cursor.is-visible {
  opacity: 0.92;
}

@media (hover: hover) and (pointer: fine) {
  .scroll-stage-sticky {
    cursor: none;
  }
  .desktop-scroll-cursor {
    display: block;
  }
  .mobile-scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-stage-runway {
    height: auto;
    min-height: 0;
  }
  .scroll-stage-sticky {
    position: relative;
    height: 100svh;
    cursor: auto;
  }
  .mobile-scroll-hint,
  .desktop-scroll-cursor {
    display: none !important;
  }
}

.hero-section {
  padding: 40px 0 52px;
}

body[data-page="home"] #overview {
  padding-top: 88px;
}

@media (min-width: 900px) {
  .hero-section {
    padding: 64px 0 72px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.95fr;
    gap: 48px;
  }
}

.hero-title {
  font-size: clamp(28px, 6.8vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.012em;
  font-weight: 600;
  margin-top: 18px;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-subtitle {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 520px) {
  .cta-row {
    flex-direction: row;
    align-items: center;
  }
}

.trust-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.accent-icon {
  color: var(--accent-text);
  flex-shrink: 0;
}

/* Interactive Real-App Animated Phone Showcase */
.phone-preview {
  width: 100%;
  max-width: 344px;
  aspect-ratio: 344 / 610;
  height: auto;
  max-height: 610px;
  margin: 0 auto;
  border-radius: clamp(32px, 8vw, 40px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1.5px solid var(--border-strong);
  padding: clamp(7px, 2vw, 9px);
  box-shadow: var(--shadow-lg);
  position: relative;
}

html[data-theme="light"] .phone-preview {
  background: linear-gradient(160deg, #ffffff, #e8dec8);
  border-color: rgba(28, 25, 23, 0.16);
}

.phone-bezel-screen {
  width: 100%;
  height: 100%;
  border-radius: 31px;
  overflow: hidden;
  background: #0b0a09;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  color: #f2f1ed;
}

.phone-status-bar {
  height: 28px;
  padding: 5px 18px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #f2f1ed;
  background: linear-gradient(to bottom, #161108 0%, rgba(16, 13, 8, 0.92) 100%);
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.phone-island {
  width: 70px;
  height: 16px;
  border-radius: 999px;
  background: #000000;
}

.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

.phone-screens-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: #0b0a09;
}

.phone-screen {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  pointer-events: none;
  transition: opacity 210ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.phone-screen.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.phone-screen.is-padded {
  padding: 12px 14px 8px;
  gap: 10px;
  background:
    radial-gradient(ellipse 85% 32% at 50% -4%, rgba(217, 146, 36, 0.22), rgba(11, 10, 9, 0) 70%),
    #0b0a09;
}

/* Real App Screenshot Image inside Phone */
.phone-ss-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
}

.phone-ss-scroll-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.phone-ss-scroll-img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(0);
  transition: transform 1300ms cubic-bezier(0.37, 0, 0.22, 1);
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.phone-ss-scroll-img.is-instant {
  transition: none !important;
}

/* Home Screen inside Phone */
.p-home-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.p-app-brand {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.p-totals-btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  border-radius: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.p-totals-btn .exp { color: var(--expense-red); }
.p-totals-btn .inc { color: var(--income-green); }

.p-cal-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

html[data-theme="light"] .p-cal-card {
  background: #fbf8ef;
}

.p-month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.p-month-nav {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .p-month-nav {
  background: rgba(28, 25, 23, 0.05);
}

.p-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
}

.p-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.p-cal-day {
  height: 34px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.p-cal-day.is-empty { visibility: hidden; }
.p-cal-day.income { background: var(--day-fill-income); color: var(--text-primary); }
.p-cal-day.expense { background: var(--day-fill-expense); color: var(--text-primary); }
.p-cal-day.even { background: var(--day-fill-even); color: var(--text-primary); }
.p-cal-day.today {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  color: var(--accent-text);
  font-weight: 700;
}

.p-cal-sub-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  bottom: 3px;
}

/* Report Screen inside Phone */
.p-seg-pill {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 10.5px;
}

html[data-theme="light"] .p-seg-pill {
  background: rgba(28, 25, 23, 0.06);
}

.p-seg-pill span {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--text-dim);
  font-weight: 500;
}

.p-seg-pill span.is-on {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 600;
}

.p-ring-box {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2px 0;
}

.p-ring-svg {
  width: 152px;
  height: 152px;
  transform: rotate(-90deg);
}

.p-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.p-ring-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.p-ring-exp {
  font-size: 16px;
  font-weight: 700;
  color: var(--expense-red);
  line-height: 1.2;
  margin-top: 2px;
}

.p-ring-inc {
  font-size: 11px;
  font-weight: 600;
  color: var(--income-green);
  margin-top: 2px;
}

.p-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}

html[data-theme="light"] .p-cat-row {
  background: #fbf8ef;
}

.p-cat-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.p-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.p-cat-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-cat-pct {
  font-size: 10.5px;
  color: var(--text-dim);
}

.p-cat-amt {
  font-weight: 600;
  color: var(--text-primary);
}

/* Payments (Subscriptions & Credits) Screen inside Phone — Obsidian style matching real screenshots */
.p-pay-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.p-pay-seg span {
  text-align: center;
  padding: 6px 8px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 500;
  color: #a6a095;
}

.p-pay-seg span.is-on {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b;
  font-weight: 600;
}

.p-sub-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 4px;
  font-size: 12px;
  color: #9c968b;
}

.p-sub-summary strong {
  font-size: 16px;
  color: #f2f1ed;
}

.p-sub-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.p-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.p-sub-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.p-sub-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.p-sub-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #f2f1ed;
  line-height: 1.2;
}

.p-sub-due {
  font-size: 10.5px;
  color: #8f897e;
}

.p-sub-amt {
  font-size: 12.5px;
  font-weight: 600;
  color: #f2f1ed;
}

.p-loan-card {
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.36);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-loan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #f2f1ed;
}

.p-loan-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.p-loan-fill {
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: #f59e0b;
}

.p-loan-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #b5afa4;
}

/* Settings Screen inside Phone */
.p-set-group {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

html[data-theme="light"] .p-set-group {
  background: #fbf8ef;
}

.p-set-head {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  padding: 0 4px 4px;
  font-weight: 600;
}

.p-set-row {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-primary);
}

.p-set-row:last-child {
  border-bottom: 0;
}

.p-set-val {
  font-size: 11.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.p-set-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  font-size: 10.5px;
  font-weight: 600;
}

.p-theme-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 8px 10px 6px;
}

.p-theme-pill {
  text-align: center;
  padding: 5px 4px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.p-theme-pill.is-on {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
  font-weight: 600;
}

.p-swatches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 10px;
}

.p-swatch {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.p-swatch.is-on {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.p-switch {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.35);
  position: relative;
  transition: background-color 180ms ease;
}

.p-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 180ms ease;
}

.p-switch.is-on {
  background: var(--accent);
}

.p-switch.is-on::after {
  transform: translateX(13px);
}

/* Real Pennot Frosted-Glass BottomBlock inside Phone (matching Obsidian app screenshots) */
.phone-bottom-block {
  margin: 0 10px 10px;
  padding: 7px;
  border-radius: 24px;
  background: rgba(18, 17, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 6;
  flex-shrink: 0;
}

.phone-home-actions-wrap {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.phone-home-actions-wrap.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
}

.phone-home-actions-inner {
  overflow: hidden;
  min-height: 0;
}

.phone-home-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 7px;
}

.p-act-btn {
  flex: 1;
  height: 36px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 600;
}

.p-act-btn.debit {
  background: rgba(229, 104, 104, 0.16);
  border: 1px solid rgba(229, 104, 104, 0.42);
  color: #e56868;
}

.p-act-btn.credit {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.42);
  color: #24c462;
}

.p-act-calc {
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-tab-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}

.phone-tab-pill-track {
  position: absolute;
  inset: 0;
  width: calc(100% + 4px);
  pointer-events: none;
}

.phone-tab-pill-mover {
  width: 25%;
  height: 100%;
  padding-right: 4px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-tab-pill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.46);
}

.phone-tab-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 5px 2px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8f8a82;
  cursor: pointer;
  transition: color 180ms ease, transform 120ms ease;
}

.phone-tab-btn.is-active {
  color: #f59e0b;
}

.phone-tab-btn.is-pressed {
  transform: scale(0.9);
}

.phone-tab-btn span {
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

/* Lifelike Touch Finger & Ripple Animation over Bottom Nav */
.phone-touch-cursor {
  position: absolute;
  top: 50%;
  left: 12.5%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transition: left 200ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.phone-touch-cursor.is-visible {
  opacity: 1;
}

.phone-touch-core {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #f59e0b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transform: scale(1);
  transition: transform 110ms ease;
}

.phone-touch-cursor.is-tapping .phone-touch-core {
  transform: scale(0.7);
}

.phone-touch-ripple {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #f59e0b;
  opacity: 0;
  transform: scale(0.5);
}

.phone-touch-cursor.is-tapping .phone-touch-ripple {
  animation: phoneTapRipple 380ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes phoneTapRipple {
  0% {
    opacity: 0.9;
    transform: scale(0.55);
  }
  100% {
    opacity: 0;
    transform: scale(2.15);
  }
}

.is-blurred { filter: blur(6px); user-select: none; }

/* Sections */
.site-section {
  padding: 52px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-title {
  margin-top: 8px;
  font-size: clamp(22px, 5.4vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: auto;
}

.section-desc {
  margin-top: 10px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-grid > *,
.cards-grid-3 > *,
.cards-grid-2 > *,
.pricing-grid > *,
.contact-grid > *,
.field-row > *,
.footer-grid > * {
  min-width: 0;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 680px) {
  .cards-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}

@media (min-width: 480px) {
  .card {
    padding: 22px;
  }
}

.card:hover {
  border-color: var(--border-strong);
}

.card-link {
  text-decoration: none;
}

.card-link:active {
  transform: scale(0.985);
}

@media (hover: hover) {
  .card-link:hover {
    border-color: var(--accent-border);
    transform: translateY(-2px);
  }
}

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: break-word;
  hyphens: auto;
}

.card-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 920px) {
  .pricing-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.pricing-card {
  border-radius: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pricing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-primary);
}

.status-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  color: var(--text-muted);
}

/* Inner Page Header & Legal Docs */
.page-shell {
  padding: 40px 0 64px;
}

.page-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.page-title {
  font-size: clamp(23px, 6.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.page-subtitle {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  overflow-wrap: break-word;
}

.meta-date {
  font-size: 13px;
  color: var(--text-dim);
}

.highlight-banner {
  margin-top: 28px;
  border-radius: 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-box {
  margin-top: 28px;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc-box {
  margin-top: 24px;
  border-radius: 18px;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  padding: 20px;
}

.toc-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 600px) {
  .toc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.toc-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 3px 0;
}

.toc-link:hover {
  color: var(--accent-text);
}

.legal-article {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section {
  scroll-margin-top: 88px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(19px, 4.8vw, 22px);
  font-weight: 600;
  color: var(--text-primary);
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.legal-bullets {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.legal-bullets li::marker {
  color: var(--accent-text);
}

/* Specs Table & CTA Banner */
.specs-card {
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.spec-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-row:last-child {
  border-bottom: 0;
}

@media (min-width: 600px) {
  .spec-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.spec-label {
  font-size: 14px;
  color: var(--text-dim);
}

.spec-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  word-break: break-word;
}

.cta-banner {
  margin-top: 40px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-border);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 680px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Contact Form & FAQ Controls */
.contact-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1.35fr 0.85fr;
  }
}

.form-card {
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-app);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.form-error {
  font-size: 13px;
  color: var(--expense-red);
}

.search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
}

.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.filter-pills {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  gap: 8px;
  margin-top: 6px;
  padding-bottom: 2px;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

@media (min-width: 560px) {
  .filter-pills {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.filter-pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.filter-pill:active {
  transform: scale(0.96);
}

.filter-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
}

.faq-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 180ms ease;
}

.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-trigger {
  width: 100%;
  min-height: 54px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

@media (min-width: 480px) {
  .faq-trigger {
    padding: 18px 20px;
    font-size: 16px;
  }
}

.faq-trigger:hover {
  background: var(--bg-surface-hover);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  display: inline-flex;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), color 180ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent-text);
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 280ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-answer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-wrap: break-word;
}

@media (min-width: 480px) {
  .faq-answer {
    padding: 14px 20px 18px;
  }
}

/* Footer */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-subtle);
  padding: 48px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.2fr 1.1fr;
    gap: 36px;
  }
}

.footer-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-lang-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.footer-lang-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
}

.footer-lang-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-text);
  font-weight: 600;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.email-highlight {
  color: var(--accent-text);
  font-weight: 600;
  word-break: break-all;
  text-decoration: none;
}

.email-highlight:hover {
  text-decoration: underline;
}

.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--bg-surface-raised);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  word-break: break-all;
}

.channel-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

/* Smooth Page Entrance & Scroll-Reveal Choreography */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main#main-content {
  animation: pageEnter 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-ready.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Tactile mobile button & link feedback */
.pill-btn:active,
.btn-secondary:active,
.footer-lang-btn:active {
  transform: scale(0.96);
}

.site-footer {
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 479px) {
  .pricing-card,
  .form-card,
  .cta-banner {
    padding: 20px 18px;
    border-radius: 22px;
  }
  .highlight-banner,
  .summary-box,
  .toc-box {
    padding: 18px;
  }
  .site-section {
    padding: 40px 0;
  }
  .page-shell {
    padding: 28px 0 48px;
  }
  .spec-row {
    padding: 13px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  main#main-content {
    animation: none;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mobile-drawer,
  .lang-menu,
  .faq-answer-wrap,
  .faq-chevron,
  .phone-screen,
  .phone-tab-pill-mover,
  .phone-home-actions-wrap {
    transition: none !important;
  }
}
