/* Valere coming-soon page. Tidewater tokens from the v1.0 app mockups. */
@font-face {
  font-family: Inter;
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("../fonts/Newsreader-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F2EC;
  --sf: #FFFFFF;
  --el: #FBF9F5;
  --sep: #E2DDD3;
  --t1: #142024;
  --t2: #4E5C60;
  --t3: #5F6A6D;
  --ac: #1D6E62;
  --on: #FFFFFF;
  --br: #806629;
  --acs: rgba(29, 110, 98, 0.10);
  --glow: rgba(29, 110, 98, 0.10);
  --bezel: #1A2124;
  --bezel-shine: rgba(255, 255, 255, 0.10);
  --shadow: rgba(20, 32, 36, 0.18);
  --badge: #142024;
  --badge-text: #F5F2EC;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0E1315;
  --sf: #151C1F;
  --el: #1D2629;
  --sep: #2B373B;
  --t1: #ECEFEC;
  --t2: #A9B4B1;
  --t3: #86928F;
  --ac: #6CC4B3;
  --on: #06201B;
  --br: #D4B978;
  --acs: rgba(108, 196, 179, 0.14);
  --glow: rgba(108, 196, 179, 0.12);
  --bezel: #0A0D0E;
  --bezel-shine: rgba(255, 255, 255, 0.08);
  --shadow: rgba(0, 0, 0, 0.45);
  --badge: #ECEFEC;
  --badge-text: #0E1315;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0E1315;
    --sf: #151C1F;
    --el: #1D2629;
    --sep: #2B373B;
    --t1: #ECEFEC;
    --t2: #A9B4B1;
    --t3: #86928F;
    --ac: #6CC4B3;
    --on: #06201B;
    --br: #D4B978;
    --acs: rgba(108, 196, 179, 0.14);
    --glow: rgba(108, 196, 179, 0.12);
    --bezel: #0A0D0E;
    --bezel-shine: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.45);
    --badge: #ECEFEC;
    --badge-text: #0E1315;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--t1);
  font-family: Inter, system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 70% 46% at 50% 48%, var(--glow), transparent 70%);
}

.only-dark { display: none !important; }
html[data-theme="dark"] .only-light { display: none !important; }
html[data-theme="dark"] .only-dark { display: block !important; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .only-light { display: none !important; }
  html:not([data-theme="light"]) .only-dark { display: block !important; }
}

img { max-width: 100%; height: auto; }

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

header {
  padding: 28px 0 8px;
  display: flex;
  justify-content: center;
}

.wordmark {
  height: 28px;
  width: auto;
  display: block;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 28px;
}

.hero {
  width: min(720px, 100%);
  margin: 18px auto 8px;
  padding: 0 8px;
}

h1 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 72px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--t1);
}

.lede {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--t2);
  font-weight: 450;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.phones {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin: 8px 0 4px;
  padding: 36px 0 12px;
  overflow: visible;
}

.device {
  position: relative;
  width: 280px;
  flex: 0 0 280px;
  background: var(--bezel);
  border-radius: 40px;
  padding: 11px;
  box-shadow:
    0 36px 70px var(--shadow),
    0 2px 4px rgba(20, 32, 36, 0.08),
    inset 0 0 0 1px var(--bezel-shine);
}

.device img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 30px;
  background: var(--bg);
}

.device.photos {
  transform: translate(52px, 36px) rotate(-8deg) scale(0.88);
  z-index: 1;
}

.device.home {
  z-index: 3;
  width: 304px;
  flex-basis: 304px;
  padding: 12px;
  border-radius: 44px;
}

.device.home img { border-radius: 33px; }

.device.coach {
  transform: translate(-52px, 36px) rotate(8deg) scale(0.88);
  z-index: 2;
}

.cta {
  width: min(440px, 100%);
  margin: 8px auto 0;
  padding: 0 8px;
}

.soon {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t2);
  margin-bottom: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--badge);
  color: var(--badge-text);
  border-radius: 10px;
  padding: 8px 16px 8px 12px;
  text-decoration: none;
  line-height: 1.05;
  margin-bottom: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.store-badge svg {
  display: block;
  flex: 0 0 auto;
  color: var(--badge-text);
}

.store-badge-text { text-align: left; }

.store-badge-kicker {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.store-badge-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 1px;
}

.notify { width: 100%; }

.notify label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 10px;
}

.notify-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.notify input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--sep);
  background: var(--sf);
  color: var(--t1);
  border-radius: 14px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.notify input[type="email"]::placeholder {
  color: var(--t3);
  opacity: 1;
}

.notify input[type="email"]:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--acs);
}

.notify button {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--ac);
  color: var(--on);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.notify button:hover { filter: brightness(1.06); }
.notify button:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}

.notify-thanks {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  color: var(--ac);
  font-weight: 600;
}

.notify.is-sent .notify-row,
.notify.is-sent label { display: none; }
.notify.is-sent .notify-thanks { display: block; }

footer {
  width: min(1200px, calc(100% - 48px));
  margin: auto auto 0;
  padding: 18px 0 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 13px;
  color: var(--t2);
  border-top: 1px solid var(--sep);
}

footer a {
  color: var(--t2);
  text-decoration: none;
}

footer a:hover { color: var(--ac); text-decoration: underline; }

footer .sep { color: var(--t3); opacity: 0.7; }

@media (max-width: 900px) {
  .wrap { width: min(1200px, calc(100% - 32px)); }
  header { padding-top: 22px; }
  .wordmark { height: 22px; }
  h1 { font-size: 44px; }
  .lede { font-size: 16px; margin-top: 12px; }
  .phones { height: auto; margin-top: 4px; padding: 28px 0 8px; }
  .device { width: 200px; flex-basis: 200px; padding: 8px; border-radius: 30px; }
  .device img { border-radius: 22px; }
  .device.home { width: 220px; flex-basis: 220px; border-radius: 34px; padding: 9px; }
  .device.home img { border-radius: 25px; }
  .device.photos { transform: translate(36px, 28px) rotate(-8deg) scale(0.88); }
  .device.coach { transform: translate(-36px, 28px) rotate(8deg) scale(0.88); }
}

@media (max-width: 480px) {
  .wrap, footer { width: calc(100% - 32px); }
  header { padding: 18px 0 4px; }
  .wordmark { height: 20px; }
  .hero { margin-top: 12px; }
  h1 { font-size: 36px; }
  .lede { font-size: 15px; line-height: 1.4; }
  .phones {
    height: auto;
    margin: 0;
    padding: 16px 0 18px;
  }
  .device { width: 132px; flex-basis: 132px; padding: 5px; border-radius: 20px; }
  .device img { border-radius: 15px; }
  .device.home { width: 152px; flex-basis: 152px; padding: 6px; border-radius: 23px; }
  .device.home img { border-radius: 17px; }
  .device.photos { transform: translate(42px, 20px) rotate(-7deg) scale(0.92); }
  .device.coach { transform: translate(-42px, 20px) rotate(7deg) scale(0.92); }
  .soon { margin-bottom: 10px; }
  .store-badge { margin-bottom: 22px; }
  .notify-row { flex-direction: column; }
  .notify button { width: 100%; }
  footer { padding: 16px 0 24px; font-size: 12px; }
}

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

.notify-error {
  display: none;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
}

.notify-error.is-visible { display: block; }
