/* ==========================================
   MyCoffee v2 — Shared Design System
   ========================================== */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* === ROOT VARIABLES === */
:root {
    --brown:        #A37D5F;
    --brown-dark:   #8B6549;
    --brown-light:  rgba(163, 125, 95, 0.08);
    --brown-border: rgba(163, 125, 95, 0.22);

    --orange:       #C1623F;
    --orange-dark:  #9E4A2E;
    --orange-light: rgba(193, 98, 63, 0.08);
    --orange-border: rgba(193, 98, 63, 0.30);

    --dark:    #111827;
    --text:    #374151;
    --muted:   #6B7280;
    --subtle:  #9CA3AF;

    --white:     #FFFFFF;
    --surface:   #FAFAF8;
    --surface-2: #F3EFE9;
    --border:    #E5E7EB;

    --indigo:        #6366F1;
    --indigo-light:  rgba(99, 102, 241, 0.08);
    --indigo-border: rgba(99, 102, 241, 0.2);

    --radius-sm:   6px;
    --radius:      12px;
    --radius-lg:   16px;
    --radius-xl:   20px;
    --radius-2xl:  28px;
    --radius-full: 100px;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
    --shadow:    0 4px 16px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-brown: 0 4px 20px rgba(163, 125, 95, 0.28);

    --nav-h:  68px;
    --max-w:  1160px;
    --px:     2rem;
}

/* === BASE === */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === NAV === */
.nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.nav-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark { height: 26px; width: auto; }
.nav-logo-text {
    font-weight: 800; font-size: 0.975rem;
    letter-spacing: -0.01em; color: var(--dark);
}
.nav-logo-accent { color: var(--brown); }
.nav-links {
    display: flex; align-items: center; gap: 2px;
}
.nav-link {
    font-size: 0.9rem; font-weight: 500; color: var(--muted);
    text-decoration: none; padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--dark); background: var(--surface); }
.nav-link.active { color: var(--dark); font-weight: 600; }
.nav-cta {
    font-size: 0.875rem; font-weight: 600; color: var(--brown);
    text-decoration: none; border: 1.5px solid var(--brown);
    border-radius: var(--radius-full); padding: 7px 18px;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--brown); color: #fff; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 0.95rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    border-radius: var(--radius-full);
    padding: 12px 24px;
    transition: all 0.2s; white-space: nowrap;
}
.btn-primary {
    background: var(--brown); color: #fff;
    box-shadow: var(--shadow-brown);
}
.btn-primary:hover {
    background: var(--brown-dark); transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(163,125,95,0.38);
}
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1f2937; transform: translateY(-1px); }
.btn-outline {
    background: transparent; color: var(--dark);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--dark); background: var(--surface); }
.btn-outline-orange {
    background: transparent; color: var(--orange);
    border: 1.5px solid var(--orange-border);
}
.btn-outline-orange:hover {
    background: var(--orange); color: #fff;
    border-color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(193, 98, 63, 0.25);
}
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--dark); background: var(--surface); }
.btn-white { background: #fff; color: var(--brown); }
.btn-white:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.btn-sm  { font-size: 0.875rem; padding:  9px 18px; }
.btn-lg  { font-size: 1.05rem;  padding: 14px 30px; }

/* === LAYOUT === */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section    { padding: 96px var(--px); }
.section-sm { padding: 72px var(--px); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.surface-bg  { background: var(--surface); }
.surface2-bg { background: var(--surface-2); }
.pt-nav { padding-top: var(--nav-h); }

/* === EYEBROW / LABELS === */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--brown);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: ''; display: block;
    width: 18px; height: 2px; background: var(--brown); border-radius: 2px;
}
.eyebrow-indigo { color: var(--indigo); }
.eyebrow-indigo::before { background: var(--indigo); }
.eyebrow-orange { color: var(--orange); }
.eyebrow-orange::before { background: var(--orange); }

/* === BADGE === */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
    padding: 4px 12px; border-radius: var(--radius-full);
    background: var(--brown-light); color: var(--brown);
    border: 1px solid var(--brown-border); margin-bottom: 1.5rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brown); }

