/* The Kredit Card waitlist, in the Kredit Academy design system's light look.
   Colors and sizes are the tokens of docs/build/design/colors_and_type.css.
   Everything loads from this address: the fonts are served beside this file. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1D2342;
  --ink-soft: #434C58;
  --slate: #6B7A90;
  --line: #D6DEE6;
  --surface: #EEF3F7;
  --card: #FFFFFF;
  --turquoise: #32C3BE;
  --wasabi: #B0DD76;
  --wasabi-hover: #9ECC63;
  --mint: #DFF8FF;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.5 "Poppins", "Helvetica Neue", Arial, sans-serif;
}

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
}

h1 { margin: 0 0 20px; font-size: 24px; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 16px; }

/* The two choices. The radio buttons stay in the page for a keyboard and a screen reader; the labels are what is pressed. */
input.choice { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.choice {
  display: inline-block;
  min-height: 48px;
  margin: 0 8px 20px 0;
  padding: 0 20px;
  border: 2px solid var(--ink-soft);
  border-radius: 999px;
  font-weight: 600;
  line-height: 44px;
  cursor: pointer;
}
input.choice:checked + label.choice { background: var(--mint); border-color: var(--ink); }
input.choice:focus-visible + label.choice { outline: 3px solid var(--turquoise); outline-offset: 2px; }

/* A path shows once its choice is made. This needs no script. */
.path { display: none; }
#for-self:checked ~ #form-self,
#for-teen:checked ~ #form-teen { display: block; }

label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 14px; }
input[type="email"],
input[type="text"],
input[type="number"] {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 2px; }

.tick { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.tick input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.tick label { margin: 0; font-weight: 400; font-size: 16px; }

.note { margin: 4px 0 20px; color: var(--ink-soft); font-size: 14px; }

button, a.button {
  display: inline-block;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--wasabi);
  color: var(--ink);
  font: 600 16px/44px "Poppins", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
button:hover, a.button:hover { background: var(--wasabi-hover); }

.fine { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--slate); font-size: 13px; line-height: 1.5; }
.fine p { margin: 0 0 10px; }
a.in { color: inherit; text-decoration: underline; }

main > p:last-child, main > section > p:last-child { margin-bottom: 0; }
main > p + a.button, section > p + a.button { margin-top: 4px; }
