:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-2: #e7f6ef;
  --surface-3: #edf3f8;
  --text: #0f1f33;
  --muted: #526274;
  --accent: #08745e;
  --accent-2: #0a6f93;
  --warm: #d9891b;
  --border: #ccd8e5;
  --shadow: 0 22px 48px rgba(15, 31, 51, 0.12);
  --shadow-soft: 0 10px 24px rgba(15, 31, 51, 0.08);
  --page-gutter: clamp(2rem, 5vw, 4.5rem);
  --site-max: 1180px;
  --app-max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    linear-gradient(180deg, #ffffff 0, #f4f8fb 430px, #ffffff 980px),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

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

.hero,
.builder-hero,
.tools-hero {
  min-height: auto;
  padding: 1rem 0 4rem;
  background:
    linear-gradient(135deg, rgba(231, 246, 239, 0.98), rgba(244, 249, 252, 0.92) 52%, rgba(255, 255, 255, 0.98)),
    #f8fbfd;
  color: var(--text);
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(8, 116, 94, 0.24);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-text {
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.nav-links a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: #36475a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.nav-links a.nav-cta {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 116, 94, 0.18);
}

.nav-links a.nav-cta:hover {
  background: #0b6f5a;
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 3rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: stretch;
  padding-top: 3rem;
}

.page-hero-copy {
  display: grid;
  align-content: center;
  padding: 1.25rem 0;
}

.page-hero-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.page-hero-card h3,
.page-hero-card p {
  margin: 0;
}

.hero-step-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 0.8rem;
  margin-top: 0.2rem;
}

.hero-step-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: #07624f;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-step-list strong {
  display: block;
  color: var(--text);
  line-height: 1.25;
}

.hero-step-list p {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  max-width: 860px;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  margin-bottom: 0.75rem;
}

h3 {
  margin-bottom: 0.5rem;
}

.hero-text,
.card p,
.panel p,
.result-panel p,
.pricing-card li,
.footer p,
.pricing-note,
.section-heading p,
.tool-description,
.tool-detail p {
  color: var(--muted);
}

.hero-text {
  max-width: 680px;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.6rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.15rem;
  border-radius: 8px;
  border: 0;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 22px rgba(13, 128, 103, 0.2);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: rgba(13, 128, 103, 0.34);
  background: var(--surface-2);
  color: var(--accent);
}

.hero-bullets {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
  color: var(--text);
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.hero-bullets li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 0.55rem;
  margin-top: 0.48rem;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(13, 128, 103, 0.12);
}

.hero-card,
.card,
.panel,
.result-panel,
.pricing-card,
.ai-panel,
.ai-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 1.25rem;
  border-color: #bfccda;
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.hero-card-top span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero-card-top strong {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(8, 116, 94, 0.24);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.86rem;
}

.resume-visual {
  display: grid;
  gap: 0.62rem;
  min-height: 260px;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #c6d2df;
  box-shadow: 0 18px 36px rgba(15, 31, 51, 0.1);
}

.live-resume-sample {
  font-family: Arial, Helvetica, sans-serif;
  color: #182235;
  line-height: 1.35;
}

.live-resume-sample header {
  padding-bottom: 0.65rem;
  border-bottom: 2px solid #08745e;
}

.live-resume-sample h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.35rem;
  line-height: 1.1;
}

.live-resume-sample header p {
  margin: 0.18rem 0 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.sample-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.45rem;
  color: #334155;
  font-size: 0.68rem;
}

.sample-contact span:not(:last-child)::after {
  content: "|";
  margin-left: 0.45rem;
  color: #94a3b8;
}

.live-resume-sample section {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.28rem;
}

.live-resume-sample h4 {
  margin: 0;
  color: #07624f;
  font-size: 0.7rem;
  font-weight: 800;
}

.live-resume-sample p,
.live-resume-sample li {
  margin: 0;
  color: #21364c;
  font-size: 0.7rem;
}

.live-resume-sample ul {
  display: grid;
  gap: 0.18rem;
  margin: 0;
  padding-left: 1rem;
}

.mini-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.mini-list div {
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(8, 116, 94, 0.14);
  background: #f3fbf7;
  color: #435367;
}

.mini-list strong {
  color: var(--text);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.1rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.stats-strip div {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d8e2ec;
}

.stats-strip strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.1;
}

.stats-strip span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.section {
  padding: 4.2rem 0;
}

.section-alt {
  background: #ffffff;
  border-block: 1px solid rgba(219, 227, 237, 0.65);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover,
.template-card:hover,
.workflow-card:hover,
.home-builder-card:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 116, 94, 0.3);
  box-shadow: 0 16px 36px rgba(15, 31, 51, 0.11);
}

.template-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.template-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid #ccd8e5;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.template-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #dfe7ef;
}

.template-card h3,
.template-card p {
  margin: 0;
}

.template-card p {
  color: var(--muted);
}

.template-card .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

