/* Griplog home page — warm light theme */

/* ---------- Reset ---------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ---------- Tokens ---------- */
:root {
	--surface: #fdfbf7;
	--surface-raised: #ffffff;
	--fill: #e9e4db;
	--fill-secondary: #f0ece4;
	--separator: #e4ded4;
	--text: #1f1b16;
	--text-secondary: #6e665b;
	--text-tertiary: #9c9388;
	--accent: #f8213d;
	--accent-pressed: #d5172f;
	--on-accent: #ffffff;

	--radius-card: 20px;
	--shadow-card: 0 1px 2px rgba(31, 27, 22, 0.04), 0 8px 24px rgba(31, 27, 22, 0.06);
	--shadow-card-hover: 0 2px 4px rgba(31, 27, 22, 0.06), 0 16px 40px rgba(31, 27, 22, 0.1);
	--maxw: 1100px;

	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Aliases for dynamically-injected inline colours (preview page JS) */
	--color-highlight: var(--accent);
	--color-text-primary: var(--text);
}

/* ---------- Base ---------- */
html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	color: var(--text);
	background-color: var(--surface);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--text);
}

p {
	color: var(--text-secondary);
}

a {
	color: inherit;
	text-decoration: none;
}

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

/* ---------- Utilities ---------- */
.is-hidden {
	display: none;
}

.v2-container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.v2-container-narrow {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.v2-section-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	text-align: center;
	margin-bottom: 2.5rem;
}

/* ---------- Header ---------- */
.site-header {
	position: static;
	background-color: var(--surface);
	/* border-bottom: 1px solid var(--separator); */
}

.site-header-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-nav-logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.35rem;
	color: var(--text);
}

.site-nav-links {
	display: flex;
	gap: 1.5rem;
}

.site-nav-link {
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--text-secondary);
	transition: color 0.2s ease;
}

.site-nav-link:hover {
	color: var(--accent);
}

/* ---------- Hero ---------- */
.v2-hero {
	padding: 4.5rem 1.5rem 4rem;
	text-align: center;
	background-color: var(--surface);
}

.v2-hero-content {
	max-width: 760px;
	margin: 0 auto;
}

.v2-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0.9rem;
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 1.75rem;
}

.badge-dot {
	width: 8px;
	height: 8px;
	background: var(--accent);
	border-radius: 50%;
	animation: pulse 2s ease-in-out infinite;
}

.v2-hero-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2.5rem, 7vw, 4.5rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin-bottom: 1.5rem;
}

.gradient-text {
	color: var(--accent);
	-webkit-background-clip: initial;
	background: none;
	-webkit-text-fill-color: currentColor;
}

.v2-hero-subtitle {
	font-size: clamp(1.05rem, 2vw, 1.25rem);
	color: var(--text-secondary);
	max-width: 560px;
	margin: 0 auto 2rem;
}

.v2-hero-shot {
	max-width: 420px;
	margin: 4rem auto 0;
	background: var(--surface-raised);
	border-radius: var(--radius-card);
	border: 1px solid var(--separator);
	box-shadow: var(--shadow-card);
	padding: 0.75rem;
	overflow: hidden;
	display: none;
}

.v2-hero-shot img {
	border-radius: 12px;
	width: 100%;
}

/* ---------- Newsletter form ---------- */
.v2-newsletter-form-container {
	max-width: 460px;
	margin: 0 auto;
}

