/* Relaxr web surfaces. The palette is lifted from Theme.swift and the
   background from NightSkyBackground(glow: false), so the site and the
   app read as one place. The rose horizon stays in the app, on
   onboarding and the player. */

:root {
  --night-0: #071127;
  --night-1: #0d1c33;
  --night-2: #14293d;
  --surface: #212139;
  --cloud: #fcf9f6;
  --sky: #94b2e0;
  --calm: #6b8cbf;
  --gold: #edc791;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--cloud);
  background:
    radial-gradient(1.2px 1.2px at 18% 12%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 64% 8%, rgba(255,255,255,.40), transparent),
    radial-gradient(1.4px 1.4px at 82% 20%, rgba(255,255,255,.50), transparent),
    radial-gradient(1px 1px at 34% 26%, rgba(255,255,255,.30), transparent),
    radial-gradient(1px 1px at 91% 40%, rgba(255,255,255,.22), transparent),
    radial-gradient(1.1px 1.1px at 8% 34%, rgba(255,255,255,.28), transparent),
    linear-gradient(to bottom, var(--night-0) 0%, var(--night-1) 60%, var(--night-2) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px 90px;
}

/* Masthead */

header.mast {
  padding: 54px 0 10px;
  text-align: center;
}

header.mast img {
  width: 78px;
  height: 78px;
  display: block;
  margin: 0 auto 14px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .42em;
  text-indent: .42em;
  font-weight: 600;
  color: rgba(252, 249, 246, .9);
  text-decoration: none;
  display: inline-block;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  line-height: 1.15;
  margin: 26px 0 10px;
  letter-spacing: -.01em;
}

.lede {
  font-size: 1.06rem;
  color: rgba(252, 249, 246, .72);
  margin: 0 auto;
  max-width: 34em;
}

header.mast .lede { text-align: center; }

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.42rem;
  margin: 44px 0 6px;
  letter-spacing: -.005em;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 26px 0 4px;
  color: var(--cloud);
}

p { margin: 12px 0; color: rgba(252, 249, 246, .8); }

a { color: var(--sky); text-decoration-color: rgba(148, 178, 224, .4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--sky); }

ul { padding-left: 1.15em; color: rgba(252, 249, 246, .8); }
li { margin: 7px 0; }

.updated {
  font-size: .85rem;
  color: rgba(252, 249, 246, .42);
  margin-top: 6px;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 38px 0 0;
}

@media (min-width: 620px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(33, 33, 57, .74);
  border: 1px solid rgba(252, 249, 246, .08);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}

.card:hover {
  border-color: rgba(148, 178, 224, .38);
  transform: translateY(-1px);
}

.card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.card span { font-size: .92rem; color: rgba(252, 249, 246, .58); }

/* Panel: quiet block for contact and notes */

.panel {
  margin: 26px 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(33, 33, 57, .74);
  border: 1px solid rgba(252, 249, 246, .08);
}

.panel p:first-child { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

.mail {
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
}

.offer-panel { text-align: center; }

.primary-link {
  display: inline-block;
  margin: 12px 0;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--night-0);
  font-weight: 650;
  text-decoration: none;
}

.primary-link:hover { text-decoration: none; }

.fine-print {
  font-size: .88rem;
  color: rgba(252, 249, 246, .5);
}

/* Footer */

footer {
  margin-top: 66px;
  padding-top: 22px;
  border-top: 1px solid rgba(252, 249, 246, .09);
  font-size: .88rem;
  color: rgba(252, 249, 246, .45);
  text-align: center;
}

footer a { color: rgba(252, 249, 246, .62); margin: 0 9px; }

/* Back link */

.back {
  display: inline-block;
  margin: 30px 0 0;
  font-size: .92rem;
  color: rgba(252, 249, 246, .55);
  text-decoration: none;
}

.back:hover { color: var(--sky); }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

/* Support and FAQ */

.faq-wrap {
  max-width: 780px;
}

.support-wrap {
  max-width: 700px;
  padding-bottom: 64px;
}

.support-topbar {
  padding: 38px 0 66px;
}

.support-main {
  width: 100%;
}

.support-card {
  margin: 0;
  padding: 0;
}