.featured-template {
  border-color: rgba(8, 116, 94, 0.38);
  background: linear-gradient(180deg, rgba(231, 246, 239, 0.86), #ffffff 58%);
}

.featured-template::before,
.template-card:nth-child(3)::before {
  background: var(--accent);
}

.template-mini {
  display: grid;
  gap: 0.46rem;
  align-content: start;
  min-height: 370px;
  max-height: 370px;
  overflow: hidden;
  padding: 1.05rem;
  border: 1px solid #c6d2df;
  border-radius: 4px;
  background: #ffffff;
  box-shadow:
    0 18px 34px rgba(15, 31, 51, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.resume-sample {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.62rem;
  line-height: 1.34;
  color: #182235;
}

.resume-sample .sample-header {
  display: grid;
  gap: 0.18rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid #172033;
}

.resume-sample .sample-header strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.resume-sample .sample-header span {
  color: #64748b;
  font-size: 0.58rem;
  overflow-wrap: anywhere;
}

.resume-sample section {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.34rem;
}

.resume-sample h4 {
  margin: 0;
  color: #172033;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.resume-sample p {
  margin: 0;
  color: #334155;
}

.resume-sample ul {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  padding-left: 0.7rem;
  color: #334155;
}

.resume-sample li {
  padding-left: 0.05rem;
}

.sample-logo {
  display: none;
}

.modern-mini .sample-header,
.modern-mini h4 {
  border-color: var(--accent);
  color: var(--accent);
}

.modern-mini .sample-header {
  position: relative;
  padding-left: 2.2rem;
  border-bottom-width: 2px;
}

.modern-mini .sample-logo,
.professional-mini .sample-logo {
  display: grid;
  position: absolute;
  left: 0;
  top: 0.02rem;
  width: 1.65rem;
  height: 1.65rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 900;
}

.skill-pill {
  display: inline-flex;
  margin: 0 0.14rem 0.16rem 0;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  background: rgba(13, 128, 103, 0.11);
  color: var(--accent);
  font-weight: 800;
}

.professional-mini {
  font-family: Calibri, Arial, Helvetica, sans-serif;
  padding-left: 1.15rem;
  background:
    linear-gradient(90deg, rgba(13, 128, 103, 0.11) 0 7px, transparent 7px),
    #ffffff;
}

.professional-mini .sample-header {
  position: relative;
  padding-left: 2.15rem;
  border-bottom-width: 1px;
}

.professional-mini .sample-logo {
  border-radius: 6px;
  background: #172033;
}

.professional-mini h4 {
  color: var(--accent);
}

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-card {
  display: grid;
  gap: 0.65rem;
  min-height: 220px;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}

.home-builder-preview {
  padding-top: 4.8rem;
}

.home-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-builder-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.home-builder-card p {
  margin: 0;
  color: var(--muted);
}

.home-builder-card .btn {
  justify-self: start;
}

.builder-hero-copy {
  max-width: 860px;
}

.builder-hero-copy h1 {
  max-width: 840px;
  font-size: clamp(2.2rem, 4.7vw, 4rem);
}

.builder-hero-copy p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.builder-hero .page-hero-grid,
.tools-hero .page-hero-grid {
  display: block;
  padding-top: 1rem;
}

.builder-hero .page-hero-card,
.tools-hero .page-hero-card {
  display: none;
}

.builder-hero .page-hero-copy,
.tools-hero .page-hero-copy {
  padding: 0.65rem 0 0;
}

.builder-hero-copy h1,
.tools-hero-copy h1 {
  max-width: 940px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  margin-bottom: 0.7rem;
}

.builder-hero-copy p:not(.eyebrow),
.tools-hero-copy p:not(.eyebrow) {
  max-width: 820px;
  font-size: 1rem;
}

.builder-hero .hero-actions,
.tools-hero .hero-actions {
  margin: 1rem 0 0;
}

.workflow-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.workflow-card span {
  display: grid;
  min-width: 38px;
  padding: 0 0.55rem;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  justify-self: start;
  font-size: 0.82rem;
  font-weight: 800;
}

.workflow-card p {
  margin: 0;
  color: var(--muted);
}

.tools-section {
  background: #ffffff;
  color: var(--text);
  border-block: 1px solid rgba(219, 227, 237, 0.65);
}

.comparison-grid,
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.comparison-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.comparison-card.highlighted {
  background: var(--surface-2);
  color: var(--text);
  border-color: rgba(13, 128, 103, 0.28);
}

.comparison-card.highlighted .eyebrow {
  color: var(--accent);
}

.comparison-card.highlighted p {
  color: var(--muted);
}

.tools-hero-copy {
  max-width: 940px;
}

.tools-app-shell {
  padding: 1.35rem 0 5rem;
}

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

.tools-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.tools-path a {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 32, 51, 0.08);
}

.tools-path a:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.tools-path span {
  color: var(--muted);
  font-size: 0.92rem;
}

.tools-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.builder-grid,
.ai-builder-grid,
.tools-workspace {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.tools-sidebar,
.tool-runner,
.tool-output {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.tools-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 0.9rem;
  box-shadow: 0 14px 32px rgba(20, 32, 51, 0.08);
}

.tool-search-wrap {
  margin-bottom: 1rem;
}

.tool-menu {
  display: grid;
  gap: 0.85rem;
}

.tool-menu-group p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-menu-group > span {
  display: block;
  margin: -0.15rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.tool-menu-item {
  width: 100%;
  min-height: 40px;
  margin-bottom: 0.32rem;
  padding: 0.64rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.tool-menu-item:hover {
  background: var(--surface-3);
  border-color: var(--border);
}

.tool-menu-item.active {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--accent);
}

.tool-menu-empty {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-3);
}

.tool-menu-empty span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tool-runner {
  padding: 1.65rem;
  box-shadow: var(--shadow-soft);
}

.tool-runner-heading {
  max-width: 840px;
  margin-bottom: 1.2rem;
}

.tool-form,
.tool-fields {
  display: grid;
  gap: 0.9rem;
}

.tool-output {
  margin-top: 1.2rem;
  padding: 1.25rem;
  box-shadow: none;
  background: var(--surface-3);
}

.tool-next-step {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  padding: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.tool-next-step p {
  margin: 0;
  color: var(--muted);
}

.tool-score {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: var(--surface-2);
}

.tool-score strong {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.15rem;
}

.tool-score span {
  font-weight: 800;
}

.result-block {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-3);
}

.result-block h4 {
  margin: 0 0 0.6rem;
}

.result-block pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font: inherit;
  color: var(--text);
}

.result-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.inline-download {
  margin-top: 1rem;
}

.muted-small {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tools-section .section-heading p {
  max-width: 780px;
  color: var(--muted);
}

.tool-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tool-column {
  min-width: 0;
}

.tool-category {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-description {
  min-height: 76px;
  margin: 0 0 1rem;
  color: var(--muted);
}

.tool-list {
  display: grid;
  gap: 0.55rem;
}

.tool-pill {
  width: 100%;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.tool-pill:hover,
.tool-pill.active {
  transform: translateY(-2px);
  border-color: rgba(13, 128, 103, 0.36);
  background: var(--surface-2);
  color: var(--accent);
}

.tool-detail {
  margin-top: 1.5rem;
  padding: 1.3rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.tool-detail h3 {
  margin-bottom: 0.35rem;
}

.tool-detail p {
  margin-bottom: 0;
  color: var(--muted);
}

.workflow-grid,
.builder-grid,
.ai-builder-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: 1.5rem;
  align-items: start;
}

.steps {
  padding-left: 1.2rem;
  color: var(--muted);
}

.steps li {
  margin-bottom: 0.6rem;
}

.panel,
.result-panel,
.pricing-card {
  padding: 1.5rem;
}

.panel ul,
.pricing-card ul {
  padding-left: 1.1rem;
}

.builder-form,
.ai-panel {
  display: grid;
  gap: 0.9rem;
}

.builder-form {
  gap: 1rem;
}

.builder-section.container {
  padding-top: 1.35rem;
}

.app-section .section-heading {
  display: flex;
  gap: 1.5rem;
  align-items: end;
  justify-content: space-between;
  max-width: none;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.app-section .section-heading h2 {
  max-width: 620px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  margin-bottom: 0;
}

.app-section .section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  font-size: 0.98rem;
}

.builder-section .builder-grid {
  grid-template-columns: minmax(420px, 560px) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem;
}

.builder-section .builder-form {
  min-width: 0;
}

.builder-section .result-panel,
.builder-section .ats-check-panel {
  min-width: 0;
  padding: 1.25rem;
}

.builder-section .resume-preview,
.builder-section .resume-page-one,
.builder-section .resume-page-two {
  max-width: none;
}

.builder-section .resume-page-one {
  min-height: 700px;
}

.builder-section .form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.builder-section .form-actions .btn-primary {
  grid-column: 1 / -1;
}

.save-status {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 450;
}

.builder-review-panel {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.75rem;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 2rem);
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.review-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-3);
}

.review-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.review-tabs button.is-active {
  border-color: rgba(13, 128, 103, 0.28);
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.review-panel {
  display: none;
  min-width: 0;
}

.review-panel.is-active {
  display: block;
}

.review-panel.is-active,
.builder-section .result-panel,
.builder-section .ats-check-panel {
  max-height: calc(100vh - 6.25rem);
  overflow: auto;
}

.builder-section .ats-check-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-section .ats-check-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.builder-section .ats-check-header strong {
  width: 64px;
  height: 64px;
}

.builder-step-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: -0.35rem 0 1rem;
}

.builder-step-tabs button {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  min-height: 48px;
  padding: 0.65rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.builder-step-tabs button:hover,
.builder-step-tabs button.is-active {
  border-color: rgba(13, 128, 103, 0.34);
  background: var(--surface-2);
  color: var(--accent);
  transform: translateY(-1px);
}

.builder-step-tabs span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.78rem;
}

.builder-step-tabs button.is-active span {
  background: var(--accent);
  color: #ffffff;
}

.builder-step {
  display: none;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbfa),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.builder-step.is-active {
  display: grid;
}

.builder-step-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8fafc, #f1f5f9),
    var(--surface-3);
}

.builder-step-nav .btn:last-child {
  margin-left: auto;
}

.builder-section .result-panel {
  min-height: 560px;
}

.step-heading {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.step-heading > span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.step-heading h3 {
  margin: 0 0 0.15rem;
  font-size: 1.08rem;
}

.step-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 450;
}

.resume-import-box,
.resume-section-builder {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 34, 52, 0.035);
}

.builder-step[data-builder-panel='sections'] {
  max-height: none;
  overflow: visible;
}

.builder-step[data-builder-panel='sections'] .resume-section-builder {
  gap: 0.7rem;
  padding: 0.85rem;
}

.resume-import-box {
  border-color: rgba(13, 128, 103, 0.2);
  background:
    linear-gradient(180deg, rgba(238, 247, 243, 0.85), #ffffff),
    var(--surface-2);
}

.import-status {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.section-builder-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #edf2f7;
}

.section-builder-head h4 {
  margin: 0 0 0.08rem;
  font-size: 1rem;
}

.section-builder-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.entry-list {
  display: grid;
  gap: 0.55rem;
}

.resume-entry-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.7rem;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: none;
}

.resume-entry-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.compact-entry-list .resume-entry-fields {
  grid-template-columns: 1fr;
}

.chip-entry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-entry {
  display: inline-grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
  max-width: 360px;
  padding: 0.65rem;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #ffffff;
}

.chip-entry-fields {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 110px;
  gap: 0.45rem;
}

.chip-entry-fields label {
  font-size: 0.82rem;
}

.entry-actions {
  display: grid;
  gap: 0.35rem;
  align-self: end;
}

.entry-move-btn,
.entry-remove-btn,
.entry-point-btn {
  min-height: 34px;
  padding: 0.38rem 0.55rem;
  border: 1px solid #cfdae5;
  border-radius: 8px;
  background: #ffffff;
  color: #425167;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.entry-remove-btn {
  border: 1px solid rgba(184, 65, 65, 0.24);
  background: #fff7f7;
  color: #9c2d2d;
}

.entry-remove-btn:hover {
  border-color: rgba(184, 65, 65, 0.5);
}

.entry-move-btn:hover,
.entry-point-btn:hover {
  border-color: rgba(13, 128, 103, 0.38);
  color: var(--accent);
}

.entry-point-btn {
  grid-column: 1 / -1;
  justify-self: start;
  border-style: dashed;
  background: #f7fbf9;
}

.builder-step[data-builder-panel='details'] {
  gap: 1rem;
}

.builder-step[data-builder-panel='details'] .form-row,
.builder-step[data-builder-panel='details'] > label {
  padding: 0.95rem;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(22, 34, 52, 0.035);
}

.builder-step[data-builder-panel='details'] .form-row {
  gap: 0.8rem;
}

.builder-step[data-builder-panel='details'] label,
.resume-entry-fields label,
.chip-entry-fields label,
.resume-import-box label,
.builder-step[data-builder-panel='sections'] > label {
  color: #243247;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.builder-step[data-builder-panel='sections'] > label {
  padding: 0.85rem;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 34, 52, 0.035);
}

