/* DM Sans — self-hosted (variable font) so no visitor data is sent to Google,
   keeping us consistent with our privacy policy. */
@font-face {
	font-family: 'DM Sans';
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url(/fonts/dmsans-latin.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: 'DM Sans';
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url(/fonts/dmsans-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'DM Sans';
	font-style: italic;
	font-weight: 100 1000;
	font-display: swap;
	src: url(/fonts/dmsans-italic-latin.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: 'DM Sans';
	font-style: italic;
	font-weight: 100 1000;
	font-display: swap;
	src: url(/fonts/dmsans-italic-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--brand:      #4f46e5;	/* indigo */
	--brand-dk:   #3a32c4;
	--brand-2:    #0ea5a9;	/* teal */
	--accent:     #f97316;	/* coral */
	--ts-green:   #58b67c;	/* TripSplit brand green */
	--ts-green-dk:#3f9e64;
	--ink:        #181a2c;
	--ink-soft:   #4a4d63;
	--ink-faint:  #6b6e85;
	--line:       #e6e7f0;
	--bg:         #f7f8fc;
	--card:       #ffffff;
	--radius:     16px;
	--shadow-sm:  0 1px 2px rgba(24,26,44,.06), 0 2px 8px rgba(24,26,44,.05);
	--shadow-md:  0 10px 30px rgba(24,26,44,.10);
	--shadow-lg:  0 24px 60px rgba(24,26,44,.18);
	--maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "DM Sans", system-ui, -apple-system, sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

#sitewrap {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Nav ---------- */
#nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247,248,252,.82);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
}
.nav-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--ink);
	letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	box-shadow: var(--shadow-sm);
}
.brand-mark.small { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
.brand-name { font-size: 19px; }
.nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nav-links a {
	color: var(--ink-soft);
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 10px;
}
.nav-links a:hover { color: var(--ink); background: rgba(79,70,229,.07); text-decoration: none; }
.nav-cta {
	background: var(--ink);
	color: #fff !important;
}
.nav-cta:hover { background: var(--brand) !important; }

/* ---------- Full-bleed helper ---------- */
.full-bleed {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 13px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 16px;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-dk); }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dk); box-shadow: var(--shadow-md); font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
	background:
		radial-gradient(1200px 500px at 15% -10%, rgba(14,165,169,.18), transparent 60%),
		radial-gradient(1000px 500px at 100% 0%, rgba(79,70,229,.20), transparent 55%),
		linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
	border-bottom: 1px solid var(--line);
}
.hero-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 84px 24px 92px;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
}
.eyebrow {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px;
	font-weight: 700;
	color: var(--brand);
	margin: 0 0 14px;
}
.eyebrow.light { color: rgba(255,255,255,.85); }
.hero h1 {
	font-size: clamp(2.4rem, 5vw, 3.7rem);
	line-height: 1.05;
	letter-spacing: -0.025em;
	margin: 0 0 20px;
	font-weight: 800;
}
.lede {
	font-size: 1.2rem;
	color: var(--ink-soft);
	margin: 0 0 32px;
	max-width: 32ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* App store badges — official artwork, unaltered. Sizes chosen so the visible
   buttons match: Apple's badge is edge-to-edge, Google's has built-in clear space.
   The gap supplies the clear space both platforms' guidelines require. */
.store-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 26px;
}
.store-badge { display: inline-flex; transition: transform .12s ease, opacity .12s ease; }
.store-badge:hover { transform: translateY(-2px); opacity: .88; text-decoration: none; }
.store-badge img { display: block; width: auto; }
.store-badge--apple img { height: 42px; }
.store-badge--google img { height: 64px; }

/* Hero art: a little receipt card */
.hero-art { display: flex; justify-content: center; }
.receipt {
	width: 100%;
	max-width: 340px;
	background: var(--card);
	border-radius: 20px;
	box-shadow: var(--shadow-lg);
	padding: 24px;
	transform: rotate(2deg);
	border: 1px solid var(--line);
}
.receipt-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.receipt-title { font-weight: 700; font-size: 1.1rem; }
.receipt-pill {
	font-size: 12px;
	font-weight: 600;
	color: var(--brand-2);
	background: rgba(14,165,169,.12);
	padding: 4px 10px;
	border-radius: 999px;
}
.receipt-lines { list-style: none; margin: 0; padding: 0; }
.receipt-lines li {
	display: flex;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px dashed var(--line);
	color: var(--ink-soft);
}
.receipt-lines li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.receipt-foot {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 18px;
	padding-top: 6px;
}
.receipt-foot > span:first-child { color: var(--ink-faint); font-size: .95rem; }
.receipt-total {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--brand);
	font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
	font-weight: 800;
}
.section-sub { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }
.section-sub.light { color: rgba(255,255,255,.9); }

