/*
Theme Name: Opal Landing
Description: An Opal landing page linking to official clinician access and callback requests.
Version: 0.4.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: opal-landing
*/
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("assets/fonts/playfair-display/playfair-display-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --opal-canvas: #f5f6f3;
  --opal-teal: #006765;
  --opal-deep: #004d4a;
  --opal-sage: #a2c9b8;
  --opal-ink: #1b2422;
  --opal-muted: #4c605a;
  --opal-line: #d7e3dc;
  --opal-serif: "Playfair Display", Georgia, serif;
  --opal-mono: "JetBrains Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body.opal-page {
  margin: 0;
  color: var(--opal-ink);
  background: var(--opal-canvas);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.opal-page :focus-visible { outline: 2px solid var(--opal-teal); outline-offset: 4px; }
.opal-shell { width: min(100% - 112px, 1336px); margin-inline: auto; }
.opal-header { border-bottom: 1px solid #dbe4dd; }
.opal-header-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.opal-brand { display: inline-flex; align-items: center; gap: 10px; }
.opal-brand img { display: block; }
.opal-brand span { font-size: 27px; font-weight: 600; letter-spacing: -.05em; }
.opal-header-label, .opal-eyebrow, .opal-step, .opal-footer, .opal-ticket-code span {
  font: 400 11px/1.45 var(--opal-mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.opal-header-label, .opal-footer { color: var(--opal-muted); }

.opal-main { padding-block: clamp(24px, 4.5vw, 60px) 24px; }
.opal-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(375px, .8fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: center;
}
.opal-hero {
  min-height: 618px;
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 28px;
  color: #f8fcf8;
  background: radial-gradient(ellipse at 81% 103%, #288277 0%, #0e5c57 35%, transparent 71%), #004d4a;
}
.opal-hero-copy { position: relative; z-index: 1; padding: clamp(33px, 5vw, 70px); }
.opal-eyebrow { color: #c6ead9; display: flex; align-items: center; gap: 11px; margin: 0 0 24px; }
.opal-eyebrow > span { width: 7px; height: 7px; border: 1px solid #cbf1e1; transform: rotate(45deg); flex: 0 0 7px; }
.opal-hero h1 {
  font: 400 clamp(46px, 5.45vw, 83px)/.99 var(--opal-serif);
  letter-spacing: -.058em;
  max-width: 12ch;
  margin: 0 0 23px;
  overflow-wrap: anywhere;
}
.opal-summary { margin: 0; max-width: 36ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.43; color: #edf7f1; overflow-wrap: anywhere; }
.opal-audience { margin: 20px 0 0; max-width: 42ch; color: #c6ead9; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.opal-art { position: absolute; z-index: 0; inset: 39% 0 0; pointer-events: none; }
.opal-pearl {
  position: absolute;
  width: clamp(184px, 29vw, 420px);
  aspect-ratio: 1;
  border-radius: 48% 52% 49% 51%;
  right: -1.7%;
  bottom: -28%;
  transform: rotate(-24deg);
  background:
    radial-gradient(ellipse at 37% 26%, #ffffff 0%, #ffffff50 24%, transparent 44%),
    radial-gradient(ellipse at 74% 47%, #f4e4f4b5 4%, transparent 43%),
    radial-gradient(ellipse at 58% 82%, #8bbaa5 5%, transparent 54%),
    radial-gradient(ellipse at 41% 40%, #faf9e9 11%, #d8ede4 37%, #a0cabd 59%, #67998e 79%, #366d65 100%);
  box-shadow: inset 0 0 22px #f7fcf496, inset -34px -30px 55px #16545050, 0 12px 82px #a9e6d83b;
}
.opal-orbit {
  position: absolute; width: 81%; height: 58%; border: 1px solid #d0efe864;
  border-radius: 50%; bottom: -6%; right: -10%; transform: rotate(-31deg);
}
.opal-orbit-two { width: 94%; height: 76%; bottom: -14%; right: -15%; border-color: #c3e7d442; }
.opal-glint { position: absolute; color: #ddf6e9; line-height: 1; }
.opal-glint-one { font-size: 26px; right: 19%; bottom: 69%; }
.opal-glint-two { font-size: 19px; right: 51%; bottom: 17%; opacity: .65; }
.opal-art-index { position: absolute; left: clamp(33px, 5vw, 70px); bottom: 31px; display: flex; align-items: center; gap: 5px; }
.opal-art-index span { width: 4px; height: 4px; border-radius: 50%; background: #c6ead9; opacity: .5; }
.opal-art-index span:first-child { width: 18px; border-radius: 8px; opacity: 1; }

.opal-card {
  width: 100%;
  align-self: center;
  background: #fff;
  border: 1px solid var(--opal-line);
  border-radius: 26px;
  padding: clamp(23px, 3.35vw, 49px);
  box-shadow: 0 22px 57px #123c2c0a;
  overflow-wrap: anywhere;
}
.opal-card-heading { margin: 0 0 27px; }
.opal-card-heading .opal-step { color: var(--opal-teal); margin: 0 0 15px; display: flex; align-items: center; gap: 10px; }
.opal-step span { background: #e3ebe4; border-radius: 5px; padding: 5px 7px; }
.opal-card-heading h2 { font: 400 clamp(29px, 3.25vw, 47px)/1.05 var(--opal-serif); letter-spacing: -.045em; margin: 0; }
.opal-card-heading p:last-child:not(.opal-step) { color: var(--opal-muted); margin: 12px 0 0; line-height: 1.5; }

.opal-email-label { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }
#opal-email {
  display: block; width: 100%; min-height: 53px; padding: 12px 15px;
  border: 1px solid #aabfb4; background: #fbfcfa; border-radius: 10px; color: var(--opal-ink);
  font: inherit;
}
#opal-email::placeholder { color: #65746e; }
.opal-disclosure { margin: 13px 0 16px; font-size: 13px; line-height: 1.48; color: var(--opal-muted); }
.opal-disclosure p { margin: 0 0 3px; }
.opal-disclosure a { color: var(--opal-teal); text-underline-offset: 2px; }
.opal-consent { display: grid; align-items: start; grid-template-columns: 17px 1fr; gap: 8px; margin-bottom: 4px; cursor: pointer; }
.opal-consent input { accent-color: var(--opal-teal); width: 16px; height: 16px; margin: 2px 0 0; }
.opal-turnstile { min-width: 0; margin-bottom: 13px; }
.opal-turnstile:empty { min-height: 65px; border: 1px dashed var(--opal-line); border-radius: 9px; background: #fafcf9; }
.opal-button {
  min-height: 51px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 15px;
  text-align: left; border: 1px solid transparent; border-radius: 10px; padding: 11px 16px; background: var(--opal-teal); color: #fff;
  font: 600 16px/1.3 "Instrument Sans", system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.opal-button:hover { background: var(--opal-deep); }
.opal-button:disabled { background: #e3ebe4; color: #435951; cursor: default; }
.opal-button span[aria-hidden] { font-size: 21px; line-height: 1; }
.opal-retry {
  display: block; margin: 0 0 12px; border: 1px solid var(--opal-line); border-radius: 8px; padding: 8px 11px;
  color: var(--opal-teal); background: #fff; font: inherit; cursor: pointer;
}
.opal-status { font-size: 14px; line-height: 1.4; color: var(--opal-muted); margin: 10px 0 0; }
.opal-status:empty { margin: 0; }
.opal-ticket-body {
  position: relative; margin: 0 0 20px; border-block: 1px dashed #a3bcb0; padding: 17px 0;
  font-size: 15px; line-height: 1.55;
}
.opal-ticket-body p { margin: 0; white-space: pre-line; }
.opal-ticket-body p + p { margin-top: 9px; }
.opal-ticket-terms { color: var(--opal-muted); font-size: 13px; }
.opal-ticket-code { display: grid; gap: 3px; margin-bottom: 13px; padding: 10px 13px; background: #e3ebe4; border-radius: 9px; color: var(--opal-deep); }
.opal-ticket-code strong { font: 400 20px/1.3 var(--opal-mono); }
.opal-footer { padding-block: 12px 26px; }
.opal-content { padding-block: 45px; }
.opal-content h1 { font-family: var(--opal-serif); }
.skip-link:not(:focus), .screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 7px; left: 7px; z-index: 10; padding: 8px 12px; color: var(--opal-deep); background: #fff; }

@media (max-width: 1060px) {
  .opal-shell { width: min(100% - 64px, 1336px); }
  .opal-stage { grid-template-columns: minmax(0, 1fr) minmax(345px, .92fr); }
  .opal-hero { min-height: 555px; }
}
@media (max-width: 790px) {
  .opal-shell { width: min(100% - 44px, 640px); }
  .opal-header-inner { min-height: 65px; }
  .opal-stage { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .opal-hero { min-height: 330px; border-radius: 20px; }
  .opal-hero-copy { padding: 30px 25px 93px; }
  .opal-hero h1 { font-size: clamp(40px, 9vw, 61px); margin-bottom: 14px; }
  .opal-eyebrow { margin-bottom: 17px; }
  .opal-audience { margin-top: 11px; }
  .opal-art { inset-block-start: 48%; }
  .opal-pearl { right: -10%; bottom: -48%; }
  .opal-orbit { width: 63%; height: 64%; }
  .opal-orbit-two { width: 69%; height: 72%; }
  .opal-glint-one { right: 10%; bottom: 61%; font-size: 20px; }
  .opal-glint-two { right: 44%; bottom: 15%; font-size: 15px; }
  .opal-art-index { left: 25px; bottom: 23px; }
  .opal-card { padding: 23px 24px; border-radius: 20px; }
  .opal-footer { padding-top: 0; }
}
@media (max-width: 390px) {
  .opal-shell { width: calc(100% - 30px); }
  .opal-hero-copy, .opal-card { padding-inline: 19px; }
  .opal-art-index { left: 19px; }
  .opal-header-label { font-size: 10px; }
}

/* Email request layout. */
.opal-header-label, .opal-footer { font-size: .8125rem; }
.opal-eyebrow { font-size: .875rem; letter-spacing: .07em; }
.opal-form-label { margin: 0 0 15px; font-size: .875rem; font-weight: 600; color: var(--opal-teal); }
.opal-disclosure { font-size: .875rem; }
.opal-unavailable, .opal-confirmation-message { margin: 0; line-height: 1.5; color: var(--opal-muted); }
.opal-confirmation-message + .opal-button { margin-top: 22px; }
.opal-draft-banner { margin: 0 0 24px; padding: 14px 18px; border: 1px solid var(--opal-line); border-radius: 12px; background: #fff; color: var(--opal-deep); font-weight: 600; }
.opal-draft-form input[type="email"] { width: 100%; padding: 15px; border: 1px solid var(--opal-line); border-radius: 10px; font: inherit; }
.opal-draft-form .opal-button { width: 100%; }
.opal-draft-terms { margin: 24px 0; font-size: 13px; line-height: 1.5; }
.opal-draft-terms dt { margin-top: 10px; font-weight: 600; }
.opal-draft-terms dd { margin: 2px 0 0; color: var(--opal-muted); }
.opal-button[aria-disabled="true"] { background: #e3ebe4; color: #435951; cursor: default; pointer-events: none; }
.opal-button { justify-content: center; text-align: center; }
@media (max-width: 390px) {
  .opal-header-label { font-size: .75rem; }
}
