@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-latin-300-normal.woff2") format("woff2"), url("fonts/roboto-condensed-latin-300-normal.woff") format("woff"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"), url("fonts/roboto-condensed-latin-400-normal.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"), url("fonts/roboto-condensed-latin-700-normal.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #002652;
  --red: #C20430;
  --white: #ffffff;
  --muted-light: #c3ccd8;
  --muted: #6e7f96;
  --text: #414042;
  --rule: #E0E0E0;
  --heading: "Roboto Condensed", sans-serif;
  --body: "Roboto Condensed", sans-serif;
  --condensed: "Roboto Condensed", sans-serif;
  --w: min(100vw, 440px);
  --u: calc(var(--w) / 100);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { background: #0a1d3a; 
text-wrap: balance;}
body { font-family: var(--body); color: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
img { display: block; }

.page {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--navy) url("assets/background.jpg") top center / 100% auto repeat-y;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(18px, calc(var(--u) * 7), 32px))
    env(safe-area-inset-right, 0px)
    calc(env(safe-area-inset-bottom, 0px) + clamp(28px, calc(var(--u) * 10), 48px))
    env(safe-area-inset-left, 0px);
  overflow: hidden;
}
.logo-link { display: block; width: 36%; max-width: 170px; margin: 0 auto clamp(18px, calc(var(--u) * 7), 30px); -webkit-tap-highlight-color: transparent; }
.logo-link:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; border-radius: 6px; }
.logo { width: 100%; height: auto; }

.view { display: none; }
.view.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.active { animation: none; } * { transition: none !important; } }

.title {
  font-family: var(--heading);
  color: var(--white);
  font-size: clamp(20px, calc(var(--u) * 5.6), 25px);
  line-height: 1.2;
  text-align: center;
  padding: 0 6%;
  margin-bottom: 0.2em;
}
.lead {
  color: white;
  font-size: clamp(12.5px, calc(var(--u) * 3.6), 16px);
  line-height: 1.35;
  font-weight: 300;
  text-align: center;
  padding: 0 14%;
}

