/* =========================================================
   Subscribe pages (views/pages/subscribe.ejs): the pricing page's Subscribe
   buttons land here, and Stripe returns here after payment.
   The homepage's materials, copied from public/css/landing.css so this page
   loads one small stylesheet: the header, Cormorant Garamond and Manrope, the
   search section's warm backdrop, the glass card of .search-component and
   .connect-card, the get-in-touch email field and its black pill button, and
   the pricing card's icon label.
   ========================================================= */

:root {
  --sub-white: #ffffff;
  --sub-dark: #242424;
  --sub-dark-2: #1a1a1a;
  --sub-text: #2a2a2a;
  --sub-gray: #828282;
  --sub-gray-2: #6b6b6b;
  --sub-gray-light: #b5b5b5;
  --sub-line: rgba(166, 166, 166, 0.45);
  --sub-yellow: #efc417;
  --sub-eyebrow: #8c7533;
  --sub-error: #b42318;
  --sub-good: #1c7b44;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --font-sans: "Manrope", "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* .search-component / .connect-card */
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-shadow: inset 0 0 0 1.268px rgba(166, 166, 166, 1),
    inset 0 0 10.144px 0 rgba(242, 242, 242, 1),
    0 0 2.536px 0 rgba(0, 0, 0, 0.1), 0 1.268px 10.144px 0 rgba(0, 0, 0, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, p, ol, ul { margin: 0; }

body.sub-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--sub-white);
  color: var(--sub-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.sub-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--sub-yellow);
  color: var(--sub-dark);
  font-weight: 700;
  text-decoration: none;
}
.sub-skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--sub-dark); outline-offset: 3px; }

/* Header: the landing header. */
.sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  padding: 0 104px;
}

.sub-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--sub-dark-2);
  text-decoration: none;
}
.sub-logo img { width: 36px; height: 44px; }
.sub-logo span {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 31.34px;
  line-height: 1.4em;
}

.sub-login {
  display: flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 15px;
  background: var(--sub-yellow);
  box-shadow: 0 0 0 1.268px #a6a6a6 inset, 0 0 10.144px 0 #f2f2f2 inset,
    0 0 2.536px 0 rgba(0, 0, 0, 0.1), 0 1.268px 10.144px 0 rgba(0, 0, 0, 0.1);
  color: #141414;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.36em;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sub-login:hover { transform: translateY(-1px); }

/* Stage: the search section's warm backdrop, fading into the white page. */
.sub-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 56px 24px 88px;
}
.sub-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/images/landing/search_section_bg.png") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
  pointer-events: none;
}

/* The glass card. */
.sub-glass {
  border-radius: 48.182px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10.7px);
  -webkit-backdrop-filter: blur(10.7px);
}

.sub-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  width: min(1000px, 100%);
  padding: 25.36px;
}

/* Plan: the pricing card's icon label, tier, price and features. */
.sub-plan {
  display: flex;
  flex-direction: column;
  padding: 18px 34px 18px 18px;
  border-right: 1px solid var(--sub-line);
}

.sub-plan-id {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sub-plan-id img { width: 60px; height: 60px; flex-shrink: 0; }
.sub-plan-id span {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1em;
  letter-spacing: -0.03em;
  color: var(--sub-gray);
}

.sub-plan-tier {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.1em;
  letter-spacing: -0.03em;
  color: var(--sub-dark);
}

.sub-plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}
.sub-plan-price strong {
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1em;
  letter-spacing: -0.03em;
}
.sub-plan-price span { font-size: 20px; color: #b0b0b0; }

.sub-plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
  padding: 24px 0 0;
  border-top: 1px solid var(--sub-line);
  list-style: none;
}
.sub-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.55em;
  letter-spacing: -0.005em;
  color: var(--sub-text);
}
.sub-plan-features li::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--sub-yellow);
}

.sub-plan-more {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--sub-dark);
  text-decoration: none;
}
.sub-plan-more::after { content: " \2192"; }
.sub-plan-more:hover { text-decoration: underline; text-decoration-color: var(--sub-yellow); text-underline-offset: 4px; }

/* Form column: the get-in-touch card's eyebrow, title, subtitle and field. */
.sub-form-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 18px 18px 18px 40px;
}

.sub-eyebrow {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub-eyebrow);
}

.sub-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.05em;
  letter-spacing: -0.03em;
  color: var(--sub-dark);
}

.sub-text {
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5em;
  color: var(--sub-gray-2);
}
.sub-text strong { font-weight: 600; color: var(--sub-dark); }

.sub-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.sub-label {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sub-gray-2);
}

.sub-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 19px;
  background: var(--sub-white);
  transition: box-shadow 0.2s;
}
.sub-input-wrap:focus-within { box-shadow: 0 0 0 4px rgba(239, 196, 23, 0.18); }
.sub-input-wrap input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 0 6px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--sub-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.3em;
}
.sub-input-wrap input::placeholder { color: var(--sub-gray-light); }
.sub-input-wrap input[aria-invalid="true"] { color: var(--sub-error); }