.summary-editor {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 34, 52, 0.035);
}

.summary-editor .compact-btn {
  justify-self: start;
}

.builder-step[data-builder-panel='sections'] > label textarea,
.resume-import-box textarea {
  min-height: 78px;
}

.builder-step[data-builder-panel='sections'] > label textarea::placeholder,
.resume-import-box textarea::placeholder {
  color: #8fa0b3;
  font-size: 0.92rem;
  line-height: 1.45;
}

.builder-form input,
.builder-form textarea,
.builder-form select {
  border-color: #d6e1ec;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 600;
}

.builder-form input:focus,
.builder-form textarea:focus,
.builder-form select:focus {
  border-color: rgba(13, 128, 103, 0.62);
  background: #ffffff;
  outline: 3px solid rgba(13, 128, 103, 0.12);
}

.builder-form textarea {
  min-height: 86px;
  resize: vertical;
}

.resume-entry-fields input,
.chip-entry-fields input,
.chip-entry-fields select {
  min-height: 42px;
  padding: 0.62rem 0.72rem;
}

.resume-entry-fields label,
.chip-entry-fields label {
  gap: 0.28rem;
}

.compact-btn {
  min-height: 36px;
  padding: 0.42rem 0.7rem;
  font-size: 0.84rem;
}

.section-builder-head .compact-btn {
  min-width: max-content;
  max-width: 150px;
  padding-inline: 0.8rem;
  box-shadow: none;
}

.ai-panel,
.ai-result {
  padding: 1.5rem;
}

