/* The fonts are served from here, not Google Fonts, so a visitor's address never goes to Google.
   From Fontsource; both are under the SIL Open Font License (fonts/*-OFL.txt). */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/anton-latin.woff2) format('woff2');
}

/* The app's tokens (mobile/src/constants/theme.ts). Paper with violet accents, a violet header band,
   2px ink borders, and hard shadows only on things you can press. Citrus only ever sits on violet. */
:root {
  color-scheme: light;
  --paper: #f3f0e8;
  --surface: #ffffff;
  --sunk: #e9e5da;
  --ink: #16121f;
  --muted: #5d5670;
  --faint: #938ba5;
  --violet: #4b21c9;
  --deep: #2e1180;
  --lilac: #e6e0fa;
  --on-violet: #f3f0e8;
  --citrus: #c7f53f;
  --pale: #cfc3f7;
  --danger: #d2333f;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --tilt: -8deg;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --logo: 'Anton', Impact, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

/* --- Header band --------------------------------------------------------- */

.band {
  background: var(--deep);
  color: var(--on-violet);
}

.band-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.wordmark {
  font-family: var(--logo);
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--citrus);
}

/* --- Layout -------------------------------------------------------------- */

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cover {
  aspect-ratio: 16 / 10;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--deep);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.society {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 15px;
  max-width: 100%;
}

.society span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.society .logo {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--lilac) center / cover no-repeat;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--violet);
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--violet);
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.8px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

h1.struck {
  text-decoration: line-through;
  color: var(--muted);
}

h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  font-weight: 800;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 16px;
}

.facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.facts svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: var(--violet);
}

.description {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.small {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.4;
}

/* --- Chips and stamps (information: a border, never a shadow) ------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-block;
  padding: 3px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chip.soft {
  background: var(--lilac);
}

/* "You're in", pressed on crooked like the mark. */
.stamp {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 11px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--violet);
  color: var(--on-violet);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transform: rotate(var(--tilt));
}

/* --- Sign-up card ---------------------------------------------------------- */

.card {
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
}

input,
select {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
  font-weight: 500;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2316121F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

input:focus,
select:focus {
  outline: 3px solid var(--pale);
  outline-offset: 1px;
  border-color: var(--violet);
}

/* A tick box with its sentence beside it, like the consent on a sensitive event. */
label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

label.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  accent-color: var(--violet);
}

input.code {
  height: 64px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 10px;
  color: var(--violet);
}

.error {
  margin: 0;
  color: var(--danger);
  font-weight: 600;
  font-size: 15px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
}

.link {
  border: 0;
  background: none;
  padding: 8px 4px;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link:disabled {
  color: var(--faint);
  text-decoration: none;
  cursor: default;
}

/* --- Buttons: a face on an ink shadow that presses down into it ----------- */

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 60ms, box-shadow 60ms;
  -webkit-tap-highlight-color: transparent;
}

.button:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}

.button:disabled {
  opacity: 0.4;
  cursor: default;
}

.button.danger {
  align-self: center;
  width: auto;
  min-height: 42px;
  font-size: 15px;
  background: var(--surface);
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: 0 4px 0 var(--danger);
}

.button.danger:active:not(:disabled) {
  box-shadow: 0 0 0 var(--danger);
}

/* On violet the button turns citrus, as with onInk in the app. */
.button.citrus {
  background: var(--citrus);
  color: var(--ink);
}

/* --- The pitch, on violet --------------------------------------------------- */

.pitch {
  background: var(--deep);
  color: var(--on-violet);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pitch h2 {
  font-size: 30px;
  line-height: 1.05;
}

.pitch p {
  margin: 0;
  color: var(--pale);
}

.pitch .strong {
  color: var(--on-violet);
  font-weight: 700;
}

.pitch .soon {
  background: transparent;
  color: var(--pale);
  border-color: var(--pale);
  box-shadow: none;
  cursor: default;
}

.pitch .link {
  color: var(--pale);
  align-self: center;
}

.pitch-mark {
  width: 56px;
  height: 56px;
}

footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px 32px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

footer a {
  color: var(--muted);
}

/* --- Privacy policy and terms -------------------------------------------- */

.legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal h2 {
  margin-top: 16px;
}

.legal h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.legal p,
.legal ul {
  margin: 0;
}

.legal ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal a {
  color: var(--violet);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

.society .logo {
  overflow: hidden;
}

.society .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
