/* getvowza.com. The values are the app's own (web/app/globals.css, the sign-in page),
   so the site and app.getvowza.com read as one product. */
:root {
  --ground: #f7f7f7;
  --panel: #ffffff;
  --ink: oklch(0.2 0.012 148);
  --ink-title: oklch(0.17 0.01 148);
  --ink-soft: oklch(0.5 0.015 148);
  --accent: #101010;
  --line: #e4e4e4;
  --danger-bg: #f8e4e1;
  --danger-ink: #7a2119;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* One column in the middle of the viewport. min-height, so a short phone scrolls
   instead of cutting the content off. */
.center {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px;
}

.mark { display: block; line-height: 0; }
.mark img { display: block; height: 34px; width: auto; }

.card {
  width: 100%;
  max-width: 520px;
  margin-top: 28px;
  padding: 40px 44px 44px;
  border-radius: 20px;
  background: var(--panel);
}
@media (max-width: 560px) {
  .card { padding: 30px 22px 30px; }
}

h1 {
  margin: 0;
  color: var(--ink-title);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lede {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.625;
}

/* ---------- Forms ---------- */

.fields { display: grid; gap: 20px; margin-top: 32px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; gap: 20px; }
}

.field {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.field .optional { margin-left: 4px; color: var(--ink-soft); font-weight: 400; }

.input {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: box-shadow 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--ink-soft); opacity: 0.6; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.input:user-invalid { box-shadow: inset 0 0 0 1.5px var(--danger-ink); }
.input[type="date"] { text-align: left; }
.input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* Under 16px, iOS zooms the page when a field takes focus. */
@media (max-width: 560px) {
  .input { font-size: 16px; }
}

/* The consent box. The real checkbox stays in the page (keyboard, screen readers);
   .box draws it. */
.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  cursor: pointer;
}
.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.box {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid oklch(0.2 0.012 148 / 0.35);
  border-radius: 5px;
  background: var(--panel);
  transition: background 120ms ease, border-color 120ms ease;
}
.box::after {
  content: "";
  position: absolute;
  top: 1.5px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--panel);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity 120ms ease, transform 120ms ease;
}
.consent input:checked + .box { border-color: var(--accent); background: var(--accent); }
.consent input:checked + .box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.consent input:focus-visible + .box { box-shadow: 0 0 0 3px oklch(0.2 0.012 148 / 0.18); }

/* Lines up with the consent text, not the box. */
.consent-links {
  margin: -10px 0 0 30px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.consent-links a { color: var(--ink); text-underline-offset: 2px; }

.button {
  display: flex;
  width: 100%;
  height: 48px;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 120ms ease;
}
.button:hover { opacity: 0.9; }
.button:disabled { opacity: 0.6; cursor: default; }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button--inline { display: inline-flex; width: auto; }

.alert {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger-ink);
  font-size: 13.5px;
  line-height: 1.4;
}

/* Bots fill every field; people never see this one. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done:focus { outline: none; }

/* ---------- Footer ---------- */

.legal {
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-align: center;
}
.legal a { text-decoration: none; }
.legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Home ---------- */

.home { text-align: center; }
.home .lockup { display: block; height: 38px; width: auto; }
.home h1 {
  max-width: 560px;
  margin-top: 40px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.home .lede {
  max-width: 480px;
  margin-top: 16px;
  font-size: 16px;
}
.home .button { margin-top: 32px; }
.home .contact { margin: 20px 0 0; color: var(--ink-soft); font-size: 14px; }
.home .contact a { color: var(--ink); text-underline-offset: 2px; }
.home .legal { margin-top: 56px; }

/* ---------- Legal pages ---------- */

.doc-head {
  display: flex;
  max-width: 760px;
  margin: 0 auto;
  padding: 36px 16px 0;
}
.doc-head a { display: block; line-height: 0; }
.doc-head img { display: block; height: 28px; width: auto; }

.doc {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 16px;
}
.doc article {
  padding: 48px 56px 56px;
  border-radius: 20px;
  background: var(--panel);
}
@media (max-width: 640px) {
  .doc article { padding: 30px 22px 36px; }
}
.doc h1 { font-size: 32px; letter-spacing: -0.02em; }
.doc .effective { margin: 10px 0 0; color: var(--ink-soft); font-size: 14px; }
.doc h2 {
  margin: 40px 0 0;
  color: var(--ink-title);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.doc h3 { margin: 24px 0 0; font-size: 15px; font-weight: 600; }
.doc p,
.doc li { font-size: 15px; line-height: 1.7; }
.doc p { margin: 12px 0 0; }
.doc ul { margin: 12px 0 0; padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc a { text-underline-offset: 2px; }
.doc .callout {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--ground);
}
.doc .callout p:first-child { margin-top: 0; }
.doc-foot { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