.mode-switch,
.template-picker {
  display: grid;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.mode-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-option {
  position: relative;
}

.mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mode-option span {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.mode-option input:checked + span {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.mode-option span:hover {
  border-color: rgba(13, 128, 103, 0.34);
  background: var(--surface-2);
  color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.control-grid label {
  min-width: 0;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 34, 52, 0.045);
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  padding: 0;
  accent-color: var(--accent);
  background: transparent;
  cursor: pointer;
}

input[type='range']::-webkit-slider-runnable-track {
  height: 8px;
  border: 1px solid #c7d2df;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #e5ebf2);
}

input[type='range']::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(13, 128, 103, 0.28);
}

input[type='range']::-moz-range-track {
  height: 8px;
  border: 1px solid #c7d2df;
  border-radius: 999px;
  background: #e5ebf2;
}

input[type='range']::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 4px 10px rgba(13, 128, 103, 0.28);
}

input[type='color'] {
  min-height: 46px;
  padding: 0.35rem;
  cursor: pointer;
}

.template-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.template-option {
  position: relative;
}

.template-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template-option span {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "preview"
    "title"
    "copy"
    "tags";
  gap: 0.65rem;
  align-items: start;
  justify-items: stretch;
  min-height: 100%;
  padding: 0.85rem;
  border: 1px solid #d6e1ec;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 31, 51, 0.07);
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.template-option > span > strong {
  grid-area: title;
  margin-top: 0;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.15;
}

.template-option > span > small {
  grid-area: copy;
  color: var(--muted);
  font-weight: 450;
  font-size: 0.82rem;
  line-height: 1.35;
}

.template-style-tags {
  grid-area: tags;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.05rem;
}

.template-style-tags b {
  display: inline-flex;
  padding: 0.16rem 0.42rem;
  border: 1px solid rgba(13, 128, 103, 0.2);
  border-radius: 999px;
  background: rgba(238, 247, 243, 0.82);
  color: var(--accent);
  font-size: 0.68rem;
  line-height: 1;
}

.template-preview {
  grid-area: preview;
  position: relative;
  display: grid;
  gap: 0.16rem;
  align-content: start;
  min-height: 220px;
  max-height: 220px;
  overflow: hidden;
  padding: 0.72rem;
  border: 1px solid #c8d5e3;
  border-radius: 8px;
  background: #ffffff;
  font-style: normal;
  color: #182235;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.25;
  box-shadow:
    0 12px 22px rgba(15, 31, 51, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.template-preview > * {
  display: initial;
}

.template-preview strong {
  color: #111827;
  font-size: 0.78rem;
  line-height: 1.1;
}

.template-preview small {
  color: #475569;
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.template-preview em {
  margin-top: 0.08rem;
  padding-top: 0.08rem;
  border-top: 1px solid #e3eaf2;
  color: #111827;
  font-size: 0.48rem;
  font-style: normal;
  font-weight: 700;
}

.template-preview b {
  display: none;
}

.modern-preview {
  background:
    linear-gradient(180deg, rgba(231, 246, 239, 0.88), #ffffff 48%),
    #ffffff;
}

.modern-preview::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
}

.modern-preview em {
  border-color: var(--accent);
  color: var(--accent);
}

.professional-preview {
  background:
    linear-gradient(90deg, rgba(8, 116, 94, 0.14) 0 8px, transparent 8px),
    linear-gradient(180deg, #ffffff 0 52%, #f8fafc 52%),
    #ffffff;
}

.professional-preview em {
  color: var(--accent);
}

.payment-download-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.8rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(13, 128, 103, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(238, 247, 243, 0.78), #ffffff),
    var(--surface-2);
}

.payment-download-note strong {
  color: var(--text);
  font-weight: 650;
}

.payment-download-note span {
  color: var(--muted);
}

.payment-download-note a {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.template-option input:checked + span {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(231, 246, 239, 0.98), #ffffff 76%);
  color: var(--text);
  box-shadow: 0 18px 34px rgba(8, 116, 94, 0.14);
  transform: translateY(-2px);
}

.template-option input:checked + span::before {
  content: none;
}

.template-option span:hover {
  border-color: rgba(13, 128, 103, 0.34);
  background:
    linear-gradient(180deg, rgba(231, 246, 239, 0.72), #ffffff 70%);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(22, 34, 52, 0.08);
}

/* Polished resume studio */
.builder-section {
  position: relative;
  padding: 2rem;
  border: 1px solid #dce6ef;
  border-radius: 28px;
  background: linear-gradient(145deg, #f8fbff 0%, #f3f8f6 100%);
  box-shadow: 0 30px 80px rgba(23, 39, 58, 0.1);
}

.builder-section .section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.builder-step-tabs {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  padding: 0.45rem;
  border: 1px solid rgba(209, 220, 231, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(22, 34, 52, 0.09);
  backdrop-filter: blur(16px);
}

.builder-step-tabs button {
  min-height: 52px;
  border-radius: 13px;
}

.builder-grid {
  align-items: start;
  gap: 1.35rem;
}

.builder-form,
.builder-review-panel {
  border: 1px solid #dce5ee;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(22, 34, 52, 0.08);
}

.builder-step {
  border-radius: 18px;
}

.step-heading {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e7edf3;
}

.step-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #0d8067, #16a37f);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(13, 128, 103, 0.22);
}

.template-option > span {
  position: relative;
  padding: 0.85rem;
  border-radius: 16px;
  overflow: hidden;
}

.premium-ribbon {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  background: #14213d;
  color: #ffffff;
  font-size: 0.67rem;
  font-style: normal;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 15px rgba(20, 33, 61, 0.2);
}

.template-option input:checked + span .premium-ribbon {
  background: linear-gradient(135deg, #0d8067, #16a37f);
}

.template-preview {
  min-height: 220px;
  max-height: 220px;
  border-radius: 10px;
}

.builder-form input,
.builder-form textarea,
.builder-form select {
  min-height: 48px;
  border-radius: 11px;
  background: #f8fafc;
}

.builder-form textarea {
  min-height: 105px;
}

.builder-review-panel {
  position: sticky;
  top: 5.25rem;
  overflow: hidden;
}

.builder-section .resume-preview {
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.payment-download-note {
  padding: 1rem 1.1rem;
  border-radius: 14px;
}

@media (max-width: 760px) {
  .builder-section {
    padding: 1rem;
    border-radius: 20px;
  }

  .builder-step-tabs {
    position: static;
  }

  .premium-ribbon {
    top: 0.6rem;
    right: 0.6rem;
  }

  .template-option span {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.82rem;
  }

  .template-preview {
    min-height: 190px;
    max-height: 190px;
  }
}

.is-hidden {
  display: none;
}

.import-notice {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 143, 112, 0.25);
  border-radius: 8px;
  background: var(--surface-2);
}

.import-notice span {
  color: var(--muted);
  font-weight: 500;
}

.import-notice.is-hidden {
  display: none;
}

.upload-panel {
  display: grid;
  gap: 0.95rem;
  padding: 1.15rem;
  border: 1px solid rgba(13, 128, 103, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(238, 247, 243, 0.82), #ffffff),
    var(--surface-2);
}

.upload-panel.is-hidden {
  display: none;
}

.upload-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

input[type='file'] {
  padding: 0.65rem;
  background: #ffffff;
}

input[type='file']::file-selector-button {
  min-height: 38px;
  margin-right: 0.8rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(13, 128, 103, 0.3);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.ai-result {
  min-height: 620px;
  position: sticky;
  top: 1rem;
}

.ai-empty {
  display: grid;
  min-height: 220px;
  align-content: center;
}

.match-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 8px;
  background: var(--surface-2);
}

.match-score strong {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 1.35rem;
}

.keyword-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.keyword-box {
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-3);
}

.keyword-box h4 {
  margin: 0 0 0.55rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  display: inline-flex;
  padding: 0.28rem 0.52rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.chip.missing {
  background: #fff1c9;
}

.ai-resume-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.96rem;
}

input,
textarea,
select {
  max-width: 100%;
  width: 100%;
  padding: 0.76rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
}

select {
  appearance: none;
  padding-right: 2.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(15, 143, 112, 0.18);
  border-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: #93a1b2;
  font-weight: 500;
}

.result-panel pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text);
  border: 1px solid var(--border);
}

.ats-check-panel {
  grid-column: 2;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.ats-check-empty h3,
.ats-check-header h3 {
  margin: 0.2rem 0 0.35rem;
  color: #102033;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.1;
}

.ats-check-empty p,
.ats-check-header p {
  margin: 0;
  color: #536171;
}

.ats-check-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 132px);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 143, 112, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f1fbf7 100%);
}

.ats-check-header .eyebrow {
  color: #0b7d63;
  font-size: 0.75rem;
  font-weight: 800;
}

.ats-score-card {
  display: grid;
  min-height: 96px;
  place-items: center;
  gap: 0.15rem;
  padding: 0.9rem;
  border: 1px solid rgba(15, 143, 112, 0.2);
  border-radius: 8px;
  background: #0f8f70;
  color: #ffffff;
  text-align: center;
}

.ats-score-card strong {
  display: block;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 2.7rem);
  line-height: 1;
}

.ats-score-card span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
}

.ats-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.ats-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.ats-check-item > span {
  min-width: 38px;
  padding: 0.18rem 0.35rem;
  border-radius: 999px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.ats-check-item.is-pass > span {
  background: rgba(15, 143, 112, 0.12);
  color: var(--accent);
}

.ats-check-item.is-warn > span {
  background: #fff1c9;
  color: #8a5a00;
}

.ats-check-item.is-idle > span {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.ats-check-item h4 {
  margin: 0 0 0.15rem;
  color: #102033;
  font-size: 0.92rem;
  line-height: 1.25;
}

.ats-check-item p {
  margin: 0;
  color: #5c6877;
  font-size: 0.82rem;
  line-height: 1.35;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.preview-toolbar h3 {
  margin: 0;
}

.preview-toolbar span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.resume-preview {
  position: relative;
  display: block;
  padding: var(--resume-padding, 22px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #182235;
  font-family: var(--resume-font-family, Arial, Helvetica, sans-serif);
  font-size: var(--resume-font-size, 14px);
  line-height: var(--resume-line-height, 1.45);
  transition: padding 160ms ease, font-size 160ms ease, line-height 160ms ease;
}

.resume-preview.preview-attention,
.review-panel.preview-attention {
  animation: previewAttention 1.35s ease;
}

@keyframes previewAttention {
  0% {
    box-shadow: 0 0 0 0 rgba(15, 143, 112, 0);
  }
  28% {
    box-shadow: 0 0 0 7px rgba(15, 143, 112, 0.18);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(15, 143, 112, 0);
  }
}

.resume-preview-empty {
  display: grid;
  min-height: 560px;
  place-items: center;
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(15, 143, 112, 0.06), rgba(255, 255, 255, 0) 42%),
    #ffffff;
}

.empty-preview-frame {
  width: min(100%, 420px);
  text-align: center;
}

.empty-preview-frame > span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 143, 112, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.empty-preview-frame h3 {
  margin: 0;
  font-size: 1.45rem;
}

.empty-preview-frame p {
  max-width: 34rem;
  margin: 0.65rem auto 1.2rem;
  color: var(--muted);
}

.empty-preview-lines {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(15, 143, 112, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.empty-preview-lines i {
  display: block;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 143, 112, 0.2), rgba(15, 143, 112, 0.06));
}

.empty-preview-lines i:nth-child(2) {
  width: 74%;
}

.empty-preview-lines i:nth-child(3) {
  width: 88%;
}

.empty-preview-lines i:nth-child(4) {
  width: 58%;
}

.resume-heading {
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--resume-accent, #182235);
  margin-bottom: 1rem;
}

.template-badge {
  display: inline-flex;
  margin-top: 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.resume-template-classic {
  color: #111111;
}

.resume-template-classic .resume-heading,
.resume-template-classic h4,
.resume-template-classic .resume-title {
  border-color: #111111;
  color: #111111;
}

.resume-template-modern .resume-heading {
  border-bottom-color: var(--resume-accent, var(--accent));
}

.resume-template-professional .resume-heading {
  border-bottom-width: 1px;
}

.resume-preview h3 {
  margin: 0;
  font-size: 2.05em;
  line-height: 1.12;
}

.resume-preview .resume-title {
  margin: 0.28rem 0 0.45rem;
  color: var(--resume-accent, var(--accent-2));
  font-weight: 800;
}

.resume-contact {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.55rem;
  color: #354258;
  font-size: 0.92em;
  line-height: 1.45;
}

.resume-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.5rem;
}

.resume-contact-links {
  display: grid;
  gap: 0.22rem;
}

.resume-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.resume-contact-item span:last-child {
  overflow-wrap: anywhere;
}

.resume-contact-item:not(:last-child)::after {
  content: "|";
  margin-left: 0.22rem;
  color: #8a95a8;
}

.resume-contact-links .resume-contact-item::after {
  content: none;
}

.resume-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--resume-accent, #182235);
  line-height: 1;
}

.resume-contact-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-contact a:hover {
  color: var(--resume-accent, #182235);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resume-preview section {
  margin-top: calc(0.75rem * var(--resume-line-height, 1.45));
}

.resume-preview h4 {
  margin: 0 0 0.45rem;
  color: var(--resume-accent, #182235);
  font-size: 0.86em;
  letter-spacing: 0;
  text-transform: none;
}

.resume-preview p,
.resume-preview li {
  color: #354258;
  line-height: var(--resume-line-height, 1.45);
}

.resume-preview ul {
  margin: 0;
  padding-left: 1.1rem;
}

.resume-page-one {
  max-width: 780px;
  min-height: 900px;
}

.resume-page-two {
  max-width: 780px;
  min-height: 1280px;
  background:
    linear-gradient(to bottom, transparent 0, transparent 49.5%, rgba(15, 143, 112, 0.16) 49.5%, rgba(15, 143, 112, 0.16) 49.7%, transparent 49.7%),
    #ffffff;
}

.pricing-box {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 360px);
  gap: 1.5rem;
  align-items: center;
}

.pricing-note {
  max-width: 620px;
}

.pricing-card {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(13, 128, 103, 0.22);
}

.pricing-card li {
  color: var(--muted);
}

.price {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.price span {
  font-size: 1rem;
  color: var(--muted);
}

.footer {
  padding: 3rem 0 2rem;
  background: #101a2a;
  color: #ffffff;
}

.footer-inner {
  display: grid;
  gap: 1.6rem;
}

.footer .brand {
  color: #ffffff;
}

.footer .brand-mark {
  box-shadow: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.7fr));
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.9rem;
}

.footer-brand p {
  max-width: 390px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  gap: 0.48rem;
}

.footer-links h3 {
  margin: 0 0 0.25rem;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer-links a,
.footer-links span,
.footer-bottom a,
.footer-bottom p {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover,
.footer-bottom a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  margin: 0;
}

.account-page,
.payment-page {
  padding: 3.5rem 0 4.5rem;
}

.auth-layout,
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  gap: 2rem;
  align-items: center;
}

.auth-copy,
.payment-copy {
  max-width: 680px;
}

.auth-copy h1,
.payment-copy h1 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

.auth-points,
.payment-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.auth-points span,
.payment-highlights span {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
}

.auth-card,
.checkout-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.auth-card h2,
.checkout-card h2 {
  margin-bottom: 0.3rem;
}

.auth-card p,
.checkout-card p {
  margin: 0;
  color: var(--muted);
}

.auth-card .btn,
.payment-form .btn {
  width: 100%;
}

.auth-note {
  font-size: 0.9rem;
}

.auth-card-wide {
  gap: 1.1rem;
}

.auth-layout-polished {
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 560px);
  align-items: stretch;
}

.auth-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 2rem;
  border: 1px solid rgba(216, 226, 237, 0.78);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 243, 0.82)),
    #ffffff;
  box-shadow: 0 18px 40px rgba(22, 34, 52, 0.08);
}

.auth-security-card {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  box-shadow: 0 10px 24px rgba(22, 34, 52, 0.06);
}

.auth-security-card strong {
  color: var(--text);
}

.auth-card-head {
  display: grid;
  gap: 0.25rem;
}

.auth-provider-grid,
.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.auth-provider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 34, 52, 0.045);
}