/* Feature cards */
.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px 24px;
	box-shadow: var(--shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
	width: 48px; height: 48px;
	display: grid; place-items: center;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(14,165,169,.12));
	font-size: 22px;
	margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* About */
.section-about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose { max-width: 680px; margin: 0 auto; }
.prose p { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 18px; }
.prose strong { color: var(--ink); }
.stat-row {
	max-width: 760px;
	margin: 44px auto 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	text-align: center;
}
.stat {
	padding: 24px;
	border-radius: var(--radius);
	background: linear-gradient(180deg, #fafbff, #f3f4fb);
	border: 1px solid var(--line);
}
.stat-num {
	display: block;
	font-size: 2rem;
	font-weight: 800;
	color: var(--brand);
	letter-spacing: -0.02em;
}
.stat-label { color: var(--ink-faint); font-size: .95rem; }

/* Contact */
.section-contact {
	background:
		radial-gradient(900px 400px at 80% 120%, rgba(14,165,169,.45), transparent 60%),
		linear-gradient(135deg, var(--brand-dk), var(--brand));
	color: #fff;
	text-align: center;
}
.contact-inner { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px; }
.section-contact .section-head { margin-bottom: 32px; }
.section-contact h2 { color: #fff; }
.contact-note { margin: 20px 0 0; color: rgba(255,255,255,.85); font-size: .95rem; }
.contact-note a { color: #fff; text-decoration: underline; }

/* ---------- Document pages (privacy / terms) ---------- */
.markdown,
body:not(.home) #sitewrap > h1:first-child,
body:not(.home) #sitewrap > h2,
body:not(.home) #sitewrap > h3,
body:not(.home) #sitewrap > p,
body:not(.home) #sitewrap > ul {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.markdown { padding: 56px 0 24px; }
body:not(.home) #sitewrap { padding-top: 24px; }

.markdown h1,
body:not(.home) #sitewrap > h1 {
	font-size: clamp(2rem, 4vw, 2.8rem);
	letter-spacing: -0.02em;
	font-weight: 800;
	line-height: 1.1;
	margin: 0 0 .4em;
}
.markdown h2,
body:not(.home) #sitewrap > h2 {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 1.8em 0 .5em;
	padding-top: 1.2em;
	border-top: 1px solid var(--line);
}
.markdown h3,
body:not(.home) #sitewrap > h3 { font-size: 1.12rem; font-weight: 700; margin: 1.4em 0 .4em; }
.markdown p, .markdown li,
body:not(.home) #sitewrap > p,
body:not(.home) #sitewrap > ul li {
	color: var(--ink-soft);
	font-size: 1.05rem;
}
.markdown ul,
body:not(.home) #sitewrap > ul { padding-left: 1.2em; }
.markdown li, body:not(.home) #sitewrap > ul li { margin: .4em 0; }
.markdown strong, body:not(.home) #sitewrap strong { color: var(--ink); }