.newsletter-form {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.newsletter-form-input {
	flex: 1 1 240px;
	font-family: var(--font-body);
	font-size: 1rem;
	padding: 0.85rem 1rem;
	color: var(--text);
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: 12px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form-input::placeholder {
	color: var(--text-tertiary);
}

.newsletter-form-input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(248, 33, 61, 0.12);
}

.newsletter-form-button,
.newsletter-loading-button {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	padding: 0.85rem 1.4rem;
	color: var(--on-accent);
	background: var(--accent);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	white-space: nowrap;
}

.newsletter-form-button:hover,
.newsletter-loading-button:hover {
	background: var(--accent-pressed);
}

.newsletter-form-button:active {
	transform: translateY(1px);
}

.newsletter-success,
.newsletter-error {
	margin-top: 1rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.newsletter-error {
	color: var(--accent);
}

.newsletter-back-button {
	margin-top: 1rem;
	font-family: var(--font-body);
	font-weight: 500;
	color: var(--text-secondary);
	background: none;
	border: none;
	cursor: pointer;
}

.newsletter-back-button:hover {
	color: var(--accent);
}

/* ---------- Features ---------- */
.v2-features {
	padding: 5rem 0;
}

.v2-features .v2-container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.v2-feature-card {
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.v2-feature-large {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
}

.v2-feature-large .v2-feature-content {
	flex: 1;
}

.v2-feature-large .v2-feature-image {
	flex: 1;
}

.v2-feature-label {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent);
	margin-bottom: 0.6rem;
}

.v2-feature-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 0.75rem;
}

.v2-feature-title-small {
	font-size: 1.25rem;
	margin-bottom: 0.6rem;
}

.v2-feature-description,
.v2-feature-description-small {
	color: var(--text-secondary);
	font-size: 0.98rem;
}

.v2-feature-image {
	background: var(--fill-secondary);
	border-radius: 14px;
	overflow: hidden;
}

.v2-feature-image img {
	width: 100%;
}

.v2-see-all {
	text-align: center;
	margin-top: 3rem;
}

.v2-see-all a {
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text-tertiary);
	transition: color 0.2s ease;
}

.v2-see-all a:hover {
	color: var(--accent);
}

/* ---------- Principles ---------- */
.v2-principles {
	padding: 5rem 0;
	background: var(--surface);
}

.v2-principles .v2-container-narrow {
	max-width: var(--maxw);
}

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

.v2-principle {
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 2rem;
	text-align: center;
}

.v2-principle-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fill);
	border-radius: 14px;
}

.v2-principle-icon img {
	width: 30px;
	height: 30px;
}

.v2-principle h3 {
	font-size: 1.2rem;
	margin-bottom: 0.6rem;
}

.v2-principle p {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

/* ---------- Griplog Plus ---------- */
.v2-plus {
	padding: 5rem 1.5rem;
	background-color: var(--surface);
}

.v2-plus-intro {
	max-width: 560px;
	margin: -1.5rem auto 2.5rem;
	text-align: center;
	color: var(--text-secondary);
	font-size: 1.05rem;
	line-height: 1.6;
}

.v2-plus-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.v2-plus-card {
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 2rem;
}

.v2-plus-card-featured {
	border-color: var(--accent);
}

.v2-plus-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.v2-plus-card-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
}

.v2-plus-card-tag {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	color: var(--text-secondary);
	background: var(--fill-secondary);
}

.v2-plus-card-tag-accent {
	color: var(--accent);
	background: rgba(248, 33, 61, 0.12);
}

.v2-plus-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.v2-plus-list li {
	position: relative;
	padding-left: 1.6rem;
	color: var(--text-secondary);
	font-size: 0.98rem;
	line-height: 1.5;
}

.v2-plus-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--accent);
	font-weight: 700;
}

/* ---------- Companion ---------- */
.v2-companion {
	padding: 5rem 0;
}

.v2-companion-inner {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 1.5rem;
	text-align: center;
}

.v2-companion-subtitle {
	color: var(--text-secondary);
	margin: -1.5rem 0 2.5rem;
}

.v2-companion-grid {
	display: grid;
	gap: 1.5rem;
}

.v2-companion-card {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	text-align: left;
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 1.5rem;
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.v2-companion-card.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.v2-companion-card:hover {
	box-shadow: var(--shadow-card-hover);
}

.v2-companion-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	flex-shrink: 0;
}

.v2-companion-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent);
}

.v2-companion-name {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.3rem;
	margin: 0.2rem 0 0.4rem;
}