.support-card-heading {
  margin-bottom: 38px;
}

.support-card-heading h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 7vw, 2.55rem);
}

.support-card-heading > p {
  margin: 0;
}

.support-card-heading .support-faq-inline {
  margin-top: 28px;
  font-size: .94rem;
}

.support-form {
  display: grid;
  gap: 20px;
}

.support-form[hidden],
.support-success[hidden],
#stepsField[hidden] {
  display: none !important;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: .94rem;
  font-weight: 650;
}

.optional {
  color: rgba(252, 249, 246, .48);
  font-size: .83rem;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(252, 249, 246, .18);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--cloud);
  background: rgba(7, 17, 39, .62);
  font: inherit;
  line-height: 1.4;
}

.form-field textarea {
  resize: vertical;
  min-height: 116px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(252, 249, 246, .36);
}

.device-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(148, 178, 224, .3);
  border-radius: 999px;
  color: var(--sky);
  background: rgba(7, 17, 39, .46);
  font-size: .86rem;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible,
details summary:focus-visible {
  outline: 3px solid rgba(148, 178, 224, .58);
  outline-offset: 2px;
}

.field-help {
  margin: 0;
  color: rgba(252, 249, 246, .52);
  font-size: .82rem;
  line-height: 1.5;
}

.primary-button,
.secondary-button {
  justify-self: start;
  border-radius: 999px;
  padding: 12px 21px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.primary-button {
  border: 0;
  color: var(--night-0);
  background: var(--sky);
}

.secondary-button {
  border: 1px solid rgba(148, 178, 224, .55);
  color: var(--cloud);
  background: transparent;
}

.primary-button:disabled {
  cursor: wait;
  opacity: .62;
}

.form-message {
  min-height: 1.5em;
  margin: 0;
  color: rgba(252, 249, 246, .66);
  font-size: .9rem;
}

.form-message.is-error {
  color: #f1bdaf;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.support-success {
  max-width: 520px;
  margin: 0 auto;
  padding: 46px 0 12px;
  text-align: center;
}

.support-success h2 {
  margin: 12px 0 10px;
}

.support-success p {
  margin: 0;
}

.success-mark {
  margin: 0 auto;
  font-size: 2.5rem;
  line-height: 1;
}

.success-home-link {
  display: inline-block;
  margin-top: 24px;
  text-decoration: none;
}

.faq-groups section > h2 {
  margin: 42px 0 12px;
}

.faq-groups details {
  border-top: 1px solid rgba(252, 249, 246, .1);
}

.faq-groups details:last-child {
  border-bottom: 1px solid rgba(252, 249, 246, .1);
}

.faq-groups summary {
  position: relative;
  padding: 17px 42px 17px 0;
  list-style: none;
  font-weight: 650;
  cursor: pointer;
}

.faq-groups summary::-webkit-details-marker {
  display: none;
}

.faq-groups summary::after {
  position: absolute;
  right: 7px;
  top: 16px;
  content: "+";
  color: var(--sky);
  font-size: 1.35rem;
  font-weight: 400;
}

.faq-groups details[open] summary::after {
  content: "−";
}

.faq-groups details > div {
  padding: 0 34px 16px 0;
}

.faq-groups details p {
  margin: 0;
}

.faq-contact {
  margin-top: 44px;
  text-align: center;
}

.faq-contact h2 {
  margin: 0 0 4px;
}

@media (max-width: 620px) {
  .support-topbar {
    padding: 30px 0 48px;
  }

  .primary-button {
    width: 100%;
  }
}

/* Retention offer checkout */

.offer-page {
  min-height: 100vh;
  color: #263746;
  background: #fff;
}

.offer-page p { color: #66757c; }

.offer-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 28px 54px;
}

.offer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #e6ecee;
}

.offer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #24335c;
  text-decoration: none;
}

.offer-brand img {
  display: block;
  width: 42px;
  height: 42px;
}

.offer-brand span {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .34em;
  text-indent: .34em;
}

.offer-open-app {
  padding: 9px 18px;
  border: 1px solid #6b8cbf;
  border-radius: 4px;
  color: #24335c;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

.offer-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 0 24px;
}

