/* The tokens of the Figma "Group invite · web fallback v2" frames. The page
   loads no font (default-src 'none'), so Recoleta and Aeonik Pro apply only
   where installed, and the system faces stand in. */
:root {
  color-scheme: light dark;
  --surface: #f9f6f0;
  --card: #fefdfc;
  --text: #1c2135;
  --text-secondary: #686868;
  --border: rgb(24 29 45 / 5%);
  --border-strong: rgb(24 29 45 / 15%);
  --shadow: 0 2px 12px rgb(0 0 0 / 4%);
  --brand: #14cc8f;
  --primary: #1cd790;
  --on-primary: #0c121e;
  --dark: #131926;
  --on-dark: #ffffff;
  --serif: Recoleta, ui-serif, "New York", Georgia, serif;
  --sans: "Aeonik Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0c121e;
    --card: #161d2b;
    --text: #f4f2ee;
    --text-secondary: #a4a7b0;
    --border: rgb(255 255 255 / 8%);
    --border-strong: rgb(255 255 255 / 16%);
    --shadow: none;
    --dark: #f4f2ee;
    --on-dark: #131926;
  }
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: var(--surface);
  color: var(--text);
  font: 15px/1.4 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.sprite {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 24px 0;
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.025em;
}

.symbol {
  width: 26px;
  height: 21px;
  fill: currentColor;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
}

#invite {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.lead {
  margin: auto 0;
  padding: 24px 0;
}

#invalid {
  margin-top: 8px;
}

.card {
  margin: 0;
  padding: 24px;
  border: 0.5px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

h1 {
  margin: 12px 0 0;
  font: 500 28px/1.2 var(--serif);
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

/* Quotation marks: the name is the link's claim, not a fact. */
#named::before {
  content: "\201C";
}

#named::after {
  content: "\201D";
}

h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

.label,
.note {
  display: flex;
  gap: 8px;
  color: var(--text-secondary);
}

.note {
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border-strong);
  font-size: 13px;
  line-height: 1.3;
}

.label {
  align-items: center;
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note .icon {
  margin-top: 1px;
}

.label .icon {
  color: var(--text);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 14px 24px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: 500 17px/1.3 var(--sans);
  letter-spacing: -0.025em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  margin-top: 20px;
  background: var(--primary);
  color: var(--on-primary);
}

.secondary {
  margin-top: 12px;
  border: 1px solid var(--border-strong);
  background: var(--card);
}

.text {
  margin-top: 4px;
}

.text .icon {
  width: 18px;
  height: 18px;
}

.dark {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 10px 16px;
  border: 0.5px solid var(--border-strong);
  background: var(--dark);
  color: var(--on-dark);
  white-space: nowrap;
}

.status {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}

.install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0 max(24px, env(safe-area-inset-bottom));
}

.install > div:first-of-type {
  flex: 1 1 180px;
  min-width: 0;
}

.install p {
  color: var(--text-secondary);
}

.tile {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px 7px;
  border-radius: 10px;
  background: var(--dark);
  color: var(--brand);
}

.stores {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.stores:not(:has(:not([hidden]))) {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

/* Desktop: the brand in the corner, and the install note under the actions. */
@media (min-width: 768px) {
  body {
    padding: 0 max(32px, env(safe-area-inset-right)) 0 max(32px, env(safe-area-inset-left));
  }

  .brand {
    padding: 32px 0;
  }

  main {
    justify-content: center;
    padding-bottom: 96px;
  }

  #invite {
    flex: none;
  }

  .lead {
    margin: 0;
  }

  .install {
    padding-bottom: 0;
  }
}
