/* A quieter neutral palette with the original Trispend cyan as the sole accent. */
:root {
  --font-min: 12px;
  --paper: #fcfcfd;
  --muted: #737e8c;
  --subtle: #98a3ae;
  --line: #e9edf1;
  --link: var(--brand);
}

.wordmark { font-size: 27px; font-weight: 650; letter-spacing: -1.3px; }
.nav-links { color: #7b8593; }
.nav-actions .button-outline { color: #5f6b79; border-color: #e1e6ec; }
.site-header .nav, .site-header .mobile-menu { border-bottom: 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fcfcfd;
  box-shadow: none;
}
.site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(29, 33, 41, .065);
  opacity: 0;
  transition: opacity 260ms ease;
}
.site-header.is-scrolled::after { opacity: 1; }
@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .site-header {
    background: rgba(252, 252, 253, .94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
.nav-links [aria-current="location"] { color: var(--brand); }
.hero-actions { flex-direction: column; gap: 17px; }
.hero { padding-top: 74px; }
.hero h1 { margin-top: 0; }
.hero-stage { margin-top: 44px; }
.hero-actions .text-link { color: var(--ink); font-size: 12px; }
.button-primary, .button-blue { color: #fff; background: var(--brand); box-shadow: 0 4px 16px #1dbdf30e; }
.button-primary:hover, .button-blue:hover { color: #fff; background: var(--brand); box-shadow: 0 8px 24px #1dbdf327; }
.button-primary:active, .button-blue:active { transform: translateY(0); }
.hero h1 span { color: var(--brand); }
.hero-glow { opacity: .35; }
.orbit { opacity: .5; }
.orbit-wide { opacity: .25; }
.eyebrow, .hero-notes, .step-number, .mini-proof, .feature-small-notes div,
.guide-meta, .group-caption, .breadcrumb, .article-meta, .download-fine,
.receipt-code, .stage-caption { color: var(--brand) !important; }
.hero-notes { font-size:var(--font-min); }
.eyebrow { font-weight: 500; letter-spacing: 1.8px; }
.step-number { opacity: .8; }
.mini-proof, .feature-small-notes div { font-weight: 450; }
.group-section { background: #f7f9fa; }
.group-inner { grid-template-columns: 1.2fr .8fr; gap: 60px; }
.group-copy .section-heading { font-size: clamp(35px, 4vw, 52px); }
.group-tagline { display: block; }
.group-ring { border-color: #dbeef4; }
.group-center { box-shadow: 0 12px 30px #243a4d05; border-color: #e7edf1; }
.person-bubble { box-shadow: none; }
.person-bubble .icon { color: var(--brand); }
.pro-panel { background: #1d2129; }
.pro-panel { display: block; }
.pro-heading { display: flex; align-items: center; justify-content: space-between; gap: 55px; }
.pro-panel .pro-intro .section-heading { max-width: none; }
.pro-panel .pro-intro > p { max-width: 630px; }
.pro-heading .pro-symbol { width: 112px; height: 112px; border-radius: 28px; }
.pro-heading .pro-symbol .icon { width: 48px; height: 48px; }
.pro-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 34px; margin-top: 40px; }
.pro-feature h3 { color: var(--brand-light); font-size: 15px; line-height: 1.5; font-weight: 500; }
.pro-panel .pro-feature p { font-size: 13px; line-height: 1.8; margin-top: 8px; max-width: none; }
.pro-panel .pro-plans { margin-top: 31px; color: #8d9ba9; font-size:var(--font-min); max-width: none; }
.pro-panel .eyebrow { color: var(--brand-light) !important; }
.pro-panel p { color: #aab6c2; }
.pro-chips span { color: var(--brand-light); border-color: #6bdfff28; }
.pro-symbol { background: transparent; border-color: #ffffff0c; }
.pro-symbol .icon { color: var(--brand-light); }
.guide-art, .guide-art.warm { background: #f5f7f9; }
.guide-art .guide-circle, .guide-art.warm .guide-circle { border-color: #dfedf3; }
.guide-art .icon, .guide-art.warm .icon { color: var(--brand); opacity: .6; }
.guide-art-split, .guide-art-personal { position: relative; isolation: isolate; padding: 18px 24px 31px; background: #f4f7f9; }
.mini-split { width: min(290px, calc(100% - 20px)); padding: 15px 20px; background: #fff; border: 1px solid #e6edf1; border-radius: 17px; box-shadow: 0 12px 28px #253d5010; transform: rotate(-2deg); }
.mini-split-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size:var(--font-min); color: #8c99a7; line-height: 1.4; }
.mini-split-head > span:first-child { color: var(--brand); letter-spacing: 1.3px; }
.mini-total { margin-top: 8px; font-size: 31px; font-weight: 550; line-height: 1.15; letter-spacing: -1px; color: #26303b; }
.mini-total > span { color: #a4afba; font-size: 23px; }
.mini-shares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.mini-shares > span { display: flex; align-items: center; gap: 7px; }
.mini-shares i { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e3f8fd; color: #269dbf; font-size:var(--font-min); font-style: normal; }
.mini-shares b { font-size: 12px; font-weight: 500; color: #647382; }
.mini-art-caption { position: absolute; bottom: 11px; left: 12px; right: 12px; text-align: center; color: #91a0ad; font-size:var(--font-min); line-height: 1.5; letter-spacing: .25px; }
.mini-receipts { display: flex; justify-content: center; gap: 17px; width: min(287px, calc(100% - 18px)); }
.mini-expense { width: 132px; min-width: 0; padding: 16px 17px; background: #fff; border: 1px solid #e6edf1; border-radius: 16px; box-shadow: 0 12px 28px #253d500b; }
.mini-expense-shared { transform: rotate(-4deg) translateY(-2px); }
.mini-expense-personal { transform: rotate(4deg) translateY(3px); }
.mini-expense-label { display: block; color: #99a5b1; font-size:var(--font-min); line-height: 1.5; letter-spacing: 1px; }
.mini-expense strong { display: block; font-size: 29px; line-height: 1.2; letter-spacing: -.8px; font-weight: 500; margin-top: 10px; color: #33404d; }
.mini-expense-tag { display: inline-block; margin-top: 14px; font-size:var(--font-min); line-height: 1.4; padding: 5px 10px; border-radius: 7px; color: #2b9dbb; background: #e3f8fd; }
.mini-expense-personal .mini-expense-tag { color: #8a96a3; background: #f0f3f6; }
.guides-head > .text-link { color: var(--brand); font-size:var(--font-min); font-weight: 450; }
.download-section { background: linear-gradient(180deg, #f9fafc, #f4f7fa); }
.download-fine { opacity: .85; }
.support-card { background: #f5f8fa; }
.qr-block span { color: #8793a0; }
.footer-links, .footer-bottom { color: #909ba7; }
.footer-links a:hover, .article-body a, .article-aside a:hover { color: var(--brand); }

/* Reading and navigation links stay dark; cyan is reserved for visual accents. */
.text-link,
.feature-copy .text-link,
.guide-card .text-link,
.support-card .text-link,
.article-body a,
.faq-list details a,
.article-aside a:hover,
.footer-links a:hover { color: var(--ink); }
.text-link .icon { color: currentColor; }
.guides-head > .text-link { color: var(--brand); }
.guides-head > a.text-link { color: var(--ink); font-size: 13px; font-weight: 550; }
.guide-directory-content { padding-bottom: 100px; }
.guides-directory .guide-art { height: 240px; }
.guides-directory .guide-card h2 {
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -.8px;
  font-weight: 550;
  margin-top: 11px;
  max-width: none;
}
.guide-card h2, .guide-card h3, .guide-card p { max-width: none; width: 100%; }
.guide-card { border-bottom: 0; padding-bottom: 26px; }
.faq-intro .section-heading { max-width: none; }
.keep-together { display: inline-block; }
.trip-toolkit { padding-bottom: 0; }
.toolkit-intro { margin-top: 22px; max-width: 790px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.travel-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; margin-top: 48px; }
.travel-extras > article > .icon { color: var(--brand); width: 26px; height: 26px; stroke-width: 1.3; margin-bottom: 22px; }
.travel-extras h3 { font-size: 19px; font-weight: 500; letter-spacing: -.4px; }
.travel-extras p { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.feature-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px 70px; padding-top: 8px; }
.feature-summary-grid > article > .icon { width: 29px; height: 29px; stroke-width: 1.25; color: var(--brand); margin-bottom: 22px; }
.feature-summary-grid h2 { font-size: 25px; font-weight: 550; line-height: 1.35; letter-spacing: -.7px; }
.feature-summary-grid p { margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.feature-summary-grid .text-link { margin-top: 19px; }

/* Only the hero uses a device. Feature images are single frameless sheets. */
.feature-visual.screenshot-stage {
  min-height: 0;
  padding: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 23px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.screenshot-sheet {
  position: relative;
  width: min(284px, 90%);
  aspect-ratio: 1179 / 2556;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9eef2;
  border-radius: 25px;
  box-shadow: 0 24px 65px #20364809, 0 2px 8px #20364803;
}
.screenshot-stage .visual-label {
  position: static;
  color: var(--brand);
  font-size:var(--font-min);
  letter-spacing: 1.7px;
  text-align: center;
  line-height: 1.7;
}
.screenshot-sheet .shot-placeholder {
  position: absolute;
  inset: 0;
  padding: 42px 24px 30px;
  background: linear-gradient(180deg, #fff 60%, #f9fcfd);
}
.screenshot-sheet .shot-index, .screenshot-sheet .shot-placeholder p { color: var(--brand); }
.screenshot-sheet .shot-placeholder h3 { color: #788694; font-size: 23px; font-weight: 450; }
.screenshot-sheet .shot-art {
  margin-top: 68px;
  margin-bottom: 42px;
  width: 125px;
  height: 125px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.screenshot-sheet .shot-art::before, .screenshot-sheet .shot-art::after { display: none; }
.screenshot-sheet .shot-art > .icon { width: 57px; height: 57px; color: var(--brand); opacity: .55; stroke-width: .9; }
.screenshot-sheet .shot-lines span { background: #e8f5f9; }
.hero-stage .shot-placeholder { background: linear-gradient(180deg, #fff 50%, #f4fbfd); }
.hero-stage .shot-index, .hero-stage .shot-placeholder p { color: var(--brand); }
.hero-stage .shot-art { border-color: #e0f0f5; background: #fcfeff; box-shadow: none; }
.hero-stage .shot-art::before, .hero-stage .shot-art::after { border-color: #e5f3f7; }
.hero-stage .shot-art > .icon { color: var(--brand); opacity: .6; }
.hero-stage .shot-placeholder h3 { color: #697888; font-weight: 450; }

/* Align article headings with the body column and the shared site grid. */
.article-hero { max-width: var(--max); }
.article-hero h1 { margin-top: 0; }
.article-hero h1, .article-hero .article-deck { width: 100%; max-width: none; }
.support-grid { align-items: start; }
.support-card { align-self: start; }
.support-card .text-link .icon { margin-bottom: 0; width: 15px; height: 15px; }

@keyframes trispend-page-enter {
  from { opacity: .86; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
main { animation: trispend-page-enter 220ms ease-out both; }
a { transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.faq-list summary { transition: color 160ms ease; }
.faq-list summary:hover { color: #647182; }
.faq-list details { overflow: clip; }

/* Keep the two original legal documents readable in the site's own layout. */
.legal-hero { padding-bottom: 42px; }
.legal-layout { grid-template-columns: minmax(0, 730px) 230px; gap: 85px; }
.legal-body { color: #697584; }
.legal-body > p:first-child { color: #95a1ad; font-size: 12px; margin-bottom: 22px; }
.legal-body blockquote { margin: 22px 0; padding: 12px 0 12px 23px; border-left: 2px solid var(--brand); }
.legal-body h2 { scroll-margin-top: 40px; font-size: 25px; }
.legal-body h3 { font-size: 19px; }
.legal-toc { border-top: 1px solid var(--line); padding-top: 22px; }
.legal-toc a { font-size:var(--font-min); padding-block: 6px; line-height: 1.6; }
.legal-aside .legal-other { margin-top: 26px; }
@media (max-width: 1000px) {
  .group-inner { gap: 45px; }
  .legal-layout { gap: 45px; grid-template-columns: minmax(0, 1fr) 200px; }
}
@media (max-width: 760px) {
  .feature-summary-grid { gap: 38px 35px; }
  .feature-summary-grid h2 { font-size: 22px; }
  .group-inner { grid-template-columns: 1fr; }
  .pro-heading { gap: 25px; }
  .pro-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .travel-extras { gap: 25px; }
  .mobile-menu { max-height: calc(100dvh - 78px); overflow-y: auto; overscroll-behavior: contain; }
  .guide-directory-content { padding-bottom: 70px; }
  .guides-directory .guide-art { height: 195px; }
  .guides-directory .guide-card h2 { font-size: 22px; }
  .hero { padding-top: 51px; }
  .hero-stage { margin-top: 38px; }
  .hero-actions { gap: 15px; }
  .wordmark { font-size: 25px; }
  .feature-visual.screenshot-stage { padding: 10px 0; }
  .screenshot-sheet { width: min(260px, 87%); border-radius: 23px; }
  .screenshot-sheet .shot-art { margin-top: 48px; margin-bottom: 30px; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-aside { order: 2; }
  .legal-aside .legal-other { display: flex; flex-wrap: wrap; gap: 20px; }
  .legal-toc { display: none; }
}
@media (max-width: 480px) {
  .guide-art-split, .guide-art-personal { padding-inline: 12px; }
  .mini-split { width: min(270px, calc(100% - 24px)); padding-inline: 16px; }
  .mini-receipts { width: min(258px, calc(100% - 24px)); gap: 14px; }
  .mini-expense { flex: 1; width: auto; padding: 15px 13px; }
  .feature-summary-grid { grid-template-columns: 1fr; gap: 38px; }
  .pro-features, .travel-extras { grid-template-columns: 1fr; }
  .pro-heading .pro-symbol { display: none; }
  .travel-extras { margin-top: 35px; gap: 32px; }
  .hero-notes { font-size:var(--font-min); }
  .screenshot-sheet { width: min(250px, 88%); }
  .feature-panel { gap: 30px; }
  .feature-panel + .feature-panel { margin-top: 80px; }
}

/* A scannable guide directory with full articles at their own static URLs. */
.guide-directory-list { padding-bottom: 100px; }
.guide-list-item { scroll-margin-top: 120px; }
.guide-list-item + .guide-list-item { border-top: 1px solid var(--line); }
.guide-preview { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 44px; padding: 42px 0; }
.guide-preview > .guide-meta { margin: 8px 0 0; font-size: var(--font-min); line-height: 1.7; }
.guide-preview-body { max-width: 790px; min-width: 0; }
.guide-preview h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; font-weight: 550; letter-spacing: -1px; color: var(--ink); }
.guide-preview p { margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.guide-preview .text-link { margin-top: 23px; font-size: 14px; color: var(--ink); }
.guide-preview .text-link .icon { transition: transform 200ms ease; }
.guide-preview:hover .text-link .icon { transform: translateX(4px); }
.guide-back { margin-bottom: 0; color: var(--ink); font-size: 14px; }
.guide-back .icon { transform: rotate(180deg); }
.guide-detail .article-body, .guide-detail .article-aside { min-width: 0; }
.guide-detail .article-aside { position: sticky; top: 120px; max-height: calc(100dvh - 144px); overflow-y: auto; }
.guide-detail .article-body h2 { scroll-margin-top: 24px; }
.guide-detail .article-body h2:focus { outline: none; }
.guide-toc > .eyebrow { margin-bottom: 16px; }
.guide-toc a { padding: 9px 0; font-size: 13px; line-height: 1.65; }
.guide-toc a[aria-current="location"] { color: var(--ink); font-weight: 550; }
.article-body .article-callout + p { margin-top: 24px; }
@media (max-width: 760px) {
  .guide-directory-list { padding-bottom: 70px; }
  .guide-preview { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .guide-preview > .guide-meta { margin-top: 0; }
  .guide-preview p { font-size: 16px; margin-top: 16px; }
  .guide-detail .article-aside { position: static; order: -1; max-height: none; overflow: visible; }
  .guide-toc { padding: 22px; border-radius: 16px; background: #f5f8fa; }
  .guide-toc a { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-preview .text-link .icon { transition: none; }
}

/* Language controls share the existing restrained navigation treatment. */
.language-picker { position: relative; flex-shrink: 0; font-size: var(--font-min); color: var(--muted); }
.language-picker summary { list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 10px 0; line-height: 1.5; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary .icon { width: 16px; height: 16px; }
.language-picker summary .icon:last-child { width: 12px; height: 12px; transition: transform .2s; }
.language-picker[open] summary .icon:last-child { transform: rotate(180deg); }
.language-options { position: absolute; z-index: 30; right: 0; top: calc(100% + 8px); width: 220px; max-height: min(440px, 65dvh); overflow-y: auto; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 12px 42px #1d21291a; }
.language-options a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ink); line-height: 1.5; }
.language-options a:hover, .language-options a[aria-current] { background: var(--brand-tint); }
.footer-top { flex-wrap: wrap; }
.footer-language .language-options { top: auto; bottom: calc(100% + 8px); }
.mobile-language { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 16px; margin-top: 10px; font-size: 14px; }
.mobile-language select { min-width: 0; max-width: 70%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.legal-language-notice { margin-top: 20px; font-size: 14px; line-height: 1.8; color: var(--muted); }
html:not(:lang(en)) .keep-together { max-width: 100%; }
html:not(:lang(en)) h1, html:not(:lang(en)) h2, html:not(:lang(en)) h3 { overflow-wrap: anywhere; }
html:lang(zh) h1, html:lang(zh) h2, html:lang(ja) h1, html:lang(ja) h2, html:lang(ko) h1, html:lang(ko) h2 { letter-spacing: -.04em; line-height: 1.18; }
html:lang(th) * { letter-spacing: normal; }
html:lang(th) h1, html:lang(th) h2 { line-height: 1.25; }
.mini-split-head, .mini-expense > span { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .header-language, .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav { gap: 12px; }
  .nav-actions { gap: 8px; }
  .nav-actions > .button { max-width: 115px; gap: 7px; padding: 10px 12px; font-size: var(--font-min); }
  .wordmark { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .language-picker summary .icon:last-child { transition: none; }
}

/* Equal side tracks keep the main menu centered regardless of logo/action widths. */
@media (min-width: 1001px) {
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .nav > .wordmark { justify-self: start; }
  .nav-links { justify-self: center; }
  .nav-actions { justify-self: end; }
}

/* Preserve the app UI proportions inside the screenshot content viewport. */
.phone.has-screenshot { height: auto; }
.phone.has-screenshot .phone-screen { height: auto; aspect-ratio: var(--screenshot-ratio); }
.screenshot-sheet { aspect-ratio: var(--screenshot-ratio, 1179 / 2556); }

/* A little more room for reliable desktop QR scanning. */
.qr-block img { width: 84px; height: 84px; }

/* Let the device shadow dissipate; fade only the decorative halo and orbit layer. */
.hero-stage { overflow: visible; }
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, .72) 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, .72) 78%, transparent 100%);
}

/* Only cover the time and mute glyphs with a blank part of the same status background. */
.screenshot-status-cleanup {
  position: absolute;
  z-index: 1;
  left: 8.29187396%;
  top: 2.09763539%;
  width: 19.90049751%;
  height: 3.43249428%;
  background-size: 502.5% 2913.33333333%;
  background-position: 41.40786749% 2.17219589%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.screenshot-display-time { width: 100%; height: 100%; display: block; }
