/* Resume Draft 2026 visual system — loaded after the original layout styles. */
:root {
  --bg: #f4f6f1;
  --surface: #ffffff;
  --surface-2: #e8f7ef;
  --surface-3: #eef1eb;
  --text: #152019;
  --muted: #5d6961;
  --accent: #138a58;
  --accent-2: #6d56d9;
  --warm: #ff8b5c;
  --border: #dce3dc;
  --shadow: 0 28px 70px rgba(20, 42, 29, 0.13);
  --shadow-soft: 0 12px 32px rgba(20, 42, 29, 0.08);
  --page-gutter: clamp(1rem, 4vw, 3rem);
  --site-max: 1220px;
  --app-max: 1380px;
}

::selection {
  background: #bff1d5;
  color: #0d2116;
}

html {
  background: var(--bg);
}

body {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 179, 115, 0.08), transparent 24rem),
    radial-gradient(circle at 88% 66%, rgba(109, 86, 217, 0.06), transparent 27rem),
    var(--bg);
  color: var(--text);
  letter-spacing: -0.008em;
}

a,
button,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.6rem, 5.7vw, 5.6rem);
  line-height: 0.99;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.06;
}

p {
  text-wrap: pretty;
}

.container {
  width: min(var(--site-max), calc(100% - (var(--page-gutter) * 2)));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  width: fit-content;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 13%, transparent);
}

.btn {
  min-height: 50px;
  gap: 0.5rem;
  padding: 0.86rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, #15985f, #0f774a);
  box-shadow: 0 13px 28px rgba(19, 138, 88, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #16a868, #118453);
  box-shadow: 0 18px 36px rgba(19, 138, 88, 0.3);
}

.btn-secondary {
  border-color: #d7e0d9;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(20, 42, 29, 0.06);
}

.btn-secondary:hover {
  border-color: #a8d4bb;
  background: #effaf4;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid rgba(24, 169, 105, 0.27);
  outline-offset: 3px;
}

/* Navigation */
.nav {
  min-height: 76px;
  padding: 0.65rem 0;
}

.brand {
  gap: 0.72rem;
  font-size: 1.06rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 46%),
    linear-gradient(135deg, #26ba76, #0d6f46);
  box-shadow: 0 12px 24px rgba(15, 119, 75, 0.28);
  font-size: 0.78rem;
}

.nav-links {
  gap: 0.08rem;
  padding: 0.38rem;
  border-color: rgba(220, 227, 220, 0.85);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(16, 34, 23, 0.08);
  backdrop-filter: blur(16px);
}

.nav-links a {
  padding: 0.62rem 0.76rem;
  border-radius: 11px;
  color: #425047;
  font-size: 0.82rem;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: #edf7f1;
  color: #0f7649;
}

.nav-links a.nav-cta {
  padding-inline: 0.95rem;
  background: #17241c;
  box-shadow: none;
}

.nav-links a.nav-cta:hover {
  background: #24382b;
}

.mobile-nav summary {
  min-width: 82px;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 34, 23, 0.12);
}

.mobile-nav-menu {
  padding: 0.65rem;
  border-radius: 18px;
  box-shadow: 0 26px 60px rgba(12, 26, 17, 0.22);
}

/* Home hero */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 2.2rem;
  border: 0;
  background:
    radial-gradient(circle at 77% 16%, rgba(55, 215, 139, 0.2), transparent 23rem),
    radial-gradient(circle at 10% 98%, rgba(109, 86, 217, 0.18), transparent 27rem),
    #111d16;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -130px;
  height: 220px;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.home-hero .brand,
.home-hero h1,
.home-hero .hero-bullets {
  color: #f7fff9;
}

.home-hero .nav-links {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.home-hero .nav-links a {
  color: rgba(244, 255, 248, 0.78);
}

.home-hero .nav-links a:hover,
.home-hero .nav-links a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.home-hero .nav-links a.nav-cta {
  background: #42d58c;
  color: #0d2115;
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.7fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 6vw, 5.7rem);
}

.home-hero .hero-copy {
  position: relative;
  z-index: 1;
}

.home-hero .eyebrow {
  color: #50db97;
}

.home-hero h1 {
  max-width: 820px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.1rem, 6.2vw, 6rem);
  line-height: 0.97;
}