.intro { margin-bottom: clamp(20px, calc(var(--u) * 7), 30px); }

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(6px, calc(var(--u) * 2.2), 10px);
  width: 80%;
  max-width: 340px;
  margin: 0 auto;
}
.tile {
  grid-column: span 2;
  min-width: 0;
  aspect-ratio: 1;
  background: var(--white);
  border: 0;
  border-radius: clamp(10px, calc(var(--u) * 4), 16px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, .35);
  cursor: pointer;
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(12.5px, calc(var(--u) * 2.75), 16px);
  line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 2%;
  padding: 9% 6% 6%;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:nth-child(10) { grid-column: 2 / span 2; }
.tile:nth-child(11) { grid-column: 4 / span 2; }
.tile img { width: 62%; height: auto; aspect-ratio: 1; flex: none; }
.tile span { white-space: pre-line; }
.tile:active { transform: scale(.96); }
@media (hover: hover) {
  .tile:hover { transform: translateY(-2px); box-shadow: 0 10px 18px rgba(0, 0, 0, .4); }
}
.tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.detail { text-align: center; }
.detail .pair { margin-bottom: calc(var(--u) * 14); }
.detail .icon {
  width: 20%;
    height: auto;
    padding: 3%;
    aspect-ratio: 1; border-radius: 50%; background-color: #ffffff;
  margin: 0 auto clamp(14px, calc(var(--u) * 5), 22px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}
.detail .lead { padding: 0 9%; margin-bottom: clamp(18px, calc(var(--u) * 5.5), 24px); }

.card {
  background: var(--white);
  color: var(--navy);
  width: 88%;
  margin: 0 auto clamp(30px, calc(var(--u) * 9), 42px);
  padding: clamp(16px, calc(var(--u) * 5), 22px) 8% clamp(20px, calc(var(--u) * 6), 26px);
  border-radius: clamp(14px, calc(var(--u) * 5), 20px);
  text-align: left;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}
.card h3 {
  font-family: var(--heading);
  font-weight: 700;
  color: var(--red);
  text-align: center;
  font-size: clamp(16px, calc(var(--u) * 5), 21px);
  margin-bottom: 0.55em;
}
.step { border-top: 1px solid var(--rule); padding: 0.5em 0 0.9em; }
.step h4 {
  font-family: var(--condensed); font-weight: 700;
  color: var(--navy);
  font-size: clamp(14px, calc(var(--u) * 4), 17px);
  text-transform: capitalize;
  margin-bottom: 0.5em;
}
.step p { color: var(--text); font-weight: 300; font-size: clamp(12.5px, calc(var(--u) * 3.5), 15px); line-height: 1.38; }
.note { color: var(--text); font-weight: 300; margin-top: 0.6em; font-size: clamp(10.5px, calc(var(--u) * 2.9), 12px); font-style: italic; line-height: 1.35; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-appearance: none; appearance: none; margin: 0;
  border-radius: 5px;
  padding: 8px 24px;
  font-size: 16px;
  line-height: 24px;
  background: var(--red); color: var(--white);
  border: 0; cursor: pointer;
  font-family: var(--heading); font-weight: 700;
  letter-spacing: .03em; text-indent: .03em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  transition: background .2s ease, transform .1s ease;
}
@supports (text-box: trim-both cap alphabetic) {
  .btn {
    display: inline-block;
    height: auto;
    text-box: trim-both cap alphabetic;
    padding-block: calc((40px - 0.711em) / 2);
  }
}
@supports not (text-box: trim-both cap alphabetic) {
  .btn { padding-top: 2px; }
}
.btn:active { transform: scale(.97); }
@media (hover: hover) { .btn:hover { background: #a00327; } }
.btn:focus-visible { background: #a00327; outline: 3px solid var(--white); outline-offset: 2px; }

.home { padding-top: clamp(8px, calc(var(--u) * 6), 40px); }
.actions {
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(12px, calc(var(--u) * 3.5), 16px);
  width: 76%;
  max-width: 320px;
  margin: 0 auto;
}
.btn-block { display: block; width: 100%; text-align: center; text-decoration: none; }
a.btn { text-decoration: none; }
.btn-light { background: var(--white); color: var(--navy); }
@media (hover: hover) { .btn-light:hover { background: #e9edf3; } }
.btn-light:focus-visible { background: #e9edf3; }
.btn-outline { background: var(--white); color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
@media (hover: hover) { .btn-outline:hover { background: #eef2f7; } }
.btn:disabled, .btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; transform: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.terms { padding-bottom: clamp(16px, calc(var(--u) * 5), 20px); }
.terms-text {
  max-height: 46vh;
  max-height: 46dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
  text-wrap: pretty;
}
.terms-text { scrollbar-width: thin; scrollbar-color: #E0E0E0 transparent; }
.terms-text::-webkit-scrollbar { width: 6px; }
.terms-text::-webkit-scrollbar-track { background: transparent; }
.terms-text::-webkit-scrollbar-thumb { background: #E0E0E0; border-radius: 3px; }
.terms-text:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.terms-text h4 {
  font-family: var(--condensed); font-weight: 700;
  color: var(--navy);
  font-size: clamp(14px, calc(var(--u) * 4), 17px);
  margin: 0.9em 0 0.35em;
}
.terms-text h4:first-child { margin-top: 0; }
.terms-text p { color: var(--text); font-weight: 300; font-size: clamp(12.5px, calc(var(--u) * 3.5), 15px); line-height: 1.4; }

.check {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text);
  font-size: clamp(13px, calc(var(--u) * 3.6), 15px);
  line-height: 1.35;
  cursor: pointer;
}
.check input {
  flex: none;
  width: 22px; height: 22px;
  margin: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.form { display: flex; flex-direction: column; }
.field-label {
  font-family: var(--condensed); font-weight: 700;
  color: var(--navy);
  font-size: clamp(14px, calc(var(--u) * 4), 17px);
  margin-bottom: 8px;
}
.req { color: var(--red); }
.opt { font-family: var(--body); font-weight: 300; font-style: italic; color: var(--text); }
.form .field-label { margin-bottom: 6px; }
.form .field { margin-bottom: 18px; border-radius: 6px; }
.form #pick { margin-top: 2px; }
.form #send { margin-top: 4px; }
.field {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #c9ced6;
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 20px;
  -webkit-appearance: none; appearance: none;
}
.field::placeholder { color: #9aa3ae; }
.field:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 38, 82, .15); }
#video:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; }

.file-info { margin-top: 14px; text-align: center; }
.file-info video {
  display: block;
  width: 100%;
  max-height: 260px;
  border-radius: 8px;
  background: #000;
}
.file-info p { color: var(--text); font-weight: 300; font-size: 14px; margin-top: 8px; overflow-wrap: anywhere; }

.progress {
  height: 8px;
  margin-top: 18px;
  border-radius: 4px;
  background: #e6e9ee;
  overflow: hidden;
}
.progress .bar { width: 0; height: 100%; background: var(--red); transition: width .2s ease; }
.status { min-height: 1.4em; margin: 10px 0 14px; color: var(--text); font-size: 14px; text-align: center; }
.status.error { color: var(--red); font-weight: 700; }

.page-home { padding: 0 0 0; display: flex; flex-direction: column; }
.hero { position: relative; width: 100%; aspect-ratio: 297 / 250; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero-logo {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + var(--u) * 8);
  left: calc(var(--u) * 7.5);
  width: calc(var(--u) * 28);
  -webkit-tap-highlight-color: transparent;
}
.hero-logo img { width: 100%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.hero-logo:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; border-radius: 6px; }

.promo {
  position: relative;
  z-index: 1;
  margin: calc(var(--u) * -10) calc(var(--u) * 3.4) 0;
  padding: calc(var(--u) * 6.5) calc(var(--u) * 5.5) calc(var(--u) * 5);
  background: var(--white);
  border-radius: calc(var(--u) * 4.7);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.promo-copy { width: 54%; }
.promo-title { margin: 0; line-height: 1; }
.promo-kicker {
  display: block;
  font-family: var(--heading); font-weight: 700;
  color: var(--red);
  font-size: calc(var(--u) * 3.5);
  margin-bottom: calc(var(--u) * 1.6);
}
.promo-wordmark { width: 60%; height: auto; }
.promo-text {
  color: var(--text);
  font-size: max(12px, calc(var(--u) * 3.5));
  line-height: 1.3;
  margin-top: calc(var(--u) * 3.5);
  text-wrap: pretty;
}
.promo-polaroid {
  position: absolute;
  top: calc(var(--u) * 4);
  right: calc(var(--u) * 4);
  width: 32%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .2));
}
.promo-btn { width: 55%; margin: calc(var(--u) * 6.5) auto 0; }

.home-routines { text-align: center; padding: calc(var(--u) * 7) 0 calc(var(--u) * 6); background-color: #0E2043; margin-bottom: 30px;}
.section-title {
  font-family: var(--heading); font-weight: 700;
  color: var(--white);
  font-size: calc(var(--u) * 5);
  margin-bottom: calc(var(--u) * 1);
}
.section-text { color: var(--white); font-weight: 300; font-size: max(12px, calc(var(--u) * 3.6)); padding: 0 8%; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--u) * 2.7);
  width: 74%;
  margin: calc(var(--u) * 5.5) auto calc(var(--u) * 7);
}
.mini-grid .tile { grid-column: auto; text-decoration: none; font-size: max(11px, calc(var(--u) * 2.9)); }
.section-btn { width: 42%; margin: 0 auto; }

.headed {
  position: relative;
  display: flex; align-items: center; gap: calc(var(--u) * 4);
  margin: 0 0 calc(var(--u) * 6) calc(var(--u) * 3.4);
  min-height: calc(var(--u) * 24);
  padding: calc(var(--u) * 5) calc(var(--u) * 8) calc(var(--u) * 5.5) calc(var(--u) * 6);
  background: url("assets/ripped-paper-banner.webp") left center / 100% 100% no-repeat;
  color: var(--navy);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.headed-copy { flex: 1; min-width: 0; }
.headed-title {
  display: block;
  font-family: var(--heading); font-weight: 700;
  font-size: calc(var(--u) * 4.8);
  line-height: 1.15;
  margin-bottom: calc(var(--u) * 1);
}
.headed-text { display: block; color: var(--text); font-size: max(11.5px, calc(var(--u) * 3.3)); line-height: 1.25; }
.headed-arrow {
  flex: none;
  display: grid; place-items: center;
  width: calc(var(--u) * 9.5); height: calc(var(--u) * 9.5);
  border-radius: 50%;
  background: var(--navy);
  transition: transform .2s ease;
}
.headed-arrow svg { width: 60%; height: 60%; }
@media (hover: hover) { .headed:hover .headed-arrow { transform: translateX(3px); } }
.headed:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }

.follow {
  margin-top: auto;
  background: var(--white);
  /* border-radius: calc(var(--u) * 4.7) calc(var(--u) * 4.7) 0 0; */
  padding: calc(var(--u) * 5) 0 calc(env(safe-area-inset-bottom, 0px) + var(--u) * 8);
  text-align: center;
}
.follow-title {
  /* font-family: var(--body); */
  /* font-weight: 300; */
  color: var(--navy);
  font-size: calc(var(--u) * 4);
  margin-bottom: calc(var(--u) * 5);
}
.social { list-style: none; display: flex; justify-content: center; gap: calc(var(--u) * 7.5); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; margin: -8px; border-radius: 50%; color: #A7ADB3; transition: color .2s ease; }
.social svg { display: block; width: calc(var(--u) * 6); max-width: 26px; min-width: 20px; height: auto; aspect-ratio: 1; }
@media (hover: hover) { .social a:hover { color: var(--navy); } }
.social a:focus-visible { color: var(--navy); }
.social a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.page-routines { display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + var(--u) * 6) 0 0; }
.corner-logo {
  display: block;
  width: calc(var(--u) * 28);
  margin: 0 0 calc(var(--u) * 6) calc(var(--u) * 5);
  -webkit-tap-highlight-color: transparent;
}
.corner-logo img { width: 100%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.corner-logo:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; border-radius: 6px; }
/* .routines-body { flex: 1; } */
.routines-body:has(#detail.active) { padding-bottom: calc(var(--u) * 8); }

.panel {
  margin: 0 calc(var(--u) * 4.5);
  padding: calc(var(--u) * 6) calc(var(--u) * 3.5) calc(var(--u) * 8);
  background: var(--white);
  border-radius: calc(var(--u) * 3) calc(var(--u) * 3) 0 0;
}
.panel .intro { margin-bottom: calc(var(--u) * 5); }
.panel .title { color: var(--navy); padding: 0; }
.panel .lead { color: var(--text); font-weight: 400; padding: 0 4%; }
.panel .grid { width: 100%; max-width: none; gap: calc(var(--u) * 2.8); }
.panel .tile { box-shadow: 0 3px 10px rgba(0, 0, 0, .18); border: 1px solid #eef0f3; font-size: max(10.5px, calc(var(--u) * 3.1)); }
@media (hover: hover) { .panel .tile:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, .2); } }

.follow-dark {
  background: #0E2043;
  margin: 0 calc(var(--u) * 4.5) calc(env(safe-area-inset-bottom, 0px) + var(--u) * 6);
  padding: calc(var(--u) * 8) 0 calc(var(--u) * 6);
  border-radius: 0 0 calc(var(--u) * 3) calc(var(--u) * 3);
}
.is-detail .follow-dark { display: none; }
.is-detail .routines-body { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--u) * 10); }
.follow-dark .follow-title { color: var(--white); font-size: calc(var(--u) * 4); margin-bottom: calc(var(--u) * 4); }
.follow-dark .social a { color: #c3ccd8; }
@media (hover: hover) { .follow-dark .social a:hover { color: var(--white); } }
.follow-dark .social a:focus-visible { color: var(--white); outline-color: var(--white); }

.page-sub { padding-top: calc(env(safe-area-inset-top, 0px) + var(--u) * 6); }
.topbar { position: relative; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: calc(var(--u) * 5); }
.topbar .corner-logo { margin: 0 0 0 calc(var(--u) * 5); }
.menu-btn {
  -webkit-appearance: none; appearance: none;
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  flex: none;
  width: 44px; height: 44px;
  margin: calc(var(--u) * 1) calc(var(--u) * 4) 0 0;
  padding: 0 4px;
  background: transparent; border: 0; border-radius: 0; cursor: pointer;
  color: var(--white);
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span { display: block; flex: none; width: 36px; height: 3px; border-radius: 2px; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn span + span { margin-top: 6px; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; border-radius: 4px; }
.menu-btn { position: relative; z-index: 30; }
.site-menu {
  position: fixed;
  z-index: 25;
  top: 0;
  bottom: 0;
  right: max(0px, calc((100vw - 440px) / 2));
  width: min(80vw, 320px);
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 96px) 32px calc(env(safe-area-inset-bottom, 0px) + 36px);
  background: #0E2043;
  box-shadow: -10px 0 30px rgba(0, 0, 0, .35);
  transform: translateX(calc(100% + 40px));
  visibility: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
  overflow-y: auto;
}
.site-menu.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.site-menu > ul { list-style: none; }
.site-menu > ul a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-family: var(--heading); font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: color .2s ease;
}
.site-menu > ul a[aria-current="page"] { color: var(--red); }
@media (hover: hover) { .site-menu > ul a:hover { color: #c3ccd8; } }
.site-menu > ul a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.menu-social { margin-top: auto; padding-top: 32px; text-align: center; }
.menu-social-title { color: var(--white); font-family: var(--heading); font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.menu-social .social { gap: 28px; }
.menu-social .social a { color: #c3ccd8; }
@media (hover: hover) { .menu-social .social a:hover { color: var(--white); } }
.menu-social .social a:focus-visible { color: var(--white); outline-color: var(--white); }
.menu-backdrop {
  position: fixed;
  z-index: 20;
  inset: 0;
  background: rgba(0, 10, 30, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .site-menu, .site-menu.is-open { transition: none; } }

.page-sub .intro { margin-bottom: calc(var(--u) * 7); }
.page-sub .lead { padding: 0 12%; }
.sheet {
  width: auto;
  margin: 0 calc(var(--u) * 4.7) calc(var(--u) * 7);
  padding: calc(var(--u) * 6.5) calc(var(--u) * 7) calc(var(--u) * 7);
  border-radius: calc(var(--u) * 7);
}
.sheet-title {
  font-family: var(--heading); font-weight: 700;
  color: var(--navy);
  font-size: calc(var(--u) * 5);
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: calc(var(--u) * 3.5);
}
.page-sub .terms-text h4 { color: var(--navy); }

.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.name-field { min-width: 0; display: flex; flex-direction: column; }
.name-field .field-label { margin-bottom: 6px; }
.name-field .field { margin-bottom: 14px; border-radius: 6px; }
.form-intro { text-wrap: pretty; color: var(--text); font-size: max(13px, calc(var(--u) * 3.6)); line-height: 1.4; margin-bottom: 18px; }
.sign { margin-top: 4px; }
.sign-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sign-label { font-family: var(--condensed); font-weight: 700; color: var(--navy); font-size: max(13px, calc(var(--u) * 3.7)); line-height: 1.25; }
.sign-clear {
  flex: none;
  font: inherit; font-weight: 700; font-size: 14px;
  color: var(--red);
  background: none; border: 0; padding: 4px 2px;
  cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.sign-clear:disabled { color: #b9bec6; cursor: default; text-decoration: none; }
.sign-pad {
  display: block;
  width: 100%;
  height: clamp(120px, calc(var(--u) * 36), 160px);
  border: 1.5px dashed #b9c1cc;
  border-radius: 10px;
  background: #fafbfc;
  touch-action: none;
  cursor: crosshair;
}
.sign-hint { margin-top: 6px; color: #8a93a0; font-size: 13px; }
.sign-hint.error { color: var(--red); font-weight: 700; }
.terms-loading { color: #8a93a0; }

.pair { display: flex; gap: calc(var(--u) * 2.6); width: 86%; max-width: 360px; margin: 0 auto; }
.pair .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; font-size: max(13px, calc(var(--u) * 3.6)); white-space: nowrap; }
.btn-ghost { background: #0c1f45; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--white), 0 4px 10px rgba(0, 0, 0, .3); }
@media (hover: hover) { .btn-ghost:hover { background: #16306a; } }
.btn-ghost:focus-visible { background: #16306a; }

.thanks { text-align: center; padding: calc(var(--u) * 2) 0 calc(var(--u) * 4); }
.thanks { position: relative; }
.confetti { position: absolute; left: 0; right: 0; top: calc(var(--u) * -6); height: calc(var(--u) * 100); pointer-events: none; }
.confetti i { position: absolute; left: 50%; top: 42%; width: calc(var(--u) * 2.2); height: calc(var(--u) * 4.6); border-radius: 2px; background: var(--red); box-shadow: 0 2px 4px rgba(0, 0, 0, .25); opacity: 0; transform: translate(var(--tx), var(--ty)) rotate(var(--r)); }
.view.active .confetti i { animation: confetti-pop 1.1s cubic-bezier(.12, .9, .3, 1) both; }
.confetti i:nth-child(even) { background: var(--white); }
.confetti i:nth-child(3n) { width: calc(var(--u) * 2.8); height: calc(var(--u) * 2.8); border-radius: 50%; }
.confetti i:nth-child(5n) { width: calc(var(--u) * 4.2); height: calc(var(--u) * 1.6); }
.confetti i:nth-child(1) { --tx: calc(var(--u) * -45); --ty: calc(var(--u) * -38); --r: 20deg; animation-delay: 0.12s; }
.confetti i:nth-child(2) { --tx: calc(var(--u) * -36); --ty: calc(var(--u) * -20); --r: -35deg; animation-delay: 0.15s; }
.confetti i:nth-child(3) { --tx: calc(var(--u) * -46); --ty: calc(var(--u) * 2); --r: 10deg; animation-delay: 0.18s; }
.confetti i:nth-child(4) { --tx: calc(var(--u) * -38); --ty: calc(var(--u) * 20); --r: 50deg; animation-delay: 0.21s; }
.confetti i:nth-child(5) { --tx: calc(var(--u) * -47); --ty: calc(var(--u) * 38); --r: -15deg; animation-delay: 0.24s; }
.confetti i:nth-child(6) { --tx: calc(var(--u) * -32); --ty: calc(var(--u) * -40); --r: 65deg; animation-delay: 0.12s; }
.confetti i:nth-child(7) { --tx: calc(var(--u) * 34); --ty: calc(var(--u) * -39); --r: -25deg; animation-delay: 0.15s; }
.confetti i:nth-child(8) { --tx: calc(var(--u) * 43); --ty: calc(var(--u) * -22); --r: 30deg; animation-delay: 0.18s; }
.confetti i:nth-child(9) { --tx: calc(var(--u) * 36); --ty: calc(var(--u) * -2); --r: -60deg; animation-delay: 0.21s; }
.confetti i:nth-child(10) { --tx: calc(var(--u) * 45); --ty: calc(var(--u) * 16); --r: 15deg; animation-delay: 0.24s; }
.confetti i:nth-child(11) { --tx: calc(var(--u) * 35); --ty: calc(var(--u) * 34); --r: 40deg; animation-delay: 0.12s; }
.confetti i:nth-child(12) { --tx: calc(var(--u) * 28); --ty: calc(var(--u) * -42); --r: -10deg; animation-delay: 0.15s; }
.confetti i:nth-child(13) { --tx: calc(var(--u) * -20); --ty: calc(var(--u) * -46); --r: 45deg; animation-delay: 0.18s; }
.confetti i:nth-child(14) { --tx: calc(var(--u) * 14); --ty: calc(var(--u) * -45); --r: -40deg; animation-delay: 0.21s; }
.confetti i:nth-child(15) { --tx: calc(var(--u) * -42); --ty: calc(var(--u) * 28); --r: 20deg; animation-delay: 0.24s; }
.confetti i:nth-child(16) { --tx: calc(var(--u) * 41); --ty: calc(var(--u) * 26); --r: -30deg; animation-delay: 0.12s; }
@keyframes confetti-pop {
  0% { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(.2); }
  12% { opacity: 1; }
  60% { opacity: 1; transform: translate(calc(var(--tx) * 1.12), calc(var(--ty) * 1.12 - var(--u) * 3)) rotate(calc(var(--r) + 300deg)) scale(1.15); }
  100% { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(calc(var(--r) + 360deg)) scale(1); }
}
.view.active .snap { animation: snap-pop .65s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes snap-pop {
  0% { opacity: 0; transform: rotate(-14deg) scale(.55); }
  100% { opacity: 1; transform: rotate(-4deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .view.active .confetti i, .view.active .snap { animation: none; } .confetti i { opacity: 1; } }
.snap {
  position: relative;
  z-index: 1;
  width: 64%;
  margin: 0 auto calc(var(--u) * 9);
  padding: calc(var(--u) * 3.6) calc(var(--u) * 3.6) 0;
  background: #f4f3f0;
  transform: rotate(-4deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .4);
}
.snap img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #d9dde3; }
.snap figcaption {
  color: var(--navy);
  font-weight: 700;
  font-size: max(13px, calc(var(--u) * 3.9));
  padding: calc(var(--u) * 4.5) calc(var(--u) * 2) calc(var(--u) * 5);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thanks-title { margin: 0 0 calc(var(--u) * 3.5); line-height: 1; }
.thanks-title span { display: block; color: var(--white); font-weight: 700; font-size: max(17px, calc(var(--u) * 5.3)); margin-bottom: calc(var(--u) * 2.4); }
.thanks-title img { width: 26%; height: auto; margin: 0 auto; }
.thanks-text, .offer-text { color: var(--white); font-size: max(12.5px, calc(var(--u) * 3.5)); line-height: 1.45;  margin: 0 auto calc(var(--u) * 8); }

.offer { text-align: center; background-color: #0E2043;
    border-radius: 24px;
    padding: 35px 0;
    margin: 50px 25px 0;}
.offer-art { width: 90%; height: auto; margin: calc(var(--u) * -2) auto calc(var(--u) * 6); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); }
.offer-title { color: var(--white); font-weight: 700; font-size: max(19px, calc(var(--u) * 5.6)); line-height: 1.15; margin-bottom: calc(var(--u) * 2.5); }

@media (orientation: landscape) and (max-height: 540px) {
  :root { --w: 400px; }
  .page { max-width: 680px; }
  .logo-link { width: 120px; }
  .grid { grid-template-columns: repeat(8, 1fr); width: 90%; max-width: 480px; }
  .tile:nth-child(9)  { grid-column: 2 / span 2; }
  .tile:nth-child(10) { grid-column: 4 / span 2; }
  .tile:nth-child(11) { grid-column: 6 / span 2; }
  .detail .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
  .card { width: min(88%, 560px); }
}
