:root {
  --green: #1b7a4c;
  --green-dark: #0c6b3a;
  --green-deeper: #085c31;
  --green-soft: #e7f4ec;
  --green-line: #c5dfd0;
  --green-dash: #7cbf98;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --page: #eef4f0;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(12, 80, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(27, 122, 76, 0.08), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(27, 122, 76, 0.1), transparent 40%),
    var(--page);
}

.site {
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 24px;
  margin-bottom: 20px;
}

.page {
  flex: 1;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  min-height: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.panel--coupon {
  flex: 1 1 0;
  align-self: stretch;
}

.panel--signin {
  flex: 1 1 0;
  height: fit-content;
  align-self: flex-start;
}

.panel--coupon,
.panel--signin {
  padding: 28px 36px 22px;
  display: flex;
  flex-direction: column;
}

.panel--coupon {
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0;
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
}

.brand-name {
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 4px auto 8px;
}

.headline {
  margin: 6px 0 8px;
  font-size: clamp(1.4rem, 5vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.subhead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.coupon {
  display: flex;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border: 2px dashed var(--green-dash);
  border-radius: 14px;
  overflow: hidden;
  min-height: 56px;
}

.coupon-code,
.coupon-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
}

.coupon-code {
  flex: 1.35;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.92rem;
  border-radius: 10px 0 0 10px;
}

.coupon-amount {
  flex: 1;
  background: #fff;
  color: var(--green-dark);
  font-size: 0.88rem;
}

.coupon-hint {
  margin: 10px 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.perks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 28px 0 8px;
  margin: 8px 0 0;
}

.perks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  position: relative;
}

.perks li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e4e4e4;
}

.perk-icon {
  width: 36px;
  height: 36px;
  color: var(--green);
}

.perk-icon svg {
  width: 100%;
  height: 100%;
}

.disclaimer {
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  margin-top: auto;
  border-top: 1px solid #ececec;
  font-size: 0.88rem;
}

.legal a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.legal a:hover {
  text-decoration: underline;
}

.legal span {
  color: var(--green);
}

.signin-title {
  margin: 6px 0 8px;
  font-size: clamp(1.4rem, 5vw, 2.15rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  overflow-wrap: break-word;
}

.signin-copy {
  margin: 0 0 22px;
  color: var(--muted);
  text-align: center;
}

.signin-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signin-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--green-line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.signin-btn:hover {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 6px 16px rgba(12, 80, 42, 0.08);
}

.signin-btn:focus-visible {
  outline: 3px solid rgba(27, 122, 76, 0.35);
  outline-offset: 2px;
}

.signin-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.signin-logo svg {
  width: 24px;
  height: 24px;
}

.signin-btn--email {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.signin-btn--email:hover {
  background: var(--green-deeper);
  border-color: var(--green-deeper);
  color: #fff;
}

.signin-btn--email .signin-logo {
  color: #fff;
}

@media (max-width: 900px) {
  .site {
    padding: 16px;
  }

  .page {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 16px;
  }

  .panel--coupon {
    display: contents;
  }

  .coupon {
    order: 1;
    flex-direction: column;
    width: 100%;
    max-width: none;
    background: var(--card);
  }

  .coupon-hint {
    order: 2;
    margin: 0 0 0;
    text-align: center;
  }

  .panel--signin {
    order: 3;
    flex: 0 0 auto;
    align-self: stretch;
    height: auto;
    padding: 24px 18px;
  }

  .coupon-intro,
  .coupon-after {
    order: 4;
    background: var(--card);
    border: 1px solid var(--green-line);
    box-shadow: var(--shadow);
    padding: 24px 18px;
  }

  .coupon-intro {
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 0;
    box-shadow: none;
    padding-bottom: 8px;
  }

  .coupon-after {
    border-radius: 0 0 var(--radius) var(--radius);
    border-top: 0;
    margin-top: -16px;
    padding-top: 8px;
  }

  .coupon-code,
  .coupon-amount {
    font-size: 0.85rem;
    padding: 12px 10px;
  }

  .coupon-code {
    border-radius: 10px 10px 0 0;
  }

  .headline {
    font-size: 1.55rem;
    padding: 0 4px;
  }

  .signin-title {
    font-size: 1.55rem;
  }
}