.auth-provider-btn span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.auth-provider-btn:hover {
  border-color: rgba(15, 135, 103, 0.48);
  box-shadow: 0 12px 24px rgba(15, 135, 103, 0.1);
  transform: translateY(-1px);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  background: var(--border);
}

.auth-panel {
  display: grid;
  gap: 0.95rem;
  padding: 1.1rem;
  border: 1px solid #d8e2ed;
  border-radius: 8px;
  background: #ffffff;
}

.auth-login-panel {
  border-color: rgba(15, 135, 103, 0.34);
}

.auth-register-panel,
.auth-panel-muted {
  background:
    linear-gradient(180deg, rgba(238, 247, 243, 0.74), #ffffff),
    var(--surface-2);
}

.auth-panel-title,
.auth-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.auth-panel h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.auth-panel-title a,
.auth-row a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.auth-panel-title span,
.auth-row .auth-muted,
.auth-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.auth-check {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.checkout-plan {
  padding: 1rem;
  border-radius: 8px;
  background: var(--surface-2);
}

.checkout-plan h2 {
  font-size: 2.9rem;
}

.checkout-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.payment-form {
  display: grid;
  gap: 1rem;
}

.gateway-flow {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 1px solid rgba(13, 128, 103, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(238, 247, 243, 0.82), #ffffff),
    var(--surface-2);
}

.gateway-flow .eyebrow {
  margin: 0;
}

.gateway-flow ol {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  padding-left: 1.15rem;
  color: #354258;
  font-size: 0.9rem;
  font-weight: 650;
}

/* Unified app workspace styling for Resume Maker, AI Builder, and Tools. */
.builder-hero,
.tools-hero {
  padding: 0.75rem 0 1rem;
  background: #f7f9fb;
  border-bottom: 1px solid var(--border);
}

.builder-hero .nav.container,
.tools-hero .nav.container,
.builder-hero .page-hero-grid.container,
.tools-hero .page-hero-grid.container {
  width: min(var(--app-max), calc(100% - (var(--page-gutter) * 2)));
}

.builder-hero .page-hero-copy,
.tools-hero .page-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow actions"
    "title actions"
    "copy actions";
  gap: 1.25rem;
  align-items: center;
  padding: 0.75rem 0 0.45rem;
}

.builder-hero .page-hero-copy .eyebrow,
.tools-hero .page-hero-copy .eyebrow {
  grid-area: eyebrow;
}

.builder-hero .page-hero-copy > p:not(.eyebrow),
.tools-hero .page-hero-copy > p:not(.eyebrow) {
  grid-area: copy;
  max-width: 620px;
  margin: 0;
}

.builder-hero .page-hero-copy h1,
.tools-hero .page-hero-copy h1 {
  grid-area: title;
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.55rem);
}

.builder-hero .hero-actions,
.tools-hero .hero-actions {
  grid-area: actions;
  margin: 0;
  flex: 0 0 auto;
}

.builder-hero .btn,
.tools-hero .btn {
  min-height: 42px;
  padding: 0.62rem 0.95rem;
}

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

.app-section .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  grid-template-areas:
    "eyebrow copy"
    "title copy";
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
}

