/* DriveSmart Minnesota — 2026 visual system refresh.
   This stylesheet intentionally changes presentation only. */

:root {
  --background: 216 38% 98%;
  --foreground: 221 48% 13%;
  --border: 214 32% 87%;
  --input: 214 32% 84%;
  --ring: 213 88% 44%;
  --card: 0 0% 100%;
  --card-foreground: 221 48% 13%;
  --primary: 213 88% 44%;
  --primary-foreground: 0 0% 100%;
  --secondary: 212 100% 96%;
  --secondary-foreground: 215 79% 30%;
  --muted: 216 36% 96%;
  --muted-foreground: 215 22% 36%;
  --accent: 40 92% 61%;
  --accent-foreground: 221 48% 13%;
  --destructive: 354 72% 47%;
  --destructive-foreground: 0 0% 100%;
  --radius: 1rem;
  --app-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  --app-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --dsm-navy: #071a34;
  --dsm-navy-soft: #0b2b52;
  --dsm-blue: #0d6ed7;
  --dsm-blue-bright: #2994f2;
  --dsm-ink: #10213a;
  --dsm-slate: #465a72;
  --dsm-surface: #ffffff;
  --dsm-canvas: #f6f8fc;
  --dsm-line: #dce5ef;
  --dsm-shadow-sm: 0 5px 18px rgba(7, 26, 52, .055);
  --dsm-shadow: 0 16px 38px rgba(7, 26, 52, .1);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

html[data-driver-ed-enabled="false"] a[href="/programs/driver-education"],
html[data-driver-ed-enabled="false"] a[href="/enroll"],
html[data-driver-ed-enabled="false"] [data-driver-ed-conditional="hidden"] {
  display: none !important;
}

body {
  color: var(--dsm-ink);
  background: var(--dsm-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: rgba(13, 110, 215, .85);
}

.shell {
  width: min(1200px, calc(100% - 3rem));
}

.section-pad {
  padding-top: clamp(4.5rem, 7vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
}

main h1,
main h2,
main h3 {
  color: var(--dsm-ink);
  letter-spacing: -.035em;
}

main h1 {
  font-weight: 790;
}

main h2 {
  font-weight: 760;
}

main h3 {
  font-weight: 700;
}

main [class~="text-white"] h1,
main [class~="text-white"] h2,
main [class~="text-white"] h3 {
  color: #fff;
}

main p,
main li {
  text-wrap: pretty;
}

main [class~="uppercase"][class~="tracking-widest"][class*="text-[hsl(var(--primary))]"] {
  color: #075eb8;
  letter-spacing: .135em;
}

/* Keep supporting copy readable across light and dark surfaces. */
[class~="text-white/30"] { color: rgba(255, 255, 255, .62); }
[class~="text-white/40"] { color: rgba(255, 255, 255, .68); }
[class~="text-white/50"] { color: rgba(255, 255, 255, .73); }
[class~="text-white/60"] { color: rgba(255, 255, 255, .79); }
[class~="text-white/70"] { color: rgba(255, 255, 255, .84); }
[class~="text-white/75"] { color: rgba(255, 255, 255, .87); }
[class~="text-white/80"] { color: rgba(255, 255, 255, .9); }
[class~="text-white/85"] { color: rgba(255, 255, 255, .93); }

footer [class~="text-[hsl(210_20%_55%)]"] {
  color: #a9bed3;
}

footer [class~="text-[hsl(210_20%_70%)]"],
footer [class~="text-[hsl(210_20%_72%)]"] {
  color: #c5d4e3;
}

footer [class~="text-[hsl(210_16%_45%)]"] {
  color: #9fb3c7;
}

footer [class~="text-[hsl(210_16%_50%)]"] {
  color: #afc1d2;
}

footer [class~="text-[hsl(210_16%_55%)]"] {
  color: #c0d0df;
}

nav[role="dialog"] [class*="text-[hsl(210_25%_"] {
  color: #c7d6e5;
}

/* Header and navigation */
header.sticky {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: rgba(191, 205, 221, .68);
  box-shadow: 0 9px 32px rgba(7, 26, 52, .055);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

header.sticky > .shell {
  height: 76px;
}

header.sticky img {
  height: 48px;
}

header.sticky nav > a,
header.sticky nav > div > button {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: -.01em;
}

header.sticky nav > a:hover,
header.sticky nav > div > button:hover {
  color: var(--dsm-blue);
  background: #edf5ff;
}

header.sticky [class*="absolute left-0 top-full"] {
  margin-top: .65rem;
  overflow: hidden;
  border-color: #d9e4ef;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(7, 26, 52, .18);
}

header.sticky [class*="absolute left-0 top-full"] a {
  border-radius: 9px;
}

header.sticky button[aria-label="Open menu"] {
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(7, 26, 52, .06);
}

/* Shared controls */
a[class*="bg-[hsl(var(--primary))]"],
button[class*="bg-[hsl(var(--primary))]"] {
  border-radius: 12px;
  background: linear-gradient(135deg, #0d6ed7 0%, #0858b4 100%);
  box-shadow: 0 9px 22px rgba(13, 110, 215, .22);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

a[class*="bg-[hsl(var(--primary))]"]:hover,
button[class*="bg-[hsl(var(--primary))]"]:hover {
  background: linear-gradient(135deg, #167ce8 0%, #0752a8 100%);
  box-shadow: 0 13px 30px rgba(13, 110, 215, .28);
  transform: translateY(-1px);
}

a[class*="border-2"][class*="border-[hsl(var(--primary))]"],
a[class*="border-white/"],
button[class*="border-white/"] {
  border-radius: 12px;
}

button[class*="bg-green-600"],
a[class*="bg-green-600"] {
  border-radius: 12px;
  box-shadow: 0 9px 22px rgba(22, 163, 74, .18);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(41, 148, 242, .42);
  outline-offset: 3px;
}

input,
select,
textarea {
  color: var(--dsm-ink);
  border-color: #cbd8e5;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(7, 26, 52, .03);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aebfd1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--dsm-blue);
  box-shadow: 0 0 0 4px rgba(13, 110, 215, .1);
}

/* Home hero */
main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 20%, rgba(41, 148, 242, .24), transparent 29rem),
    radial-gradient(circle at 4% 105%, rgba(13, 110, 215, .27), transparent 34rem),
    linear-gradient(135deg, #06162c 0%, #082449 58%, #0a315e 100%);
}

main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: .18;
  background-image:
    linear-gradient(115deg, transparent 0 72%, rgba(255, 255, 255, .08) 72% 72.12%, transparent 72.12%),
    linear-gradient(115deg, transparent 0 83%, rgba(255, 255, 255, .06) 83% 83.1%, transparent 83.1%);
  pointer-events: none;
}

main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child > .shell {
  max-width: 1200px;
  padding-top: clamp(5rem, 9vw, 8.25rem);
  padding-bottom: clamp(5.5rem, 10vw, 9rem);
}

main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child h1 {
  max-width: 900px;
  color: #fff;
  font-size: clamp(3rem, 6.5vw, 5.7rem);
  font-weight: 790;
  line-height: .99;
  letter-spacing: -.06em;
  text-shadow: 0 8px 34px rgba(0, 0, 0, .2);
}

main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child h1 + p {
  max-width: 760px;
  color: rgba(232, 242, 255, .84);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child > .shell > span:first-child {
  padding: .48rem .85rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(41, 148, 242, .2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Nonprofit status strip */
section[class~="bg-[hsl(216_79%_15%)]"] {
  background: linear-gradient(90deg, #0a315e 0%, #0d4178 55%, #0b3769 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

section[class~="bg-[hsl(216_79%_15%)]"] > .shell {
  min-height: 86px;
}

section[class~="bg-[hsl(216_79%_15%)]"] [class~="rounded-full"] {
  box-shadow: 0 0 0 7px rgba(255, 255, 255, .045);
}

/* Page title bands */
main > section[class~="bg-[hsl(var(--muted))]"][class~="border-b"] {
  position: relative;
  overflow: hidden;
  border-bottom-color: #dbe6f1;
  background:
    radial-gradient(circle at 92% -10%, rgba(41, 148, 242, .11), transparent 25rem),
    linear-gradient(180deg, #f6faff 0%, #edf4fb 100%);
}

main > section[class~="bg-[hsl(var(--muted))]"][class~="border-b"]::after {
  position: absolute;
  right: -70px;
  bottom: -135px;
  width: 310px;
  height: 310px;
  content: "";
  border: 54px solid rgba(13, 110, 215, .035);
  border-radius: 50%;
  pointer-events: none;
}

main > section[class~="bg-[hsl(var(--muted))]"][class~="border-b"] h1 {
  max-width: 850px;
  font-size: clamp(2.45rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -.052em;
}

/* Section surfaces */
section[class~="section-pad"][class~="bg-[hsl(var(--muted))]"] {
  background:
    linear-gradient(180deg, rgba(246, 249, 253, .98), rgba(239, 245, 251, .98));
  border-top: 1px solid rgba(213, 224, 236, .55);
  border-bottom: 1px solid rgba(213, 224, 236, .55);
}

section[class~="section-pad"][class~="bg-[hsl(216_79%_97%)]"] {
  background: linear-gradient(180deg, #f3f8ff, #eaf3fd);
}

section[class~="section-pad"][class~="bg-[hsl(219_42%_13%)]"],
section[class~="section-pad"][class~="bg-[hsl(219_42%_10%)]"] {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 15%, rgba(41, 148, 242, .16), transparent 28rem),
    linear-gradient(135deg, #071a34 0%, #0a2d56 100%);
}

section[class~="section-pad"][class~="bg-[hsl(219_42%_13%)]"] h1,
section[class~="section-pad"][class~="bg-[hsl(219_42%_13%)]"] h2,
section[class~="section-pad"][class~="bg-[hsl(219_42%_13%)]"] h3,
section[class~="section-pad"][class~="bg-[hsl(219_42%_10%)]"] h1,
section[class~="section-pad"][class~="bg-[hsl(219_42%_10%)]"] h2,
section[class~="section-pad"][class~="bg-[hsl(219_42%_10%)]"] h3 {
  color: #fff;
}

/* Cards and interactive resources */
main [class~="rounded-lg"][class~="border"][class~="bg-white"],
main [class~="rounded-xl"][class~="border"][class~="bg-white"] {
  border-color: var(--dsm-line);
  border-radius: 17px;
  box-shadow: var(--dsm-shadow-sm);
}

main a[class~="rounded-lg"][class~="border"][class~="bg-white"],
main a[class~="rounded-xl"][class~="border"][class~="bg-white"],
main [class~="cursor-pointer"][class~="rounded-lg"][class~="border"][class~="bg-white"] {
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

main a[class~="rounded-lg"][class~="border"][class~="bg-white"]:hover,
main a[class~="rounded-xl"][class~="border"][class~="bg-white"]:hover,
main [class~="cursor-pointer"][class~="rounded-lg"][class~="border"][class~="bg-white"]:hover {
  border-color: rgba(13, 110, 215, .38);
  box-shadow: var(--dsm-shadow);
  transform: translateY(-2px);
}

main [class~="rounded-lg"][class~="bg-white"] > span[class~="text-2xl"],
main [class~="rounded-lg"][class~="bg-white"] > span[class~="text-3xl"] {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #dbe9f6;
  border-radius: 13px;
  background: #eff6fd;
  box-shadow: inset 0 1px 0 #fff;
}

main [class~="rounded-lg"][class~="bg-[hsl(219_42%_13%)]"],
main [class~="rounded-lg"][class~="bg-[hsl(219_42%_10%)]"] {
  position: relative;
  overflow: hidden;
  border-color: #1a4268;
  background: #092543;
  box-shadow: 0 14px 35px rgba(7, 26, 52, .14);
}

main [class~="rounded-lg"][class~="bg-[hsl(219_42%_13%)]"]::before,
main [class~="rounded-lg"][class~="bg-[hsl(219_42%_10%)]"]::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 76px;
  height: 3px;
  content: "";
  background: #2c92ed;
}

main [class~="text-white"] a[class~="bg-white"] {
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .14);
}

main [class~="rounded-lg"][class~="border"][class~="bg-[hsl(var(--muted))]"] {
  border-color: var(--dsm-line);
  border-radius: 17px;
  background: #f7f9fc;
}

main [class~="rounded"][class~="border"][class~="bg-white"] {
  border-color: var(--dsm-line);
  border-radius: 14px;
}

main [class~="rounded-full"][class*="bg-[hsl(var(--primary))]"] {
  box-shadow: 0 7px 18px rgba(13, 110, 215, .16);
}

main [class~="divide-y"][class~="bg-white"],
main [class~="divide-y"][class~="border-y"] {
  overflow: hidden;
  border: 1px solid var(--dsm-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--dsm-shadow-sm);
}

main details {
  overflow: hidden;
  border: 1px solid var(--dsm-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(7, 26, 52, .045);
}

main details + details {
  margin-top: .75rem;
}

main details summary {
  padding: 1.15rem 1.25rem;
}

main details[open] {
  border-color: rgba(13, 110, 215, .3);
  box-shadow: 0 12px 30px rgba(7, 26, 52, .08);
}

/* Notice and disclaimer treatments */
main [class~="bg-amber-50"][class~="border-amber-200"] {
  border-color: #efd69b;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffaf0, #fff6df);
  box-shadow: 0 7px 20px rgba(126, 87, 18, .06);
}

main [class~="bg-green-50"][class~="border-green-200"] {
  border-radius: 15px;
  background: linear-gradient(135deg, #f0fbf5, #e8f8f0);
}

/* LMS and long-form learning */
main [class~="group"][class~="rounded-xl"][class~="overflow-hidden"] {
  border-radius: 22px;
}

main [class~="group"][class~="rounded-xl"][class~="overflow-hidden"] > div:first-child {
  background: linear-gradient(145deg, #f4f8fd, #eaf2fa);
}

main [class*="min-h-[calc(100dvh"] aside,
main [class*="min-h-[calc(100dvh"] [class*="border-r"] {
  background: linear-gradient(180deg, #f5f8fc, #edf3f9);
}

main [class~="sticky"][class*="top-[68px]"] {
  top: 76px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

main [class~="max-w-2xl"][class~="mx-auto"][class~="py-8"] {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

main [class~="space-y-8"] > [class~="rounded-xl"],
main [class~="mt-10"][class~="rounded-xl"] {
  border-radius: 20px;
}

/* Tables and certificate surfaces */
main table {
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--dsm-line);
  border-radius: 14px;
  background: #fff;
}

main thead {
  background: #edf4fb;
}

main th {
  color: var(--dsm-ink);
}

main [class*="border-4"][class*="max-w-2xl"] {
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(7, 26, 52, .15);
}

/* Footer */
footer[class*="bg-[hsl(219_42%_13%)]"] {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border-top: 0;
  background:
    radial-gradient(circle at 15% -20%, rgba(41, 148, 242, .17), transparent 31rem),
    linear-gradient(145deg, #06162c 0%, #082444 100%);
}

footer[class*="bg-[hsl(219_42%_13%)]"]::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--dsm-blue), #54b1ff, transparent 82%);
}

footer[class*="bg-[hsl(219_42%_13%)]"] > .shell:first-child {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

footer img {
  padding: 7px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Mobile navigation and responsive refinements */
@media (max-width: 1279px) {
  header.sticky > .shell {
    height: 70px;
  }

  header.sticky img {
    height: 44px;
  }

  header.sticky [class*="absolute left-0 top-0 bottom-0"] {
    width: min(88vw, 340px);
    background: linear-gradient(180deg, #071a34, #08223f);
  }

  header.sticky nav[role="dialog"] {
    border-right: 1px solid #1c3d5e;
    box-shadow: 22px 0 55px rgba(3, 15, 29, .34);
  }

  header.sticky nav[role="dialog"] > div:first-child {
    position: sticky;
    z-index: 4;
    top: 0;
    background: rgba(7, 26, 52, .96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  header.sticky nav[role="dialog"] a {
    text-underline-offset: 4px;
  }

  header.sticky nav[role="dialog"] a[class*="py-3"] {
    margin-bottom: 2px;
    padding-right: .75rem;
    padding-left: .75rem;
    border-bottom-color: rgba(255, 255, 255, .075);
    border-radius: 8px;
  }

  header.sticky nav[role="dialog"] a[class*="py-3"]:hover {
    background: rgba(255, 255, 255, .065);
  }

  main [class~="sticky"][class*="top-[68px]"] {
    top: 70px;
  }
}

@media (max-width: 767px) {
  .shell {
    width: min(100% - 1.5rem, 1200px);
  }

  .section-pad {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child > .shell {
    padding-top: 3.65rem;
    padding-bottom: 4.4rem;
  }

  main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child h1 {
    max-width: 38rem;
    font-size: clamp(2.25rem, 10.5vw, 3.5rem);
    line-height: 1.03;
    letter-spacing: -.052em;
  }

  main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child h1 + p {
    max-width: 38rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child > .shell > span:first-child {
    padding: .4rem .72rem;
    font-size: .7rem;
    line-height: .95rem;
  }

  main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child a[class~="text-base"] {
    min-height: 48px;
    padding: .7rem 1.1rem;
    font-size: .93rem;
    line-height: 1.3rem;
  }

  main > section[class~="bg-[hsl(var(--muted))]"][class~="border-b"] h1 {
    font-size: clamp(2.05rem, 9vw, 3rem);
    line-height: 1.08;
  }

  main [class~="rounded-lg"][class~="border"][class~="bg-white"],
  main [class~="rounded-xl"][class~="border"][class~="bg-white"] {
    border-radius: 16px;
  }

  /* Mobile assessment flow: compact question framing, generous tap targets,
     and a thumb-reachable next action after feedback appears. */
  main section[class~="section-pad"]:has(
    button[class~="w-full"][class~="text-left"][class~="p-3.5"]
  ) {
    padding-top: 1.25rem;
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }

  main div:has(
    > [class~="rounded-lg"][class~="border"][class~="bg-white"]
      button[class~="w-full"][class~="text-left"][class~="p-3.5"]
  ) > div:first-child {
    margin-bottom: .75rem;
    padding: .65rem .8rem;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    color: #40546b;
    background: #fff;
    box-shadow: 0 4px 14px rgba(7, 26, 52, .045);
  }

  main div:has(
    > [class~="rounded-lg"][class~="border"][class~="bg-white"]
      button[class~="w-full"][class~="text-left"][class~="p-3.5"]
  ) > div:nth-child(2)[class~="w-full"][class~="rounded-full"] {
    height: 7px;
    margin-bottom: 1rem;
  }

  main div:has(
    > [class~="rounded-lg"][class~="border"][class~="bg-white"]
      button[class~="w-full"][class~="text-left"][class~="p-3.5"]
  ) > div:nth-child(2)[class~="w-full"][class~="rounded-full"] > div {
    height: 100%;
  }

  main [class~="rounded-lg"][class~="border"][class~="bg-white"]:has(
    button[class~="w-full"][class~="text-left"][class~="p-3.5"]
  ) {
    padding: 1rem;
    border-color: #d7e2ed;
    box-shadow: 0 8px 24px rgba(7, 26, 52, .065);
  }

  main button[class~="w-full"][class~="text-left"][class~="p-3.5"] {
    min-height: 54px;
    padding: .85rem;
    border-radius: 12px;
    font-size: .925rem;
    line-height: 1.5;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  main [class~="rounded-lg"][class~="border"][class~="bg-white"]:has(
    > button[class~="mt-4"][class~="w-full"]
  ) {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  }

  main button[class~="mt-4"][class~="w-full"] {
    position: fixed;
    z-index: 45;
    bottom: max(.75rem, env(safe-area-inset-bottom));
    left: 50%;
    width: min(calc(100% - 1.5rem), 40rem);
    min-height: 54px;
    margin-top: 0;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 14px;
    background: #0d6ed7;
    box-shadow: 0 14px 35px rgba(7, 49, 93, .3), 0 0 0 5px rgba(246, 248, 252, .92);
    font-size: .95rem;
    line-height: 1.25rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  footer[class*="bg-[hsl(219_42%_13%)]"] > .shell:first-child {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 390px) {
  .shell {
    width: min(100% - 1.25rem, 1200px);
  }

  .section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child > .shell {
    padding-top: 3.2rem;
    padding-bottom: 3.9rem;
  }

  main > section[class~="bg-[hsl(219_42%_10%)]"]:not([class~="section-pad"]):first-child h1 {
    font-size: clamp(2.15rem, 10.3vw, 2.6rem);
  }

  main button[class~="mt-4"][class~="w-full"] {
    width: calc(100% - 1.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
