/* ===== Learnyst brand tokens ===== */
:root {
  --teal-900: #041b25;   /* footer / deepest */
  --teal: #093344;       /* dark bands: trust bar + CTA top */
  --teal-800: #0a0a0a;   /* headings / ink text */
  --teal-700: #0a0a0a;
  --green: #4fba58;       /* brand accent */
  --green-600: #46ab50;
  --green-700: #3c9646;
  --blue: #3086ff;
  --yellow: #ffce0a;
  --ink: #0a0a0a;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(9, 51, 68, .06), 0 2px 8px rgba(9, 51, 68, .06);
  --shadow-md: 0 10px 30px rgba(9, 51, 68, .12);
  --shadow-lg: 0 24px 60px rgba(9, 51, 68, .18);
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: .72rem 1.3rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #042a17; box-shadow: 0 6px 16px rgba(79, 186, 88, .32); }
.btn-primary:hover { background: var(--green-600); box-shadow: 0 8px 22px rgba(79, 186, 88, .4); }
.btn-ghost { background: transparent; color: var(--teal-800); border-color: var(--gray-200); }
.btn-ghost:hover { background: var(--gray-50); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.02rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 800; }
.brand-name { font-size: 1.2rem; color: #4fba58; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.brand-name.light { color: var(--white); }
.brand-logo { height: 30px; width: auto; display: block; }
.site-footer .brand-logo { height: 26px; }
.main-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.main-nav a { font-weight: 600; font-size: .95rem; color: var(--gray-700); }
.main-nav a:hover { color: var(--teal-800); }
.header-cta { margin-left: .25rem; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(79,186,88,.10), transparent 60%),
    linear-gradient(180deg, #f1feee, var(--white));
  padding: 64px 0 40px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-block; background: rgba(79,186,88,.12); color: var(--green-700);
  font-weight: 700; font-size: .82rem; padding: .42rem .85rem; border-radius: 999px;
  font-family: var(--font-head); margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: var(--teal-800); max-width: 14ch; }
.hero-sub { max-width: 60ch; color: var(--gray-700); font-size: 1.12rem; margin-top: 1.1rem; }

/* ===== Generator ===== */
.generator {
  width: 100%; max-width: 760px; margin: 2rem auto 0;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px;
}
.gen-row { display: flex; gap: 10px; }
.gen-row input[type="text"] {
  flex: 1 1 auto; min-width: 0; font-family: var(--font-body); font-size: 1rem;
  padding: .9rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--gray-50); transition: border .12s ease, background .12s ease;
}
.gen-row input[type="text"]:focus {
  outline: none; border-color: var(--green); background: var(--white);
  box-shadow: 0 0 0 4px rgba(79,186,88,.14);
}
.gen-row select {
  font-family: var(--font-body); font-size: .95rem; padding: .9rem .8rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--gray-700); cursor: pointer;
}
.gen-row .btn { flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 6px 4px; }
.chips-label { font-size: .85rem; color: var(--gray-500); font-weight: 600; }
.chip {
  font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--teal-700);
  background: var(--gray-100); border: 1px solid transparent; border-radius: 999px;
  padding: .35rem .8rem; cursor: pointer; transition: all .12s ease;
}
.chip:hover { background: rgba(79,186,88,.14); color: var(--green-700); }

/* ===== Results ===== */
.results { width: 100%; max-width: 880px; margin: 2.2rem auto 0; text-align: left; }
.results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 1rem; }
.results-head h2 { font-size: 1.3rem; color: var(--teal-800); }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.name-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 14px 16px; box-shadow: var(--shadow-sm); transition: border .12s ease, transform .12s ease;
  animation: rise .35s ease both;
}
.name-card:hover { border-color: var(--green); transform: translateY(-2px); }
.name-card .nc-text { min-width: 0; }
.name-card .nc-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.name-card .nc-reason { font-size: .82rem; color: var(--gray-500); margin-top: 2px; }
.copy-btn {
  flex: 0 0 auto; font-size: .8rem; font-weight: 700; font-family: var(--font-head);
  color: var(--teal-700); background: var(--gray-100); border: none; border-radius: 8px;
  padding: .45rem .7rem; cursor: pointer; transition: all .12s ease;
}
.copy-btn:hover { background: rgba(79,186,88,.16); color: var(--green-700); }
.copy-btn.copied { background: var(--green); color: #042a17; }

/* loading skeleton */
.skeleton { height: 64px; border-radius: var(--radius-sm); background:
  linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 37%, var(--gray-100) 63%);
  background-size: 400% 100%; animation: shimmer 1.2s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.error-msg { background: #fff1f0; border: 1px solid #ffd2cf; color: #b42318; padding: .9rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.micro-note { margin-top: 1.5rem; font-size: .85rem; color: var(--gray-400); }

/* ===== Trust bar ===== */
.trust { background: var(--teal); color: #cfe9dd; text-align: center; padding: 16px 0; }
.trust p { margin: 0; font-size: .98rem; }
.trust strong { color: var(--white); }

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--gray-50); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--teal-800); }
.section-title.center { text-align: center; }
.section-lead { color: var(--gray-700); font-size: 1.08rem; margin: .8rem 0 2.4rem; max-width: 60ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 12px; background: rgba(79,186,88,.14); color: var(--green-700);
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.18rem; color: var(--teal-800); margin-bottom: .5rem; }
.step p { color: var(--gray-700); margin: 0; }

.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.two-col p { color: var(--gray-700); }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tips li { position: relative; padding-left: 30px; font-weight: 600; color: var(--teal-800); }
.tips li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
  background: var(--green); color: #042a17; border-radius: 6px; display: inline-flex;
  align-items: center; justify-content: center; font-size: .75rem; font-weight: 800; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(135deg, var(--teal), var(--teal-900)); color: var(--white); padding: 72px 0; text-align: center; }
.cta-inner { max-width: 760px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.cta-band p { color: #b9d6cb; font-size: 1.1rem; margin: 1rem 0 2rem; }
.cta-band strong { color: var(--white); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FAQ ===== */
.narrow { max-width: 760px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 4px 18px; margin-bottom: 12px; background: var(--white); }
.faq-item summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--teal-800); padding: 14px 0; list-style: none; font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--green-700); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--gray-700); margin: 0 0 14px; }

/* ===== Footer ===== */
.site-footer { background: var(--teal-900); color: #9fc3b6; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-tag { margin: 1rem 0; max-width: 36ch; color: #86b0a3; }
.socials { display: flex; gap: 16px; }
.socials a { font-weight: 700; color: #cfe9dd; font-size: .9rem; }
.socials a:hover { color: var(--green); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.footer-cols a { display: block; color: #9fc3b6; font-size: .92rem; padding: 5px 0; }
.footer-cols a:hover { color: var(--green); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: #7ba596; }
.footer-bottom a:hover { color: var(--green); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .main-nav { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .gen-row { flex-wrap: wrap; }
  .gen-row input[type="text"] { flex: 1 1 100%; }
  .gen-row select { flex: 1 1 auto; }
  .gen-row .btn { flex: 1 1 auto; }
  .hero { padding: 44px 0 28px; }
  .section { padding: 52px 0; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
