/* Virtue of the Day - site styles. Rebuilt by C9 Apps, 2026-10-02 (DEV#1762).
   Layout mirrors the original site: hero (icon, title, intro, store badges, phone), contact, footer. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.3100e775e8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("../fonts/playfair-display-latin.e0c764a8e9.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* colour tokens (the original site's palette, a little deeper where contrast needed it) */
  --c-hero: hsl(270 45% 88%);
  --c-hero-light: hsl(268 70% 95%);
  --c-ink: hsl(252 18% 13%);
  --c-ink-soft: hsl(252 12% 30%);
  --c-ink-muted: hsl(252 10% 36%);
  --c-brand: hsl(263 100% 65%);          /* the app icon's purple */
  --c-brand-deep: hsl(263 70% 50%);
  --c-app: hsl(258 96% 64%);             /* purple used inside the app */
  --c-app-tint: hsl(258 100% 96%);
  --c-night: hsl(252 30% 8%);
  --c-night-raise: hsl(252 30% 12%);
  --c-night-ink: hsl(252 20% 95%);
  --c-night-soft: hsl(252 15% 74%);
  --c-night-line: hsl(252 12% 46%);      /* field borders: 3:1 against the dark background */
  --c-night-accent: hsl(263 85% 78%);
  --c-ok: hsl(150 62% 72%);
  --c-bad: hsl(0 85% 80%);
  --c-focus: hsl(263 100% 45%);
  --c-focus-night: hsl(263 100% 82%);
  /* type */
  --f-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  /* 8pt spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--f-sans); color: var(--c-ink); background: var(--c-night);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -100px; z-index: 10; padding: var(--s-2) var(--s-4); background: var(--c-ink);
  color: #fff; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: var(--s-4); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: var(--s-8) var(--s-5) 0;
  background:
    radial-gradient(60rem 30rem at 50% -8rem, var(--c-hero-light) 0%, transparent 70%),
    radial-gradient(40rem 30rem at 15% 70%, hsl(263 80% 90% / .55) 0%, transparent 70%),
    radial-gradient(40rem 30rem at 85% 60%, hsl(290 70% 90% / .5) 0%, transparent 70%),
    var(--c-hero); }
.hero__inner { position: relative; max-width: 44rem; margin: 0 auto; }
.hero__icon { width: 88px; height: 88px; margin: 0 auto var(--s-6); border-radius: var(--r-lg);
  box-shadow: 0 14px 34px -10px hsl(263 90% 45% / .55), 0 2px 6px hsl(263 60% 30% / .15); }
.hero h1 { margin: 0; font: 700 clamp(2.75rem, 4.2vw + 1.6rem, 4.6rem)/1.06 var(--f-serif); letter-spacing: -.012em; color: var(--c-ink); }
.hero__tagline { margin: var(--s-4) 0 0; font-size: clamp(1.15rem, .6vw + 1rem, 1.45rem); font-weight: 500; line-height: 1.35; color: var(--c-ink-muted); }
.hero__intro { max-width: 32rem; margin: var(--s-5) auto 0; font-size: 1.0625rem; line-height: 1.65; color: var(--c-ink-soft); }

.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin: var(--s-6) 0 0; padding: 0; list-style: none; }
.store { position: relative; display: flex; align-items: center; gap: var(--s-3); min-width: 196px; min-height: 56px;
  padding: var(--s-2) var(--s-5) var(--s-2) var(--s-4); border-radius: var(--r-md); text-align: left; text-decoration: none;
  color: #fff; background: linear-gradient(180deg, hsl(252 16% 20%), hsl(252 18% 11%));
  box-shadow: 0 10px 24px -12px hsl(252 40% 10% / .6), inset 0 1px 0 hsl(0 0% 100% / .08); }
.store svg { width: 26px; height: 26px; flex: none; }
.store__small { display: block; font-size: .75rem; line-height: 1.2; letter-spacing: .02em; opacity: .85; }
.store__big { display: block; font-size: 1.125rem; font-weight: 600; line-height: 1.25; }
/* Download links are switched off until the apps are back in the stores (same as the old site) */
.store--soon { cursor: not-allowed; }
.store--soon .store__body { opacity: .78; }
.store__soon { position: absolute; top: -15px; right: 12px; padding: 2px var(--s-2); border-radius: 999px; font-size: .6875rem;
  font-weight: 600; letter-spacing: .04em; color: var(--c-ink); background: #fff; box-shadow: 0 4px 10px -4px hsl(252 40% 20% / .4); }
a.store { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
a.store:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px hsl(252 40% 10% / .7); }

/* ---------- phone (the app's real screen, drawn in HTML so it stays sharp) ---------- */
.phone-wrap { position: relative; margin: var(--s-7) auto 0; }
.phone-wrap::before { content: ""; position: absolute; left: 50%; top: 10%; width: min(680px, 140vw); height: 75%; transform: translateX(-50%);
  background: radial-gradient(closest-side, hsl(263 90% 62% / .30), transparent); pointer-events: none; }
/* shows the top of the phone (where the app's content is) and fades the empty lower screen into the page */
.phone-stage { position: relative; width: min(330px, 80vw); aspect-ratio: 330 / 580; min-height: 0; margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, #000 84%, transparent 100%); }
.phone { position: relative; margin: 0; aspect-ratio: 9 / 19; padding: 10px; border-radius: 54px;
  background: linear-gradient(145deg, #f4f2f7 0%, #b9b6c2 18%, #e9e7ee 45%, #a7a3b1 80%, #dedbe4 100%);
  box-shadow: 0 40px 70px -30px hsl(252 50% 20% / .55), 0 0 0 1px hsl(252 10% 60% / .5); }
.phone::before, .phone::after { content: ""; position: absolute; width: 4px; border-radius: 2px; background: #a9a5b3; }
.phone::before { left: -3px; top: 20%; height: 11%; }
.phone::after { right: -3px; top: 24%; height: 16%; }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 45px; background: #fff;
  box-shadow: 0 0 0 7px #141217; display: flex; flex-direction: column; align-items: center; padding: 58px 22px 0; }
.phone__island { position: absolute; top: 14px; left: 50%; width: 30%; height: 28px; transform: translateX(-50%); border-radius: 20px; background: #141217; }
.phone__status { position: absolute; top: 20px; right: 26px; display: flex; gap: 5px; align-items: center; color: #141217; }
.phone__status svg { height: 11px; width: auto; }
.phone__time { position: absolute; top: 18px; left: 34px; font-size: 13px; font-weight: 600; color: #141217; }
.app__title { margin: var(--s-3) 0 var(--s-6); font: 700 1.15rem/1.2 var(--f-serif); color: var(--c-app); letter-spacing: .005em; }
.app__pill { display: flex; align-items: center; justify-content: center; gap: var(--s-3); width: 100%; padding: 9px var(--s-3);
  border-radius: 12px; background: var(--c-app); color: #fff; font-size: 1.5rem; font-weight: 500; line-height: 1.2;
  box-shadow: 0 8px 18px -10px hsl(258 96% 40% / .7); }
.app__pill svg { width: 22px; height: 22px; }
.app__card { position: relative; width: 100%; margin-top: var(--s-4); padding: var(--s-6) var(--s-4) var(--s-7); overflow: hidden;
  border: 2px solid var(--c-app); border-radius: 14px; background: #fff; }
.app__skyline { position: absolute; inset: auto 0 0 0; width: 100%; height: 78%; color: var(--c-app-tint); }
.app__quote { position: relative; margin: 0; font-size: 1.32rem; font-weight: 500; line-height: 1.32; text-align: center; color: var(--c-app); }
.app__mark { position: absolute; width: 20px; height: 18px; color: var(--c-app); }
.app__mark--open { top: 12px; left: 12px; }
.app__mark--close { bottom: 12px; right: 12px; transform: rotate(180deg); }

/* ---------- contact ---------- */
.contact { position: relative; padding: var(--s-8) var(--s-5) var(--s-8); color: var(--c-night-ink); text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, hsl(263 70% 50% / .14) 0%, transparent 65%), var(--c-night);
  border-top: 1px solid hsl(252 20% 20%); }
.contact__inner { max-width: 36rem; margin: 0 auto; }
.eyebrow { margin: 0 0 var(--s-4); font-size: .8125rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--c-night-accent); }
.contact h2 { margin: 0 0 var(--s-3); font: 600 clamp(1.9rem, 2.5vw + 1.2rem, 2.6rem)/1.15 var(--f-serif); letter-spacing: -.005em; }
.contact__blurb { max-width: 28rem; margin: 0 auto var(--s-7); color: var(--c-night-soft); font-size: 1.0625rem; }
.form { display: grid; gap: var(--s-5); text-align: left; }
.field label { display: block; margin: 0 0 var(--s-2) 2px; font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--c-night-soft); }
.field input, .field textarea { width: 100%; padding: 14px var(--s-4); font: inherit; font-size: 1rem; line-height: 1.45;
  color: var(--c-night-ink); background: var(--c-night-raise); border: 1px solid var(--c-night-line); border-radius: 10px;
  -webkit-appearance: none; appearance: none; transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: hsl(252 12% 58%); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--c-focus-night);
  box-shadow: 0 0 0 3px hsl(263 100% 82% / .45); background: hsl(252 30% 14%); }
.field [aria-invalid="true"] { border-color: var(--c-bad); }
.field__err { display: none; margin: var(--s-2) 0 0 2px; font-size: .875rem; font-weight: 500; color: var(--c-bad); }
.field__err::before { content: "\2715\00a0"; }
.field.has-error .field__err { display: block; }
.field__count { margin-top: var(--s-1); text-align: right; font-size: .8125rem; color: var(--c-night-soft); font-variant-numeric: tabular-nums; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 52px; padding: var(--s-3) var(--s-6);
  border: 1px solid hsl(263 80% 66%); border-radius: 12px; font: 600 1rem/1.2 var(--f-sans); letter-spacing: .02em; color: #fff;
  text-decoration: none; cursor: pointer; background: linear-gradient(180deg, hsl(263 72% 54%) 0%, hsl(263 72% 44%) 100%);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), opacity .18s var(--ease); }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px -8px hsl(263 70% 55% / .55); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.contact .btn:focus-visible { outline-color: var(--c-focus-night); }
.form .btn { width: 100%; margin-top: var(--s-2); }
.status { min-height: 1.6em; margin: 0; text-align: center; font-weight: 500; }
.status.is-ok { color: var(--c-ok); }
.status.is-ok::before { content: "\2713\00a0"; }
.status.is-bad { color: var(--c-bad); }
.status.is-bad::before { content: "\2715\00a0"; }

/* ---------- footer ---------- */
.foot { padding: var(--s-6) var(--s-5) var(--s-7); text-align: center; font-size: .9375rem; color: var(--c-night-soft); background: var(--c-night);
  border-top: 1px solid hsl(252 20% 16%); }
.foot p { margin: var(--s-2) 0 0; }
.foot a { color: var(--c-night-ink); text-underline-offset: 3px; }
.foot a:focus-visible { outline-color: var(--c-focus-night); }
.foot__ver { font-size: .8125rem; opacity: .85; }

/* ---------- simple pages (privacy, 404) ---------- */
.page { min-height: 100vh; padding: var(--s-7) var(--s-5) var(--s-8); background:
  radial-gradient(60rem 30rem at 50% -8rem, var(--c-hero-light) 0%, transparent 70%), var(--c-hero); }
.page__card { max-width: 46rem; margin: 0 auto; padding: clamp(var(--s-5), 5vw, var(--s-7)); border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 30px 60px -36px hsl(252 50% 25% / .45); }
.back { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin: 0 0 var(--s-4); font-weight: 600; color: var(--c-brand-deep); text-decoration: none; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.page h1 { margin: 0 0 var(--s-2); font: 700 clamp(2.1rem, 3vw + 1.2rem, 2.9rem)/1.12 var(--f-serif); }
.page__meta { margin: 0 0 var(--s-6); color: var(--c-ink-muted); }
.page h2 { margin: var(--s-6) 0 var(--s-2); font: 600 1.35rem/1.3 var(--f-serif); }
.page p, .page li { color: var(--c-ink-soft); }
.page ul { padding-left: 1.25rem; }
.page li + li { margin-top: var(--s-1); }
.page a:not(.back):not(.btn) { color: var(--c-brand-deep); text-underline-offset: 3px; }
.nf { display: grid; place-items: center; text-align: center; }
.nf__code { margin: var(--s-5) 0 0; font: 700 clamp(4.5rem, 12vw, 7rem)/1 var(--f-serif); color: var(--c-brand-deep); }
.nf h1 { margin: var(--s-2) 0 var(--s-6); }

/* gentle entrance; skipped entirely for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .7s var(--ease) both; }
  .rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; } .rise-5 { animation-delay: .34s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 480px) {
  .hero { padding-top: var(--s-7); }
  .stores { flex-direction: column; align-items: center; }
  .store { width: min(260px, 100%); }
}
