/* One stylesheet for vibetempllc.com: the home page and the policy, support
   and delete-account pages. No build step. */

:root {
  --bg: #ffffff;
  --ink: #131313;
  --soft: #5c5c5c;
  --rule: #e4e4e2;
  --tile-edge: rgba(0, 0, 0, 0.1);
  --danger: #b3261e;
  --ok: #1a6b3c;
  --page: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --ink: #efefef;
    --soft: #a2a2a2;
    --rule: #2c2c2c;
    --tile-edge: rgba(255, 255, 255, 0.14);
    --danger: #ff8a80;
    --ok: #7fd6a2;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Home page (always dark) ---------- */

.home {
  --bg: #0a0a0b;
  --ink: #f5f5f2;
  --soft: #9c9c99;
  --rule: #262627;
  --tile-edge: rgba(255, 255, 255, 0.14);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --page: 1120px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 28px;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.top nav {
  display: flex;
  gap: 22px;
  font-size: 0.94rem;
}

.top nav a {
  color: var(--soft);
  text-decoration: none;
  transition: color 150ms ease;
}

.top nav a:hover { color: var(--ink); }

/* Hero */

.hero { padding: 96px 0 88px; }

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 11.5vw, 9.25rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 800;
}

/* Each word sits in a mask and rises into place. */
.hero h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero h1 .w > span {
  display: inline-block;
  animation: rise 900ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 80ms + 80ms);
}

@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.hero .lede {
  margin: 32px 0 0;
  max-width: 30em;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--soft);
  animation: settle 800ms var(--ease-out) 420ms both;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The five icons */

.dock {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.dock li {
  animation: pop 700ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms + 560ms);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(18px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dock a {
  display: block;
  border-radius: 18px;
  transition: transform 200ms var(--ease-out);
}

.dock a:active { transform: scale(0.96); }

.dock img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 17px;
  box-shadow: 0 0 0 1px var(--tile-edge);
  animation: bob 5.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.1s);
}

@keyframes bob {
  from { transform: translateY(-3px); }
  to { transform: translateY(4px); }
}

@media (hover: hover) and (pointer: fine) {
  .dock a:hover { transform: translateY(-6px) scale(1.06); }
}

/* The one claim */

.claim {
  margin: 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--rule);
  font-size: clamp(2.8rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.claim .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

/* The line itself stays put; its words rise when it scrolls into view. */
.js .claim.reveal {
  opacity: 1;
  transform: none;
}

.js .claim .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease-out);
  transition-delay: calc(var(--i) * 90ms);
}

.js .claim.in .w > span { transform: translateY(0); }

/* Sections */

.home section { padding: 104px 0 0; }

.home h2 {
  margin: 0 0 28px;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}

/* Scroll reveal. Only hides things when the script is running. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* App panels */

.feature {
  --panel: #1b1b1d;
  --on: #ffffff;
  --btn: #ffffff;
  --btn-ink: #111111;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  min-height: 540px;
  padding: 60px 60px 0;
  margin-top: 24px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--panel);
  color: var(--on);
}

.feature.flip { grid-template-columns: 340px 1fr; }

.feature.flip .stage { order: -1; }

.feature .copy {
  align-self: center;
  padding-bottom: 60px;
}

