:root {
  --navy-950: #09172e;
  --navy-900: #0f2342;
  --navy-800: #16325b;
  --navy-700: #1e4276;
  --slate-blue: #1e40af;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --steel-cyan: #0284c7;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #cbd5e1;
  --border-light: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 35, 66, 0.14);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font-family: inherit;
}

.num,
.result-value,
.unit-input,
.spec-table td {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--navy-900);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(9, 23, 46, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.94;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--steel-cyan));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.nav-link.active {
  background-color: var(--accent);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero & Page Header */
.hero,
.page-header {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, #193b6e 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  color: #ffffff;
  border-bottom: 3px solid var(--accent);
}

.hero {
  padding: 52px 0 48px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.24);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-header {
  padding: 28px 0 26px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.breadcrumb a {
  color: #cbd5e1;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Dashboard Cards */
.section-block {
  padding: 32px 0;
}

.section-heading {
  margin: 0 0 18px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-800);
  background: #e2e8f0;
  padding: 3px 9px;
  border-radius: 999px;
}

.tool-card h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--navy-900);
}

.tool-card p {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.tool-features {
  margin: 0 0 20px;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  flex: 1;
}

.tool-features li {
  margin-bottom: 4px;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--navy-900);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.tool-cta:hover {
  background: var(--accent);
  text-decoration: none;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
}

.feature-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.feature-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
}

/* Calculator Workspace */
.calc-section {
  padding: 28px 0 16px;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

/* Tabs & Shape Selector */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px;
}

.tab-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--navy-900);
}

.tab-btn.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.sub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.sub-tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sub-tab-btn.active {
  background: var(--surface);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.shape-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.shape-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.shape-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.shape-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.shape-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--slate-blue);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--navy-800);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chip-btn.active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #ffffff;
}

/* Forms */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.form-label-sub {
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-light);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-wrap.has-unit .form-control {
  padding-right: 54px;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.form-control[aria-invalid="true"] {
  border-color: var(--danger);
}

.input-unit {
  position: absolute;
  right: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  pointer-events: none;
}

.form-hint {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-light);
}

.inline-error {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.inline-error.show {
  display: block;
}

.schematic-box {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.schematic-svg {
  width: 84px;
  height: 68px;
  flex-shrink: 0;
}

.schematic-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.schematic-desc strong {
  display: block;
  color: var(--navy-900);
  margin-bottom: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

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

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--navy-900);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--navy-700);
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

/* Result Panel */
.result-panel {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.result-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.15s ease;
}

.btn-copy:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.result-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.result-item.highlight {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(96, 165, 250, 0.45);
}

.result-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-bottom: 3px;
}

.result-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  word-break: break-word;
}

.result-value.is-danger {
  color: #fca5a5;
}

.result-sub {
  margin-top: 3px;
  font-size: 0.84rem;
  color: #93c5fd;
  font-weight: 600;
}

.result-aux {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Unit Converter */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.unit-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.unit-card:focus-within {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.unit-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.unit-symbol {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy-900);
}

.unit-name {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 600;
}

.unit-input-row {
  display: flex;
  gap: 8px;
}

.unit-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
}

.unit-input:focus {
  outline: none;
  border-color: var(--accent);
}

.unit-copy-btn {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.unit-copy-btn:hover {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #ffffff;
}

.unit-ref-bar {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--navy-900);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Bolt Spec Table */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}

.search-box .form-control {
  padding-left: 38px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.spec-detail-card {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: #ffffff;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.spec-detail-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.spec-detail-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.spec-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.spec-kv {
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  min-width: 110px;
}

.spec-kv span {
  display: block;
  font-size: 0.74rem;
  color: #cbd5e1;
}

.spec-kv strong {
  font-size: 1rem;
  color: #ffffff;
}

.spec-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 620px;
}

.spec-table thead th {
  background: var(--navy-900);
  color: #ffffff;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  white-space: nowrap;
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--surface-alt);
}

.spec-table tbody tr:hover {
  background: var(--accent-soft);
}

.spec-table tbody tr.row-selected {
  background: #dbeafe;
}

.spec-table td {
  padding: 11px 14px;
  color: var(--text);
}

.spec-m {
  font-weight: 800;
  color: var(--navy-900);
}

.badge-old {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--warning-bg);
  color: #92400e;
  border: 1px solid #fde68a;
}

.empty-state {
  text-align: center;
  padding: 34px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Info / SEO / AdSense Sections */
.info-section {
  padding: 16px 0 42px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-900);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.info-card h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-800);
}

.info-card p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.formula-box {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.formula-box strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.formula-box code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--slate-blue);
  background: #eff6ff;
  padding: 5px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  word-break: break-word;
}

.formula-box span {
  font-size: 0.81rem;
  color: var(--text-muted);
}

.tip-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.tip-list li {
  margin-bottom: 10px;
}

.tip-list strong {
  color: var(--navy-900);
}

.info-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.info-table th,
.info-table td {
  border: 1px solid var(--border-light);
  padding: 9px 12px;
  text-align: left;
}

.info-table th {
  background: var(--surface-alt);
  color: var(--navy-900);
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  overflow: hidden;
}

.faq-item summary {
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item[open] summary {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.faq-answer {
  padding: 13px 16px;
  font-size: 0.91rem;
  color: var(--text-muted);
  background: var(--surface);
}

/* Privacy Policy */
.policy-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin: 28px 0 42px;
}

.policy-card h2 {
  margin: 24px 0 10px;
  font-size: 1.12rem;
  color: var(--navy-900);
}

.policy-card h2:first-of-type {
  margin-top: 8px;
}

.policy-card p,
.policy-card li {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 36px 0 24px;
  margin-top: auto;
  border-top: 3px solid var(--navy-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: #64748b;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(16px);
  background: var(--navy-900);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .shape-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .formula-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 2px solid var(--accent);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 14px;
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 10px 12px;
  }

  .tool-grid,
  .unit-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .calc-card,
  .info-card,
  .policy-card {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .feature-strip {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 36px 0 32px;
  }
}