/* === HEADINGS === */
.h-display {
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; color: var(--dark);
}
.h-section {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: var(--dark);
}
.accent { color: var(--brown); }
.accent-indigo { color: var(--indigo); }
.accent-orange { color: var(--orange); }
.lead {
    font-size: 1.1rem; color: var(--muted); line-height: 1.75;
    max-width: 520px;
}

/* === SECTION HEADER BLOCK === */
.section-header { margin-bottom: 3.5rem; }
.section-header .lead { max-width: 480px; }
.section-header.centered { text-align: center; }
.section-header.centered .eyebrow { justify-content: center; }
.section-header.centered .lead { margin: 0 auto; }

/* === FEATURE GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--brown-border);
}
.feature-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--brown-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.125rem; color: var(--brown);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.feature-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* === STEPS === */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; position: relative;
}
.steps-grid::before {
    content: ''; position: absolute;
    top: 21px; left: calc(16.67% + 1rem); right: calc(16.67% + 1rem);
    height: 1px; background: var(--border); z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--white); border: 2px solid var(--brown);
    color: var(--brown); font-weight: 800; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.step h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.step p  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* === PATH CARDS (index) === */
.path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.path-card {
    border-radius: var(--radius-2xl); padding: 2.5rem;
    text-decoration: none; display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.path-card.for-members {
    background: linear-gradient(140deg, #FDF8F3 0%, #EEE3D7 100%);
    border: 1px solid var(--brown-border);
}
.path-card.for-shops {
    background: linear-gradient(140deg, #FDF4F0 0%, #F5DDD5 100%);
    border: 1px solid var(--orange-border);
}
.path-eyebrow {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; margin-bottom: 0.875rem;
}
.path-card.for-members .path-eyebrow { color: var(--brown); }
.path-card.for-shops  .path-eyebrow { color: var(--orange); }
.path-card h3 { font-size: 1.375rem; font-weight: 800; color: var(--dark); margin-bottom: 0.75rem; }
.path-card p  { font-size: 0.925rem; color: var(--muted); line-height: 1.65; margin-bottom: 1.75rem; }
.path-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.875rem; font-weight: 700;
}
.path-card.for-members .path-link { color: var(--brown); }
.path-card.for-shops  .path-link  { color: var(--orange); }

/* === PROBLEM CARDS === */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.problem-card {
    padding: 1.75rem; background: var(--white);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.problem-tag {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--subtle); margin-bottom: 0.625rem;
}
.problem-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; line-height: 1.35; }
.problem-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* === MARKETING SPLIT === */
.marketing-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5rem; align-items: center;
}
.marketing-visual {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
}
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.stat-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
}
.stat-card .stat-value { font-size: 1.875rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.stat-card .stat-trend { font-size: 0.75rem; font-weight: 600; color: #10B981; margin-top: 6px; }
.stat-wide {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem;
}
.stat-wide-icon {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--brown-light); color: var(--brown);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-wide-icon svg { width: 20px; height: 20px; }
.stat-wide-text .stat-value { font-size: 1.375rem; font-weight: 800; color: var(--dark); }
.stat-wide-text .stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* === MARKETING BULLET LIST === */
.marketing-points { list-style: none; display: flex; flex-direction: column; gap: 1.125rem; margin-top: 2rem; }
.marketing-points li {
    display: flex; gap: 12px; align-items: flex-start;
    font-size: 0.95rem; color: var(--text);
}
.mp-icon {
    width: 28px; height: 28px; border-radius: var(--radius-sm);
    background: var(--brown-light); color: var(--brown);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    margin-top: 1px;
}
.mp-icon svg { width: 14px; height: 14px; }
.mp-text strong { display: block; font-weight: 700; color: var(--dark); font-size: 0.95rem; margin-bottom: 2px; }
.mp-text span   { font-size: 0.875rem; color: var(--muted); }

/* === PHONE FRAME === */
.phone-wrap { display: flex; justify-content: center; align-items: center; }
.phone {
    width: 230px;
    background: #111;
    border-radius: 38px;
    padding: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    position: relative;
}
.phone-screen {
    width: 100%; border-radius: 30px; overflow: hidden;
    aspect-ratio: 9/19.5; background: #1a1a1a;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* === PRICING === */
.billing-toggle {
    display: inline-flex;
    background: var(--surface-2);
    border-radius: var(--radius-full);
    padding: 4px; gap: 3px;
}
.toggle-btn {
    font-family: inherit; font-size: 0.875rem; font-weight: 600;
    padding: 8px 20px; border-radius: var(--radius-full);
    border: none; cursor: pointer;
    background: transparent; color: var(--muted);
    transition: all 0.2s;
}
.toggle-btn.active { background: var(--white); color: var(--dark); box-shadow: var(--shadow-sm); }
.plans-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; align-items: stretch;
}
.plan-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem;
    position: relative; transition: box-shadow 0.2s, transform 0.2s;
    display: flex; flex-direction: column;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--brown); border-width: 2px; box-shadow: var(--shadow-brown); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--brown); color: #fff;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 4px 14px; border-radius: var(--radius-full); white-space: nowrap;
}
.plan-label   { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.75rem; }
.plan-price   { font-size: 2.625rem; font-weight: 800; color: var(--dark); line-height: 1; margin-bottom: 4px; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-period  { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.plan-savings { font-size: 0.8rem; font-weight: 600; color: var(--brown); margin-bottom: 1rem; }
.plan-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text); }
.plan-features li::before { content: '✓'; color: var(--brown); font-weight: 700; flex-shrink: 0; }
.plan-cta { width: 100%; text-align: center; margin-top: auto; }
.plans-loading { text-align: center; padding: 4rem; color: var(--muted); font-size: 0.95rem; }

