/* Styles for the guide pages (guides/*.html) - the same dusk palette as the home page,
   tuned for long-form reading. */

@font-face{font-family:'Bona Nova';font-style:italic;font-weight:400;font-display:swap;src:url('/assets/fonts/bona-nova-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:'Bona Nova';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/bona-nova-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:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url('/assets/fonts/jetbrains-mono-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:'Manrope';font-style:normal;font-weight:300 700;font-display:swap;src:url('/assets/fonts/manrope-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}

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

:root {
	--ink: #fff4f7;
	--ink-2: rgba(255, 238, 244, 0.84);
	--ink-3: rgba(255, 232, 240, 0.64);
	--dark: #2e1020;
	--dark-2: #5a3245;
	--wine: #6e1832;
	--cherry: #ffb6ca;
	--pink: #ffc4d4;
	--pale: #ffd3de;
	--line: rgba(110, 24, 60, 0.14);
	--glass: rgba(58, 14, 44, 0.3);
	--glass-b: rgba(255, 214, 228, 0.2);

	--display: 'Bona Nova', Georgia, serif;
	--body: 'Manrope', system-ui, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, monospace;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
	background-color: #44193c;
	scroll-behavior: smooth;
}
body {
	font-family: var(--body);
	color: var(--ink);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
/* dusk sky that deepens toward night, like the home page */
body::before {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(60vw 45vw at 10% 0%, rgba(255, 170, 195, 0.22), transparent 70%),
		radial-gradient(55vw 40vw at 100% 40%, rgba(150, 90, 160, 0.26), transparent 70%),
		linear-gradient(180deg, #6b495b 0%, #57284a 45%, #44193c 100%);
}
img {
	display: block;
	max-width: 100%;
}
a {
	color: inherit;
	text-decoration: none;
}
:focus-visible {
	outline: 2px solid var(--cherry);
	outline-offset: 3px;
}
[id] {
	scroll-margin-top: 90px;
}

/* ── shared bits ── */
.label {
	display: block;
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 14px;
}
.glass {
	background: var(--glass);
	border: 1px solid var(--glass-b);
	box-shadow: 0 30px 60px -40px rgba(20, 4, 16, 0.6);
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-size: 21px;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.brand img {
	width: 28px;
	height: 28px;
	filter: brightness(0) invert(1);
}
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 22px;
	border-radius: 99px;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	transition:
		transform 0.25s var(--ease),
		background 0.25s,
		box-shadow 0.25s;
}
.btn:hover {
	transform: translateY(-2px);
}
.btn-wine {
	background: var(--wine);
	color: #fff;
	box-shadow: 0 12px 30px -10px rgba(110, 24, 50, 0.6);
}
.btn-wine:hover {
	background: #7f1d3b;
}
.btn-light {
	background: #fffaf7;
	color: var(--dark);
	box-shadow: 0 10px 30px -8px rgba(40, 6, 20, 0.5);
}
.badge {
	display: inline-block;
	transition: transform 0.25s var(--ease);
}
.badge:hover {
	transform: translateY(-2px);
}
.badge img {
	height: 48px;
	width: auto;
}
.fine {
	font-size: 13px;
	line-height: 1.55;
	color: var(--ink-3);
}
.get-row {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.get-row .fine {
	max-width: 300px;
}

/* ── top bar ── */
.g-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: calc(14px + env(safe-area-inset-top)) 28px 14px;
	border-bottom: 1px solid transparent;
	transition:
		background 0.3s,
		border-color 0.3s;
}
.g-nav.scrolled {
	background: rgba(84, 42, 70, 0.78);
	backdrop-filter: blur(22px) saturate(1.3);
	-webkit-backdrop-filter: blur(22px) saturate(1.3);
	border-color: var(--glass-b);
}
.g-nav nav {
	display: flex;
	gap: 28px;
	font-size: 14px;
	font-weight: 500;
}
.g-nav nav a {
	opacity: 0.85;
}
.g-nav nav a:hover,
.g-nav nav a[aria-current] {
	opacity: 1;
}
.g-nav .btn {
	padding: 9px 16px;
	font-size: 13px;
}

/* ── article column ── */
.g-main {
	padding: 30px 20px 0;
}
.g-article {
	max-width: 720px;
	margin: 0 auto;
}
.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	font-size: 13px;
	color: var(--ink-3);
}
.crumbs li + li::before {
	content: '/';
	margin-right: 6px;
	opacity: 0.6;
}
.crumbs a:hover {
	color: var(--ink);
}
.g-head {
	padding: 42px 0 30px;
}
.eyebrow {
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 18px;
}
.g-head h1 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 64px);
	line-height: 1.04;
	letter-spacing: -0.03em;
}
.g-head h1 em {
	color: var(--cherry);
}
.dek {
	margin-top: 20px;
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-2);
}
.g-meta {
	margin-top: 22px;
	font-size: 13px;
	color: var(--ink-3);
}

.answer {
	border-radius: 22px;
	padding: 26px 28px;
	margin-bottom: 22px;
	border-left: 3px solid var(--cherry);
}
.answer p {
	font-size: 17px;
	line-height: 1.7;
}
.toc {
	border-radius: 22px;
	padding: 24px 28px;
	margin-bottom: 48px;
}
.toc ol {
	list-style: none;
	counter-reset: toc;
	display: grid;
	gap: 4px;
}
.toc li {
	counter-increment: toc;
	display: flex;
	gap: 12px;
	font-size: 15px;
	line-height: 1.5;
}
.toc li::before {
	content: counter(toc, decimal-leading-zero);
	font-family: var(--mono);
	font-size: 11px;
	color: var(--ink-3);
	padding-top: 4px;
	min-width: 20px;
}
.toc a {
	color: var(--ink-2);
	padding: 3px 0;
}
.toc a:hover {
	color: var(--pale);
}

/* ── prose ── */
.prose {
	font-size: 17.5px;
	line-height: 1.78;
	color: var(--ink-2);
}
.prose > * + * {
	margin-top: 1.1em;
}
.prose h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(30px, 4vw, 38px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--ink);
	margin-top: 2.2em;
}
.prose h2 em {
	color: var(--cherry);
}
.prose h3 {
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ink);
	margin-top: 1.8em;
}
.prose h2 + p,
.prose h3 + p {
	margin-top: 0.7em;
}
.prose strong {
	color: var(--ink);
	font-weight: 700;
}
.prose a {
	color: var(--pale);
	border-bottom: 1px solid rgba(255, 211, 222, 0.4);
}
.prose a:hover {
	border-bottom-color: var(--pale);
}
/* buttons and badges inside the article keep their own look */
.prose a.btn,
.prose a.badge {
	border-bottom: 0;
}
.prose a.btn-light {
	color: var(--dark);
}
.prose ul,
.prose ol {
	padding-left: 1.3em;
}
.prose li + li {
	margin-top: 0.5em;
}
.prose li::marker {
	color: var(--cherry);
}
/* "try saying" scripts */
.say {
	position: relative;
	border-radius: 18px;
	padding: 20px 24px 20px 26px;
	background: rgba(255, 214, 228, 0.08);
	border: 1px solid var(--glass-b);
}
.say::before {
	content: 'Try saying';
	display: block;
	font-family: var(--mono);
	font-size: 10.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 8px;
}
.say.avoid::before {
	content: 'Instead of';
	color: rgba(255, 232, 240, 0.55);
}
.say p {
	font-family: var(--display);
	font-style: italic;
	font-size: 21px;
	line-height: 1.45;
	color: var(--ink);
}
.say p + p {
	margin-top: 10px;
}
.say.avoid p {
	color: var(--ink-3);
	text-decoration: line-through;
	text-decoration-color: rgba(255, 182, 202, 0.5);
}
.note {
	border-radius: 18px;
	padding: 18px 22px;
	font-size: 15.5px;
	line-height: 1.65;
	background: rgba(20, 4, 16, 0.22);
	border: 1px solid rgba(255, 214, 228, 0.14);
}
.note strong {
	color: var(--pale);
}
.qlist {
	list-style: none;
	padding: 0 !important;
	display: grid;
	gap: 10px;
	counter-reset: q;
}
.qlist li {
	counter-increment: q;
	position: relative;
	padding: 14px 18px 14px 56px;
	border-radius: 14px;
	background: rgba(255, 214, 228, 0.06);
	border: 1px solid rgba(255, 214, 228, 0.12);
	color: var(--ink);
	margin: 0 !important;
}
.qlist li::before {
	content: counter(q, decimal-leading-zero);
	position: absolute;
	left: 18px;
	top: 16px;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--cherry);
}
.qlist li span {
	display: block;
	margin-top: 3px;
	font-size: 14.5px;
	color: var(--ink-3);
}
.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
.prose th,
.prose td {
	text-align: left;
	vertical-align: top;
	padding: 12px 12px 12px 0;
	border-bottom: 1px solid var(--glass-b);
}
.prose th {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pink);
}
.prose td strong {
	color: var(--ink);
}
.table-wrap {
	overflow-x: auto;
}

