/* Homepage (index.html) only. Builds on style.css tokens. */

:root {
    --navy: #0b1530;
    --navy-2: #12224a;
    --grad: linear-gradient(100deg, #1e62cf 0%, #3b82f6 45%, #06b6d4 100%);
}

.h-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--rrugo-blue);
    background: #eef3ff;
    border: 1px solid #dbe6ff;
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}

.h-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.h-grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Hero ─────────────────────────────────────────── */
.hero.h-hero {
    min-height: 0;
    display: block;
    padding: 150px 0 80px;
    overflow: hidden;
}

.hero.h-hero::before {
    display: none;
}

.h-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% 20%, rgba(59, 130, 246, 0.16), transparent 70%),
        radial-gradient(500px 360px at 70% 85%, rgba(6, 182, 212, 0.12), transparent 70%),
        radial-gradient(500px 400px at 0% 0%, rgba(30, 98, 207, 0.06), transparent 70%);
}

.h-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.h-title {
    font-family: 'Outfit', sans-serif;
    font-size: 68px;
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin: 0 0 22px;
}

.h-lead {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 0 30px;
}

/* Store buttons (HTML, so they're crisp and equal-sized) */
.h-stores {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 10px 18px 10px 14px;
    border-radius: 14px;
    background: #0f172a;
    color: white;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.store-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.24);
}

.store-pill svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.store-pill-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-pill-text small {
    font-size: 11px;
    opacity: 0.8;
}

.store-pill-text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
}

.store-pill--light {
    background: white;
    color: #0f172a;
}

.h-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 26px 0 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.h-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.h-trust li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
}

/* Hero card tweaks (card itself is styled in style.css) */
.h-hero .hero-visual {
    max-width: 440px;
}

.h-hero .route-card {
    transform: rotate(-1.5deg);
}

/* ── Popular routes strip ─────────────────────────── */
.h-routes {
    padding: 0 0 56px;
}

.h-routes-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.h-routes-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}

.h-routes-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px;
}

.h-routes-list::-webkit-scrollbar {
    display: none;
}

.h-route-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-gray);
    background: white;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.h-route-chip:hover {
    border-color: var(--rrugo-blue);
    color: var(--rrugo-blue);
}

.h-route-chip svg {
    width: 16px;
    height: 16px;
    stroke: var(--rrugo-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Sections ─────────────────────────────────────── */
.h-section {
    padding: 96px 0;
}

.h-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.h-head h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    line-height: 1.12;
    letter-spacing: -0.8px;
    margin: 0 0 14px;
}

.h-head p {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
}

/* How it works */
.h-how {
    background: var(--light-gray);
}

.h-how .hiw-tabs {
    display: flex;
    width: max-content;
    margin: 0 auto 36px;
    padding: 5px;
    gap: 4px;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 999px;
}

.h-how .hiw-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    padding: 10px 22px;
    border-radius: 999px;
    font: 600 15px 'DM Sans', sans-serif;
    color: var(--text-muted);
    cursor: pointer;
}

.h-how .hiw-tab svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.h-how .hiw-tab.active {
    background: var(--rrugo-blue);
    color: white;
}

.h-how .hiw-panel {
    display: none;
}

.h-how .hiw-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.h-step {
    position: relative;
    background: white;
    border: 1px solid var(--border-gray);
    border-radius: 20px;
    padding: 24px;
}

.h-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef3ff;
    color: var(--rrugo-blue);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 16px;
}

.hiw-panel--driver .h-step-num {
    background: #e0f7fa;
    color: #0891b2;
}

.h-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    margin: 0 0 8px;
}

.h-step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.h-how-more {
    text-align: center;
    margin-top: 32px;
}

.h-how-more a {
    color: var(--rrugo-blue);
    font-weight: 700;
    text-decoration: none;
}

.h-how-more a:hover {
    text-decoration: underline;
}

/* Features (bento) */
.h-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.h-card {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 24px;
    padding: 28px;
}

.h-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    margin: 0 0 8px;
}

.h-card p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.h-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: white;
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.h-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--rrugo-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.h-card--wide {
    grid-column: span 2;
    background: linear-gradient(135deg, #eef3ff 0%, #e0f7fa 100%);
    border-color: #dbe6ff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.h-mini-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 230px;
}

.h-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    font-weight: 700;
    font-size: 14px;
}

.h-mini span:last-child {
    margin-left: auto;
    color: var(--text-muted);
    font-weight: 600;
}