.v2-companion-desc {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.v2-companion-arrow {
	margin-left: auto;
	font-size: 1.5rem;
	color: var(--text-tertiary);
	transition: color 0.2s ease, transform 0.2s ease;
}

.v2-companion-card:hover .v2-companion-arrow {
	color: var(--accent);
	transform: translateX(4px);
}

/* ---------- CTA ---------- */
.v2-cta {
	padding: 6rem 1.5rem;
	background-image:
		linear-gradient(rgba(253, 251, 247, 0.86), rgba(253, 251, 247, 0.92)),
		url(../images/hero-bg-01.png);
	background-size: cover;
	background-position: center;
	text-align: center;
}

.v2-cta-content {
	max-width: 640px;
	margin: 0 auto;
}

.v2-cta-title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin-bottom: 0.75rem;
}

.v2-cta-subtitle {
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.v2-footer {
	padding: 2.5rem 1.5rem;
	text-align: center;
	border-top: 1px solid var(--separator);
	background: var(--surface);
}

.v2-footer p {
	color: var(--text-tertiary);
	font-size: 0.9rem;
}

.v2-footer a {
	color: var(--text-secondary);
	transition: color 0.2s ease;
}

.v2-footer a:hover {
	color: var(--accent);
}

/* ---------- Content page hero + prose ---------- */
.v2-page-hero {
	padding: 4rem 1.5rem 1.5rem;
	background-color: var(--surface);
	text-align: center;
}

.v2-page-title {
	font-size: clamp(2rem, 5vw, 3rem);
}

.support-hero-subtitle {
	margin-top: 0.75rem;
	font-size: 1.1rem;
	color: var(--text-secondary);
}

/* ---------- Support page ---------- */
.support-question {
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
}

.support-contact {
	text-align: center;
}

.support-contact-button,
.v2-prose a.support-contact-button {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 0.85rem 2rem;
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--on-accent);
	background: var(--accent);
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.1s ease;
}

.support-contact-button:hover,
.v2-prose a.support-contact-button:hover {
	background: var(--accent-pressed);
	color: var(--on-accent);
}

.support-contact-button:active {
	transform: translateY(1px);
}

.v2-prose-section {
	padding: 2rem 1.5rem 5rem;
	background-color: var(--surface);
}

.v2-prose {
	color: var(--text-secondary);
	line-height: 1.7;
}

.v2-prose h2 {
	font-family: var(--font-display);
	font-size: 1.4rem;
	color: var(--text);
	margin-bottom: 0.75rem;
}

.v2-prose p {
	margin-bottom: 1rem;
}

.v2-prose ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin-bottom: 1rem;
}

.v2-prose ul li {
	position: relative;
	padding-left: 1.4rem;
}

.v2-prose ul li::before {
	content: "•";
	position: absolute;
	left: 0.2rem;
	color: var(--accent);
}

.v2-prose a {
	color: var(--accent);
}

.v2-prose .privacy-section {
	margin-bottom: 2rem;
}

.v2-prose .privacy-updated {
	color: var(--text-tertiary);
	font-size: 0.9rem;
	margin-bottom: 2rem;
}

.v2-prose .privacy-divider {
	border: none;
	border-top: 1px solid var(--separator);
	margin: 2.5rem 0;
}

/* ---------- DuoTimer ---------- */
.v2-app-icon {
	width: 88px;
	height: 88px;
	border-radius: 20px;
	margin: 0 auto 1.75rem;
	box-shadow: var(--shadow-card);
}

.v2-span-all {
	grid-column: 1 / -1;
}

.v2-feature-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin-top: 1.1rem;
}

.v2-feature-list li {
	position: relative;
	padding-left: 1.4rem;
	color: var(--text-secondary);
	font-size: 0.92rem;
}

.v2-feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent);
	font-weight: 700;
}

.duo-phases {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.duo-phase {
	flex: 1;
	min-width: 140px;
	padding: 1.1rem 1.25rem;
	border-radius: 14px;
	border: 1px solid var(--separator);
	background: var(--fill-secondary);
}

.duo-phase-work {
	border-color: var(--accent);
	background: rgba(248, 33, 61, 0.08);
}

.duo-phase-label {
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-secondary);
	margin-bottom: 0.35rem;
}

.duo-phase-time {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--text);
}

