/* === Custom Properties === */
:root {
    --bg-warm: #FAF8F5;
    --bg-app: #F0F0EC;
    --accent-green: #2D6A4F;
    --accent-green-hover: #245A42;
    --harvest-gold: #D4A843;
    --text-dark: #1F2937;
    --text-mid: #4B5563;
    --text-light: #6B7280;
    --border-light: #E5E7EB;
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

body {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--bg-warm);
}

/* === Top Navigation === */
#topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    height: 56px;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}

#topnav.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border-light);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-logo-icon {
    width: 28px;
    height: 28px;
}

.nav-logo-maps {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-links a.nav-cta {
    background: var(--accent-green);
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-links a.nav-cta:hover {
    background: var(--accent-green-hover);
}

/* === Hero Section === */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
    background: var(--bg-warm);
}

/* Real field boundary parcels background */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('field-pattern.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

#hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 16px;
    position: relative;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-mid);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 32px;
    position: relative;
}

.cta-btn {
    display: inline-block;
    background: var(--accent-green);
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    position: relative;
}

.cta-btn:hover {
    background: var(--accent-green-hover);
    transform: translateY(-1px);
}

/* === Hero Screenshot === */
.hero-animation {
    width: 100%;
    max-width: 900px;
    margin-top: 48px;
    position: relative;
}

/* === Screenshot images === */
.hero-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

/* Step icons (Lucide) */
.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    margin-bottom: 16px;
}

.step-icon svg {
    width: 48px;
    height: 48px;
    color: var(--accent-green);
    stroke-width: 1.5;
}

/* Feature showcase visuals */
.feature-showcase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Drawing modes switcher */
.drawing-modes-switcher {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.drawing-modes-switcher .mode-img {
    width: 100%;
    display: none;
}

.drawing-modes-switcher .mode-img.active {
    display: block;
}

.mode-labels {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    padding: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.mode-label {
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    color: var(--text-mid);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.mode-label.active {
    background: var(--accent-green);
    color: #fff;
}

/* ISOXML code block */
.code-block {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    width: 100%;
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #0f172a;
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.code-dot:nth-child(1) { background: #ef4444; }
.code-dot:nth-child(2) { background: #eab308; }
.code-dot:nth-child(3) { background: #22c55e; }

.code-filename {
    margin-left: 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: #94a3b8;
}

.code-content {
    padding: 14px 16px;
    margin: 0;
    font-size: 11.5px;
    line-height: 1.6;
    font-family: var(--font-mono);
    color: #e2e8f0;
    overflow-x: auto;
}

.code-content code {
    font-family: inherit;
}

/* === Problem Section === */
#problem {
    padding: 80px 24px;
    background: #fff;
    border-top: 1px solid var(--border-light);
}

.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    padding: 28px 20px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.03);
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-left: 3px solid #dc2626;
}

.problem-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.08);
    margin-bottom: 14px;
}

.problem-icon svg {
    width: 20px;
    height: 20px;
    color: #dc2626;
    stroke-width: 2;
}

.problem-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.problem-card p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.5;
}

/* === Solution Cards === */
.solution-heading {
    margin-top: 48px;
}

.solution-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.solution-card {
    padding: 28px 20px;
    border-radius: 10px;
    background: rgba(45, 106, 79, 0.04);
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-left: 3px solid var(--accent-green);
}

.solution-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(45, 106, 79, 0.1);
    margin-bottom: 14px;
}

.solution-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    stroke-width: 2;
}

.solution-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.solution-card p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.5;
}

/* === How It Works === */
#how-it-works {
    padding: 100px 24px;
    background: var(--bg-warm);
    position: relative;
}

#how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%232D6A4F' stroke-width='1'%3E%3Cpath d='M0 80 Q100 60 200 90 T400 70'/%3E%3Cpath d='M0 130 Q80 110 180 140 T400 120'/%3E%3Cpath d='M0 180 Q120 160 220 195 T400 175'/%3E%3Cpath d='M0 230 Q90 215 200 245 T400 225'/%3E%3Cpath d='M0 280 Q110 265 210 295 T400 275'/%3E%3Cpath d='M0 330 Q100 310 190 345 T400 325'/%3E%3Cpath d='M0 380 Q80 365 180 395 T400 375'/%3E%3Cpath d='M0 30 Q110 10 200 40 T400 20'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 400px 400px;
    pointer-events: none;
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.landing-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
}

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

.step {
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--harvest-gold);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.step p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.5;
}

/* === Features === */
#features {
    padding: 80px 24px;
    background: #fff;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Feature showcase (animated feature highlights) */
.feature-showcase {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-bottom: 56px;
}

.feature-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.feature-showcase-item--reverse {
    direction: rtl;
}

