:root {
  --bg: #f7f1e7;
  --bg-soft: #fffaf1;
  --surface: rgba(255, 251, 245, 0.92);
  --surface-strong: #ffffff;
  --ink: #163043;
  --ink-soft: #4f6472;
  --line: rgba(22, 48, 67, 0.12);
  --line-strong: rgba(22, 48, 67, 0.2);
  --brand: #ff7a18;
  --brand-deep: #c44c0a;
  --accent: #0f9b8e;
  --accent-deep: #0c6e66;
  --danger: #b9382d;
  --warning: #d97706;
  --success: #157347;
  --shadow: 0 24px 60px rgba(24, 41, 56, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 24, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(15, 155, 142, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf5eb 0%, #f4efe6 55%, #f9f4ec 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 48, 67, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 48, 67, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 92%);
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-deep);
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.container {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 241, 231, 0.78);
  border-bottom: 1px solid rgba(22, 48, 67, 0.08);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #ffb347);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(15, 155, 142, 0.1);
  color: var(--accent-deep);
  transform: translateY(-1px);
}

.site-nav-lang {
  position: relative;
  margin-left: 0.2rem;
  padding-left: 0.45rem;
  border-left: 1px solid rgba(22, 48, 67, 0.12);
}

.site-nav-lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.site-nav-lang summary::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.site-nav-lang[open] summary,
.site-nav-lang summary:hover,
.site-nav-lang summary:focus-visible {
  background: rgba(255, 122, 24, 0.12);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.site-nav-lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 12.5rem;
  display: grid;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: 1rem;
  background: rgba(255, 251, 245, 0.98);
  border: 1px solid rgba(22, 48, 67, 0.1);
  box-shadow: 0 18px 36px rgba(24, 41, 56, 0.14);
  z-index: 30;
}

.site-nav-lang-menu a {
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
}

.site-nav-lang-menu a[aria-current="page"] {
  background: rgba(255, 122, 24, 0.12);
  color: var(--brand-deep);
  transform: none;
}

.hero {
  padding: 2.6rem 0 1.4rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

.hero-grid--single {
  justify-items: center;
}

.hero-grid--single > .hero-panel {
  width: min(100%, 900px);
}

.hero-grid--two {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-soft {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.hero-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.page-home .hero-panel {
  padding: clamp(1.6rem, 3vw, 2.35rem);
}

.hero-emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-emblem-ring {
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.9));
  border: 1px solid rgba(22, 48, 67, 0.1);
  box-shadow: 0 18px 36px rgba(24, 41, 56, 0.12);
}

.hero-emblem-logo {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(24, 41, 56, 0.18);
}

.page-home .hero h1 {
  margin-top: 0;
}

.page-home .hero-copy {
  text-align: center;
}

.page-home .hero-copy p {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 122, 24, 0.1);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1,
.page-intro h1 {
  margin: 1rem 0 0.65rem;
  font-size: clamp(2.1rem, 6vw, 4.35rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

.hero p,
.page-intro p,
.support-copy p,
.faq p,
.stat-note,
.calc-note,
.footer-copy {
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 1.5rem;
}

.form-stack,
.calc-form {
  display: grid;
  gap: 1rem;
}

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

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

.field {
  display: grid;
  gap: 0.42rem;
}

.field label,
.fieldset-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(15, 155, 142, 0.55);
  box-shadow: 0 0 0 5px rgba(15, 155, 142, 0.12);
  transform: translateY(-1px);
}

.field small,
.helper {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.button,
button[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 3.4rem;
  padding: 0.95rem 1.4rem;
  background: linear-gradient(135deg, var(--brand), #ffb347);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(255, 122, 24, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover,
button[type="submit"]:hover,
.button:focus-visible,
button[type="submit"]:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(255, 122, 24, 0.34);
  filter: saturate(1.05);
}

.button-secondary {
  background: linear-gradient(135deg, var(--accent), #33c7b9);
  box-shadow: 0 14px 28px rgba(15, 155, 142, 0.24);
}

.mini-stats {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.mini-stat {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(22, 48, 67, 0.08);
}

.mini-stat strong {
  font-size: 1rem;
}

.mini-stat span {
  color: var(--ink-soft);
}

.section {
  padding: 1.45rem 0 3.25rem;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  letter-spacing: -0.03em;
}

.section-copy {
  max-width: 60rem;
}

.result-shell,
.calculator-shell {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.result-banner,
.alert {
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  border: 1px solid rgba(22, 48, 67, 0.08);
}

.alert-error {
  background: rgba(185, 56, 45, 0.08);
  border-color: rgba(185, 56, 45, 0.22);
  color: #70241d;
}

.alert-warning {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.22);
  color: #8d4e08;
}

.alert-success {
  background: rgba(21, 115, 71, 0.1);
  border-color: rgba(21, 115, 71, 0.2);
  color: #0f5b38;
}

.loading-card {
  padding: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

.loading-bar {
  height: 0.65rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(22, 48, 67, 0.08);
}

.loading-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #ffb347, var(--accent));
  animation: pulse-slide 1.2s ease-in-out infinite;
}

@keyframes pulse-slide {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(320%);
  }
}

.profile-card,
.earning-card,
.metrics-card,
.secondary-result-card,
.faq-card,
.support-card {
  padding: 1.25rem;
}

.profile-card {
  display: grid;
  gap: 1rem;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(15, 155, 142, 0.18));
  border: 2px solid rgba(255, 255, 255, 0.65);
}

.avatar-fallback {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-deep);
}

.profile-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.profile-heading h2,
.result-number {
  margin: 0;
}

.username {
  color: var(--ink-soft);
  font-weight: 600;
}

.badge-row,
.result-badges,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(15, 155, 142, 0.1);
  color: var(--accent-deep);
}

.badge-warm {
  background: rgba(255, 122, 24, 0.1);
  color: var(--brand-deep);
}

.badge-neutral {
  background: rgba(22, 48, 67, 0.08);
  color: var(--ink);
}

.badge-danger {
  background: rgba(185, 56, 45, 0.1);
  color: #70241d;
}

.earning-card {
  display: grid;
  gap: 0.65rem;
  background: linear-gradient(160deg, rgba(255, 122, 24, 0.11), rgba(15, 155, 142, 0.08));
}

.label {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  font-size: 0.82rem;
}

.earnings-range {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

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

.metric-tile,
.info-tile {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 48, 67, 0.08);
}

.metric-tile strong,
.info-tile strong,
.secondary-value {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.metric-tile span,
.info-tile span,
.secondary-label {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.disclaimer {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(22, 48, 67, 0.05);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.94rem;
}

.split-section {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
}

.seo-content {
  width: 100%;
  padding: clamp(1.35rem, 3vw, 2.35rem);
  background: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
}

.seo-content > :first-child {
  margin-top: 0;
}

.seo-content > :last-child {
  margin-bottom: 0;
}

.seo-content h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: clamp(1.45rem, 2.9vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.seo-content h3 {
  margin: 1.45rem 0 0.55rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.seo-content p,
.seo-content li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.seo-content p {
  margin: 0 0 1rem;
}

.seo-content strong {
  color: var(--ink);
}

.seo-content ol {
  margin: 0.85rem 0 1.1rem;
  padding-left: 1.3rem;
}

.seo-content li + li {
  margin-top: 0.45rem;
}

.support-list,
.faq-list,
.feature-list {
  display: grid;
  gap: 0.85rem;
}

.support-card h3,
.faq-card h3,
.feature-card h3,
.related-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

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

.feature-card,
.related-card {
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 42px rgba(24, 41, 56, 0.08);
}

.related-card a {
  text-decoration: none;
  color: var(--ink);
}

.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(22, 48, 67, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq details[open] {
  box-shadow: 0 16px 36px rgba(24, 41, 56, 0.07);
}

.page-intro {
  padding: 2.6rem 0 0.8rem;
}

.calculator-panel {
  padding: 1.35rem;
}

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

.secondary-results {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

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

.secondary-result-card {
  display: grid;
  gap: 0.9rem;
}

.formula-box {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 122, 24, 0.07);
  border: 1px solid rgba(255, 122, 24, 0.16);
  color: var(--ink);
}

.formula-box code {
  font-size: 0.95rem;
}

.site-footer {
  padding: 0.5rem 0 2.4rem;
}

.footer-card {
  padding: 1.15rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--ink);
  font-weight: 600;
}

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

@media (max-width: 980px) {
  .hero-grid--two,
  .split-section,
  .feature-grid,
  .related-grid,
  .grid-3,
  .grid-4,
  .secondary-result-grid,
  .calc-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 740px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--content));
  }

  .hero {
    padding-top: 1.6rem;
  }

  .hero-panel,
  .calculator-panel,
  .profile-card,
  .earning-card,
  .metrics-card,
  .faq-card,
  .support-card,
  .footer-card {
    padding: 1rem;
  }

  .brand-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 14px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .site-nav-lang {
    position: static;
  }

  .site-nav-lang-menu {
    position: static;
    margin-top: 0.35rem;
    min-width: 11rem;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    white-space: nowrap;
  }

  .profile-top {
    align-items: flex-start;
  }

  .avatar {
    width: 4rem;
    height: 4rem;
  }

  .earnings-range {
    font-size: 1.9rem;
  }
}