.offer-summary h1 {
  margin: 8px 0 10px;
  color: #263746;
  font-family: var(--sans);
  font-size: clamp(2.15rem, 6vw, 3.15rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.offer-eyebrow {
  margin: 0;
  color: #3f5f91 !important;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.offer-price-copy {
  margin: 20px 0 2px;
  color: #68767d !important;
  font-size: 1.2rem;
}

.offer-renewal {
  margin: 2px 0 0;
  color: #263746 !important;
  font-weight: 650;
}

.offer-benefits {
  display: grid;
  gap: 18px;
  margin: 48px 0;
  padding: 0;
  color: #66757c;
  list-style: none;
}

.offer-benefits li {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.offer-benefits span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1.5px solid #94b2e0;
  border-radius: 50%;
  color: #24335c;
  font-size: .9rem;
  font-weight: 700;
}

.offer-purchase {
  padding-top: 34px;
  border-top: 1px solid #e6ecee;
}

.offer-purchase h2 {
  margin: 0 0 22px;
  color: #263746;
  font-family: var(--sans);
  font-size: 1.2rem;
}

.offer-account {
  position: relative;
  margin: 0 0 16px;
  padding: 14px 98px 14px 16px;
  border: 1px solid #d9e4e6;
  border-radius: 4px;
  background: #f7f9f9;
}

.offer-account[hidden] { display: none; }

.offer-account span,
.offer-account strong {
  display: block;
}

.offer-account span {
  color: #738188;
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.offer-account strong {
  margin-top: 3px;
  color: #263746;
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.offer-account a {
  position: absolute;
  top: 50%;
  right: 16px;
  color: #3f5f91;
  font-size: .84rem;
  transform: translateY(-50%);
}

.offer-buy-web,
.offer-buy-app {
  display: block;
  width: 100%;
  padding: 14px 22px;
  border-radius: 4px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.offer-buy-web {
  border: 1px solid #24335c;
  color: #fff;
  background: #24335c;
}

.offer-buy-app {
  margin-top: 12px;
  border: 1px solid #cbd6d9;
  color: #324750;
  background: #fff;
}

.offer-buy-web:hover,
.offer-buy-app:hover { text-decoration: none; }

.offer-buy-web.is-disabled {
  border-color: #cad5d8;
  color: #879399;
  background: #edf1f2;
  cursor: not-allowed;
  pointer-events: none;
}

.offer-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  font-size: .86rem;
  text-align: center;
}

.offer-terms {
  margin: 28px auto 0;
  max-width: 650px;
  font-size: .86rem;
  line-height: 1.55;
  text-align: center;
}

.offer-footer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid #e6ecee;
  color: #829096;
  text-align: center;
}

.offer-footer a {
  margin: 0 9px;
  color: #52717c;
}

.offer-footer p {
  margin: 10px 0 0;
  font-size: .86rem;
}

.offer-success-main {
  display: grid;
  min-height: 600px;
  place-items: center;
  padding: 72px 0 36px;
}

.offer-success-card {
  width: min(100%, 620px);
  text-align: center;
}

.offer-success-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 26px;
  place-items: center;
  border: 2px solid #94b2e0;
  border-radius: 50%;
  color: #24335c;
  font-size: 1.55rem;
  font-weight: 700;
}

.offer-success-card h1 {
  margin: 12px 0 18px;
  color: #263746;
  font-family: var(--sans);
  font-size: clamp(2.15rem, 6vw, 3.15rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.offer-success-copy {
  max-width: 520px;
  margin: 0 auto;
  color: #66757c !important;
  font-size: 1.12rem;
}

.offer-success-action {
  max-width: 360px;
  margin: 34px auto 0;
}

.offer-success-card .offer-status {
  max-width: 520px;
  margin: 18px auto 0;
}

@media (max-width: 620px) {
  .offer-shell { padding: 0 20px 44px; }
  .offer-topbar { padding: 16px 0; }
  .offer-main { padding-top: 48px; }
  .offer-success-main {
    min-height: 520px;
    padding-top: 50px;
  }
  .offer-brand span { display: none; }
  .offer-summary h1 { font-size: 2.3rem; }
  .offer-benefits { margin: 38px 0; }
}