.app-section .section-heading .eyebrow {
  grid-area: eyebrow;
}

.app-section .section-heading h2 {
  grid-area: title;
  max-width: 760px;
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
}

.app-section .section-heading p:not(.eyebrow) {
  grid-area: copy;
  max-width: 620px;
  color: var(--muted);
  font-size: 0.95rem;
}

.builder-grid,
.ai-builder-grid,
.tools-workspace {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.builder-step,
.builder-review-panel,
.ai-panel,
.ai-result,
.tools-sidebar,
.tool-runner {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(22, 34, 52, 0.055);
}

.builder-step-tabs,
.tools-path {
  margin-bottom: 0.9rem;
}

.builder-step-tabs button,
.tools-path a {
  box-shadow: none;
}

.tools-path a {
  min-height: 74px;
}

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

.ai-builder-grid {
  grid-template-columns: minmax(420px, 560px) minmax(0, 1fr);
}

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

/* Home page aligned with the app page layout system. */
.home-hero {
  min-height: auto;
  padding: 0.75rem 0 1.35rem;
  background:
    linear-gradient(135deg, rgba(231, 246, 239, 0.98), rgba(244, 249, 252, 0.95) 52%, #ffffff),
    #f8fbfd;
  border-bottom: 1px solid var(--border);
}

.home-hero .nav.container,
.home-hero .hero-grid.container,
.home-hero .stats-strip.container,
.home-main .container,
.home-main.section,
.home-main > .section.container {
  width: min(var(--app-max), calc(100% - (var(--page-gutter) * 2)));
}

.home-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.52fr);
  gap: 1.25rem;
  align-items: stretch;
  padding-top: 1rem;
}

.home-hero .hero-copy {
  display: grid;
  align-content: center;
  padding: 0.4rem 0;
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.home-hero .hero-text {
  max-width: 700px;
  font-size: 1rem;
}

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

.home-hero .hero-bullets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.home-hero .hero-bullets li {
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 31, 51, 0.055);
  font-size: 0.92rem;
  font-weight: 700;
}

.home-hero .hero-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  border-color: #bac8d7;
  background: rgba(255, 255, 255, 0.98);
}

.home-hero .hero-card h3,
.home-hero .hero-card p {
  margin: 0;
}

.home-hero .resume-visual {
  min-height: 250px;
}

.home-hero .mini-list {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.home-hero .stats-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-hero .stats-strip div {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 31, 51, 0.075);
}

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

.home-main .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  grid-template-areas:
    "eyebrow copy"
    "title copy";
  gap: 1rem;
  align-items: end;
  max-width: none;
  margin-bottom: 1.15rem;
}

.home-main .section-heading .eyebrow {
  grid-area: eyebrow;
}

.home-main .section-heading h2 {
  grid-area: title;
  max-width: 760px;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
}

.home-main .section-heading p:not(.eyebrow) {
  grid-area: copy;
  margin: 0;
}

.home-main .card,
.home-main .panel,
.home-main .home-builder-card,
.home-main .pricing-card {
  border-color: #ccd8e5;
  box-shadow: 0 12px 28px rgba(15, 31, 51, 0.075);
}