/* The black pill (.connect-send). */
.sub-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 10px 22px;
  flex-shrink: 0;
  border: none;
  border-radius: 126.79px;
  background: linear-gradient(2deg, rgb(0 0 0 / 82%), rgb(33 32 32 / 82%)), #000000;
  backdrop-filter: blur(15.22px);
  -webkit-backdrop-filter: blur(15.22px);
  color: var(--sub-white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.sub-send:hover { transform: translateY(-1px); opacity: 0.9; }
.sub-send:disabled { cursor: progress; opacity: 0.7; transform: none; }
.sub-send img { width: 20px; height: 20px; }

/* The primary action: the homepage's gold button (landing.css .btn-primary-landing
   with the .header-cta glass edge), full width under the email field. */
.sub-subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  margin-top: 6px;
  padding: 14px 24px;
  border: none;
  border-radius: 15px;
  background: var(--sub-yellow);
  box-shadow: 0 0 0 1.268px #a6a6a6 inset, 0 0 10.144px 0 #f2f2f2 inset,
    0 0 2.536px 0 rgba(0, 0, 0, 0.1), 0 1.268px 10.144px 0 rgba(0, 0, 0, 0.1);
  color: var(--sub-dark);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sub-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.15), 0 0 4px 0 rgba(0, 0, 0, 0.1),
    inset 0 0 10.144px 0 rgba(242, 242, 242, 1), inset 0 0 0 1.268px rgba(166, 166, 166, 1);
}
.sub-subscribe:disabled { cursor: progress; opacity: 0.75; transform: none; }
.sub-subscribe img { width: 20px; height: 20px; }

.sub-error {
  font-size: 15px;
  line-height: 1.4em;
  color: var(--sub-error);
}

.sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sub-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4em;
  color: var(--sub-gray-2);
}
.sub-hint svg { flex-shrink: 0; color: var(--sub-gray); }

.sub-alt {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--sub-line);
  font-size: 15px;
  color: var(--sub-gray-2);
}
.sub-alt a { color: var(--sub-dark); font-weight: 600; text-decoration-color: var(--sub-yellow); text-underline-offset: 3px; }

.sub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.sub-check {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1.268px rgba(166, 166, 166, 1), 0 1.268px 10.144px 0 rgba(0, 0, 0, 0.08);
  color: var(--sub-good);
  font-size: 22px;
  font-weight: 800;
}

/* Confirmation after payment. */
.sub-done {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(660px, 100%);
  padding: 44px 48px 40px;
}
.sub-done-id { margin-bottom: 6px; }

.sub-next {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.sub-next li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  font-size: 16px;
  line-height: 1.55em;
  color: var(--sub-gray-2);
  counter-increment: step;
}
.sub-next li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sub-white);
  box-shadow: inset 0 0 0 1px rgba(166, 166, 166, 0.8);
  color: var(--sub-dark);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1;
}
.sub-next strong { font-weight: 600; color: var(--sub-dark); }

.sub-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 104px 28px;
  font-size: 14px;
  color: var(--sub-gray);
}
.sub-footer a { color: inherit; }

@media (max-width: 1000px) {
  .sub-header, .sub-footer { padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 790px) {
  .sub-header { height: 72px; padding: 0 20px; }
  .sub-logo img { width: 26px; height: 32px; }
  .sub-logo span { font-size: 24px; }
  .sub-login { padding: 8px 14px; font-size: 18px; }
  .sub-stage { padding: 20px 14px 56px; }
  .sub-glass { border-radius: 36px; }
  .sub-card { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .sub-plan { padding: 10px 8px 24px; border-right: 0; border-bottom: 1px solid var(--sub-line); }
  .sub-plan-id img { width: 48px; height: 48px; }
  .sub-plan-id span { font-size: 30px; }
  .sub-plan-tier { margin-top: 10px; font-size: 32px; }
  .sub-plan-price strong { font-size: 40px; }
  .sub-plan-features { gap: 10px; margin-top: 16px; padding-top: 16px; }
  .sub-plan-features li { font-size: 15px; }
  .sub-plan-more { padding-top: 16px; font-size: 20px; }
  .sub-form-col { padding: 24px 8px 8px; }
  .sub-title { font-size: 36px; }
  .sub-text { font-size: 17px; }
  .sub-done { padding: 30px 24px 28px; }
  .sub-footer { flex-direction: column; padding: 18px 20px 24px; }
}

@media (max-width: 480px) {
  .sub-input-wrap input { font-size: 18px; }
  .sub-subscribe { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .sub-login, .sub-send, .sub-subscribe { transition: none; }
}
