/* TermAlert — Main Stylesheet */

/* -------- VARIABLES & RESET -------- */
:root {
  --c-bg: #ffffff;
  --c-text: #1a1a1a;
  --c-muted: #6b7280;
  --c-border: #e5e7eb;
  --c-surface: #f9fafb;
  --c-amber: #ECC94B;
  --c-amber-dark: #A58A1E;
  --c-amber-bg: #fefce8;
  --max: 1100px;
  --r: 10px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* -------- UTILITY -------- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-amber-dark);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--c-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
}

.btn-amber {
  background: var(--c-amber);
  color: #1a1a1a;
}

.btn-amber:hover { background: #d4b53e; }

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1.5px solid var(--c-border);
}

.btn-outline:hover {
  border-color: #9ca3af;
  background: var(--c-surface);
}

.btn-dark {
  background: #1a1a1a;
  color: white;
}

.btn-dark:hover { background: #2d2d2d; }

/* -------- NAV -------- */
#nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--c-text);
}

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

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

.nav-links a {
  font-size: 14px;
  color: var(--c-muted);
  transition: color 0.15s;
}

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

.nav-links .btn-amber {
  color: #1a1a1a;
}

/* -------- HERO -------- */
.hero {
  padding: 96px 0 80px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-amber-bg);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-note {
  font-size: 12px;
  color: #9ca3af;
}

.hero-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic svg {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.14));
}

/* -------- HOW IT WORKS -------- */
.how {
  padding: 96px 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

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

.steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(16.66% + 22px);
  right: calc(16.66% + 22px);
  height: 1.5px;
  background: linear-gradient(to right, var(--c-amber), var(--c-amber));
  z-index: 0;
}

.step {
  text-align: center;
  padding: 36px 28px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-amber);
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid white;
  box-shadow: 0 0 0 1.5px var(--c-amber-dark);
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
}

/* -------- FEATURES -------- */
.features {
  padding: 96px 0;
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.feature-card:hover {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px var(--c-amber-bg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--c-amber-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--c-amber-dark);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
}

/* -------- FAQ -------- */
.faq {
  padding: 96px 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

details {
  border-bottom: 1px solid var(--c-border);
}

details:first-child {
  border-top: 1px solid var(--c-border);
}

summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--c-muted);
  flex-shrink: 0;
  line-height: 1;
}

details[open] summary::after { content: '−'; }

details div {
  font-size: 14px;
  color: var(--c-muted);
  padding-bottom: 20px;
  line-height: 1.75;
}

details div a {
  color: var(--c-amber-dark);
  text-decoration: underline;
}

/* -------- ABOUT -------- */
.about {
  padding: 96px 0;
  text-align: center;
}

.about-inner {
  max-width: 640px;
  margin: 0 auto;
}

.about h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.about p:not(.section-label) {
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about p:last-child { margin-bottom: 0; }

/* -------- FOOTER -------- */
footer {
  border-top: 1px solid var(--c-border);
  padding: 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.footer-logo img { width: 22px; height: 22px; }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--c-muted);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--c-text); }

.footer-copy {
  font-size: 12px;
  color: #9ca3af;
  width: 100%;
}

/* -------- BLOG PAGE -------- */
.page-hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--c-border);
}

.page-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 17px;
  color: var(--c-muted);
}

.blog-empty {
  padding: 96px 0;
  text-align: center;
}

.blog-empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.blog-empty h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-empty p {
  font-size: 15px;
  color: var(--c-muted);
  max-width: 400px;
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 60px 0;
}

.blog-card {
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-card:hover {
  border-color: var(--c-amber);
  box-shadow: 0 0 0 3px var(--c-amber-bg);
}

.blog-card-date {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 10px;
}

.blog-card h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.65;
}

/* -------- PRIVACY PAGE -------- */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 96px;
}

.privacy-content h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.privacy-meta {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}

.privacy-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 14px;
}

.privacy-content p {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 14px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.privacy-content li {
  font-size: 15px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 6px;
}

.privacy-content a {
  color: var(--c-amber-dark);
  text-decoration: underline;
}

.privacy-content strong {
  color: var(--c-text);
  font-weight: 600;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 900px) {
  .hero h1 { font-size: 46px; }
  .hero-inner { gap: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 66px 0 74px; }

  /* Hero reorder: h1+p → graphic → ctas+note */
  .hero-inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  /* Flatten .hero-text children into the flex container */
  .hero-text { display: contents; }
  .hero-badge  { display: none; }
  .hero h1     { order: 2; margin-bottom: 38px; }
  .hero-sub    { order: 3; margin-bottom: 0; }
  .hero-graphic { order: 4; margin: 44px 0 44px; }
  .hero-ctas   { order: 5; margin-bottom: 0; }
  .hero-note   { display: none; }

  /* Hide Privacy Policy link in nav on mobile */
  .nav-links a[href*="privacy"] { display: none; }

  .hero h1 { font-size: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .section-title { font-size: 28px; }
  .nav-links .hide-mobile { display: none; }

  .feature-card {
    border-color: var(--c-amber);
    box-shadow: 0 0 0 3px var(--c-amber-bg);
  }
}

@media (max-width: 540px) {
  .hero h1 { font-size: 34px; }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .container, .hero-inner, .nav-inner { padding-left: 20px; padding-right: 20px; }
  footer { padding: 24px 20px; }
  .privacy-content { padding-left: 20px; padding-right: 20px; }
}
