/* AMONGST campaign page (launch.amongst.world).
   A copy of the store's password page: layout/password.liquid, sections/main-password-header.liquid,
   sections/amongst-image-banner.liquid and sections/amongst-brand-application.liquid.
   Keep the two in step when the store page changes. */

/* =========================================================
   BRAND FONTS (same files as the store, from Shopify's CDN)
   ========================================================= */
@font-face { font-family: 'Gambarino'; src: url('https://cdn.shopify.com/s/files/1/0992/4499/9023/files/Gambarino-Regular.otf?v=1791453721') format('opentype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('https://cdn.shopify.com/s/files/1/0992/4499/9023/files/PlusJakartaSans-Regular.ttf?v=1791453747') format('truetype'); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('https://cdn.shopify.com/s/files/1/0992/4499/9023/files/PlusJakartaSans-Medium.ttf?v=1791453747') format('truetype'); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('https://cdn.shopify.com/s/files/1/0992/4499/9023/files/PlusJakartaSans-SemiBold.ttf?v=1791453747') format('truetype'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('https://cdn.shopify.com/s/files/1/0992/4499/9023/files/PlusJakartaSans-ExtraBold.ttf?v=1791453747') format('truetype'); font-style: normal; font-weight: 800; font-display: swap; }

/* =========================================================
   BASE (stands in for the theme's base.css)
   ========================================================= */
:root {
  --amongst-cream: #F8F4ED;
  --amongst-ink: #111111;
  --amongst-orange: #E46B2A;
  --amongst-line: rgba(17, 17, 17, 0.16);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--amongst-cream);
  color: var(--amongst-ink);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { max-width: 100%; }
h1, h2, h3 { font-family: 'Gambarino', Georgia, serif; font-weight: 400; font-synthesis: none; }
p, a, label, input, textarea, select, button { font-family: 'Plus Jakarta Sans', Arial, sans-serif; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amongst-ink); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--amongst-ink); color: #fff; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* =========================================================
   HEADER (main-password-header)
   ========================================================= */
.amongst-password-top { width: 100%; background: #f8f4ed; }
.amongst-password-top__brand { width: 100%; max-width: 1600px; min-height: 64px; margin: 0 auto; padding: 10px 34px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.amongst-password-top__wordmark { display: flex; align-items: center; text-decoration: none; line-height: 0; }
.amongst-password-top__wordmark img { display: block; width: auto; height: 34px; max-width: 100%; object-fit: contain; }
.amongst-password-top__icon { display: block; width: auto; height: 38px; object-fit: contain; }
@media screen and (max-width: 749px) {
  .amongst-password-top__brand { min-height: 54px; padding: 8px 18px; gap: 14px; }
  .amongst-password-top__wordmark img { height: 24px; }
  .amongst-password-top__icon { height: 30px; }
}

/* =========================================================
   BANNER (amongst-image-banner)
   ========================================================= */
.amongst-banner { background: #f8f4ed; }
.amongst-banner__media, .amongst-banner__media img { display: block; width: 100%; height: auto; }
a.amongst-banner__media:focus-visible { outline: 3px solid #111111; outline-offset: -3px; }
.amongst-banner__sr, .amongst-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   BRAND APPLICATION FORM (amongst-brand-application + password layout overrides)
   ========================================================= */
.amongst-apply {
  --amongst-ink: #111111;
  --amongst-line: rgba(17, 17, 17, 0.18);
  --amongst-accent: #E46B2A;
  --amongst-error: #b42318;
  background: var(--amongst-cream); color: var(--amongst-ink); padding: 42px 20px 88px;
}
.amongst-apply__inner { max-width: 980px; margin: 0 auto; }

.amongst-apply__intro { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.amongst-apply__intro[hidden] { display: none !important; }
.amongst-apply__eyebrow { margin: 0 0 12px; font-size: 12px; line-height: 1; letter-spacing: 0.16em; font-weight: 600; }
.amongst-apply__intro h2,
.amongst-apply__success h3 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 64px); line-height: 0.98; letter-spacing: -0.035em; }
.amongst-apply__intro > p:last-child,
.amongst-apply__success > p:last-child { max-width: 700px; margin: 0 auto; font-size: 16px; line-height: 1.6; opacity: 0.74; }
.amongst-apply__intro a,
.amongst-apply__success a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.amongst-apply__form { border-top: 1px solid var(--amongst-ink); }
.amongst-apply__form[hidden] { display: none !important; }
.amongst-apply__section { padding: 34px 0 40px; border-bottom: 1px solid var(--amongst-line); }

.amongst-apply__section-heading { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; margin-bottom: 26px; }
.amongst-apply__section-heading > span { width: 36px; height: 36px; border: 1px solid var(--amongst-ink); border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.amongst-apply__section-heading h3 { margin: 3px 0 4px; font-size: 24px; line-height: 1.15; }
.amongst-apply__section-heading h3 .amongst-req { color: var(--amongst-accent); font-style: normal; }
.amongst-field__optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.6; }
.amongst-apply__section-heading p { max-width: 680px; margin: 5px 0 0; opacity: 0.58; font-size: 14px; line-height: 1.5; }

.amongst-apply__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.amongst-field--full { grid-column: 1 / -1; }
.amongst-field--note { margin-bottom: -8px; }

.amongst-field label,
.amongst-field__hint { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.amongst-field__hint { display: block; padding-top: 18px; border-top: 1px dashed var(--amongst-line); }
.amongst-field label em,
.amongst-field__hint em { color: var(--amongst-accent); font-style: normal; }

.amongst-field input,
.amongst-phone select { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--amongst-line); border-radius: 0; background: rgba(255, 255, 255, 0.35); color: var(--amongst-ink); font: inherit; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.amongst-field input::placeholder { color: var(--amongst-ink); opacity: 0.38; }
.amongst-field input:focus,
.amongst-phone select:focus { border-color: var(--amongst-ink); box-shadow: 0 0 0 1px var(--amongst-ink); }
.amongst-field input[aria-invalid="true"] { border-color: var(--amongst-error); box-shadow: 0 0 0 1px var(--amongst-error); }

.amongst-phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.amongst-phone select { padding: 0 10px; border-right: 0; appearance: auto; cursor: pointer; }

.amongst-field__error { margin: 8px 0 0; color: var(--amongst-error); font-size: 13px; line-height: 1.45; }
.amongst-field__error[hidden] { display: none; }
.amongst-field__error button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.amongst-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.amongst-choice { position: relative; cursor: pointer; }
.amongst-choice input { position: absolute; opacity: 0; pointer-events: none; }
.amongst-choice span { min-height: 52px; padding: 13px 15px; border: 1px solid var(--amongst-line); background: rgba(255, 255, 255, 0.28); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.amongst-choice span::after { content: '+'; font-size: 19px; line-height: 1; }
.amongst-choice input:checked + span { background: var(--amongst-ink); border-color: var(--amongst-ink); color: #ffffff; }
.amongst-choice input:checked + span::after { content: '✓'; }
.amongst-choice input:focus-visible + span { outline: 2px solid var(--amongst-accent); outline-offset: 2px; }

.amongst-other-field { margin-top: 16px; }
.amongst-other-field[hidden] { display: none !important; }
.amongst-other-field label { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }
.amongst-other-field label em { color: var(--amongst-accent); font-style: normal; }
.amongst-other-field input { width: 100%; height: 54px; padding: 0 15px; border: 1px solid var(--amongst-line); border-radius: 0; background: rgba(255, 255, 255, 0.35); color: var(--amongst-ink); font: inherit; outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.amongst-other-field input::placeholder { color: var(--amongst-ink); opacity: 0.38; }
.amongst-other-field input:focus { border-color: var(--amongst-ink); box-shadow: 0 0 0 1px var(--amongst-ink); }

.amongst-group-error,
.amongst-apply__errors { color: var(--amongst-error); font-size: 13px; }
.amongst-group-error { margin: 10px 0 0 54px; }
.amongst-group-error[hidden], .amongst-apply__errors[hidden] { display: none; }
.amongst-apply__errors { padding: 16px 0; border-bottom: 1px solid var(--amongst-line); }

.amongst-apply__submit { width: 100%; margin-top: 30px; min-height: 64px; padding: 0 22px; border: 1px solid var(--amongst-ink); background: var(--amongst-orange); color: var(--amongst-ink); display: flex; align-items: center; justify-content: space-between; gap: 20px; font: inherit; font-family: 'Plus Jakarta Sans', Arial, sans-serif; font-size: 13px; letter-spacing: 0.08em; font-weight: 800; cursor: pointer; transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.amongst-apply__submit:hover { background: var(--amongst-ink); color: #ffffff; }
.amongst-apply__submit:disabled { opacity: 0.58; cursor: wait; }

.amongst-apply__success { padding: 40px 0 20px; text-align: center; outline: none; }
.amongst-apply__success[hidden] { display: none !important; }
.amongst-apply__success-line { display: block; }
.amongst-apply__success h3 { margin-bottom: 48px; }
.amongst-apply__success-line + .amongst-apply__success-line { margin-top: 0.15em; }

@media screen and (max-width: 749px) {
  .amongst-apply { padding: 24px 18px 64px; }
  .amongst-apply__intro { margin-bottom: 34px; }
  .amongst-apply__grid,
  .amongst-choice-grid { grid-template-columns: 1fr; }
  .amongst-field--full { grid-column: auto; }
  .amongst-apply__section { padding: 28px 0 34px; }
  .amongst-apply__section-heading { grid-template-columns: 42px 1fr; }
  .amongst-group-error { margin-left: 0; }
  .amongst-phone { grid-template-columns: 100px minmax(0, 1fr); }
}

/* =========================================================
   FOOTER (replaces the store's "Enter using password" footer)
   ========================================================= */
.amongst-launch-footer { border-top: 1px solid var(--amongst-line); padding: 24px 20px 32px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; font-size: 12px; letter-spacing: 0.04em; }
.amongst-launch-footer a { text-underline-offset: 3px; }
.amongst-launch-footer button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* =========================================================
   COOKIE CHOICE (shown to visitors from the EU, EEA, UK and Switzerland)
   ========================================================= */
.amongst-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; padding: 20px 22px; background: #ffffff; color: var(--amongst-ink); border: 1px solid var(--amongst-ink); box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12); }
.amongst-consent[hidden] { display: none; }
.amongst-consent h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; }
.amongst-consent p { margin: 0 0 16px; font-size: 13px; line-height: 1.55; }
.amongst-consent__buttons { display: flex; gap: 10px; }
.amongst-consent__buttons button { flex: 1 1 0; min-height: 44px; padding: 0 16px; border: 1px solid var(--amongst-ink); background: transparent; color: var(--amongst-ink); font: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; cursor: pointer; }
.amongst-consent__buttons button:hover { background: var(--amongst-ink); color: #ffffff; }
