/* ============================================================
   TipCalculator.website — Main Stylesheet
   Theme: Warm Amber / Deep Navy — Premium Restaurant Feel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --accent:       #f5a623;
  --accent2:      #e8891a;
  --accent-glow:  rgba(245,166,35,0.25);
  --bg:           #0d1117;
  --bg2:          #141b24;
  --surface:      #1c2632;
  --surface2:     #243040;
  --border:       rgba(245,166,35,0.15);
  --border2:      rgba(255,255,255,0.07);
  --text:         #f0ece4;
  --text2:        #9ca8b8;
  --muted:        #6b7a8d;
  --success:      #34d399;
  --danger:       #f87171;
  --font-head:    'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:       14px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.5);
  --transition:   0.25s cubic-bezier(.4,0,.2,1);
}

[data-theme="light"] {
  --bg:           #faf8f4;
  --bg2:          #f2ede4;
  --surface:      #ffffff;
  --surface2:     #f5f0e8;
  --border:       rgba(245,166,35,0.25);
  --border2:      rgba(0,0,0,0.07);
  --text:         #1a1a2e;
  --text2:        #4a4a6a;
  --muted:        #8a8aaa;
  --shadow:       0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.15);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="light"] .site-header { background: rgba(250,248,244,0.92); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(16px,4vw,48px);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900; color: #0d1117;
  font-family: var(--font-head);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.brand-name {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.1rem; color: var(--text); line-height: 1.1;
}
.brand-name span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: var(--accent-glow);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Theme Toggle */
.theme-toggle { position: relative; width: 56px; height: 28px; cursor: pointer; flex-shrink: 0; }
.theme-toggle input { display: none; }
.toggle-track {
  width: 100%; height: 100%;
  background: var(--surface2); border-radius: 99px;
  display: flex; align-items: center; padding: 3px;
  transition: background 0.3s;
  border: 1px solid rgba(245,166,35,0.25);
}
.toggle-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 8px var(--accent-glow);
}
[data-theme="light"] .toggle-thumb { transform: translateX(28px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text2); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column;
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 12px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text2); text-decoration: none;
  padding: 10px 12px; border-radius: 8px; font-size: 0.95rem;
  transition: all var(--transition);
}
.mobile-nav a:hover { color: var(--accent); background: var(--accent-glow); }

/* ── Hero Section ── */
.hero {
  text-align: center;
  padding: clamp(40px, 8vw, 80px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 40px);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -60%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: 5px 14px;
  font-size: 0.78rem; font-weight: 600; color: var(--accent);
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.15;
  color: var(--text); margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text2); max-width: 600px; margin: 0 auto 8px;
}

/* ── Tool Section ── */
.tool-section {
  padding: 0 clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
}
.tool-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition);
}
.card:hover { border-color: var(--border); }
.card-title {
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; color: var(--text);
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; gap: 8px;
}
.card-title .icon { font-size: 1.1rem; }

/* Form Elements */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.82rem;
  font-weight: 600; color: var(--text2);
  margin-bottom: 7px; letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-input {
  width: 100%; padding: 12px 14px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--muted); }

/* Input with prefix */
.input-wrap { position: relative; }
.input-prefix {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent); font-weight: 700; font-size: 1rem;
  pointer-events: none;
}
.input-wrap .form-input { padding-left: 28px; }