.feature-showcase-item--reverse > * {
    direction: ltr;
}

.feature-showcase-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-showcase-text p {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* Remaining compact feature list */
.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

/* === Trust Section === */
#trust {
    padding: 48px 24px;
    background: var(--bg-warm);
    text-align: center;
}

.trust-line {
    font-size: 15px;
    color: var(--text-mid);
    font-weight: 500;
    line-height: 1.6;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(45, 106, 79, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 18px;
    height: 18px;
    color: var(--accent-green);
    stroke-width: 2;
}

.feature-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.4;
}

/* === App Section === */
#app {
    display: flex;
    height: 100vh;
    background: var(--bg-app);
    position: relative;
}

/* === Sidebar (within app) === */
#sidebar {
    width: 320px;
    min-width: 320px;
    overflow-y: auto;
    background: var(--bg-warm);
    border-right: 1px solid #ddd;
}

#sidebar-top {
    padding: 16px 16px 8px;
    border-bottom: 1px solid var(--border-light);
}

#sidebar-scroll {
    padding: 12px 16px;
}

#map {
    flex: 1;
    position: relative;
}

#sidebar h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent-green);
    background: rgba(45, 106, 79, 0.04);
}

.upload-zone p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
}

.upload-zone .upload-icon {
    font-size: 28px;
    margin-bottom: 4px;
    color: #999;
}

.upload-zone .upload-formats {
    font-size: 11px;
    color: #999;
}

/* Empty state (no fields yet) */
#empty-state {
    padding: 20px 0;
}

#empty-state h2 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.empty-state-hint {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 12px;
}

.empty-state-actions {
    display: flex;
    gap: 6px;
}

/* Add field menu (inline below "+ Add" button) */
#add-field-menu {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

/* Draw field confirmation bar */
#draw-field-bar {
    padding: 12px;
    margin-bottom: 12px;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 6px;
}

.draw-field-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* Field list */
.field-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.field-list-header h2 {
    margin: 0;
}

.btn-small {
    padding: 3px 10px !important;
    font-size: 12px !important;
}

#field-list-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.field-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.field-list-item:hover {
    background: rgba(45, 106, 79, 0.04);
}

.field-list-item.active {
    background: rgba(45, 106, 79, 0.06);
    border-color: rgba(45, 106, 79, 0.2);
    border-left: 3px solid var(--accent-green);
}

.field-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.field-list-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-list-meta {
    font-size: 11px;
    color: var(--text-light);
    font-family: var(--font-mono);
}

.field-zone-badge {
    background: rgba(45, 106, 79, 0.1);
    color: var(--accent-green);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    font-family: var(--font-display);
}

.field-remove-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}

.field-list-item:hover .field-remove-btn {
    opacity: 1;
}

.field-remove-btn:hover {
    color: #dc2626;
}

/* Field name input */
#field-name-row {
    margin-bottom: 4px;
}

.field-name-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

#field-name-input {
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    padding: 4px 6px;
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
}

#field-name-input:hover {
    border-color: var(--border-light);
    background: #fff;
}

#field-name-input:focus {
    border-color: var(--accent-green);
    background: #fff;
    outline: none;
}

/* Map scroll hint */
#map-scroll-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 500;
    pointer-events: none;
    display: none;
}

/* Export section */
#export-section {
    padding: 4px 0 0;
}

/* Drawing dots for field boundary */
.drawing-dot.field-dot {
    background: #2563eb;
    border-color: #1d4ed8;
}

.drawing-dot.field-dot.first {
    background: #fff;
    border-color: #2563eb;
}

/* Zone section styling */
.zone-section {
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0;
    margin-bottom: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.zone-section .section-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin: 0;
    font-size: 13px;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}

.zone-section .section-header::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#application-section .section-header::before {
    background: #16a34a;
}

#exclusion-section .section-header::before {
    background: #dc2626;
}

.zone-section .section-header::after {
    content: '\25B6';
    font-size: 9px;
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.zone-section.active .section-header::after {
    transform: rotate(90deg);
}

.zone-section .section-header:hover {
    background: #f9fafb;
}

.zone-section .section-body {
    padding: 0 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.zone-section.active .section-body {
    max-height: 800px;
    padding: 8px 12px 12px;
}

#application-section.active {
    border-color: #16a34a;
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.1);
}

#exclusion-section.active {
    border-color: #dc2626;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
}

.zone-section.active .section-header {
    border-bottom-color: var(--border-light);
}

.zone-section.inactive .section-controls {
    opacity: 0.5;
    pointer-events: none;
}

.zone-section .section-controls {
    transition: opacity 0.2s;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 12px;
    color: #555;
}

select, input[type="number"], input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-display);
    margin-bottom: 8px;
}

