/* MeetMary website: Home, Support, Privacy and Terms. The same "Blue Mist" look as the iPhone app and the web app. */
@font-face { font-family: 'Nunito Sans'; font-weight: 400; font-display: swap; src: url(fonts/NunitoSans-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-weight: 700; font-display: swap; src: url(fonts/NunitoSans-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(fonts/Poppins-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(fonts/Poppins-Bold.woff2) format('woff2'); }

:root {
  --ink: #09216E; --soft-ink: #4D6391; --brand: #09367A; --action: #064DF0; --line: #DCE4F2;
  --top: #D6E3F6; --bottom: #F1F5FB; --gold: #E8A345; --highlight: #F5D4A4;
  --shadow: 0 6px 22px rgba(10, 33, 112, .08), 0 1px 2px rgba(10, 33, 112, .05);
  --shadow-lift: 0 14px 40px rgba(10, 33, 112, .16);
  --heading: 'Poppins', ui-rounded, system-ui, sans-serif; --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: linear-gradient(180deg, var(--top) 0, var(--bottom) 640px) no-repeat, var(--bottom); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; color: var(--ink); letter-spacing: -.02em; text-wrap: balance; }
a { color: var(--action); }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid rgba(6, 77, 240, .45); outline-offset: 3px; border-radius: 8px; }
mark { background: linear-gradient(transparent 60%, var(--highlight) 60%, var(--highlight) 90%, transparent 90%); color: inherit; }

/* Header and footer on every page. The brand hides any old text beside the wordmark. */
header { max-width: 1160px; margin: 0 auto; padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-size: 0; font-family: var(--heading); font-weight: 700; letter-spacing: -.02em; color: var(--brand); text-decoration: none; white-space: nowrap; }
.brand span { font-size: 27px; }
.gold { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.button) { color: var(--soft-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--ink); }
footer { max-width: 1160px; margin: 0 auto; padding: 34px 30px 44px; font-size: 14px; color: var(--soft-ink); }
footer a { color: inherit; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--body); font-size: 17px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: box-shadow .12s ease, background .12s ease; }
.button.primary { background: linear-gradient(180deg, var(--brand), var(--ink)); color: #fff; box-shadow: 0 6px 16px rgba(9, 33, 110, .22); }
.button.primary:hover { box-shadow: 0 8px 22px rgba(9, 33, 110, .3); }
.button.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: #c5d2ea; }
.button.light { background: #fff; color: var(--ink); }
.button.light:hover { background: var(--bottom); }
.button.small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Home page */
.home main { max-width: 1160px; margin: 0 auto; padding: 0 30px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 28px 0 72px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft-ink); }
.hero h1 { font-size: clamp(42px, 5.4vw, 66px); line-height: 1.08; letter-spacing: -.035em; margin: 16px 0 22px; }
.intro { margin: 0; max-width: 31em; font-size: 19px; color: var(--soft-ink); }
.actions { margin-top: 30px; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--soft-ink); }

/* The launch countdown and launch list. home.js shows them only before launch day (data-launch) and hides them after. */
.launch { max-width: 31em; margin-top: 28px; padding: 18px 22px 20px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.launch-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft-ink); }
.countdown { display: flex; gap: 14px; margin: 6px 0 14px; }
.countdown span { display: flex; flex-direction: column; min-width: 54px; }
.countdown b { font-family: var(--heading); font-size: 36px; line-height: 1.15; color: var(--ink); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft-ink); }
.launch-title { margin: 0 0 4px; font-size: 20px; line-height: 1.3; }
.launch-text { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--soft-ink); }
.launch-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.launch-form .input { min-width: 0; min-height: 52px; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.launch-form .input::placeholder { color: #8B9AB8; font-weight: 400; }
.launch-form .input:focus { outline: none; border-color: rgba(6, 77, 240, .5); box-shadow: 0 0 0 3px rgba(6, 77, 240, .14); }
.launch-form .button { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.launch-form .button:disabled { opacity: .6; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.launch-status { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.launch-status:empty { display: none; }
.launch-status.error { color: #874F1A; }
.launch-fine { margin: 10px 0 0; font-size: 13px; color: var(--soft-ink); }
.launch-fine a { color: inherit; }
/* Until launch day, Sign in and Get started open this launch list window instead of the web app (home.js). */
.join { width: min(31em, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: var(--shadow-lift); overflow: auto; }
.join::backdrop { background: rgba(9, 33, 110, .4); }
.join-body { position: relative; padding: 24px 24px 22px; }
.join .launch-label { padding-right: 44px; }
.join-title { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; }
.join-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--soft-ink); cursor: pointer; }
.join-close:hover { color: var(--ink); }
body:has(.join[open]) { overflow: hidden; }
.hero-art { position: relative; justify-self: center; width: min(100%, 470px); }
.mary { display: block; width: 100%; }
.mary-card { position: absolute; left: -40px; bottom: -14px; width: 310px; display: flex; gap: 12px; padding: 14px 16px 15px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lift); }
.mary-card img { flex: none; width: 40px; height: 40px; }
.mary-card p { margin: 0; font-size: 15px; line-height: 1.45; }
.mary-card .from { margin-bottom: 2px; }
.mary-card .add { margin-top: 7px; color: var(--action); font-size: 14px; font-weight: 700; }

.section-head { max-width: 640px; margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; margin: 0 0 14px; }
.section-head p { margin: 0; color: var(--soft-ink); font-size: 18px; }
.how { padding: 24px 0 80px; }
.shots { list-style: none; margin: 44px auto 0; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shots img { display: block; width: 100%; border-radius: 26px; box-shadow: var(--shadow-lift); }

.web { display: grid; grid-template-columns: 230px 1fr; align-items: center; gap: 36px; max-width: 1040px; margin: 0 auto 80px; padding: 34px 48px 34px 34px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); }
.web h2, .pass h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 12px; }
.web p { margin: 0 0 22px; color: var(--soft-ink); max-width: 34em; }
.web .buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.web .note { margin: 14px 0 0; font-size: 14px; }
.web .note a { font-weight: 700; }

.pass { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 40px; max-width: 1040px; margin: 0 auto; padding: 48px 48px 0 56px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(160deg, var(--brand), var(--ink)); color: #fff; }
.pass h2 { color: #fff; }
.pass p { margin: 0 0 26px; color: #DCE4F2; max-width: 32em; }
.pass .button { margin-bottom: 48px; }
.pass img { display: block; align-self: end; }

@media (max-width: 899px) {
  header { padding: 18px 20px; }
  .brand span { font-size: 24px; }
  .site-nav { gap: 16px; }
  .home main { padding: 0 20px; }
  .hero { grid-template-columns: 1fr; gap: 16px; padding: 12px 0 56px; }
  .hero-art { width: min(100%, 360px); }
  .mary-card { position: relative; left: auto; bottom: auto; width: min(330px, 100%); margin: -64px auto 0; }
  .how { padding-bottom: 60px; }
  .shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 32px -20px 0; padding: 0 20px 24px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots li { flex: 0 0 min(72vw, 300px); scroll-snap-align: center; }
  .shots img { border-radius: 22px; box-shadow: var(--shadow); }
  .web { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: 28px 24px 32px; margin-bottom: 56px; }
  .web img { width: 180px; }
  .web .buttons { justify-content: center; }
  .launch { max-width: none; padding: 16px 18px 18px; }
  .pass { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 0; padding: 40px 24px 0; }
  .pass p { margin-bottom: 22px; }
  .pass .button { margin-bottom: 26px; }
  .pass img { width: 230px; align-self: auto; }
  footer { padding: 28px 20px 40px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (max-width: 520px) {
  .join-body { padding: 20px 18px 18px; }
  .join-title { font-size: 23px; }
  .launch-form { grid-template-columns: 1fr; }
  .launch-form .button { justify-self: stretch; }
  .countdown { gap: 8px; }
  .countdown b { font-size: 32px; }
}