/* Service Quality Presets */
.service-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.preset-btn {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 8px;
  background: var(--surface2); border: 2px solid var(--border2);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); font-family: var(--font-body);
  color: var(--text2);
}
.preset-btn .emoji { font-size: 1.4rem; }
.preset-btn .label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.preset-btn .pct { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.preset-btn:hover, .preset-btn.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Custom Tip Slider */
.tip-slider-wrap { margin-bottom: 18px; }
.tip-display {
  text-align: center;
  font-family: var(--font-head); font-size: 2rem;
  font-weight: 800; color: var(--accent);
  margin-bottom: 8px;
}
input[type="range"] {
  width: 100%; -webkit-appearance: none; height: 6px;
  background: var(--surface2); border-radius: 99px;
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 2px 8px var(--accent-glow);
  cursor: pointer; transition: transform 0.2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* Toggle Switch */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface2); border-radius: var(--radius-sm);
  margin-bottom: 12px;
}
.toggle-label { font-size: 0.88rem; color: var(--text2); font-weight: 500; }
.switch { position: relative; width: 44px; height: 24px; cursor: pointer; }
.switch input { display: none; }
.switch-track {
  position: absolute; inset: 0; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border2);
  transition: all 0.3s;
}
.switch input:checked + .switch-track { background: var(--accent); border-color: var(--accent); }
.switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.switch input:checked ~ .switch-thumb { transform: translateX(20px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #0d1117;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-secondary {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }
.btn-full { width: 100%; }
.btn-danger { background: rgba(248,113,113,0.15); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }
.btn-danger:hover { background: rgba(248,113,113,0.25); }

/* ── Results Panel ── */
.results-panel {
  position: sticky; top: 80px;
}
.result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border2);
  font-size: 0.92rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--text2); }
.result-row .value { font-weight: 700; color: var(--text); }
.result-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-glow), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin: 16px 0;
}
.result-total .label { font-weight: 700; color: var(--text); font-size: 1rem; }
.result-total .value {
  font-family: var(--font-head); font-size: 1.6rem;
  font-weight: 800; color: var(--accent);
}

/* ── Split Bill / Person Cards ── */
.person-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.person-card {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 8px; align-items: center;
  padding: 10px 12px;
  background: var(--surface2); border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.person-card input {
  padding: 8px 10px; background: var(--surface);
  border: 1px solid var(--border2); border-radius: 6px;
  color: var(--text); font-family: var(--font-body); font-size: 0.88rem;
  outline: none; width: 100%;
  transition: border-color var(--transition);
}
.person-card input:focus { border-color: var(--accent); }

/* ── Per Person Results ── */
.per-person-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.per-person-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: var(--surface2); border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 0.88rem;
  animation: slideIn 0.2s ease;
}
.per-person-row .name { color: var(--text2); font-weight: 500; }
.per-person-row .amount { color: var(--accent); font-weight: 700; }