.duo-phase-arrow {
	color: var(--text-tertiary);
	font-size: 1.25rem;
}

.v2-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.v2-pill {
	padding: 0.5rem 0.9rem;
	background: var(--fill-secondary);
	border: 1px solid var(--separator);
	border-radius: 999px;
	font-size: 0.88rem;
	color: var(--text-secondary);
}

@media (max-width: 768px) {
	.duo-phase-arrow {
		display: none;
	}
}

/* ---------- URL Builder ---------- */
.builder-intro {
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 2.5rem;
}

.builder-container {
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 1rem 2rem;
}

.form-field {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: center;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--separator);
}

.form-field:last-child {
	border-bottom: none;
}

.field-label {
	display: block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text);
	margin-bottom: 0.25rem;
}

.required-badge {
	display: inline-block;
	margin-left: 0.4rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--accent);
	background: rgba(248, 33, 61, 0.12);
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
}

.field-description {
	font-size: 0.85rem;
	color: var(--text-tertiary);
	line-height: 1.4;
}

.builder-input {
	width: 100%;
	padding: 0.7rem 0.9rem;
	font-family: var(--font-body);
	font-size: 0.95rem;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--separator);
	border-radius: 10px;
	transition: border-color 0.2s ease;
}

.builder-input:focus {
	outline: none;
	border-color: var(--accent);
}

.result-container {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.result-url-wrapper {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--fill-secondary);
	border: 1px solid var(--separator);
	border-radius: 10px;
	padding: 0.75rem 1rem;
}

.result-url {
	flex: 1;
	font-size: 0.9rem;
	color: var(--text);
	word-break: break-all;
}

.copy-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem;
	color: var(--text-secondary);
	border-radius: 8px;
	transition: color 0.2s ease, background 0.2s ease;
}

.copy-icon-btn:hover {
	color: var(--accent);
	background: var(--fill);
}

.copy-icon-btn.copied {
	color: var(--accent);
}

.open-url-btn {
	align-self: flex-start;
	padding: 0.7rem 1.4rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--on-accent);
	background: var(--accent);
	border-radius: 10px;
	transition: background 0.2s ease;
}

.open-url-btn:hover {
	background: var(--accent-pressed);
}

.notification-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%) translateY(1rem);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	background: var(--text);
	color: var(--surface);
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 500;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 200;
}

.notification-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
	.form-field {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
}

/* ---------- Shared route preview ---------- */
.preview-hero {
	min-height: 42vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-image:
		linear-gradient(rgba(253, 251, 247, 0.55), rgba(253, 251, 247, 0.8)),
		url("../images/hero-bg-01.png");
	background-size: cover;
	background-position: center;
	padding: 4rem 2rem 6rem;
	text-align: center;
}

.preview-app-icon {
	width: 80px;
	height: 80px;
	border-radius: 18px;
	box-shadow: var(--shadow-card);
	margin-bottom: 1.25rem;
}

.preview-hero-title {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(2rem, 5vw, 3rem);
	color: var(--text);
}

.preview-container {
	max-width: 600px;
	margin: -4rem auto 4rem;
	position: relative;
	z-index: 10;
	padding: 0 1.5rem;
}

.route-card {
	background: var(--surface-raised);
	border: 1px solid var(--separator);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.route-header {
	background: var(--fill-secondary);
	padding: 2.5rem 2rem;
	border-bottom: 1px solid var(--separator);
	text-align: center;
}

.route-grade {
	font-family: var(--font-display);
	font-size: 4rem;
	font-weight: 700;
	color: var(--accent);
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
}

.route-sport {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-secondary);
	font-weight: 600;
}

.route-body {
	padding: 2rem;
}

.route-name {
	font-family: var(--font-display);
	font-size: 1.75rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: var(--text);
	text-align: center;
}

.route-name.unnamed {
	font-style: italic;
	color: var(--text-tertiary);
}

.route-details {
	display: flex;
	flex-direction: column;
	margin-bottom: 2rem;
}

.detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--separator);
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-tertiary);
	font-weight: 600;
}

