html {
  box-sizing: border-box;
}

body {
  box-sizing: border-box;
  margin: 0;
  background: #fbfaf8;
  color: #17211f;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

div,
header,
footer,
main,
section,
article,
nav,
form,
input,
select,
textarea,
button,
a,
details,
summary {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 1180px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #dde5e1;
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  color: #17211f;
  font-size: 24px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 42px;
  border: 1px solid #dde5e1;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #17211f;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #53615d;
  font-size: 16px;
  font-weight: 700;
}

.main-nav > a,
.nav-dropdown-toggle {
  padding: 26px 0;
}

.main-nav a:hover,
.nav-dropdown-toggle:hover {
  color: #0f766e;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  width: 310px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dde5e1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(23, 33, 31, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #17211f;
  font-weight: 600;
}

.nav-dropdown-menu a:hover {
  background: #eef8f6;
  color: #0f766e;
}

.hero {
  padding: 70px 0 64px;
  background: #fbfaf8;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 24px;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: 66px;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #53615d;
  font-size: 20px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.hero-point {
  padding: 12px;
  background: #eef8f6;
  border: 1px solid #d3e8e3;
  border-radius: 8px;
  color: #123c38;
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: #eef8f6;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: #53615d;
  font-size: 18px;
}

.calculator-card,
.result-card,
.content-card,
.faq-card {
  background: #ffffff;
  border: 1px solid #dde5e1;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23, 33, 31, 0.05);
}

.calculator-card {
  padding: 28px;
}

.tool-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
}

.tool-subtitle {
  margin: 0 0 18px;
  color: #53615d;
}

.form-grid {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
  color: #53615d;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d6e0dc;
  border-radius: 8px;
  background: #ffffff;
  color: #17211f;
  font: inherit;
  padding: 10px 12px;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.optional-text {
  color: #7b8783;
  font-size: 13px;
  font-weight: 400;
}

.shoulder-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #53615d;
  font-weight: 600;
}

.shoulder-check input {
  width: 18px;
  height: 18px;
}

.shoulder-field {
  display: none;
}

.shoulder-field.is-visible {
  display: grid;
}

.form-grid .button {
  width: 100%;
}

.button,
button.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 14px 22px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
}

.button:hover,
button.button:hover {
  background: linear-gradient(135deg, #0a5f59 0%, #0f766e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45);
}

.button:active,
button.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}

/* Reset button styling */
button.button[id="resetBtn"],
#resetBtn {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  box-shadow: 0 4px 14px rgba(55, 65, 81, 0.3);
  letter-spacing: 0.02em;
  font-size: 15px;
}

button.button[id="resetBtn"]:hover,
#resetBtn:hover {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  box-shadow: 0 6px 20px rgba(55, 65, 81, 0.4);
  transform: translateY(-2px);
}

.result-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 20px;
}

.shape-icon {
  width: 74px;
  height: 98px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
}

.shape-icon.hourglass { background-image: url("/assets/images/shapes/hourglass.svg"); }
.shape-icon.pear      { background-image: url("/assets/images/shapes/pear.svg"); }
.shape-icon.inverted  { background-image: url("/assets/images/shapes/inverted-triangle.svg"); }
.shape-icon.rectangle { background-image: url("/assets/images/shapes/rectangle.svg"); }
.shape-icon.apple     { background-image: url("/assets/images/shapes/apple.svg"); }
.shape-icon.spoon     { background-image: url("/assets/images/shapes/spoon.svg"); }
.shape-icon.triangle  { background-image: url("/assets/images/shapes/triangle.svg"); }

.result-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.result-text {
  margin: 8px 0 0;
  color: #53615d;
}

.result-meta {
  margin: 10px 0 0;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 18px;
}

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

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

.content-card {
  display: block;
  padding: 22px;
}

.content-card:hover {
  border-color: #0f766e;
}

.card-icon {
  width: 70px;
  height: 90px;
  margin-bottom: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
}

.card-icon           { background-image: url('/assets/images/shapes/hourglass.svg'); }
.card-icon.pear      { background-image: url('/assets/images/shapes/pear.svg'); }
.card-icon.inverted  { background-image: url('/assets/images/shapes/inverted-triangle.svg'); }
.card-icon.rectangle { background-image: url('/assets/images/shapes/rectangle.svg'); }
.card-icon.apple     { background-image: url('/assets/images/shapes/apple.svg'); }
.card-icon.spoon     { background-image: url('/assets/images/shapes/spoon.svg'); }
.card-icon.triangle  { background-image: url('/assets/images/shapes/triangle.svg'); }

.content-card p {
  margin: 0;
  color: #53615d;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-card {
  padding: 18px 20px;
}

.faq-card summary {
  cursor: pointer;
  color: #17211f;
  font-size: 18px;
  font-weight: 800;
}

.faq-card p {
  margin: 10px 0 0;
  color: #53615d;
}

.site-footer {
  width: 100%;
  overflow: hidden;
  background: #111a18;
  color: #ecf4f1;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.footer-brand p {
  max-width: 360px;
  margin: 12px 0 0;
  color: #b9c7c3;
}

.footer-logo {
  color: #ffffff;
}

.footer-column {
  display: block;
  min-width: 0;
}

.footer-column h2,
.footer-column h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 17px;
}

.footer-column a {
  display: block;
  max-width: 230px;
  margin: 0 0 8px;
  color: #b9c7c3;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b9c7c3;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .main-nav {
    display: none;
    width: 100%;
    padding: 8px 0 16px;
    border-top: 1px solid #dde5e1;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav > a,
  .nav-dropdown,
  .nav-dropdown-toggle {
    display: block;
    width: 100%;
  }

  .main-nav > a,
  .nav-dropdown-toggle {
    padding: 12px 0;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    width: 100%;
    padding: 4px 0 8px 14px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    padding: 54px 0;
  }

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

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 34px;
  }

  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-column a {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
    .hero {
  padding: 36px 0;
}
  .container {
    max-width: calc(100% - 24px);
  }

  .hero-points,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .calculator-card {
    padding: 20px;
  }

  h1 {
    font-size: 36px;
  line-height: 1.05;
  }

  h2 {
    font-size: 30px;
  }

  .tool-title {
    font-size: 24px;
  }
}
