/* premium-land-measurement-calculator.css */
:root {
  --bg-1: #8ef3c0;
  --bg-2: #22d3ee;
  --text-main: #041317;
  --text-muted: rgba(4, 19, 23, 0.78);
  --card: rgba(255, 255, 255, 0.97);
  --card-soft: rgba(255, 255, 255, 0.94);
  --border-soft: rgba(148, 163, 184, 0.6);
  --accent: #22c55e;
  --accent-blue: #0ea5e9;
  --accent-dark: #022c22;
  --radius-lg: 28px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.32);
  --shadow-small: 0 12px 28px rgba(15, 23, 42, 0.18);
  --transition-fast: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-med: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  min-height: 100vh;
}

/* BACKGROUND */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 0% 0%, #bbf7d0 0, transparent 46%),
    radial-gradient(circle at 100% 100%, #38bdf8 0, transparent 40%),
    linear-gradient(135deg, var(--bg-1) 0%, #bef264 22%, #5eead4 55%, var(--bg-2) 100%);
  filter: saturate(1.05);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      transparent 35%,
      rgba(0, 0, 0, 0.2)
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.28),
      rgba(255, 255, 255, 0.28) 1px,
      transparent 1px,
      transparent 2px
    );
  mix-blend-mode: soft-light;
  opacity: 0.6;
  pointer-events: none;
}

/* LAYOUT */

.lc-container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

.lc-main {
  padding-bottom: 60px;
}

.lc-section {
  padding: 70px 0;
}

.lc-section-soft {
  padding-top: 0;
}

/* HEADER */

.lc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.88)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.96);
}

.lc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  gap: 16px;
}

.lc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lc-logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0 0, #bbf7d0, #22c55e);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--accent-dark);
  font-size: 0.9rem;
}

.lc-brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.06em;
}

.lc-brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lc-header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* LANG SWITCH */

.lc-lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lc-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.9);
}

.lc-lang-buttons {
  display: inline-flex;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.04);
}

.lc-lang-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.7);
  transition: background var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast), transform var(--transition-fast);
}

.lc-lang-btn.is-active {
  background: #ffffff;
  color: var(--accent-dark);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

/* HERO */

.lc-hero {
  padding: 70px 0 40px;
}

.lc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
}

.lc-hero-kicker {
  margin: 0 0 10px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(4, 19, 23, 0.75);
}

.lc-hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: -0.06em;
}

.lc-hero-subtitle {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: var(--text-muted);
}

.lc-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lc-pill {
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* HERO SIDE CARD */

.lc-hero-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.lc-hero-card-header {
  padding: 10px 14px;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.12),
    rgba(15, 23, 42, 0)
  );
}

.lc-hero-card-badge {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(22, 163, 74, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.8);
  color: rgba(22, 101, 52, 0.96);
}

.lc-hero-card-body {
  padding: 16px 16px 18px;
}

.lc-hero-card-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.lc-hero-card-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lc-hero-card-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}

/* CALCULATOR */

.lc-calc-shell {
  background: var(--card-soft);
  border-radius: var(--radius-xl);
  padding: 20px 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

/* tabs */

.lc-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.65);
  margin-bottom: 14px;
}

.lc-tab {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.7);
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lc-tab-icon {
  font-size: 1rem;
}

.lc-tab.is-active {
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

.lc-panel {
  display: none;
}

.lc-panel.is-active {
  display: block;
}

/* layout */

.lc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 22px;
}

.lc-controls {
  display: grid;
  gap: 10px;
}

.lc-heading {
  margin: 0 0 4px;
  font-size: 1.14rem;
  letter-spacing: -0.03em;
}

.lc-input,
.lc-select {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 9px 11px;
  font-size: 0.94rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.98);
}

.lc-input:focus,
.lc-select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.lc-hint {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* presets */

.lc-presets {
  margin-top: 4px;
}

.lc-preset-label {
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.8);
  font-weight: 600;
}

.lc-preset-chips {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lc-chip {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 4px 10px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.lc-chip:hover {
  background: rgba(219, 234, 254, 0.96);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

/* results */

.lc-results {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-small);
}

.lc-results-title {
  margin: 0 0 10px;
  font-size: 0.96rem;
  letter-spacing: -0.02em;
}

.lc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.lc-result-card {
  border-radius: 16px;
  padding: 9px 10px 11px;
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 0.98),
    rgba(219, 234, 254, 0.9)
  );
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.lc-result-card header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.lc-result-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
}

.lc-result-card h4 {
  margin: 0;
  font-size: 0.86rem;
}

.lc-result-value {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
}

/* REFERENCE TABLES */

.lc-section-title {
  margin: 0 0 10px;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.lc-section-subtitle {
  margin: 0 0 16px;
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 640px;
}

.lc-ref-block {
  margin-top: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.65);
  box-shadow: var(--shadow-small);
  padding: 8px 12px 10px;
}

.lc-ref-block summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.lc-ref-block summary::-webkit-details-marker {
  display: none;
}

.lc-ref-block summary::before {
  content: "▾";
  display: inline-block;
  margin-right: 6px;
  font-size: 0.75rem;
  transform: translateY(-1px);
}

details[open] > summary::before {
  content: "▴";
}

.lc-table-wrap {
  margin-top: 6px;
  overflow-x: auto;
}

.lc-ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lc-ref-table td {
  padding: 4px 6px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.lc-ref-table tr:last-child td {
  border-bottom: none;
}

/* FOOTER */

.lc-footer {
  padding: 18px 0 22px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.lc-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 0.84rem;
  color: rgba(15, 23, 42, 0.86);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .lc-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lc-hero {
    padding-top: 60px;
  }

  .lc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .lc-section,
  .lc-section-soft {
    padding: 60px 0;
  }

  .lc-hero-title {
    font-size: 2.1rem;
  }

  .lc-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lc-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .lc-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