@media (max-width: 980px) {
  .card-grid,
  .tool-columns,
  .workflow-cards,
  .template-showcase,
  .tools-path,
  .home-builder-grid,
  .comparison-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-section .builder-grid {
    grid-template-columns: 1fr;
  }

  .builder-section .form-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .builder-review-panel {
    position: static;
    max-height: none;
  }

  .builder-section .builder-form,
  .builder-review-panel {
    width: 100%;
  }

  .builder-section .resume-preview {
    min-width: 0;
  }
}

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

  .hero-grid,
  .page-hero-grid,
  .workflow-grid,
  .builder-grid,
  .ai-builder-grid,
  .pricing-box {
    grid-template-columns: 1fr;
  }

  .ai-result {
    min-height: auto;
    position: static;
  }

  .hero-grid {
    padding-top: 2rem;
  }

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

  .builder-hero .page-hero-copy,
  .tools-hero .page-hero-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "copy"
      "actions";
    gap: 0.65rem;
  }

  .app-section.container,
  .tools-app-shell .container {
    width: min(100% - 1rem, 1120px);
  }

  .app-section .section-heading {
    display: block;
  }

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

  .builder-section .builder-grid,
  .builder-section .form-actions {
    grid-template-columns: 1fr;
  }

  .builder-section .builder-grid {
    padding: 0.6rem;
  }

  .builder-review-panel,
  .review-panel.is-active,
  .builder-section .result-panel,
  .builder-section .ats-check-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

  .builder-step-tabs button,
  .review-tabs button {
    min-height: 42px;
    padding: 0.55rem;
    font-size: 0.9rem;
  }

  .builder-section .resume-preview {
    padding: min(var(--resume-padding, 22px), 18px);
    font-size: min(var(--resume-font-size, 14px), 13px);
  }

  .builder-section .resume-page-one,
  .builder-section .resume-page-two {
    min-height: auto;
  }

  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-links {
    display: none;
  }

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

  .tools-sidebar {
    position: static;
    max-height: none;
  }

  .tool-next-step {
    align-items: stretch;
    flex-direction: column;
  }

  .home-hero .hero-grid,
  .home-hero .stats-strip,
  .home-hero .hero-bullets {
    grid-template-columns: 1fr;
  }

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

  .home-main .section-heading h2 {
    margin-bottom: 0.5rem;
  }

  .footer-grid,
  .auth-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

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

  .auth-copy-panel {
    min-height: auto;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1rem, 1120px);
  }

  :root {
    --page-gutter: 0.75rem;
  }

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

  .brand {
    min-width: 0;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-page {
    padding: 1.25rem 0 2.5rem;
  }

  .auth-copy-panel,
  .auth-card {
    padding: 1rem;
  }

  .auth-copy h1 {
    font-size: 2rem;
  }

  .auth-points span {
    width: 100%;
  }

  .auth-card h2 {
    font-size: 1.6rem;
  }

  .auth-provider-btn {
    justify-content: center;
  }

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

  .card-grid {
    grid-template-columns: 1fr;
  }

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

  .tool-columns {
    grid-template-columns: 1fr;
  }

  .tool-description {
    min-height: auto;
  }

  .form-row,
  .mode-switch,
  .template-picker,
  .control-grid,
  .resume-entry-card,
  .resume-entry-fields,
  .ats-check-list,
  .keyword-groups {
    grid-template-columns: 1fr;
  }

  .resume-entry-card {
    align-items: stretch;
  }

  .entry-actions,
  .entry-remove-btn {
    justify-self: stretch;
  }

  .entry-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .template-mini {
    min-height: 320px;
    max-height: 320px;
    padding: 0.85rem;
  }

  .resume-sample {
    font-size: 0.62rem;
  }

  .template-preview {
    min-height: 108px;
    max-height: 108px;
  }

  .builder-step,
  .builder-review-panel,
  .builder-section .result-panel,
  .builder-section .ats-check-panel {
    padding: 0.85rem;
  }

  .builder-step-tabs {
    grid-template-columns: 1fr;
  }

  .review-tabs {
    grid-template-columns: 1fr;
  }

  .ats-check-header {
    grid-template-columns: 1fr;
  }

  .ats-score-card {
    min-height: auto;
    justify-items: start;
    text-align: left;
  }

  .resume-preview h3 {
    font-size: 1.55em;
    overflow-wrap: anywhere;
  }

  .resume-contact-row {
    display: grid;
    gap: 0.22rem;
  }

  .resume-contact-row .resume-contact-item::after {
    content: none;
  }

  .ats-check-panel {
    grid-column: auto;
  }

  .section-builder-head {
    display: grid;
  }

  .chip-entry {
    max-width: none;
    width: 100%;
  }

  .chip-entry-fields {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .form-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}

/* Navigation, progress, and accessibility refinements */
.mobile-nav {
  position: relative;
  display: none;
}

.mobile-nav summary {
  min-width: 78px;
  padding: 0.58rem 0.82rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  text-align: center;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary::after {
  content: " +";
  color: var(--accent);
}

.mobile-nav[open] summary::after {
  content: " −";
}

.mobile-nav-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 1.5rem));
  gap: 0.28rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 31, 51, 0.18);
}

.mobile-nav-menu a {
  padding: 0.72rem 0.82rem;
  border-radius: 9px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu a:focus-visible {
  background: var(--surface-2);
  color: var(--accent);
}

.mobile-nav-menu .mobile-nav-cta {
  background: var(--accent);
  color: #ffffff;
}

.hero-trust {
  margin: 0.1rem 0 0;
  color: #415267;
  font-size: 0.88rem;
  font-weight: 700;
}

.builder-progress {
  display: grid;
  grid-template-columns: minmax(240px, auto) minmax(240px, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 0 0 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid #d5e1eb;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(15, 31, 51, 0.06);
}

.builder-progress-copy {
  display: grid;
  gap: 0.12rem;
}

.builder-progress-copy strong {
  color: var(--text);
  font-size: 0.96rem;
}

.builder-progress-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.builder-progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf3;
  box-shadow: inset 0 1px 2px rgba(15, 31, 51, 0.1);
}

.builder-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #1aa27f);
  transition: width 220ms ease;
}

.builder-step-tabs button.is-complete:not(.is-active) span {
  background: #dff5eb;
  color: #07624f;
}

.builder-step-tabs button.is-complete:not(.is-active) span::before {
  content: "✓";
  font-size: 0.78rem;
}

.builder-step-tabs button.is-complete:not(.is-active) span {
  font-size: 0;
}

.details-helper,
.restore-draft-prompt,
.export-readiness {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(8, 116, 94, 0.2);
  border-radius: 12px;
  background: #f2fbf7;
}

.details-helper > div,
.restore-draft-prompt > div,
.export-readiness {
  min-width: 0;
}

.details-helper strong,
.details-helper span,
.restore-draft-prompt strong,
.restore-draft-prompt span,
.export-readiness strong,
.export-readiness span {
  display: block;
}