/* ── inline CTA ── */
.cta-inline {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 2.4em 0 !important;
	padding: 22px 24px;
	border-radius: 22px;
	background: linear-gradient(135deg, rgba(110, 24, 50, 0.55), rgba(70, 20, 60, 0.45));
	border: 1px solid rgba(255, 190, 210, 0.28);
}
.app-icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	padding: 10px;
	background: #fff6f8;
}
.cta-inline div {
	flex: 1;
}
.cta-inline .cta-t {
	font-family: var(--display);
	font-size: 21px;
	line-height: 1.25;
	color: var(--ink);
}
.cta-inline .cta-s {
	margin-top: 4px;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ink-2);
}

/* ── "do it with Withie" ── */
.with-app {
	display: grid;
	grid-template-columns: 1fr 220px;
	gap: 40px;
	align-items: center;
	margin: 3em 0 0 !important;
	padding: 36px 36px;
	border-radius: 28px;
}
.with-app h2 {
	margin-top: 0 !important;
}
.with-app > div > p {
	margin-top: 12px;
}
.app-steps {
	list-style: none;
	padding: 0 !important;
	margin: 22px 0 26px;
	counter-reset: s;
	display: grid;
	gap: 14px;
}
.app-steps li {
	counter-increment: s;
	position: relative;
	padding-left: 44px;
	font-size: 16px;
	line-height: 1.6;
	margin: 0 !important;
}
.app-steps li::before {
	content: counter(s);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 700;
	color: var(--dark);
	background: var(--cherry);
}
.app-steps strong {
	display: block;
	color: var(--ink);
}
/* iPhone 16 Pro: thin bezel, large corner radius, Dynamic Island, titanium rim and side buttons */
.phone {
	position: relative;
	isolation: isolate;
	width: 100%;
	aspect-ratio: 1206 / 2622;
	padding: 6px;
	border-radius: 15% / 6.9%;
	background: #0b0809;
	box-shadow:
		inset 0 0 0 2.5px #8f897d,
		inset 0 0 0 3.5px rgba(255, 255, 255, 0.07),
		0 40px 70px -30px rgba(20, 4, 16, 0.75);
}
.phone::before {
	content: '';
	position: absolute;
	top: 1.5%;
	left: 50%;
	transform: translateX(-50%);
	width: 30%;
	aspect-ratio: 126 / 37;
	border-radius: 99px;
	background: #000;
	z-index: 3;
}
.phone::after {
	content: '';
	position: absolute;
	inset: 0 -3px;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(90deg, #5c574e, #8d877b) 0 15% / 3px 3% no-repeat,
		linear-gradient(90deg, #5c574e, #8d877b) 0 21.8% / 3px 6% no-repeat,
		linear-gradient(90deg, #5c574e, #8d877b) 0 30.3% / 3px 6% no-repeat,
		linear-gradient(270deg, #5c574e, #8d877b) 100% 25.6% / 3px 10% no-repeat;
}
.phone img {
	position: absolute;
	inset: 6px;
	width: calc(100% - 12px);
	height: calc(100% - 12px);
	border-radius: 13.3% / 5.9%;
	object-fit: cover;
	object-position: top;
	background: #fdeef2;
}

/* ── guide FAQ ── */
.g-faq {
	margin-top: 64px;
}
.g-faq h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(30px, 4vw, 38px);
	letter-spacing: -0.02em;
	margin-bottom: 22px;
}
.g-faq details {
	border-radius: 18px;
	padding: 20px 24px;
}
.g-faq details + details {
	margin-top: 12px;
}
.g-faq summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 18px;
	font-family: var(--display);
	font-size: 20px;
	line-height: 1.3;
}
.g-faq summary::-webkit-details-marker {
	display: none;
}
.g-faq summary::after {
	content: '+';
	font-family: var(--body);
	font-weight: 300;
	font-size: 23px;
	line-height: 1;
	color: var(--cherry);
	transition: transform 0.35s var(--ease);
}
.g-faq details[open] summary::after {
	transform: rotate(45deg);
}
.g-faq details p {
	margin-top: 10px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink-2);
}
.safety {
	margin-top: 40px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ink-3);
}