.detail-value {
	font-size: 1rem;
	color: var(--text);
	font-weight: 500;
	text-align: right;
}

.route-notes {
	margin-bottom: 2rem;
	padding: 1rem;
	background: var(--fill-secondary);
	border-radius: 12px;
	border: 1px solid var(--separator);
}

.route-notes-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-tertiary);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.route-notes-text {
	font-size: 0.95rem;
	color: var(--text);
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
}

.route-notes-text a {
	color: var(--accent);
}

.route-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.add-button {
	width: 100%;
	padding: 1rem 2rem;
	font-size: 1.05rem;
	font-weight: 600;
	border: none;
	border-radius: 12px;
	background: var(--accent);
	color: var(--on-accent);
	cursor: pointer;
	transition: background 0.2s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.add-button:hover {
	background: var(--accent-pressed);
}

.secondary-button {
	width: 100%;
	padding: 0.875rem 2rem;
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid var(--separator);
	border-radius: 12px;
	background: var(--surface);
	color: var(--text-secondary);
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.secondary-button:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.app-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem;
	background: var(--fill-secondary);
	border-radius: 12px;
	margin-top: 1.5rem;
	font-size: 0.85rem;
	color: var(--text-secondary);
}

.app-badge img {
	width: 24px;
	height: 24px;
	border-radius: 6px;
}

.map-preview {
	width: 100%;
	height: 200px;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	background: var(--fill-secondary);
	border: 1px solid var(--separator);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	position: relative;
}

.map-preview:hover {
	border-color: var(--accent);
	box-shadow: var(--shadow-card);
}

.map-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.route-photo {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	display: block;
}

.route-photo-skeleton {
	width: 100%;
	height: 220px;
	background: linear-gradient(90deg, var(--fill-secondary) 25%, var(--fill) 50%, var(--fill-secondary) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.error-state {
	text-align: center;
	padding: 3rem 2rem;
}

.error-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
}

.error-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--text);
}

.error-message {
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.preview-outro {
	max-width: 600px;
	margin: 0 auto;
	padding: 0 1.5rem;
	text-align: center;
	color: var(--text-secondary);
	line-height: 1.7;
}

@media (max-width: 640px) {
	.preview-container {
		margin: -3rem auto 2rem;
	}

	.route-grade {
		font-size: 3rem;
	}

	.route-header {
		padding: 2rem 1.5rem;
	}

	.route-body {
		padding: 1.5rem;
	}
}

/* ---------- Confirmation (success) ---------- */
.v2-confirm {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4rem 1.5rem;
	background-color: var(--surface);
}

.v2-confirm-card {
	max-width: 480px;
	text-align: center;
}

.v2-confirm-emoji {
	width: 72px;
	height: 72px;
	margin-bottom: 1.5rem;
}

.v2-confirm-title {
	font-size: clamp(2rem, 5vw, 2.75rem);
	margin-bottom: 1rem;
}

.v2-confirm-text {
	color: var(--text-secondary);
	font-size: 1.05rem;
	line-height: 1.6;
	margin-bottom: 2rem;
}

.v2-confirm-button {
	display: inline-block;
	text-decoration: none;
}

/* ---------- Keyframes ---------- */
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Entrance ---------- */
.v2-hero-badge {
	animation: fadeInDown 0.6s ease-out both;
}

.v2-hero-title {
	animation: fadeInUp 0.8s ease-out 0.1s both;
}

.v2-hero-subtitle {
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.v2-hero .v2-newsletter-form-container {
	animation: fadeInUp 0.8s ease-out 0.3s both;
}

.v2-hero-shot {
	animation: fadeInUp 0.9s ease-out 0.4s both;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.v2-companion-card {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.v2-features .v2-container {
		grid-template-columns: 1fr;
	}

	.v2-feature-large {
		flex-direction: column;
		align-items: stretch;
	}

	.v2-principles-grid {
		grid-template-columns: 1fr;
	}

	.v2-plus-grid {
		grid-template-columns: 1fr;
	}

	.v2-hero {
		padding-top: 3rem;
	}
}
