/* LeavePrints — shared design system */
:root {
    --ink: #0f172a;
    --muted: #64748b;
    --teal-900: #115e59;
    --teal-700: #0f766e;
    --teal-500: #14b8a6;
    --teal-100: #ccfbf1;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --surface: #ffffff;
    --page: #f7faf8;
    --line: rgba(15, 118, 110, 0.12);
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 24px 70px rgba(15, 23, 42, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Inter, Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.10), transparent 26rem),
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.09), transparent 24rem),
        var(--page);
    color: var(--ink);
    line-height: 1.6;
    padding: 20px;
}

a {
    color: inherit;
}

/* navbar */
nav {
    position: sticky;
    top: 14px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 1480px);
    margin: 0 auto 28px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.logo a:hover,
.logo a:focus {
    background: rgba(20, 184, 166, 0.08);
}

.logo-text {
    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.065em;
    background: linear-gradient(90deg, var(--teal-700), var(--teal-500) 58%, var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin-left: auto;
}

nav li {
    list-style: none;
}

nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
    transition: all 0.2s ease;
}

nav a:hover,
nav a:focus,
nav a.active {
    background: rgba(20, 184, 166, 0.08);
    color: var(--teal-700);
}

nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--amber-500), var(--teal-500));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

nav a:hover::after,
nav a:focus::after,
nav a.active::after {
    transform: scaleX(1);
}

/* landing page */
.landing {
    width: min(100%, 1380px);
    margin: 0 auto;
    overflow: hidden;
}

.landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
    align-items: center;
    gap: clamp(42px, 6vw, 96px);
    min-height: calc(100vh - 150px);
    padding: clamp(54px, 8vw, 110px) clamp(8px, 2vw, 24px) 72px;
}

.landing-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: 2%;
    border: 1px solid rgba(20, 184, 166, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 44px rgba(20, 184, 166, 0.025), 0 0 0 88px rgba(245, 158, 11, 0.018);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(15, 118, 110, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--teal-700);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--amber-500);
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
}

.hero-title {
    max-width: 760px;
    color: var(--ink);
    font-size: clamp(3.35rem, 7vw, 6.5rem);
    line-height: 0.93;
    letter-spacing: -0.075em;
    font-weight: 900;
}

.hero-title .accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(100deg, var(--teal-700) 5%, var(--teal-500) 68%, var(--amber-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title .accent::after {
    content: "";
    position: absolute;
    left: 2%;
    right: 0;
    bottom: -8px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.28), rgba(245, 158, 11, 0.20));
    transform: rotate(-1deg);
}

.hero-lead {
    max-width: 650px;
    margin-top: 30px;
    color: #475569;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-btn:hover,
.landing-btn:focus {
    transform: translateY(-2px);
}

.landing-btn.primary {
    background: linear-gradient(135deg, var(--teal-900), var(--teal-500));
    color: #fff;
    box-shadow: 0 15px 34px rgba(20, 184, 166, 0.24);
}

.landing-btn.primary:hover,
.landing-btn.primary:focus {
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.30);
}

.landing-btn.secondary {
    border-color: rgba(15, 118, 110, 0.14);
    background: rgba(255, 255, 255, 0.76);
    color: #334155;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.landing-btn.secondary:hover,
.landing-btn.secondary:focus {
    background: #fff;
}

.arrow {
    font-size: 1.15rem;
    line-height: 1;
}

.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 24px;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 650;
}

.hero-note span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-note span::before {
    content: "✓";
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.12);
    color: var(--teal-700);
    font-size: 0.70rem;
    font-weight: 900;
}

.hero-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.trip-shell {
    position: relative;
    width: min(100%, 590px);
    margin-left: auto;
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: rotate(1.2deg);
}