/* ── closing CTA ── */
.g-final {
	max-width: 1000px;
	margin: 90px auto 0;
	padding: 48px 52px;
	border-radius: 32px;
	background:
		radial-gradient(420px 260px at 85% 20%, rgba(255, 190, 170, 0.22), transparent 70%),
		linear-gradient(140deg, rgba(110, 24, 50, 0.6), rgba(46, 12, 40, 0.6));
	border: 1px solid rgba(255, 190, 210, 0.26);
}
.g-final h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(34px, 4.4vw, 50px);
	line-height: 1.05;
	letter-spacing: -0.03em;
}
.g-final h2 em {
	color: var(--cherry);
}
.g-final p {
	margin: 14px 0 26px;
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--ink-2);
	max-width: 480px;
}
/* ── related guides ── */
.related {
	max-width: 1000px;
	margin: 80px auto 0;
}
.related h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: 32px;
	letter-spacing: -0.02em;
	margin-bottom: 22px;
}
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	list-style: none;
}
.card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 24px 24px 22px;
	border-radius: 22px;
	transition:
		transform 0.3s var(--ease),
		border-color 0.3s;
}
.card:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 214, 228, 0.4);
}
.card .label {
	margin-bottom: 10px;
	font-size: 10px;
}
.card h3 {
	font-family: var(--display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.22;
	color: var(--ink);
}
.card span:not(.label) {
	margin-top: 8px;
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--ink-3);
	flex: 1;
}
.card i {
	margin-top: 16px;
	font-style: normal;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--pale);
}

