:root {
  --background: #f7f5f1;
  --surface: #ffffff;
  --text: #202020;
  --muted: #77736d;
  --border: #dedbd5;
  --accent: #d95f8a;
  --accent-dark: #bd4770;
  --soft: #f1e5e9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.page {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 50px;
}


/* =========================
   HERO
   ========================= */

.hero {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(52px, 10vw, 82px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h1 span {
  color: var(--accent);
}

.subtitle {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
}


/* =========================
   CALCULATOR
   ========================= */

.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.04);
}

.field {
  margin-bottom: 28px;
}

.field label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 650;
}


/* =========================
   MONEY INPUT
   ========================= */

.money-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.money-input:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px rgba(217, 95, 138, 0.10);
}

.money-input span {
  padding-left: 17px;
  color: var(--muted);
  font-size: 21px;
}

.money-input input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 16px 17px 16px 8px;
  background: transparent;
  color: var(--text);
  font-size: 21px;
  font-family: inherit;
}

.money-input input::-webkit-outer-spin-button,
.money-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.money-input input[type="number"] {
  appearance: textfield;
}


/* =========================
   INPUT ERROR
   ========================= */

.input-error {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--accent-dark);
  font-size: 12px;
}


/* =========================
   CONTENT TYPE BUTTONS
   ========================= */

.type-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.type-button {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.type-button:hover {
  border-color: var(--accent);
}

.type-button.active {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}


/* =========================
   CALCULATE BUTTON
   ========================= */

.calculate-button {
  width: 100%;
  padding: 17px;
  border: 0;
  border-radius: 13px;
  background: var(--text);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.2s;
}

.calculate-button:hover {
  background: var(--accent-dark);
}

.calculate-button:active {
  transform: scale(0.985);
}


/* =========================
   RESULT
   ========================= */

.result {
  margin-top: 22px;
  padding: 42px 30px;
  border-radius: 24px;
  background: var(--soft);
  text-align: center;
  animation: appear 0.4s ease;
}

.hidden {
  display: none;
}

.result-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}

.result h2 {
  margin: 0;
  color: var(--text);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(48px, 10vw, 72px);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.result-unit {
  margin: 4px 0 22px;
  font-size: 17px;
  font-weight: 650;
}

.daily-result {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 14px;
}

.daily-result strong {
  color: var(--text);
}

.rpm-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}


/* =========================
   EXPLAINER
   ========================= */

.explainer {
  padding: 45px 10px 20px;
}

.explainer h3 {
  margin: 0 0 12px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 25px;
  font-weight: 400;
}

.explainer p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}


/* =========================
   FOOTER
   ========================= */

footer {
  padding: 25px 10px 0;
  color: #99958f;
  font-size: 11px;
  text-align: center;
}


/* =========================
   ANIMATION
   ========================= */

@keyframes appear {

  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 520px) {

  .page {
    width: min(100% - 28px, 680px);
    padding-top: 60px;
  }

  .calculator {
    padding: 24px;
    border-radius: 20px;
  }

  .result {
    padding: 34px 20px;
  }

  .hero {
    margin-bottom: 34px;
  }

  .subtitle {
    font-size: 16px;
  }

}

/* =========================
   SEO CONTENT
   ========================= */

.seo-content {
  padding: 45px 10px 20px;
}

.seo-content > h2 {
  margin: 0 0 30px;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.seo-content article {
  margin-bottom: 32px;
}

.seo-content article h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.4;
}

.seo-content article p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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