:root {
  color-scheme: light;
  --ink: #1b1d1f;
  --muted: #62686d;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --line: #ded8ce;
  --teal: #14746f;
  --coral: #d95d4f;
  --yellow: #d8a536;
  --blue: #234d6f;
  --shadow: 0 18px 46px rgba(27, 29, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(16px, 5vw, 56px);
  border-bottom: 1px solid rgba(222, 216, 206, 0.8);
  background: rgba(247, 245, 240, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
}

.brand span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--teal), var(--coral));
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

nav a:hover {
  background: #ebe5dc;
  color: var(--ink);
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: center;
  padding: 42px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 16px 30px rgba(20, 116, 111, 0.22);
}

.button--quiet {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.button--secondary {
  width: 100%;
  background: var(--blue);
  color: #fff;
}

.hero__visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.trust-strip div {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 20px;
  background: var(--surface);
}

.trust-strip strong {
  font-size: 1.2rem;
}

.trust-strip span,
.tool p,
.tips p,
.notice p,
footer {
  color: var(--muted);
  line-height: 1.65;
}

.ad-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #d7c8b2;
  border-radius: 8px;
  padding: 18px 20px;
  background: #fff8ea;
  box-shadow: 0 10px 26px rgba(216, 165, 54, 0.12);
}

.ad-banner span,
.ad-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(27, 29, 31, 0.08);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.ad-banner strong,
.ad-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.ad-banner p,
.ad-card p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.ad-banner a,
.ad-card a {
  justify-self: end;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 48px 0 70px;
}

.section-heading {
  padding: 70px 0 0;
}

.section-heading h2,
.tips h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:last-child {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}

.tool {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(27, 29, 31, 0.06);
}

.tool__header h2,
.tips h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.ad-card {
  min-height: 240px;
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px dashed #d7c8b2;
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  background: #fff8ea;
}

.ad-card--warm {
  border-color: #e0b9b2;
  background: #fff5f2;
}

.ad-card a {
  justify-self: start;
  margin-top: 4px;
}

.tool__header p:last-child {
  margin-bottom: 0;
}

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

.calculator label {
  display: grid;
  gap: 7px;
  color: #363a3d;
  font-size: 0.92rem;
  font-weight: 800;
}

.calculator input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fbfaf7;
  color: var(--ink);
}

.calculator input:focus {
  outline: 3px solid rgba(20, 116, 111, 0.18);
  border-color: var(--teal);
}

.calculator button {
  grid-column: 1 / -1;
}

.result {
  min-height: 126px;
  display: grid;
  gap: 8px;
  align-content: center;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  font-size: 0.96rem;
}

.metric strong {
  color: var(--teal);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.result-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tips {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  padding: 28px 0 44px;
}

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

.tips__cards article {
  border-top: 4px solid var(--yellow);
  padding-top: 18px;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: #fffcf4;
}

.notice p {
  margin: 0;
}

footer {
  width: min(1160px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 36px 0 44px;
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .trust-strip,
  .tool-grid,
  .tips,
  .tips__cards {
    display: block;
  }

  .hero {
    min-height: 0;
  }

  h1 {
    max-width: 9ch;
  }

  .hero__visual,
  .ad-banner,
  .trust-strip div,
  .tool,
  .ad-card,
  .tips__cards article {
    margin-top: 14px;
  }

  .ad-banner {
    grid-template-columns: 1fr;
  }

  .ad-banner a {
    justify-self: start;
  }

  .trust-strip {
    border-radius: 8px;
    overflow: hidden;
  }

  .tool-grid {
    padding-top: 30px;
  }

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

  footer {
    flex-direction: column;
  }
}