input[type="number"] {
    font-family: var(--font-mono);
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-display);
}

.btn:hover { background: #eee; }

.btn.primary {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

.btn.primary:hover { background: var(--accent-green-hover); }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hint {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

#field-info {
    font-size: 12px;
    color: #666;
    margin: 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}

.toggle-row label {
    display: inline;
    margin: 0;
}

.toggle-row input[type="checkbox"] {
    width: auto;
}

.zone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.zone-item .zone-label {
    flex: 1;
}

.zone-item .remove-btn {
    background: none;
    border: none;
    color: #e00;
    cursor: pointer;
    font-size: 16px;
    padding: 0 4px;
}

.export-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

#export-result, #pdf-result {
    margin-top: 4px;
    font-size: 12px;
}

#export-result.success, #pdf-result.success { color: #16a34a; }
#export-result.error, #pdf-result.error { color: #dc2626; }

/* Zone label markers on map (for PDF capture) */
.zone-label-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 3px rgba(0,0,0,0.7);
    pointer-events: none;
    white-space: nowrap;
}

.zone-label-marker.application {
    background: rgba(22, 163, 74, 0.85);
    border: 1px solid #15803d;
    border-radius: 3px;
    padding: 2px 5px;
}

.zone-label-marker.exclusion {
    background: rgba(220, 38, 38, 0.85);
    border: 1px solid #b91c1c;
    border-radius: 3px;
    padding: 2px 5px;
}

/* Net application area summary */
.net-area-summary {
    padding: 10px 12px;
    margin-top: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 13px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.summary-row + .summary-row {
    border-top: 1px solid #eee;
}

.summary-label {
    font-weight: 500;
    color: var(--text-muted);
}

.summary-value {
    font-weight: 600;
    font-family: var(--font-mono);
}

.net-field {
    color: var(--text-dark);
}

.net-applied {
    color: #16a34a;
}

.net-excluded {
    color: #dc2626;
}

/* Monospace for numeric data */
.zones-total {
    font-family: var(--font-mono);
}

/* Vertex markers */
.vertex-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--accent-green);
    pointer-events: none;
}

.vertex-marker.hover {
    background: #a7d5b8;
    border-color: var(--accent-green);
}

.vertex-marker.edge-snap {
    background: #fbbf24;
    border-color: #d97706;
    box-shadow: 0 0 4px rgba(245, 158, 11, 0.5);
}

.vertex-marker.selected {
    background: var(--accent-green);
    border-color: var(--accent-green-hover);
}

/* Mode toggle buttons */
.mode-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.mode-btn {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    font-family: var(--font-display);
}

.mode-btn:hover { background: #eee; }

.mode-btn.active {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

/* Total area summary */
.zones-total {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    padding: 6px 0;
    margin-top: 4px;
    border-top: 1px solid #ddd;
}

/* Drawing dots */
.drawing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #d97706;
    pointer-events: none;
}

.drawing-dot.first {
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #f59e0b;
}

/* Snap-to-close indicator */
.snap-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    border: 3px solid #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    pointer-events: none;
    animation: snap-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes snap-pulse {
    from { transform: scale(1); opacity: 1; }
    to   { transform: scale(1.4); opacity: 0.5; }
}

.drawing-dot.snapping {
    background: #f59e0b;
    border-color: #b45309;
    transform: scale(1.5);
}

/* Draggable vertex markers (polygon edit mode) */
.draw-vertex-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    border: 2px solid #d97706;
    cursor: grab;
    transition: transform 0.1s, background 0.1s;
}

.draw-vertex-marker:active { cursor: grabbing; }

.draw-vertex-marker.hover {
    transform: scale(1.5);
    background: #fbbf24;
    border-color: #b45309;
}

/* Midpoint markers */
.midpoint-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(217, 119, 6, 0.4);
    cursor: pointer;
    transition: transform 0.1s, background 0.1s;
}

.midpoint-marker.hover {
    transform: scale(1.6);
    background: rgba(245, 158, 11, 0.8);
    border-color: #d97706;
}

/* Drawing cursor on map */
.drawing-cursor {
    cursor: crosshair !important;
}

/* Flip direction button */
.flip-btn {
    width: 100%;
    margin: 4px 0 6px;
    font-size: 12px;
    padding: 4px 10px;
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.flip-btn:hover {
    background: #fde68a;
}

/* Polygon confirm buttons */
#application-polygon-confirm,
#exclusion-polygon-confirm {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .problem-cards,
    .solution-cards {
        grid-template-columns: 1fr;
    }

    .feature-showcase-item,
    .feature-showcase-item--reverse {
        grid-template-columns: 1fr;
        gap: 24px;
        direction: ltr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero-animation .animation-placeholder {
        height: 220px;
    }
}
