@font-face { font-family: Nunito; src: local('Nunito'); }
:root { color-scheme: light; --ink: #243d30; --muted: #516553; --moss: #355d44; --border: #d5decc; --cream: #fcfbf3; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #edf1e7; color: var(--ink); font: 500 15px/1.5 Nunito, system-ui, sans-serif; }
main { max-width: 1204px; margin: auto; padding: 0 26px 38px; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #a27532; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.join-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; color: #31553c; }
.join-nav a { text-decoration: none; font-weight: 750; }
.join-nav a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand img { flex: none; border-radius: 50%; }

.layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 19px; align-items: stretch; }
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 555px;
  padding: clamp(23px, 4vw, 51px);
  border-radius: 22px;
  background: #233d2f;
  color: #fff3d8;
}
.intro img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.intro::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(180deg, #21392ce9 0%, #233d2f79 28%, #233d2f12 49%, #20382cd9 100%); }
.intro h1 {
  margin: 0;
  color: #fff4d9;
  font: 500 clamp(3.7rem, 7vw, 6.3rem)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.055em;
}
.intro-top p { margin: 14px 0 0; max-width: 24ch; font-size: clamp(1rem, 2.5vw, 1.15rem); }
.intro-bottom p { margin: 10px 0 0; color: #fff3db; font-size: .87rem; }
.tour-link { display: inline-flex; align-items: center; gap: .65em; min-height: 44px; padding: 9px 13px; border: 1px solid #fff1ae50; border-radius: 9px; background: #243d30e6; color: #fff2cf; text-decoration: none; font-weight: 800; }
.tour-link:hover { background: #3c5d42; }

.card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(22px, 3.7vw, 43px); border: 1px solid var(--border); border-radius: 22px; background: var(--cream); box-shadow: 0 15px 34px #24423110; }
.card h2 { margin: 0 0 17px; font: 500 clamp(1.8rem, 3.6vw, 2.45rem)/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.crops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.crops label { position: relative; min-width: 0; cursor: pointer; }
.crops input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.crops label > span { display: flex; align-items: center; gap: 7px; min-height: 52px; padding: 8px; border: 1px solid #dfe3d4; border-radius: 9px; background: #f5f5ed; font-size: .9rem; color: var(--ink); }
.crops i { width: 27px; flex: none; font-style: normal; text-align: center; font-size: 1.15rem; }
.crops input:checked + span { border-color: #65855c; background: #e3eddc; box-shadow: inset 0 0 0 1px #65855c; }
.crops input:focus-visible + span { outline: 3px solid #a27532; outline-offset: 2px; }
.chosen-product { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px; border-left: 3px solid #738b54; border-radius: 5px; background: #eef1e4; }
.chosen-product > :first-child { font-size: 20px; }
.chosen-product small, .chosen-product strong { display: block; }
.chosen-product small { color: var(--muted); font-size: .75rem; }

details { margin-top: 12px; font-size: .86rem; }
summary { padding: 6px 0; font-weight: 800; cursor: pointer; }
.join-fields { display: grid; gap: 8px; margin-top: 5px; }
.join-fields > label { display: grid; gap: 4px; font-weight: 750; }
.join-fields input { width: 100%; padding: 9px 11px; border: 1px solid #b7c6b1; border-radius: 7px; background: #fffef9; color: var(--ink); }
.small { margin: 9px 0 0; color: var(--muted); font-size: .79rem; }
.status { color: var(--muted); margin: 10px 0 8px; font-size: .83rem; }
.status:empty { display: none; }
.status.error { color: #9c372a; }
.gold, .provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #dfc57e;
  border-radius: 8px;
  background: #ebca7d;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}
.gold { width: 100%; margin-top: 10px; }
.gold:hover, .create-account:hover { background: #f4d793; }
.gold:disabled { opacity: .68; cursor: wait; }
.provider { justify-content: space-between; margin: 8px 0; border-color: var(--border); background: #edf3e8; }
.provider:hover { background: #e0edd8; }
.provider.create-account { background: #ebca7d; border-color: #dfc57e; }
.text-button { padding: 8px 0; border: 0; background: none; color: var(--moss); text-decoration: underline; cursor: pointer; }
#login:focus { outline: none; }
#login-choice { margin: 0 0 17px; color: var(--muted); }
#existing { padding: 8px 0 20px; }
#existing h3 { margin: 2px 0; color: var(--ink); font-size: 1.22rem; }
#existing p { margin: 0; color: var(--muted); }
.home { font-size: 39px; }

@media (max-width: 740px) {
  main { padding: 0 14px 24px; }
  .join-nav { min-height: 61px; font-size: .83rem; }
  .brand img { width: 29px; height: 29px; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .intro { min-height: 230px; border-radius: 16px; }
  .intro h1 { font-size: clamp(3rem, 10vw, 4rem); }
  .intro-top p { max-width: none; margin-top: 7px; font-size: .93rem; }
  .intro-bottom p { margin-top: 6px; font-size: .77rem; }
  .intro img { object-position: 65% 57%; }
  .card { border-radius: 16px; }
}
@media (max-width: 360px) {
  .join-nav { font-size: .75rem; }
  .card { padding: 18px 14px; }
  .crops label > span { font-size: .83rem; }
}