.home-hero .hero-text {
  max-width: 670px;
  color: rgba(238, 250, 242, 0.7);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.home-hero .hero-trust {
  color: rgba(238, 250, 242, 0.68);
}

.home-hero .hero-actions {
  margin: 1.8rem 0 1rem;
}

.home-hero .btn-primary {
  background: #42d58c;
  color: #0d2115;
  box-shadow: 0 16px 34px rgba(49, 206, 129, 0.24);
}

.home-hero .btn-primary:hover {
  background: #5be09d;
}

.home-hero .btn-secondary {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fffa;
  box-shadow: none;
}

.home-hero .btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
}

.home-hero .hero-bullets {
  gap: 0.55rem;
  margin-top: 1.35rem;
}

.home-hero .hero-bullets li {
  min-height: 100%;
  padding: 0.85rem;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(244, 255, 248, 0.84);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.home-hero .hero-bullets li::before {
  background: #50db97;
  box-shadow: 0 0 0 4px rgba(80, 219, 151, 0.13);
}

.home-hero .hero-card {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 38px 90px rgba(4, 14, 8, 0.35);
  transform: rotate(1.1deg);
}

.home-hero .resume-visual {
  min-height: 270px;
  border-radius: 15px;
  box-shadow: 0 22px 48px rgba(18, 41, 26, 0.15);
}

.home-hero .mini-list div {
  border-radius: 12px;
  background: #f0f8f3;
}

.home-hero .stats-strip {
  position: relative;
  z-index: 1;
  gap: 0;
  margin-top: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.home-hero .stats-strip div {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero .stats-strip div:last-child {
  border-right: 0;
}

.home-hero .stats-strip strong {
  color: #f8fffa;
}

.home-hero .stats-strip span {
  color: rgba(238, 250, 242, 0.62);
}

/* Marketing sections */
.home-main {
  background: transparent;
}

.home-main .section {
  padding: clamp(4rem, 7vw, 7.2rem) 0;
}

.home-main .section-alt {
  border-color: rgba(205, 216, 207, 0.75);
  background: rgba(255, 255, 255, 0.72);
}

.home-main .section-heading {
  gap: 1.2rem 3rem;
  margin-bottom: 2.2rem;
}

.home-main .section-heading h2 {
  max-width: 800px;
  font-size: clamp(2rem, 4vw, 3.65rem);
}

.card,
.panel,
.pricing-card,
.template-card,
.workflow-card,
.home-builder-card {
  border-color: #dce3dc;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.home-main .card,
.home-main .panel,
.home-main .home-builder-card,
.home-main .pricing-card {
  border-color: #dce3dc;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.card {
  min-height: 210px;
  padding: 1.5rem;
}

.card::before {
  content: '';
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 2rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 60% 35%, #72e3aa 0 4px, transparent 5px),
    linear-gradient(135deg, #d9f6e6, #eff7f1);
  box-shadow: inset 0 0 0 1px #c5e9d5;
}

.card:nth-child(2)::before {
  background:
    radial-gradient(circle at 60% 35%, #927fea 0 4px, transparent 5px),
    linear-gradient(135deg, #e6e1fb, #f5f3fd);
  box-shadow: inset 0 0 0 1px #d9d0fa;
}

.card:nth-child(3)::before {
  background:
    radial-gradient(circle at 60% 35%, #ff9c73 0 4px, transparent 5px),
    linear-gradient(135deg, #ffeadf, #fff7f2);
  box-shadow: inset 0 0 0 1px #ffd7c5;
}

.template-showcase {
  gap: 1.35rem;
}

.template-card {
  gap: 1rem;
  padding: 1.15rem;
  overflow: visible;
}

.template-card::before {
  inset: -1px 20% auto;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: #d5ddd6;
}

.featured-template {
  border-color: #95d7b4;
  background: linear-gradient(180deg, #eaf9f0, #ffffff 64%);
  transform: translateY(-12px);
}

.template-mini {
  min-height: 390px;
  max-height: 390px;
  border-color: #d6ded8;
  border-radius: 14px;
  box-shadow: 0 22px 45px rgba(25, 48, 32, 0.11);
}

.workflow-card,
.home-builder-card,
.pricing-card,
.feedback-grid article,
.comparison-grid article {
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 22px;
}

/* Product page heroes */
.builder-hero,
.tools-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 2.7rem;
  border: 0;
  background:
    radial-gradient(circle at 88% 35%, rgba(61, 215, 140, 0.2), transparent 24rem),
    #15211a;
  color: #f7fff9;
}

.builder-hero .brand,
.tools-hero .brand,
.builder-hero h1,
.builder-hero h3,
.tools-hero h1,
.tools-hero h3 {
  color: #f7fff9;
}

.builder-hero .nav-links,
.tools-hero .nav-links {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.builder-hero .nav-links a,
.tools-hero .nav-links a {
  color: rgba(246, 255, 249, 0.76);
}

.builder-hero .nav-links a:hover,
.builder-hero .nav-links a[aria-current='page'],
.tools-hero .nav-links a:hover,
.tools-hero .nav-links a[aria-current='page'] {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.builder-hero .nav-links a.nav-cta,
.tools-hero .nav-links a.nav-cta {
  background: #45d790;
  color: #102218;
}

.builder-hero .page-hero-grid,
.tools-hero .page-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.58fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: 2.9rem;
}

.builder-hero .page-hero-copy,
.tools-hero .page-hero-copy {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: 'eyebrow' 'title' 'copy' 'actions';
  gap: 0.8rem;
  align-content: center;
}

.builder-hero .page-hero-copy h1,
.tools-hero .page-hero-copy h1 {
  max-width: 900px;
  font-size: clamp(2.3rem, 4.6vw, 4.8rem);
  line-height: 0.99;
}

.builder-hero .page-hero-copy > p:not(.eyebrow),
.tools-hero .page-hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  color: rgba(241, 251, 244, 0.65);
}

.builder-hero .hero-actions,
.tools-hero .hero-actions {
  margin-top: 0.65rem;
}

.builder-hero .page-hero-card,
.tools-hero .page-hero-card {
  padding: 1.5rem;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.builder-hero .page-hero-card p,
.tools-hero .page-hero-card p {
  color: rgba(241, 251, 244, 0.62);
}

.hero-step-list span {
  background: #45d790;
  color: #102218;
}

.builder-hero .hero-step-list strong,
.tools-hero .hero-step-list strong {
  color: #f7fff9;
}

/* Builder, AI builder, and tools workspaces */
.app-section.container,
.tools-app-shell .container {
  width: min(var(--app-max), calc(100% - (var(--page-gutter) * 2)));
}

.app-section {
  padding-top: clamp(2rem, 4vw, 4rem);
}

.app-section .section-heading {
  margin-bottom: 1.5rem;
}

.app-section .section-heading h2 {
  font-size: clamp(1.8rem, 2.7vw, 2.8rem);
}

.builder-progress {
  padding: 1rem 1.2rem;
  border-color: #d9e3dc;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.builder-progress-track {
  height: 11px;
  background: #e5ebe6;
}

.builder-progress-track > span {
  background: linear-gradient(90deg, #17a261, #55d997);
}

.builder-step-tabs {
  gap: 0.65rem;
  padding: 0.55rem;
  border: 1px solid #dce3dc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.builder-step-tabs button {
  min-height: 54px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #667269;
}

.builder-step-tabs button:hover {
  background: #f0f6f2;
}

.builder-step-tabs button.is-active {
  background: #17241c;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(18, 38, 25, 0.18);
}

.builder-step-tabs button.is-active span {
  background: #4bdb94;
  color: #102218;
}

.builder-section .builder-grid {
  grid-template-columns: minmax(620px, 760px) minmax(420px, 1fr);
  gap: 1.2rem;
}

.builder-step,
.builder-review-panel,
.ai-panel,
.ai-result,
.tools-sidebar,
.tool-runner {
  border-color: #dce3dc;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.builder-step,
.builder-review-panel,
.ai-panel,
.ai-result,
.tool-runner {
  padding: clamp(1rem, 2vw, 1.55rem);
}

.builder-review-panel {
  top: 1rem;
}

.builder-section-title,
.section-builder-head,
.tool-runner-heading,
.ai-panel > header {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e3e8e3;
}

.template-picker {
  gap: 0.8rem;
}

.template-option,
.mode-option {
  border-color: #dbe3dc;
  border-radius: 16px;
  background: #fbfcfa;
}

.template-option:has(input:checked),
.mode-option:has(input:checked) {
  border-color: #43bd7f;
  background: #edf9f2;
  box-shadow: 0 0 0 3px rgba(46, 185, 117, 0.1);
}

label {
  color: #354139;
  font-size: 0.84rem;
  font-weight: 750;
}

input,
textarea,
select {
  border-color: #d5ddd6;
  border-radius: 12px;
  background: #fbfcfa;
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(18, 35, 23, 0.025);
}

input:hover,
textarea:hover,
select:hover {
  border-color: #bfcac1;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #36ad71;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(54, 173, 113, 0.11);
}

input::placeholder,
textarea::placeholder {
  color: #98a29a;
}

.resume-entry-card,
.chip-entry,
.upload-panel,
.paste-import,
.details-helper,
.export-readiness {
  border-color: #dce4dd;
  border-radius: 16px;
  background: #f8faf7;
}

.details-helper,
.export-readiness.is-ready {
  border-color: #bae4cd;
  background: #edf9f2;
}

.entry-actions button,
.entry-remove-btn {
  border-radius: 10px;
}

.review-tabs {
  gap: 0.45rem;
  padding: 0.4rem;
  border-radius: 14px;
  background: #eef3ef;
}

.review-tabs button {
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.review-tabs button.is-active {
  background: #ffffff;
  color: #117448;
  box-shadow: 0 7px 18px rgba(20, 42, 29, 0.09);
}

.builder-section .result-panel,
.builder-section .ats-check-panel {
  border-radius: 16px;
  background: #edf1ed;
}

.builder-section .resume-preview {
  border-radius: 5px;
  box-shadow: 0 22px 48px rgba(19, 38, 25, 0.13);
}

.ats-check-header,
.match-score {
  border-radius: 16px;
  background: #17241c;
  color: #ffffff;
}

.ats-check-header h3,
.ats-check-header strong,
.match-score h3,
.match-score strong {
  color: #ffffff;
}

.ats-check-item,
.keyword-box {
  border-radius: 14px;
}

.ai-builder-grid {
  grid-template-columns: minmax(390px, 540px) minmax(0, 1fr);
  gap: 1.2rem;
}

.is-hidden {
  display: none !important;
}

/* Tools */
.tools-app-shell {
  padding: clamp(2rem, 4vw, 4rem) 0 5rem;
}

.tools-path {
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.tools-path a {
  min-height: 94px;
  padding: 1rem;
  border-color: #dce3dc;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.tools-path a:hover {
  border-color: #97d5b4;
  background: #effaf4;
  transform: translateY(-2px);
}

.tools-workspace {
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.2rem;
}

.tools-sidebar {
  top: 1rem;
  padding: 0.75rem;
}

.tool-search-wrap {
  padding: 0.55rem;
}

.tool-menu button {
  border-radius: 12px;
}

.tool-menu button:hover,
.tool-menu button.is-active {
  background: #eaf8f0;
  color: #0e7548;
}

.tool-output {
  border-radius: 18px;
  background: #f8faf7;
}

/* Account */
.account-page {
  padding: clamp(2.5rem, 6vw, 6rem) 0;
}

.auth-layout-polished {
  grid-template-columns: minmax(330px, 0.72fr) minmax(520px, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: stretch;
}

.auth-copy-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 15%, rgba(73, 218, 145, 0.23), transparent 19rem),
    linear-gradient(145deg, #142219, #1d3024);
  color: #f6fff8;
  box-shadow: var(--shadow);
}

.auth-copy-panel::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 48px solid rgba(72, 218, 145, 0.09);
  border-radius: 50%;
}

.auth-copy-panel h1 {
  max-width: 520px;
  color: #f6fff8;
  font-size: clamp(2.4rem, 4.3vw, 4.6rem);
}

.auth-copy-panel > p:not(.eyebrow) {
  color: rgba(240, 251, 243, 0.68);
}

.auth-points span {
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #eaffef;
}

.auth-security-card {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.auth-security-card span {
  color: rgba(240, 251, 243, 0.65);
}

.auth-card {
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border-color: #dce3dc;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.auth-card-head {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e1e7e2;
}

.auth-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.42rem;
  border-radius: 15px;
  background: #edf2ee;
}

.auth-switch button {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #6a756d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-switch button.is-active {
  background: #ffffff;
  color: #116f46;
  box-shadow: 0 8px 20px rgba(20, 42, 29, 0.09);
}

.auth-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.auth-login-panel,
.auth-register-panel {
  border: 0;
  background: transparent;
}

.auth-panel[hidden],
.auth-account[hidden] {
  display: none !important;
}

.auth-status {
  min-height: 48px;
  margin: 0;
  padding: 0.8rem 0.95rem;
  border: 1px solid #dce4dd;
  border-radius: 13px;
  background: #f7f9f7;
  color: #536057;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-status.is-error {
  border-color: #f2c2bb;
  background: #fff3f1;
  color: #a23a2c;
}

.auth-status.is-success {
  border-color: #b9e2ca;
  background: #effaf3;
  color: #0d7646;
}

.auth-account {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid #bae0ca;
  border-radius: 18px;
  background: #effaf3;
}

.auth-account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: #17241c;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
}

.auth-note code {
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: #edf2ee;
  color: #176a46;
  font: 700 0.86em ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Payment */
.payment-page {
  padding: clamp(2.5rem, 6vw, 6rem) 0;
}

.payment-layout {
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: start;
}

.payment-copy {
  position: sticky;
  top: 1.5rem;
}

.payment-copy h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.payment-highlights span {
  border-color: #cce3d5;
  border-radius: 999px;
  background: #edf8f1;
}

.checkout-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-color: #d9e2db;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.checkout-plan {
  padding: 1.35rem;
  border-radius: 19px;
  background: #17241c;
  color: #ffffff;
}

.checkout-plan h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.checkout-plan p:not(.eyebrow) {
  color: rgba(240, 251, 243, 0.65);
}

.checkout-plan-option {
  border-color: #dce3dc;
  border-radius: 15px;
  background: #fbfcfa;
}

.checkout-plan-option:has(input:checked) {
  border-color: #43bd7f;
  background: #edf9f2;
  box-shadow: 0 0 0 3px rgba(46, 185, 117, 0.1);
}

.checkout-summary,
.gateway-flow {
  border-color: #cfe3d6;
  border-radius: 16px;
  background: #f1f9f4;
}

.payment-status {
  border-radius: 12px;
}

/* Footer */
.footer {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 0;
  background:
    radial-gradient(circle at 86% 15%, rgba(62, 210, 137, 0.12), transparent 22rem),
    #101a14;
  color: #f1faf4;
}

.footer .brand,
.footer h3 {
  color: #f1faf4;
}

.footer p,
.footer span,
.footer a {
  color: rgba(234, 247, 238, 0.62);
}

.footer a:hover {
  color: #62dda0;
}

.footer-bottom {
  border-color: rgba(255, 255, 255, 0.09);
}

@media (max-width: 1120px) {
  .nav-links a {
    padding-inline: 0.58rem;
  }

  .builder-section .builder-grid {
    grid-template-columns: minmax(540px, 1fr) minmax(380px, 0.82fr);
  }
}

@media (max-width: 980px) {
  .home-hero .hero-grid,
  .builder-hero .page-hero-grid,
  .tools-hero .page-hero-grid,
  .builder-section .builder-grid,
  .ai-builder-grid,
  .auth-layout-polished {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-card {
    max-width: 680px;
    transform: none;
  }

  .featured-template {
    transform: none;
  }

  .builder-review-panel,
  .payment-copy {
    position: static;
  }

  .auth-copy-panel {
    min-height: 440px;
  }
}

@media (max-width: 800px) {
  .nav {
    min-height: 68px;
  }

  .builder-hero .page-hero-grid,
  .tools-hero .page-hero-grid {
    padding-top: 2rem;
  }

  .home-hero .hero-grid {
    padding-top: 2.5rem;
  }

  .home-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.5rem);
  }

  .home-hero .stats-strip {
    gap: 0;
  }

  .home-hero .stats-strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-hero .stats-strip div:last-child {
    border-bottom: 0;
  }

  .app-section .section-heading,
  .home-main .section-heading {
    display: block;
  }

  .tools-workspace {
    grid-template-columns: 1fr;
  }

  .tools-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 0.8rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
  }

  .home-hero,
  .builder-hero,
  .tools-hero {
    padding-bottom: 1.8rem;
  }

  .home-hero .hero-card,
  .auth-copy-panel,
  .auth-card,
  .checkout-card,
  .builder-step,
  .builder-review-panel,
  .ai-panel,
  .ai-result,
  .tool-runner,
  .tools-sidebar {
    border-radius: 18px;
  }

  .home-main .section {
    padding: 3.4rem 0;
  }

  .home-main .card-grid,
  .template-showcase,
  .workflow-cards,
  .home-builder-grid,
  .comparison-grid,
  .feedback-grid,
  .tools-path {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

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

  .builder-grid,
  .ai-builder-grid,
  .tools-workspace {
    padding: 0;
  }

  .auth-copy-panel {
    min-height: 390px;
  }

  .auth-register-grid {
    grid-template-columns: 1fr;
  }

  .auth-row,
  .auth-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-copy h1,
  .auth-copy-panel h1 {
    font-size: 2.55rem;
  }
}