.h-mini svg {
    width: 18px;
    height: 18px;
    stroke: var(--rrugo-blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.h-card--dark {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.h-card--dark p {
    color: rgba(255, 255, 255, 0.72);
}

.h-zero {
    font-family: 'Outfit', sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
}

/* Safety (dark) */
.h-safety {
    background: var(--navy);
    color: white;
}

.h-safety .h-eyebrow {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #93c5fd;
}

.h-safety .h-head p {
    color: rgba(255, 255, 255, 0.7);
}

.h-safety-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.h-safe {
    display: flex;
    gap: 18px;
    padding: 26px;
    border-radius: 22px;
    background: var(--navy-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.h-safe-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(59, 130, 246, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
}

.h-safe-icon svg {
    width: 22px;
    height: 22px;
    stroke: #93c5fd;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.h-safe h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    margin: 0 0 6px;
    color: white;
}

.h-safe p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 15px;
}

/* Guides (restyled) */
.h-guides.guides {
    padding: 96px 0;
}

.h-guides .guide-card {
    background: white;
    border-radius: 22px;
}

.h-guides .guide-card-route {
    display: inline-flex;
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    color: var(--rrugo-blue);
    background: #eef3ff;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 14px;
}

/* Final CTA + contact */
.h-cta-wrap {
    padding: 0 0 96px;
}

.h-cta {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    padding: 64px 48px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #0b1530 0%, #1e62cf 60%, #06b6d4 120%);
}

.h-cta::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.h-cta h2 {
    position: relative;
    font-family: 'Outfit', sans-serif;
    font-size: 44px;
    letter-spacing: -0.8px;
    margin: 0 0 12px;
    color: white;
}

.h-cta > p {
    position: relative;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 auto 28px;
}

.h-cta .h-stores {
    position: relative;
    justify-content: center;
}

.h-contact {
    position: relative;
    margin: 28px 0 0 !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.75);
}

.h-contact a {
    color: white;
    font-weight: 700;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 980px) {
    .h-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .h-bento {
        grid-template-columns: 1fr 1fr;
    }

    .h-card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .hero.h-hero {
        padding: 104px 0 40px;
    }

    .h-hero-copy {
        text-align: center;
    }

    .h-title {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .h-lead {
        font-size: 17px;
        margin-left: auto;
        margin-right: auto;
    }

    .h-stores,
    .h-trust {
        justify-content: center;
    }

    .store-pill {
        min-width: 0;
        flex: 1 1 150px;
        max-width: 200px;
        padding: 9px 12px;
    }

    .store-pill-text strong {
        font-size: 16px;
    }

    .h-hero .route-card {
        transform: none;
    }

    .h-routes {
        padding-bottom: 40px;
    }

    .h-routes-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .h-routes-label {
        text-align: center;
    }

    .h-section,
    .h-guides.guides {
        padding: 64px 0;
    }

    .h-head {
        margin-bottom: 32px;
    }

    .h-head h2,
    .h-cta h2 {
        font-size: 32px;
    }

    .h-head p {
        font-size: 16px;
    }

    .h-bento,
    .h-safety-grid {
        grid-template-columns: 1fr;
    }

    .h-card--wide {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .h-mini-results {
        min-width: 0;
    }

    .h-cta-wrap {
        padding-bottom: 64px;
    }

    .h-cta {
        padding: 44px 22px;
        border-radius: 26px;
    }
}

/* Text on dark backgrounds (global h2/h3 colors are dark) */
.h-safety .h-head h2,
.h-card--dark h3 {
    color: white;
}

.h-cta .h-contact {
    text-align: center;
    max-width: none;
}

@media (max-width: 767px) {
    /* Compact steps on phones: number beside the text */
    .h-how .hiw-panel.active {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .h-step {
        display: grid;
        grid-template-columns: 36px 1fr;
        column-gap: 14px;
        padding: 18px;
        border-radius: 16px;
    }

    .h-step-num {
        grid-row: span 2;
        margin-bottom: 0;
    }

    .h-step h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .h-step p {
        font-size: 14px;
    }

    .h-eyebrow {
        font-size: 11px;
    }
}

/* Hero background fades out instead of ending in a hard edge */
.hero.h-hero {
    background: transparent;
}

.h-hero-bg {
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

@media (max-width: 980px) {
    /* The card glow gets clipped at the hero's bottom edge on stacked layouts */
    .h-hero .hero-visual::before {
        display: none;
    }
}

/* Routes strip: wrap on wider screens instead of clipping the last chip */
@media (min-width: 768px) {
    .h-routes-list {
        flex-wrap: wrap;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    /* Hint that the chips scroll sideways */
    .h-routes-list {
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
        padding-right: 24px;
    }
}

/* Label above the chips so all routes fit on one line */
.h-routes-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.h-how-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Keep the routes row inside the screen; only the chips scroll, never the page */
.h-routes-inner {
    min-width: 0;
}

.h-routes-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* eSIM store teaser */
.h-esim {
    padding: 8px 0 40px;
}

.h-esim-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border-radius: 28px;
    /* Colosseum at blue hour (Unsplash, David Köhler), darkened on the text side */
    background:
        linear-gradient(90deg, rgba(11, 21, 48, 0.96) 0%, rgba(11, 21, 48, 0.82) 45%, rgba(11, 21, 48, 0.35) 100%),
        url('/assets/esim-rome.jpg') center 58% / cover no-repeat,
        #0b1530;
    color: white;
}

.h-esim-text {
    flex: 1 1 320px;
}

.h-esim-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
    font-size: 13px;
    font-weight: 700;
}

.h-esim-text h2 {
    font: 800 28px 'Outfit', sans-serif;
    margin: 12px 0 8px;
    color: white;
}

.h-esim-text p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.h-esim-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--rrugo-blue);
    color: white;
    font-weight: 700;
    text-decoration: none;
}

.h-esim-btn:hover {
    filter: brightness(1.1);
}

.h-esim-flags {
    flex: 1 1 280px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.h-esim-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.h-esim-flag:hover {
    background: rgba(255, 255, 255, 0.14);
}

.h-esim-flag img {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
}

@media (max-width: 600px) {
    .h-esim-card {
        padding: 22px 18px;
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(11, 21, 48, 0.92) 0%, rgba(11, 21, 48, 0.78) 55%, rgba(11, 21, 48, 0.6) 100%),
            url('/assets/esim-rome.jpg') 30% center / cover no-repeat,
            #0b1530;
    }

    .h-esim-text h2 {
        font-size: 23px;
    }
}