.trip-card {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.trip-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.trip-title-wrap {
    min-width: 0;
}

.trip-kicker {
    margin-bottom: 2px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.trip-name {
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.live-pill {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 850;
}

.trip-content {
    padding: 22px;
}

.budget-overview {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.budget-label {
    color: #64748b;
    font-size: 0.80rem;
    font-weight: 750;
}

.budget-number {
    margin-top: 3px;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.budget-number small {
    margin-left: 5px;
    color: #94a3b8;
    font-size: 0.85rem;
    letter-spacing: normal;
    font-weight: 700;
}

.budget-badge {
    padding: 9px 11px;
    border-radius: 12px;
    background: var(--amber-100);
    color: #92400e;
    font-size: 0.76rem;
    font-weight: 850;
}

.route-list {
    display: grid;
    gap: 10px;
}

.route-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.flag {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
    font-size: 1.20rem;
}

.route-city {
    font-size: 0.90rem;
    font-weight: 820;
}

.route-days {
    margin-top: 1px;
    color: #94a3b8;
    font-size: 0.73rem;
    font-weight: 650;
}

.route-price {
    color: #334155;
    font-size: 0.90rem;
    font-weight: 850;
}

.breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.breakdown-item {
    padding: 11px 9px;
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-radius: 14px;
    background: rgba(240, 253, 250, 0.56);
}

.breakdown-label {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 750;
}

.breakdown-value {
    margin-top: 2px;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.trip-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.10), rgba(245, 158, 11, 0.10));
}

.insight-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

.trip-insight strong {
    display: block;
    color: var(--teal-900);
    font-size: 0.82rem;
}

.trip-insight p {
    margin-top: 1px;
    color: #64748b;
    font-size: 0.74rem;
    line-height: 1.45;
}

.floating-tag {
    position: absolute;
    z-index: 3;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #334155;
    font-size: 0.78rem;
    font-weight: 800;
}

.floating-tag.one {
    left: -32px;
    bottom: 95px;
    transform: rotate(-4deg);
}

.floating-tag.two {
    right: -18px;
    top: 70px;
    transform: rotate(4deg);
}

.value-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 8px 0 96px;
}

.value-chip {
    padding: 22px;
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.value-chip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.96rem;
    font-weight: 850;
}

.value-chip span {
    color: #64748b;
    font-size: 0.83rem;
}

.landing-section {
    padding: 78px clamp(8px, 2vw, 24px);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-kicker {
    margin-bottom: 10px;
    color: var(--teal-700);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.section-title {
    color: var(--ink);
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.section-subtitle {
    max-width: 620px;
    margin-top: 15px;
    color: #64748b;
    font-size: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    min-height: 280px;
    padding: 26px;
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.80);
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.05);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 40px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(245, 158, 11, 0.14));
    font-size: 1.3rem;
}

.feature-card h3 {
    margin-bottom: 9px;
    color: var(--ink);
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

.feature-card p {
    color: #64748b;
    font-size: 0.92rem;
}

.how-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 30px;
    background: #0f172a;
    color: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.how-card::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    right: -120px;
    bottom: -190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 68%);
}

.how-card .section-kicker {
    color: #5eead4;
}

.how-card .section-title {
    color: #fff;
}

.how-card .section-subtitle {
    color: #cbd5e1;
}

.steps {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.step-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal-500), var(--amber-500));
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
}

.step h3 {
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.step p {
    color: #cbd5e1;
    font-size: 0.82rem;
}

.final-cta {
    position: relative;
    overflow: hidden;
    margin: 70px 0 40px;
    padding: clamp(42px, 7vw, 80px) 28px;
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 30px;
    background:
        radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.18), transparent 34%),
        radial-gradient(circle at 85% 70%, rgba(245, 158, 11, 0.18), transparent 30%),
        #fff;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.07);
}

.final-cta h2 {
    max-width: 800px;
    margin: 0 auto;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    font-weight: 900;
}

.final-cta p {
    max-width: 600px;
    margin: 18px auto 26px;
    color: #64748b;
}

.final-cta .hero-actions {
    justify-content: center;
    margin-top: 0;
}

/* auth pages */
.auth-page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 150px);
    padding: 48px 20px 72px;
}

.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 15%, rgba(20, 184, 166, 0.14), transparent 28%),
        radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.12), transparent 28%),
        var(--page);
    pointer-events: none;
}

