/* The theme tokens from the Next app (shadcn Nova, neutral), light and dark. The root font size is
   112.5% as before: every rem below is the Tailwind value, so the page scales the same way. */

:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --radius: 0.625rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --card-foreground: oklch(0.985 0 0);
    --primary: oklch(0.922 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --border: oklch(1 0 0 / 10%);
    --input: oklch(1 0 0 / 15%);
    --ring: oklch(0.556 0 0);
    color-scheme: dark;
  }
}

/* Preflight: the few resets the layout relies on. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  border: 0 solid var(--border);
}

html {
  font-size: 112.5%;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--background);
  color: var(--foreground);
}

/* Hero: full viewport, particles behind, header on top, copy centered vertically, a footer link. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.top {
  position: relative;
  display: flex;
  height: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  padding: 0 1.5rem;
}

.wordmark {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--foreground);
  text-decoration: none;
}

.hero-body {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  flex: 1;
  align-items: center;
  padding: 4rem 1.5rem;
}

.hero-copy {
  display: flex;
  max-width: 42rem;
  flex-direction: column;
  gap: 1.25rem;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  h1 { font-size: 3rem; }
}

.subhead {
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* The form: a shadcn-sized input next to the large button the dialog trigger used to be. */
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.signup input {
  height: 2.25rem;
  width: 16rem;
  max-width: 100%;
  padding: 0 0.625rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.signup input::placeholder {
  color: var(--muted-foreground);
}

.signup input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}

.hint {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hint:empty {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, color 0.15s;
}

.button:hover {
  background: color-mix(in oklch, var(--primary) 80%, transparent);
}

.button:active {
  transform: translateY(1px);
}

.button:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}

.button.ghost {
  height: 2rem;
  padding-right: 0.5rem;
  background: transparent;
  color: var(--muted-foreground);
}

.button.ghost:hover {
  background: var(--muted);
  color: var(--foreground);
}

.button svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

.hero-foot {
  position: relative;
  display: flex;
  height: 3.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

/* Learn more: three placeholder cards until the demo is filmed. */
.cards {
  display: grid;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  gap: 1rem;
  padding: 6rem 1.5rem;
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem 0;
  border-radius: calc(var(--radius) * 1.4);
  background: var(--card);
  color: var(--card-foreground);
  font-size: 0.875rem;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--foreground) 10%, transparent);
}

.card-header,
.card-content {
  padding: 0 1rem;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skeleton {
  border-radius: calc(var(--radius) * 0.8);
  background: var(--muted);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.skeleton.title { height: 1.25rem; width: 66.666%; }
.skeleton.video { aspect-ratio: 16 / 9; width: 100%; }
.skeleton.line { height: 1rem; width: 100%; }
.skeleton.short { height: 1rem; width: 80%; }

@keyframes pulse {
  50% { opacity: 0.5; }
}

/* The call to action: one button where the form used to be. */
.cta {
  padding-top: 0.5rem;
}

/* The dialog: a shadcn card, centered, over a blurred page. */
.dialog {
  margin: auto;
  /* ^ the preflight reset zeroed the margin the browser uses to center a modal dialog */
  width: calc(100% - 2rem);
  max-width: 24rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

.dialog::backdrop {
  background: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(8px);
}

.dialog-step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.dialog-step[hidden] {
  display: none;
}

.dialog h2 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dialog-copy {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.dialog-number {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dialog input {
  height: 2.5rem;
  width: 100%;
  padding: 0 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.dialog input::placeholder {
  color: var(--muted-foreground);
}

.dialog input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}

.button.wide {
  width: 100%;
  height: 2.5rem;
}

.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) * 0.6);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
}

.dialog-close:hover {
  background: var(--muted);
  color: var(--foreground);
}

.dialog-close svg {
  width: 1rem;
  height: 1rem;
}

/* Footer: the two legal links the carriers ask for. */
.foot {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover {
  color: var(--foreground);
}

/* Legal pages: one readable column. */
.legal {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.legal h1 {
  font-size: 1.75rem;
  padding-top: 1rem;
}

.legal h2 {
  font-size: 1.125rem;
  font-weight: 600;
  padding-top: 0.75rem;
}

.legal p {
  color: var(--muted-foreground);
}

.legal p strong {
  color: var(--foreground);
}

.legal .updated {
  font-size: 0.8125rem;
}

.legal a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* The consent line under the phone field: what the carriers' vetters look for at the point of collection. */
.consent {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
}

.consent a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
