:root {
  --paper: #f5f1e9;
  --ink: #17231f;
  --lime: #c9f85a;
  --coral: #f36f56;
  --muted: #66716d;
  --line: #d8d3c9;
  --panel: #25312d;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}
main {
  min-height: calc(100vh - 82px);
  padding: 7vh 6vw;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(700px, 1.7fr);
  gap: 5vw;
  align-items: center;
}
.intro {
  max-width: 570px;
}
.badge {
  display: inline-block;
  background: var(--coral);
  color: white;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 900;
  margin: 23px 0 12px;
}
.intro h1 {
  font-size: clamp(55px, 6vw, 102px);
  line-height: 0.92;
  letter-spacing: -0.075em;
  margin: 0;
  font-weight: 900;
}
.intro h1 span {
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: var(--coral);
  font-weight: 700;
  white-space: nowrap;
}
.lead {
  max-width: 540px;
  color: #4e5955;
  font-size: 16px;
  line-height: 1.9;
  margin: 32px 0;
}
.hint {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.hint span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--coral);
  font-size: 17px;
}
.calculator {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--ink);
  color: white;
  box-shadow: 18px 18px 0 rgba(23, 35, 31, 0.12);
}
.calc-form {
  padding: 40px;
}
.form-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.form-heading > span {
  width: 38px;
  height: 38px;
  border: 1px solid var(--lime);
  color: var(--lime);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.form-heading p,
.result-card > p {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--lime);
  font-weight: 900;
  margin: 0 0 4px;
}
.form-heading h2 {
  font-size: 22px;
  margin: 0;
}
.task-inputs {
  display: grid;
  gap: 10px;
}
.task-input {
  display: grid;
  grid-template-columns: 32px 1fr 138px;
  align-items: center;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px;
}
.task-input > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--lime);
  color: var(--lime);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.task-input input {
  background: transparent;
  border: 0;
  color: white;
  outline: none;
  min-width: 0;
}
.task-input input::placeholder {
  color: #87918d;
}
.task-input label {
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 13px;
}
.task-input label input {
  width: 56px;
  font-size: 20px;
  font-weight: 800;
}
.task-input em {
  font-style: normal;
  font-size: 11px;
  color: #aeb7b3;
}
.revenue-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}
.revenue-inputs > label:first-child {
  grid-column: 1/-1;
}
.revenue-inputs label > span {
  font-size: 11px;
  color: #b4bcb9;
  display: block;
  margin-bottom: 7px;
}
.revenue-inputs label div {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  padding: 0 15px;
}
.revenue-inputs input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: white;
  font-size: 19px;
  font-weight: 700;
}
.revenue-inputs i {
  font-style: normal;
  color: var(--lime);
  font-size: 11px;
  white-space: nowrap;
}
.privacy {
  font-size: 10px;
  color: #919c98;
  margin: 22px 0 0;
}
.result-card {
  position: relative;
  background: var(--lime);
  color: var(--ink);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.result-card > p {
  color: var(--ink);
}
.result-card h2 {
  font-size: 27px;
  line-height: 1.25;
  margin: 10px 0 25px;
}
.result-block {
  border-top: 1px solid rgba(23, 35, 31, 0.22);
  padding: 15px 0;
}
.result-block small,
.result-block em {
  display: block;
}
.result-block small {
  font-size: 11px;
}
.result-block strong {
  display: block;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.result-block em {
  font-size: 10px;
  font-style: normal;
  color: #596555;
}
.result-block.money strong {
  font-size: 27px;
}
.result-block.hourly {
  background: rgba(255, 255, 255, 0.38);
  margin: 4px -14px 0;
  padding: 15px 14px;
  border-top: 0;
}
.result-block.hourly strong {
  font-size: 28px;
}
.result-block.hourly b {
  font-size: 12px;
  letter-spacing: 0;
}
.result-card button {
  width: 100%;
  margin-top: auto;
  background: var(--ink);
  color: white;
  border: 0;
  padding: 15px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s;
}
.result-card button:hover {
  transform: translateY(-2px);
}
.result-card button span {
  color: var(--lime);
}
.toast {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: white;
  padding: 7px 12px;
  font-size: 10px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
footer {
  height: 82px;
  padding: 0 6vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
footer span {
  font-weight: 900;
  letter-spacing: 0.18em;
}
footer p {
  color: var(--muted);
}
input[type="number"] {
  appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button {
  opacity: 0.35;
}
@media (max-width: 1150px) {
  main {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }
  .intro {
    max-width: 800px;
  }
  .intro h1 {
    font-size: 70px;
  }
  .calculator {
    max-width: 950px;
  }
  .hint {
    display: none;
  }
}
@media (max-width: 760px) {
  main {
    padding: 45px 5vw 60px;
  }
  .intro h1 {
    font-size: 53px;
  }
  .intro .lead {
    font-size: 14px;
  }
  .calculator {
    grid-template-columns: 1fr;
    box-shadow: 10px 10px 0 rgba(23, 35, 31, 0.12);
  }
  .calc-form,
  .result-card {
    padding: 28px 20px;
  }
  .result-card {
    min-height: 540px;
  }
  .task-input {
    grid-template-columns: 27px 1fr;
  }
  .task-input label {
    grid-column: 2;
    margin-top: 6px;
    border-left: 0;
    padding-left: 0;
  }
  .revenue-inputs {
    grid-template-columns: 1fr;
  }
  .revenue-inputs > label:first-child {
    grid-column: auto;
  }
  .result-block strong {
    font-size: 28px;
  }
  footer {
    height: auto;
    padding: 28px 5vw;
    display: block;
    text-align: center;
  }
  footer p {
    margin-bottom: 0;
  }
}

.featured-result {
  margin: 6px -18px;
  padding: 18px 16px 20px;
  border: 4px solid var(--ink);
  background: #fff;
  box-shadow: 6px 6px 0 rgba(23, 35, 31, 0.2);
}
.featured-result small {
  font-size: 12px;
  font-weight: 900;
}
.featured-result strong {
  margin: 7px 0;
  font-size: clamp(36px, 3.2vw, 50px) !important;
  line-height: 1.15;
  white-space: nowrap;
}
.featured-result em {
  font-weight: 700;
}
.result-block.hourly {
  margin: 0;
  padding: 13px 0;
  border-top: 0;
  background: transparent;
}
.saved-time-result {
  margin: 0 0 12px;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.saved-time-result small {
  color: var(--ink);
  font-weight: 800;
}
.saved-time-result strong {
  color: var(--ink);
  font-size: 38px;
}
.saved-time-result em {
  color: #596555;
}
@media (max-width: 760px) {
  .featured-result {
    margin: 6px -8px;
    padding: 16px 12px;
  }
  .featured-result strong {
    font-size: 34px !important;
  }
}
