:root {
  --forest: #063d22;
  --forest-deep: #032916;
  --green: #008f5a;
  --mint: #dff2e8;
  --orange: #ff8618;
  --orange-soft: #fff0df;
  --cream: #f8f4ed;
  --paper: #fffdf9;
  --ink: #0d2a1c;
  --muted: #6f7b72;
  --line: #e8dfd2;
  --shadow: 0 24px 70px rgba(6, 61, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 134, 24, 0.12), transparent 32%),
    linear-gradient(135deg, #fbf7f0 0%, #f4efe7 100%);
  font-family:
    Pretendard,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    system-ui,
    sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
}

.hero {
  min-height: 92vh;
  padding: 28px clamp(20px, 5vw, 72px) 64px;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto 54px;
}

.brand,
.primary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand {
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-grid {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 15px;
  font-weight: 900;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.08;
  font-weight: 950;
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #355242;
  font-size: 20px;
  line-height: 1.62;
  font-weight: 650;
}

.hero-lead span {
  display: block;
  white-space: nowrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.primary-button,
.submit-button {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: white;
  padding: 0 28px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(255, 134, 24, 0.28);
  cursor: pointer;
}

.availability {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #00b66a;
}

.app-preview {
  margin: 0;
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid rgba(6, 61, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.72);
  box-shadow: var(--shadow);
}

.app-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(6, 61, 34, 0.12);
}

.waitlist-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 0px) 96px;
}

.section-copy {
  align-self: start;
  position: sticky;
  top: 28px;
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  font-weight: 950;
}

.section-copy p:last-child {
  margin: 18px 0 0;
  color: #455a4d;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 650;
}

.waitlist-form {
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(6, 61, 34, 0.1);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

label,
legend {
  font-weight: 900;
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  border: 1px solid #d9d1c5;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 14px 15px;
  outline: 0;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.email-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(150px, 0.82fr);
  gap: 8px;
  align-items: center;
}

.email-at {
  color: var(--muted);
  font-weight: 900;
}

#emailDomainOther {
  display: none;
  grid-column: 1 / -1;
}

#emailDomainOther.is-visible {
  display: block;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 143, 90, 0.12);
}

fieldset {
  min-width: 0;
  border: 0;
  padding: 0;
}

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

.subscription-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 10px;
}

.purpose-group {
  grid-template-columns: 1fr;
}

.group legend,
.subscription-group legend,
.purpose-group legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.choice,
.privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #e7dfd4;
  border-radius: 8px;
  background: white;
  padding: 12px;
  color: #24392d;
  font-weight: 750;
}

.subscription-group .other-choice {
  grid-column: 1 / -1;
}

.subscription-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid #e7dfd4;
  border-radius: 8px;
  background: rgba(223, 242, 232, 0.38);
}

.subscription-detail[hidden] {
  display: none;
}

.subscription-detail p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.detail-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(0, 143, 90, 0.16);
  border-radius: 8px;
  background: white;
  color: #24392d;
  font-size: 14px;
  font-weight: 800;
}

.purpose-group .choice {
  white-space: nowrap;
}

.choice input[type="checkbox"],
.detail-choice input[type="checkbox"],
.privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.other-choice {
  align-items: stretch;
  flex-wrap: wrap;
}

.other-choice input[type="text"] {
  flex: 1 1 170px;
  min-width: 0;
  padding: 10px 12px;
}

.other-choice input[type="text"]:disabled {
  background: #f3eee6;
  color: #9a9186;
}

.privacy {
  align-items: flex-start;
  margin-bottom: 22px;
  color: #4e5f54;
  line-height: 1.55;
}

.privacy small {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.submit-button {
  width: 100%;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--green);
  font-weight: 900;
  text-align: center;
}

.form-message.error {
  color: #bc3d16;
}

.site-footer {
  border-top: 1px solid rgba(6, 61, 34, 0.1);
  background: rgba(255, 253, 249, 0.74);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #455a4d;
}

.footer-inner strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.footer-inner p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.footer-info {
  display: grid;
  grid-template-columns: minmax(72px, 0.7fr) minmax(230px, 1.55fr) minmax(150px, 1fr);
  gap: 16px;
  margin: 0;
}

.footer-info div {
  min-width: 0;
}

.footer-info dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.footer-info dd {
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.footer-info a[href^="mailto:"] {
  white-space: nowrap;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .waitlist-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .app-preview {
    max-width: 760px;
  }

  .section-copy {
    position: static;
  }

  .hero-lead {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 20px;
  }

  .topbar {
    margin-bottom: 40px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 14px;
  }

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

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

  .subscription-detail {
    grid-template-columns: 1fr;
  }

  .purpose-group .choice {
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .email-composer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  #emailDomain {
    grid-column: 1 / -1;
  }

  .footer-info {
    grid-template-columns: 1fr;
  }

  .footer-info a[href^="mailto:"] {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .hero-lead {
    font-size: 13px;
  }
}
