/* ============================================
   ROGELLO.COM — Shared Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

:root {
  --bg:           #fefcf7;
  --bg-card:      #ffffff;
  --text:         #1a1714;
  --text-muted:   #7a736c;
  --accent:       #e63946;
  --accent-dark:  #c1121f;
  --accent-light: #fff1f1;
  --border:       #e8e3dc;
  --radius:       14px;
  --radius-sm:    9px;
  --max-w:        1080px;
  --shadow:       0 2px 12px rgba(26,23,20,0.08);
  --shadow-lg:    0 8px 32px rgba(26,23,20,0.12);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 7px;
  transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--bg);
}

/* ── MAIN ── */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 40px 24px 60px;
}

/* ── AD SLOTS ── */
.ad-slot {
  background: #f5f4f0;
  border: 2px dashed #d9d4cc;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0a89e;
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ad-slot-banner { width:100%; height:90px; margin:28px 0; }
.ad-slot-square { width:300px; height:250px; }
.ad-slot-banner-bottom { width:100%; height:90px; margin-top:40px; }

/* ── HERO (home page) ── */
.hero {
  text-align: center;
  padding: 64px 0 52px;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 44px;
}
.tool-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.tool-icon { font-size: 2.1rem; line-height: 1; }
.tool-card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.tool-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; }

/* ── TOOL PAGE HEADER ── */
.tool-header { margin-bottom: 30px; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.tool-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.tool-header p { color: var(--text-muted); font-size: 1rem; }

/* ── TOOL LAYOUT ── */
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}

/* ── TOOL BOX ── */
.tool-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .18s, background .18s;
  outline: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
textarea { resize: vertical; min-height: 180px; }

.radio-group { display: flex; gap: 10px; }
.radio-option {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .18s;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--bg);
}
.radio-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}
.radio-option input { width:18px; height:18px; accent-color: var(--accent); cursor:pointer; }

/* ── BUTTON ── */
.btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(230,57,70,.3); }
.btn:active { transform: translateY(0); }

/* ── RESULT BOX ── */
.result {
  margin-top: 24px;
  padding: 24px;
  background: var(--accent-light);
  border: 1.5px solid #f5c5c8;
  border-radius: var(--radius-sm);
  display: none;
  animation: fadeUp .3s ease;
}
.result.show { display: block; }

.result-value {
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 3px;
}
.result-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.result-detail {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0bfc2;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}
.result-detail strong { color: var(--text); }

/* ── RELATED TOOLS ── */
.related-tools { margin-top: 48px; }
.related-tools h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

/* ── PASSWORD TOOL ── */
.password-display {
  background: #1a1714;
  color: #f0ebe3;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  word-break: break-all;
  margin: 20px 0 10px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.copy-btn {
  background: transparent;
  border: 1px solid rgba(240,235,227,.25);
  color: #f0ebe3;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  transition: all .18s;
}
.copy-btn:hover { background: rgba(255,255,255,.08); }

.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  transition: all .18s;
}
.checkbox-item:hover { border-color: var(--accent); }
.checkbox-item input { width:17px; height:17px; accent-color: var(--accent); cursor:pointer; }

.strength-wrap { margin-bottom: 20px; }
.strength-bar { height:6px; border-radius:3px; background:#e8e3dc; overflow:hidden; margin: 8px 0 4px; }
.strength-fill { height:100%; border-radius:3px; transition: width .4s, background .4s; width:0%; }
.strength-label { font-size:0.8rem; color: var(--text-muted); }

/* ── WORD COUNTER ── */
.stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:20px; }
.stat-box {
  background: var(--accent-light);
  border: 1px solid #f5c5c8;
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.stat-box .num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-box .lbl { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.05em; }

/* ── PERCENTAGE TABS ── */
.calc-tabs { display:flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow:hidden; margin-bottom:24px; }
.calc-tab {
  flex:1;
  padding: 10px 8px;
  background: var(--bg);
  border: none;
  border-right: 1px solid var(--border);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all .18s;
  line-height: 1.3;
}
.calc-tab:last-child { border-right:none; }
.calc-tab.active { background: var(--accent); color: white; font-weight: 600; }
.tab-content { display:none; }
.tab-content.active { display:block; }

/* ── BMI METER ── */
.bmi-meter {
  margin-top: 20px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #74b9ff 0%, #55efc4 20%, #00b894 35%, #fdcb6e 55%, #e17055 75%, #d63031 100%);
  position: relative;
}
.bmi-pointer {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 22px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left .5s ease;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── SITE FOOTER (expanded) ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.site-footer .footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.site-footer .footer-brand .logo {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: inline-block;
  margin-bottom: 8px;
}
.site-footer .footer-brand .logo span { color: var(--accent); }
.site-footer .footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}
.site-footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.site-footer .footer-nav-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-footer .footer-nav-group a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all .18s;
  white-space: nowrap;
}
.site-footer .footer-nav-group a:hover {
  color: var(--text);
  background: var(--bg);
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}
.site-footer .footer-bottom p {
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.site-footer .footer-bottom a { color: var(--accent); text-decoration: none; }
.site-footer .footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px 24px;
  }
  .site-footer .footer-nav { align-items: flex-start; }
  .site-footer .footer-nav-group { justify-content: flex-start; }
}

/* ── POLICY PAGES ── */
.policy-hero {
  padding: 52px 0 36px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 48px;
}
.policy-hero .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.policy-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.policy-hero .last-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.policy-body {
  max-width: 720px;
}
.policy-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  color: var(--text);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.82;
  margin-bottom: 16px;
}
.policy-body p strong { color: var(--text); font-weight: 600; }
.policy-body ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.policy-body ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 6px;
}
.policy-body a { color: var(--accent); text-decoration: none; }
.policy-body a:hover { text-decoration: underline; }
.policy-callout {
  background: var(--accent-light);
  border: 1.5px solid rgba(230,57,70,0.18);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.policy-callout strong { color: var(--accent); }
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding-top: 32px;
  border-top: 1.5px solid var(--border);
}
.policy-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  transition: all .18s;
}
.policy-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ── DISCLAIMER NOTICE ── */
.disclaimer-notice {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--warning-bg, #fffbec);
  border: 1px solid var(--warning-border, #f0d060);
  border-radius: var(--radius-sm);
  font-size: var(--fs-hint);
  color: var(--warning-text, #7a6000);
  line-height: 1.65;
}
.disclaimer-notice strong { color: var(--warning-text, #7a6000); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 740px) {
  .tool-layout { grid-template-columns: 1fr; }
  .ad-slot-square { display:none; }
  .tool-box { padding: 22px 18px; }
  .nav-links { display:none; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .tools-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
}