/* ── Share / Download Actions ── */
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--transition);
  font-family: var(--font-body);
}
.share-btn.whatsapp { background: rgba(37,211,102,0.12); color: #25d366; border: 1px solid rgba(37,211,102,0.25); }
.share-btn.telegram { background: rgba(34,158,217,0.12); color: #229ed9; border: 1px solid rgba(34,158,217,0.25); }
.share-btn.pdf     { background: rgba(245,166,35,0.12); color: var(--accent); border: 1px solid var(--border); }
.share-btn.copy    { background: var(--surface2); color: var(--text2); border: 1px solid var(--border2); }
.share-btn:hover   { transform: translateY(-2px); filter: brightness(1.1); }

/* ── Tipping Guide Box ── */
.tipping-guide {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 16px;
}
.tipping-guide h4 {
  font-size: 0.75rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.guide-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0; font-size: 0.82rem;
  border-bottom: 1px solid var(--border2);
}
.guide-row:last-child { border-bottom: none; }
.guide-row .state { color: var(--text2); }
.guide-row .range { color: var(--accent); font-weight: 600; }

/* ── Tool Description Section ── */
.tool-description {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(16px,4vw,48px) 60px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin: 40px 0;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 22px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature-card h3 {
  font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; margin-bottom: 8px; color: var(--text);
}
.feature-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }

/* ── Article / Content ── */
.content-area {
  max-width: 860px; margin: 0 auto;
  padding: 0 clamp(16px,4vw,48px) 60px;
}
.content-area h2 {
  font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; color: var(--text); margin: 40px 0 16px;
}
.content-area h3 {
  font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700; color: var(--text); margin: 32px 0 12px;
}
.content-area p { color: var(--text2); margin-bottom: 14px; font-size: 0.95rem; }
.content-area ul, .content-area ol {
  color: var(--text2); padding-left: 20px;
  margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8;
}
.content-area strong { color: var(--text); }
.content-area blockquote {
  background: var(--surface2); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px; margin: 20px 0;
  font-style: italic; color: var(--text2);
}

/* Reference Table */
.ref-table-wrap { overflow-x: auto; margin: 20px 0; }
.ref-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}
.ref-table thead tr { background: var(--surface2); }
.ref-table th {
  padding: 12px 16px; text-align: center;
  color: var(--accent); font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 2px solid var(--border);
}
.ref-table td {
  padding: 10px 16px; text-align: center;
  color: var(--text2); border-bottom: 1px solid var(--border2);
}
.ref-table td:first-child { color: var(--text); font-weight: 700; }
.ref-table tbody tr:hover { background: var(--surface2); }

/* ── FAQ Section ── */
.faq-section { max-width: 860px; margin: 0 auto; padding: 0 clamp(16px,4vw,48px) 60px; }
.faq-section h2 {
  font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; color: var(--text); margin-bottom: 24px;
}
.faq-item { border-bottom: 1px solid var(--border2); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--text); text-align: left; gap: 12px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-chevron {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-chevron { background: var(--accent); color: #0d1117; transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1), padding 0.3s;
}
.faq-answer-inner { padding: 0 0 16px; color: var(--text2); font-size: 0.9rem; line-height: 1.7; }

/* ── AdSense Placeholder ── */
.adsense-slot {
  max-width: 1100px; margin: 24px auto;
  padding: 0 clamp(16px,4vw,48px);
}

/* ── Section Divider ── */
.section-divider {
  max-width: 1100px; margin: 0 auto;
  padding: 0 clamp(16px,4vw,48px) 0;
  border-top: 1px solid var(--border2);
  margin-bottom: 48px;
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 20px; color: var(--text);
  font-size: 0.88rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s cubic-bezier(.34,1.56,.64,1);
  z-index: 999;
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── Calculation animation ── */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }
.calculating { animation: pulse 0.8s ease infinite; }

/* ── Footer ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 60px clamp(16px,4vw,48px) 0;
  margin-top: 80px;
  font-family: var(--font-body);
}
.footer-top {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
}
.footer-brand .brand-logo { text-decoration: none; margin-bottom: 16px; }
.footer-brand p { color: var(--text2); font-size: 0.88rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.social-btn {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; text-decoration: none;
  transition: all 0.25s; cursor: pointer;
}
.social-btn:hover {
  background: var(--accent-glow); border-color: var(--border);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text2); text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom-bar {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--border2); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom-bar p { color: var(--muted); font-size: 0.82rem; }
.footer-bottom-bar a { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--accent); }
.footer-privacy-note { max-width: 1200px; margin: 0 auto; padding: 16px 0 24px; border-top: 1px solid var(--border2); }
.footer-privacy-note p { color: var(--muted); font-size: 0.78rem; line-height: 1.65; text-align: center; }
.footer-privacy-note strong { color: var(--text2); }

/* ── Utility ── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.section-title {
  font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800; color: var(--text); margin-bottom: 8px;
}
.section-subtitle { color: var(--text2); font-size: 0.95rem; margin-bottom: 32px; }

/* ── Page: Inner pages (About, Privacy, etc.) ── */
.inner-hero {
  text-align: center;
  padding: clamp(40px,6vw,70px) clamp(16px,4vw,48px) clamp(24px,4vw,40px);
}
.inner-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; color: var(--text); margin-bottom: 12px; }
.inner-hero p { color: var(--text2); font-size: 0.95rem; max-width: 540px; margin: 0 auto; }
.inner-content {
  max-width: 780px; margin: 0 auto;
  padding: 0 clamp(16px,4vw,48px) 80px;
  color: var(--text2); font-size: 0.95rem; line-height: 1.8;
}
.inner-content h2 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.inner-content p { margin-bottom: 14px; }
.inner-content a { color: var(--accent); }
.inner-content ul { padding-left: 20px; margin-bottom: 14px; }

/* Contact form */
.contact-form { max-width: 560px; margin: 0 auto; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form textarea {
  width: 100%; padding: 12px 14px; min-height: 140px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; resize: vertical;
  outline: none; transition: border-color var(--transition);
}
.contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .tool-grid { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-bar { flex-direction: column; text-align: center; }
  .action-grid { grid-template-columns: 1fr 1fr; }
  .service-presets { gap: 6px; }
  .preset-btn { padding: 8px 4px; }
}
@media (max-width: 380px) {
  .action-grid { grid-template-columns: 1fr; }
}