/* ── hub page ── */
.hub .g-head {
	max-width: 760px;
}
.hub-wrap {
	max-width: 1000px;
	margin: 0 auto;
}
.hub-group {
	margin-top: 46px;
}
.hub-group h2 {
	margin-bottom: 16px;
}

/* ── footer ── */
footer {
	max-width: 1100px;
	margin: 100px auto 0;
	padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
	font-size: 14px;
	color: var(--ink-2);
	border-top: 1px solid var(--glass-b);
}
.foot-grid {
	display: grid;
	grid-template-columns: 1.5fr 1.4fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 32px;
}
.foot-about p {
	margin: 14px 0 18px;
	max-width: 290px;
	line-height: 1.6;
	color: var(--ink-3);
}
.foot-about .badge img {
	height: 42px;
}
footer h3 {
	font-family: var(--mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--pink);
	margin-bottom: 16px;
}
footer ul {
	list-style: none;
	display: grid;
	gap: 11px;
}
footer ul a:hover {
	color: var(--ink);
}
.foot-base {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 22px;
	border-top: 1px solid var(--glass-b);
	font-size: 13px;
	color: var(--ink-3);
}

/* ── sticky download bar on phones ── */
.m-cta {
	display: none;
}

@media (max-width: 860px) {
	.g-nav {
		padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
	}
	.g-nav nav {
		display: none;
	}
	.with-app {
		grid-template-columns: 1fr;
		padding: 28px 22px;
	}
	.with-app .phone {
		max-width: 200px;
		margin: 0 auto;
		order: -1;
	}
	.g-final {
		padding: 36px 26px;
		margin-top: 70px;
	}
	.cards {
		grid-template-columns: 1fr;
	}
	.foot-grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px 22px;
	}
	.foot-about {
		grid-column: 1 / -1;
	}
	.m-cta {
		display: block;
		position: fixed;
		left: 12px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		z-index: 60;
		transform: translateY(160%);
		transition: transform 0.45s var(--ease);
	}
	.m-cta.show {
		transform: none;
	}
	.m-cta a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 10px 10px 18px;
		border-radius: 99px;
		background: rgba(255, 246, 244, 0.92);
		backdrop-filter: blur(18px);
		-webkit-backdrop-filter: blur(18px);
		color: var(--dark);
		box-shadow: 0 16px 40px -14px rgba(20, 4, 16, 0.7);
		font-size: 14px;
		font-weight: 600;
	}
	.m-cta b {
		padding: 9px 16px;
		border-radius: 99px;
		background: var(--wine);
		color: #fff;
		font-size: 13px;
	}
}
@media (max-width: 560px) {
	.prose {
		font-size: 17px;
	}
	.dek {
		font-size: 17.5px;
	}
	.answer,
	.toc {
		padding: 22px 20px;
	}
	.say p {
		font-size: 19px;
	}
	.cta-inline {
		flex-wrap: wrap;
	}
	.cta-inline .btn {
		width: 100%;
	}
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