.feature .head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature .head img {
  width: 60px;
  height: 60px;
  border-radius: 13.5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.feature h3 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.feature .on {
  margin: 2px 0 0;
  font-size: 0.94rem;
  opacity: 0.78;
}

.feature .brag {
  margin: 30px 0 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.feature .what {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: 1.06rem;
  opacity: 0.9;
}

.links {
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 11px;
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}

.btn:active { transform: scale(0.97); }

.links .plain {
  margin-left: 6px;
  text-decoration-color: currentColor;
}

.links .plain:first-child { margin-left: 0; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}

/* Phone */

.feature .stage {
  position: relative;
  min-height: 480px;
}

.phone-wrap {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: center;
}

.js .phone-wrap {
  opacity: 0;
  transform: translateY(90px);
  transition: opacity 700ms var(--ease-out), transform 1100ms var(--ease-out);
  transition-delay: 120ms;
}

.js .feature.in .phone-wrap {
  opacity: 1;
  transform: translateY(0);
}

.phone {
  --tilt: 4deg;
  width: 292px;
  aspect-ratio: 506 / 1100;
  border: 9px solid #0b0b0c;
  border-radius: 46px;
  background: #0b0b0c;
  overflow: hidden;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(var(--tilt));
  transform-origin: 50% 20%;
}

.flip .phone { --tilt: -4deg; }

.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The phone drifts a little as its panel crosses the screen. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .phone {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

@keyframes drift {
  from { transform: translateY(46px) rotate(var(--tilt)); }
  to { transform: translateY(-46px) rotate(var(--tilt)); }
}

/* Panel colors, taken from each app's own icon */

.aurariago { --panel: #3944c6; --on: #ffffff; --btn: #ffffff; --btn-ink: #232c8f; }

.cetchup { --panel: #c63226; --on: #fff6e8; --btn: #17120f; --btn-ink: #fff6e8; }

.wisdom { --panel: #efe6d3; --on: #14213d; --btn: #14213d; --btn-ink: #f6efdf; }

/* The two still in the works */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.pair .feature {
  display: block;
  min-height: 0;
  margin-top: 0;
  padding: 44px;
}

.pair .feature h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

.pair .feature .what { margin-top: 26px; }

.oath .head img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }

.oath { --panel: #0e1a33; --on: #f4ead4; --btn: #d9a03a; --btn-ink: #0e1a33; }

.enrollmate { --panel: #17472d; --on: #f1f5ee; --btn: #e0b04e; --btn-ink: #12301f; }

.retired {
  margin: 28px 0 0;
  font-size: 0.94rem;
  color: var(--soft);
}

/* Company and contact */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 9.5em 1fr;
}

.facts dt,
.facts dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt { color: var(--soft); }

.contact p {
  margin: 0;
  max-width: 24em;
  font-size: 1.12rem;
}

.contact a[href^="tel"] { white-space: nowrap; }

.foot {
  margin-top: 104px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--soft);
}

.foot p { margin: 0 0 8px; }

@media (max-width: 860px) {
  .hero { padding: 64px 0 64px; }
  .home section { padding-top: 80px; }
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    padding: 36px 28px 0;
    border-radius: 24px;
  }
  .feature .copy { padding-bottom: 36px; }
  .feature.flip .stage { order: 0; }
  .feature .stage { min-height: 380px; }
  .phone { width: 250px; }
  .pair { grid-template-columns: 1fr; }
  .pair .feature { padding: 32px 28px; }
  .about { grid-template-columns: 1fr; }
  .foot { margin-top: 80px; }
}

@media (max-width: 520px) {
  .top nav { gap: 16px; }
  .dock { gap: 10px; flex-wrap: nowrap; }
  .dock img { width: 52px; height: 52px; border-radius: 11.5px; }
  .links .plain { margin-left: 0; }
  .facts { grid-template-columns: 7.5em 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.home) { scroll-behavior: smooth; }
}

/* Reduced motion: keep the fades, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w > span,
  .dock img { animation: none; }
  .hero .lede,
  .dock li { animation-name: fade; }
  .js .reveal,
  .js .phone-wrap,
  .js .claim .w > span { transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Policy, support and delete-account pages ---------- */

.doc header,
.doc main,
.doc footer {
  max-width: var(--page);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.doc header { padding-top: 28px; }

.doc .header-inner {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink);
}

.doc .brand { margin-bottom: 64px; }

.doc .brand a {
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.doc h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.doc .subtitle {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 1.1rem;
  color: var(--soft);
}

.doc main {
  padding-top: 28px;
  padding-bottom: 64px;
}

.doc .card + .card {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--rule);
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 1.28rem;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.doc h2:first-child { margin-top: 0; }

.doc h3 {
  margin: 26px 0 6px;
  font-size: 1.04rem;
}

.doc p { margin: 0 0 14px; }

.doc ul { margin: 0 0 14px; padding-left: 22px; }

.doc li { margin-bottom: 6px; }

.doc .updated {
  display: block;
  margin-bottom: 28px;
  font-size: 0.92rem;
  color: var(--soft);
}

.doc .headline,
.doc .notice,
.doc .danger-notice {
  margin: 0 0 28px;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--ink);
}

.doc .headline { font-size: 1.1rem; font-weight: 600; }

.doc .danger-notice { border-left-color: var(--danger); }

.doc .pills {
  list-style: none;
  padding: 0;
  color: var(--soft);
}

.doc .pills li { display: inline; margin: 0; }

.doc .pills li + li::before { content: "  ·  "; white-space: pre; }

.doc .contact-btn,
.doc button {
  display: inline-block;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.doc form { max-width: 26em; }

.doc label {
  display: block;
  margin: 18px 0 6px;
  font-weight: 600;
}

.doc input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--soft);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.doc form button {
  margin-top: 22px;
  background: var(--danger);
}

.doc button:disabled { opacity: 0.55; cursor: not-allowed; }

.doc .status { margin: 16px 0 0; font-weight: 600; }

.doc .status.success { color: var(--ok); }

.doc .status.error { color: var(--danger); }

.doc footer {
  padding-top: 24px;
  padding-bottom: 56px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--soft);
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .doc .brand { margin-bottom: 44px; }
}