.auth-card {
    width: min(100%, 480px);
    padding: 42px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--teal-700);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.auth-heading p {
    max-width: 390px;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #334155;
    font-size: 0.80rem;
    font-weight: 750;
    letter-spacing: 0.025em;
}

.form-group input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #dce4e3;
    border-radius: 14px;
    background: #f8faf9;
    color: var(--ink);
    font: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    background: #fff;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.10);
}

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 4px;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal-900), var(--teal-500));
    color: #fff;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.20);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 118, 110, 0.26);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 3px;
}

.auth-submit span {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.auth-submit:hover span {
    transform: translateX(3px);
}

.auth-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 0.90rem;
}

.auth-footer a {
    color: var(--teal-700);
    font-weight: 800;
    text-decoration: none;
}

.auth-footer a:hover,
.auth-footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.flash {
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid rgba(20, 184, 166, 0.16);
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.08);
    color: var(--teal-700);
    font-size: 0.90rem;
    font-weight: 650;
}

.flash.error {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.flash.success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.17);
    color: #15803d;
}

@media (max-width: 1040px) {
    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 64px;
    }

    .hero-copy {
        max-width: 820px;
    }

    .hero-visual {
        max-width: 700px;
        width: 100%;
        margin: 12px auto 0;
    }

    .trip-shell {
        margin: 0 auto;
    }

    .value-strip,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .how-card {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 820px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 14px 16px;
    }

    .logo {
        width: 100%;
        justify-content: center;
    }

    nav ul {
        width: 100%;
        gap: 4px;
        margin-left: 0;
    }

    nav a {
        padding: 9px 11px;
        font-size: 0.88rem;
    }

    .landing-hero {
        padding-top: 46px;
    }

    .hero-title {
        font-size: clamp(3.1rem, 12vw, 5rem);
    }

    .value-strip {
        margin-bottom: 54px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 12px;
    }

    nav {
        top: 8px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .landing-hero {
        gap: 38px;
        padding: 38px 4px 52px;
    }

    .hero-title {
        font-size: clamp(3rem, 16vw, 4.4rem);
    }

    .hero-lead {
        margin-top: 24px;
        font-size: 1rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-btn {
        width: 100%;
    }

    .trip-shell {
        padding: 9px;
        border-radius: 24px;
        transform: none;
    }

    .trip-card {
        border-radius: 18px;
    }

    .trip-content {
        padding: 16px;
    }

    .budget-overview {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .budget-badge {
        width: fit-content;
    }

    .breakdown {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-tag {
        display: none;
    }

    .landing-section {
        padding: 54px 4px;
    }

    .feature-card {
        min-height: 0;
    }

    .feature-icon {
        margin-bottom: 28px;
    }

    .how-card {
        padding: 26px 18px;
        border-radius: 24px;
    }

    .final-cta {
        margin-top: 48px;
        padding-inline: 20px;
    }

    .auth-page {
        align-items: flex-start;
        min-height: auto;
        padding: 28px 2px 48px;
    }

    .auth-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .auth-heading {
        margin-bottom: 26px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: row;
    }

    nav li {
        width: auto;
    }

    nav a {
        width: auto;
        text-align: center;
        padding: 8px 9px;
        font-size: 0.82rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .hero-note {
        display: grid;
        gap: 8px;
    }

    .route-row {
        grid-template-columns: auto 1fr auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;

    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;

    accent-color: var(--teal-700);

    cursor: pointer;
}

    :root {
        --rw-bg: #f5f7f5;
        --rw-card: #ffffff;
        --rw-ink: #111c2f;
        --rw-muted: #738096;
        --rw-border: #dfe7e4;
        --rw-teal: #0e9384;
        --rw-teal-dark: #08776c;
        --rw-soft-teal: #e8f6f2;
        --rw-soft-warm: #fff8eb;
        --rw-danger: #b94b4b;
        --rw-shadow: 0 18px 50px rgba(17, 28, 47, 0.07);
    }

    .trip-planner {
        max-width: 1180px;
        margin: 0 auto;
        padding: 34px 22px 70px;
        color: var(--rw-ink);
    }

    .planner-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 28px;
        align-items: end;
        padding: 34px;
        border-radius: 28px;
        background:
            radial-gradient(circle at top right, rgba(14,147,132,.22), transparent 34%),
            linear-gradient(135deg, #0f1a2c 0%, #13243b 100%);
        color: #fff;
        box-shadow: var(--rw-shadow);
    }

    .planner-eyebrow,
    .panel-kicker {
        display: block;
        margin-bottom: 8px;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .13em;
        text-transform: uppercase;
        color: var(--rw-teal);
    }

    .planner-hero .planner-eyebrow { color: #84e4d8; }

    .planner-hero h1 {
        margin: 0;
        max-width: 720px;
        font-size: clamp(2rem, 5vw, 4rem);
        line-height: .98;
        letter-spacing: -.045em;
    }

    .planner-hero p {
        margin: 18px 0 0;
        max-width: 690px;
        color: #c7d2e1;
        font-size: 1rem;
        line-height: 1.65;
    }

    .planner-hero-badge {
        min-width: 150px;
        padding: 17px 18px;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 18px;
        background: rgba(255,255,255,.07);
        backdrop-filter: blur(10px);
    }

    .planner-hero-badge span,
    .planner-hero-badge small { display: block; }

    .planner-hero-badge span { font-weight: 800; }

    .planner-hero-badge small {
        margin-top: 3px;
        color: #aab9cc;
    }

    .planner-controls,
    .planner-panel,
    .summary-card {
        background: var(--rw-card);
        border: 1px solid var(--rw-border);
        box-shadow: var(--rw-shadow);
    }

    .planner-controls {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin-top: 20px;
        padding: 18px;
        border-radius: 22px;
    }

    .field label {
        display: block;
        margin: 0 0 7px;
        color: var(--rw-muted);
        font-size: .76rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .field input,
    .field select {
        width: 100%;
        box-sizing: border-box;
        min-height: 46px;
        padding: 0 13px;
        border: 1px solid var(--rw-border);
        border-radius: 13px;
        background: #fbfcfc;
        color: var(--rw-ink);
        font: inherit;
        outline: none;
        transition: .18s ease;
    }

    .field input:focus,
    .field select:focus,
    .city-search-input:focus {
        border-color: rgba(14,147,132,.65);
        box-shadow: 0 0 0 4px rgba(14,147,132,.10);
        background: #fff;
    }

    .currency-note {
        margin: 8px 2px 0;
        color: var(--rw-muted);
        font-size: .74rem;
    }

    .planner-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
        gap: 20px;
        margin-top: 20px;
        align-items: start;
    }

    .planner-panel,
    .summary-card { border-radius: 24px; }

    .planner-panel { padding: 24px; }

    .panel-header {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .panel-header h2,
    .summary-card h2 {
        margin: 0;
        font-size: 1.35rem;
        letter-spacing: -.025em;
    }

    .panel-header p {
        margin: 7px 0 0;
        color: var(--rw-muted);
        font-size: .9rem;
        line-height: 1.5;
    }

    .route-count {
        flex: 0 0 auto;
        padding: 8px 11px;
        border-radius: 999px;
        background: var(--rw-soft-teal);
        color: var(--rw-teal-dark);
        font-size: .78rem;
        font-weight: 800;
    }

    .city-picker {
        position: relative;
        margin-bottom: 22px;
    }

    .city-search-input {
        width: 100%;
        box-sizing: border-box;
        min-height: 54px;
        padding: 0 48px 0 17px;
        border: 1px solid var(--rw-border);
        border-radius: 16px;
        background: #fbfcfc;
        color: var(--rw-ink);
        font: inherit;
        outline: none;
    }

    .city-search-icon {
        position: absolute;
        right: 16px;
        top: 16px;
        color: var(--rw-teal);
        font-size: 1.2rem;
        pointer-events: none;
    }

    .city-results {
        position: absolute;
        z-index: 50;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        display: none;
        max-height: 330px;
        overflow-y: auto;
        padding: 7px;
        border: 1px solid var(--rw-border);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 18px 45px rgba(17,28,47,.14);
    }

    .city-results.open { display: block; }

    .city-result {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 13px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: inherit;
        text-align: left;
        cursor: pointer;
    }

    .city-result:hover,
    .city-result:focus {
        background: var(--rw-soft-teal);
        outline: none;
    }

    .city-result strong,
    .city-result span { display: block; }

    .city-result span {
        margin-top: 2px;
        color: var(--rw-muted);
        font-size: .8rem;
    }

    .city-result-price {
        flex: 0 0 auto;
        color: var(--rw-teal-dark);
        font-size: .82rem;
        font-weight: 800;
    }

    .route-empty {
        padding: 38px 20px;
        border: 1px dashed #cfdcda;
        border-radius: 18px;
        background: #fbfdfc;
        text-align: center;
    }

    .route-empty-icon {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        margin: 0 auto 12px;
        border-radius: 14px;
        background: var(--rw-soft-teal);
        color: var(--rw-teal);
        font-size: 1.15rem;
    }

    .route-empty strong { display: block; }

    .route-empty p {
        margin: 7px auto 0;
        max-width: 420px;
        color: var(--rw-muted);
        font-size: .86rem;
        line-height: 1.5;
    }

    .route-list {
        display: grid;
        gap: 12px;
    }

    .route-stop {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr) 138px 120px 86px;
        gap: 13px;
        align-items: center;
        padding: 15px;
        border: 1px solid var(--rw-border);
        border-radius: 18px;
        background: #fff;
    }

    .route-number {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        border-radius: 13px;
        background: var(--rw-soft-teal);
        color: var(--rw-teal-dark);
        font-weight: 900;
    }

    .route-city strong,
    .route-city span { display: block; }

    .route-city strong { font-size: .96rem; }

    .route-city span {
        margin-top: 3px;
        color: var(--rw-muted);
        font-size: .78rem;
    }

    .nights-control {
        display: grid;
        grid-template-columns: 32px 1fr 32px;
        align-items: center;
        overflow: hidden;
        border: 1px solid var(--rw-border);
        border-radius: 12px;
        background: #fbfcfc;
    }

    .nights-control button {
        height: 38px;
        border: 0;
        background: transparent;
        color: var(--rw-ink);
        font-size: 1.05rem;
        cursor: pointer;
    }

    .nights-control button:hover { background: var(--rw-soft-teal); }

    .nights-control input {
        width: 100%;
        border: 0;
        background: transparent;
        text-align: center;
        font: inherit;
        font-weight: 800;
        outline: none;
        -moz-appearance: textfield;
    }

    .nights-control input::-webkit-outer-spin-button,
    .nights-control input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .route-price { text-align: right; }

    .route-price strong,
    .route-price small { display: block; }

    .route-price strong { font-size: .94rem; }

    .route-price small {
        margin-top: 3px;
        color: var(--rw-muted);
        font-size: .75rem;
    }

    .route-actions {
        display: flex;
        justify-content: flex-end;
        gap: 5px;
    }

    .icon-btn {
        display: grid;
        place-items: center;
        width: 27px;
        height: 27px;
        padding: 0;
        border: 1px solid var(--rw-border);
        border-radius: 9px;
        background: #fff;
        color: var(--rw-muted);
        cursor: pointer;
    }

    .icon-btn:hover {
        border-color: #b9cbc7;
        color: var(--rw-ink);
        background: #f8faf9;
    }

    .icon-btn.remove:hover {
        border-color: #e7bbbb;
        color: var(--rw-danger);
        background: #fff8f8;
    }

    .summary-stack {
        display: grid;
        gap: 16px;
        position: sticky;
        top: 20px;
    }

    .summary-card { padding: 22px; }

    .summary-total {
        margin: 20px 0 18px;
        padding: 18px;
        border-radius: 18px;
        background:
            linear-gradient(135deg, rgba(14,147,132,.12), rgba(14,147,132,.04));
    }

    .summary-total span,
    .summary-total strong,
    .summary-total small { display: block; }

    .summary-total span {
        color: var(--rw-muted);
        font-size: .76rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .summary-total strong {
        margin-top: 6px;
        font-size: 2rem;
        letter-spacing: -.04em;
    }

    .summary-total small {
        margin-top: 3px;
        color: var(--rw-teal-dark);
        font-weight: 700;
    }

    .summary-list { display: grid; }

    .summary-line,
    .schengen-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 12px 0;
        border-bottom: 1px solid #edf1f0;
        font-size: .88rem;
    }

    .summary-line:last-child,
    .schengen-line:last-child { border-bottom: 0; }

    .summary-line span,
    .schengen-line span { color: var(--rw-muted); }

    .summary-line strong,
    .schengen-line strong { text-align: right; }

    .date-fit {
        display: none;
        margin-top: 14px;
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--rw-soft-warm);
        color: #7f5a17;
        font-size: .8rem;
        line-height: 1.45;
    }

    .date-fit.show { display: block; }

    .schengen-meter {
        height: 9px;
        margin: 18px 0 9px;
        overflow: hidden;
        border-radius: 999px;
        background: #edf1f0;
    }

    .schengen-meter-fill {
        width: 0%;
        height: 100%;
        border-radius: inherit;
        background: var(--rw-teal);
        transition: width .25s ease;
    }

    .schengen-caption {
        color: var(--rw-muted);
        font-size: .76rem;
        line-height: 1.4;
    }

    .save-area {
        display: grid;
        gap: 9px;
    }

    .save-button {
        width: 100%;
        min-height: 50px;
        border: 0;
        border-radius: 14px;
        background: var(--rw-teal);
        color: #fff;
        font: inherit;
        font-weight: 900;
        cursor: pointer;
        transition: .18s ease;
    }

    .save-button:hover {
        background: var(--rw-teal-dark);
        transform: translateY(-1px);
    }

    .save-button:disabled {
        opacity: .45;
        cursor: not-allowed;
        transform: none;
    }

    .save-note {
        margin: 0;
        color: var(--rw-muted);
        text-align: center;
        font-size: .73rem;
        line-height: 1.4;
    }

    @media (max-width: 980px) {
        .planner-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .planner-layout { grid-template-columns: 1fr; }
        .summary-stack { position: static; }
    }

    @media (max-width: 760px) {
        .trip-planner { padding: 22px 14px 50px; }
        .planner-hero { grid-template-columns: 1fr; padding: 26px 22px; }
        .planner-hero-badge { width: fit-content; }
        .route-stop { grid-template-columns: 42px minmax(0, 1fr); }
        .nights-control,
        .route-price,
        .route-actions { grid-column: 2; }
        .route-price { text-align: left; }
        .route-actions { justify-content: flex-start; }
    }

    @media (max-width: 560px) {
        .planner-controls { grid-template-columns: 1fr; }
        .planner-panel,
        .summary-card { padding: 18px; }
    }

/* Keep the POST-only logout action looking like the existing nav links. */
.nav-logout-form {
    display: inline;
    margin: 0;
}

.nav-logout-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
}

nav .nav-logout-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 650;
    transition: all 0.2s ease;
}

nav .nav-logout-button:hover,
nav .nav-logout-button:focus {
    background: rgba(20, 184, 166, 0.08);
    color: var(--teal-700);
}

nav .nav-logout-button::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--amber-500), var(--teal-500));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

nav .nav-logout-button:hover::after,
nav .nav-logout-button:focus::after {
    transform: scaleX(1);
}

@media (max-width: 768px) {
    nav .nav-logout-button {
        padding: 9px 11px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    nav .nav-logout-button {
        width: auto;
        text-align: center;
        padding: 8px 9px;
        font-size: 0.82rem;
    }
}

/* Security pass #2: small auth utility row. */
.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.auth-label-row a {
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}