.details-helper span,
.restore-draft-prompt span,
.export-readiness span {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.details-helper .btn,
.restore-draft-prompt .btn {
  flex: 0 0 auto;
}

.restore-draft-prompt {
  margin-top: 0.8rem;
  border-color: rgba(18, 73, 133, 0.18);
  background: #f4f8ff;
}

.quiet-btn {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.quiet-btn:hover {
  color: var(--text);
  background: rgba(24, 34, 53, 0.06);
}

.export-readiness {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.85rem;
  border-color: #e7cf9a;
  background: #fff9eb;
}

.export-readiness.is-ready {
  border-color: rgba(8, 116, 94, 0.24);
  background: #effaf5;
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid rgba(8, 116, 94, 0.25);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  .mobile-nav {
    display: block;
  }

  .builder-progress {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (max-width: 560px) {
  .details-helper,
  .restore-draft-prompt {
    display: grid;
  }

  .builder-progress {
    padding: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Structured resume content and export-quality preview */
.resume-entry-fields .entry-field-wide {
  grid-column: 1 / -1;
}

.resume-entry-fields textarea {
  min-height: 88px;
  resize: vertical;
}

.resume-preview {
  color: #162033;
  line-height: var(--resume-line-height, 1.4);
}

.resume-preview .resume-heading {
  margin-bottom: 0.8rem;
  padding-bottom: 0.7rem;
  text-align: var(--resume-header-align, left);
}

.resume-preview .resume-contact-row {
  justify-content: var(--resume-header-justify, flex-start);
}

.resume-preview .resume-contact-links {
  justify-items: var(--resume-header-items, start);
}

.resume-preview h3 {
  letter-spacing: -0.025em;
}

.resume-preview section {
  margin-top: calc(0.62rem * var(--resume-line-height, 1.4));
}

.resume-preview h4 {
  margin-bottom: 0.38rem;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid color-mix(in srgb, var(--resume-accent, #182235) 72%, transparent);
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.resume-heading-style-clean h4 {
  width: auto;
  padding-bottom: 0;
  border-bottom: 0;
  color: #273449;
}

.resume-heading-style-accent h4 {
  width: fit-content;
  padding: 0.22rem 0.48rem;
  border: 0;
  border-radius: 4px;
  background: var(--resume-accent, #0d8067);
  color: #ffffff;
  letter-spacing: 0.06em;
}

.resume-structured-entry {
  display: grid;
  gap: 0.24rem;
  margin: 0 0 0.58rem;
}

.resume-structured-entry:last-child {
  margin-bottom: 0;
}

.resume-entry-heading {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  justify-content: space-between;
  color: #172033;
  line-height: 1.3;
}

.resume-entry-heading > div {
  min-width: 0;
}

.resume-entry-heading strong,
.resume-entry-heading span {
  display: block;
}

.resume-entry-heading strong {
  font-size: 0.98em;
}

.resume-entry-heading span {
  margin-top: 0.06rem;
  color: #4b5a6e;
  font-size: 0.88em;
  font-weight: 600;
}

.resume-entry-heading time {
  flex: 0 0 auto;
  color: #4b5a6e;
  font-size: 0.84em;
  font-weight: 700;
  white-space: nowrap;
}

.resume-structured-entry ul {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.08rem;
}

.resume-preview p,
.resume-preview li {
  margin-top: 0;
  margin-bottom: 0.12rem;
}

@media (max-width: 560px) {
  .resume-entry-heading {
    display: grid;
    gap: 0.08rem;
  }

  .resume-entry-heading time {
    white-space: normal;
  }
}

/* Distinct premium resume treatments */
.resume-template-modern {
  border-top: 5px solid var(--resume-accent, #0d8067);
  border-radius: 4px;
}

.resume-template-modern .resume-heading {
  padding-left: 0.9rem;
  border-bottom: 0;
  border-left: 3px solid var(--resume-accent, #0d8067);
}

.resume-template-modern h3 {
  font-weight: 700;
  letter-spacing: -0.04em;
}

.resume-template-modern .resume-title {
  font-weight: 600;
}

.resume-template-modern h4 {
  width: fit-content;
  padding: 0 0 0.18rem;
  border-bottom-width: 2px;
  letter-spacing: 0.09em;
}

.resume-template-professional {
  border-color: #cbd5e1;
  border-radius: 2px;
}

.resume-template-professional .resume-heading {
  margin: calc(var(--resume-padding, 18px) * -1) calc(var(--resume-padding, 18px) * -1) 0.9rem;
  padding: var(--resume-padding, 18px);
  border-top: 6px solid var(--resume-accent, #0d8067);
  border-bottom: 1px solid #cbd5e1;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.resume-template-professional .resume-title {
  color: #334155;
  font-weight: 600;
}

.resume-template-professional h4 {
  color: #1e293b;
  border-color: #94a3b8;
  letter-spacing: 0.055em;
}

.resume-template-professional .resume-entry-heading strong {
  color: #0f172a;
}

/* Calm helper text: hints should guide without competing with the form */
.details-helper strong,
.export-readiness strong,
.builder-progress-copy strong {
  font-weight: 650;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.helper-title {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.personal-resume-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px dashed rgba(8, 116, 94, 0.34);
  border-radius: 12px;
  background: #f8fcfa;
}

.personal-resume-import > div > span:last-child {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
}

.personal-resume-import .import-status {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0;
}

.details-helper span,
.export-readiness span,
.import-status,
.upload-status,
.auth-note,
.payment-status {
  font-weight: 400;
}

/* Payment-ready pricing and checkout */
.checkout-card-polished {
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 18px;
  box-shadow: 0 26px 70px rgba(15, 31, 51, 0.12);
}

.checkout-plan-picker {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-plan-picker legend {
  margin-bottom: 0.55rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

.checkout-plan-option {
  position: relative;
  cursor: pointer;
}

.checkout-plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkout-plan-option > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.18rem 0.8rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #d7e1ea;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.checkout-plan-option b {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 650;
}

.checkout-plan-option small {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.checkout-plan-option strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--accent);
  font-size: 1.02rem;
}

.checkout-plan-option input:checked + span {
  border-color: var(--accent);
  background: #f0faf6;
  box-shadow: 0 10px 24px rgba(13, 128, 103, 0.1);
  transform: translateY(-1px);
}

.checkout-plan-option input:focus-visible + span {
  outline: 3px solid rgba(8, 116, 94, 0.22);
  outline-offset: 2px;
}

.checkout-plan-option.is-recommended::after {
  content: "Best value";
  position: absolute;
  top: -0.45rem;
  right: 0.8rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #0d8067;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 650;
}

.checkout-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.checkout-customer-grid label:last-child {
  grid-column: 1 / -1;
}

.checkout-customer-grid label {
  display: grid;
  gap: 0.35rem;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 550;
}

.checkout-customer-grid input {
  min-height: 46px;
  padding: 0.7rem 0.78rem;
  border: 1px solid #d6e0e9;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--text);
  font: inherit;
}

.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.checkout-total strong {
  color: var(--text);
  font-size: 1.35rem;
}

.payment-status {
  min-height: 1.35rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.payment-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.payment-trust-row span {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #526176;
  font-size: 0.7rem;
  font-weight: 500;
}

.checkout-preview-link {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 560px) {
  .personal-resume-import {
    grid-template-columns: 1fr;
  }

  .personal-resume-import .import-status {
    grid-column: auto;
  }

  .checkout-customer-grid {
    grid-template-columns: 1fr;
  }

  .checkout-customer-grid label:last-child {
    grid-column: auto;
  }
}