/* === SUPPORT HUB === */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.support-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2rem;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.support-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brown-border); }
.support-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius-lg);
    background: var(--brown-light); color: var(--brown);
    display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.support-card-icon svg { width: 24px; height: 24px; }
.support-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.support-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.65; flex: 1; }
.support-card .card-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.875rem; font-weight: 700; color: var(--brown); margin-top: 1.25rem;
}

/* === CTA BAND === */
.cta-band {
    background: linear-gradient(140deg, var(--brown) 0%, var(--brown-dark) 100%);
    padding: 88px var(--px); text-align: center;
}
.cta-band .cta-inner { max-width: 560px; margin: 0 auto; }
.cta-band h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.625rem);
    font-weight: 800; color: #fff;
    letter-spacing: -0.02em; margin-bottom: 0.875rem;
}
.cta-band p  { color: rgba(255,255,255,0.78); font-size: 1rem; margin-bottom: 2.25rem; }
.cta-band .btn-group { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* === FOOTER === */
footer {
    background: var(--dark);
    padding: 3.5rem var(--px) 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2rem; gap: 2rem; flex-wrap: wrap;
}
.footer-brand-logo {
    display: flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 0.75rem;
}
.footer-logo-img { height: 24px; width: auto; opacity: 0.9; filter: brightness(10); }
.footer-logo-text {
    font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em;
    color: #fff; text-transform: uppercase;
}
.footer-tagline { font-size: 0.875rem; color: rgba(255,255,255,0.45); max-width: 200px; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col   { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col-title {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.footer-col a {
    font-size: 0.875rem; color: rgba(255,255,255,0.55);
    text-decoration: none; transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
    font-size: 0.8rem; color: rgba(255,255,255,0.3);
    text-decoration: none; transition: color 0.15s;
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* === DIVIDER === */
.divider { height: 1px; background: var(--border); }

/* === RESPONSIVE === */
@media (max-width: 1000px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin-left: auto; margin-right: auto; }
    .marketing-split { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 860px) {
    .path-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
    .steps-grid::before { display: none; }
    .hero-visual { margin-top: 2rem; }
    .footer-top { flex-direction: column; }
    .footer-links { gap: 2rem; }
}
@media (max-width: 680px) {
    :root { --px: 1.25rem; }
    .nav-links { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .support-grid { grid-template-columns: 1fr; }
    .section { padding: 64px var(--px); }
    .stat-row { grid-template-columns: 1fr; }
    .phone { width: 180px; }
    .phone-carousel { height: 420px; }
    .plans-grid { grid-template-columns: 1fr; max-width: 400px; }
}