/* ---------- Footer ---------- */
#footer {
	background: #14152a;
	color: rgba(255,255,255,.7);
	margin-top: 0;
}
.footer-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 44px 24px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px 40px;
	align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.footer-links a { color: rgba(255,255,255,.78); font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-legal { font-size: 12px; line-height: 1.6; text-align: right; color: rgba(255,255,255,.55); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 24px 64px; }
	.hero-art { order: -1; }
	.lede { max-width: none; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.footer-inner { grid-template-columns: 1fr; text-align: center; }
	.footer-links { justify-content: center; }
	.footer-legal { text-align: center; }
	.footer-brand { justify-content: center; }
}
@media (max-width: 560px) {
	.nav-links a:not(.nav-cta) { display: none; }
	.cards { grid-template-columns: 1fr; }
	.stat-row { grid-template-columns: 1fr; }
	.section { padding: 60px 0; }
}

/* ===================================================================
   Product page (TripSplit) + phone mockups
   =================================================================== */
.product-hero {
	background:
		radial-gradient(1100px 480px at 12% -10%, rgba(88,182,124,.22), transparent 60%),
		radial-gradient(900px 460px at 100% 0%, rgba(63,158,100,.16), transparent 55%),
		linear-gradient(180deg, #fbfffc 0%, var(--bg) 100%);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.product-hero-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 72px 24px 80px;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 40px;
	align-items: center;
}
.product-logo { height: 56px; width: auto; margin-bottom: 22px; }
.product-hero h1 {
	font-size: clamp(2.1rem, 4.4vw, 3.2rem);
	line-height: 1.07;
	letter-spacing: -0.025em;
	margin: 0 0 18px;
	font-weight: 800;
}
.product-hero .lede { font-size: 1.18rem; color: var(--ink-soft); margin: 0 0 30px; max-width: 36ch; }
.product-hero .store-badges { margin-top: 0; }

/* Phone stack */
.phone-stack {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 470px;
}
.phone {
	width: 224px;
	aspect-ratio: 9 / 19;
	background: #0d0f1a;
	border-radius: 36px;
	padding: 9px;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(255,255,255,.08);
}
.phone-stack .phone.back {
	position: absolute;
	transform: translateX(-92px) translateY(18px) rotate(-7deg) scale(.94);
	opacity: .96;
	z-index: 1;
}
.phone-stack .phone.front {
	position: relative;
	transform: translateX(58px) rotate(3deg);
	z-index: 2;
}
.phone-screen {
	width: 100%; height: 100%;
	background: #f4f6fa;
	border-radius: 28px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
}
.phone-screen::before { /* notch pill */
	content: "";
	position: absolute;
	top: 9px; left: 50%; transform: translateX(-50%);
	width: 46px; height: 5px; border-radius: 3px;
	background: rgba(13,15,26,.18);
	z-index: 5;
}
/* App UI inside the screen */
.pm-top {
	background: var(--ts-green);
	color: #fff;
	padding: 26px 16px 16px;
}
.pm-top .pm-eyebrow { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.pm-top .pm-title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.pm-total { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.pm-total b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pm-total span { font-size: 10px; opacity: .85; }
.pm-avatars { display: flex; margin-top: 12px; }
.pm-avatars i {
	width: 22px; height: 22px; border-radius: 50%;
	border: 2px solid var(--ts-green);
	margin-left: -6px; font-style: normal;
	font-size: 9px; font-weight: 700; color: #fff;
	display: grid; place-items: center;
}
.pm-avatars i:first-child { margin-left: 0; }
.pm-list { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pm-row {
	background: #fff; border-radius: 12px; padding: 9px 10px;
	display: flex; align-items: center; gap: 9px;
	box-shadow: 0 1px 3px rgba(24,26,44,.06);
}
.pm-ico {
	width: 28px; height: 28px; border-radius: 9px; flex: none;
	display: grid; place-items: center; font-size: 14px;
	background: rgba(88,182,124,.14);
}
.pm-row .pm-meta { flex: 1; min-width: 0; }
.pm-row .pm-meta b { display: block; font-size: 11px; font-weight: 600; color: var(--ink); }
.pm-row .pm-meta span { font-size: 9px; color: var(--ink-faint); }
.pm-row .pm-amt { font-size: 11px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.pm-fab {
	margin: 0 12px 14px; padding: 10px; border-radius: 12px;
	background: var(--ts-green); color: #fff; text-align: center;
	font-size: 11px; font-weight: 700;
}
/* Settle-up variant */
.pm-balance {
	background: #fff; border-radius: 12px; padding: 11px;
	box-shadow: 0 1px 3px rgba(24,26,44,.06);
}
.pm-balance .pm-you { font-size: 10px; color: var(--ink-faint); }
.pm-balance .pm-big { font-size: 19px; font-weight: 800; color: var(--ts-green-dk); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pm-pay {
	display: flex; align-items: center; justify-content: space-between;
	font-size: 10.5px; color: var(--ink-soft); padding: 7px 2px;
	border-bottom: 1px dashed var(--line);
}
.pm-pay:last-child { border-bottom: 0; }
.pm-pay b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* How it works */
.steps {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
	counter-reset: step;
}
.step { text-align: left; }
.step .step-n {
	width: 38px; height: 38px; border-radius: 11px;
	display: grid; place-items: center; font-weight: 800; color: #fff;
	background: linear-gradient(135deg, var(--ts-green), var(--ts-green-dk));
	margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 1.12rem; font-weight: 700; }
.step p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Feature rows */
.feature-row {
	display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
	align-items: center; padding: 36px 0;
}
.feature-row.flip .feature-art { order: 2; }
.feature-row h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.feature-row p { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }
.feature-art { display: flex; justify-content: center; }
.feature-tag {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--ts-green-dk);
	background: rgba(88,182,124,.12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.btn-ts { background: var(--ts-green); color: #fff; box-shadow: var(--shadow-md); }
.btn-ts:hover { background: var(--ts-green-dk); }

@media (max-width: 860px) {
	.product-hero-inner { grid-template-columns: 1fr; gap: 24px; padding: 52px 24px 56px; }
	.phone-stack { min-height: 430px; margin-top: 10px; }
	.steps { grid-template-columns: 1fr; gap: 18px; }
	.feature-row { grid-template-columns: 1fr; gap: 22px; padding: 24px 0; }
	.feature-row.flip .feature-art { order: 0; }
}
