/* Feel & Be website. Same look as the app: DM Sans, warm light background, soft glows, dark pills. */

@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url(fonts/DMSans-400Regular.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url(fonts/DMSans-500Medium.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url(fonts/DMSans-600SemiBold.woff2) format('woff2'); }

:root {
  --bg: #F8F5F0;
  --ink: #2B2622;
  --muted: #5E5650;
  --surface: rgba(255, 255, 255, .74);
  --edge: rgba(255, 255, 255, .9);
  --rule: rgba(43, 38, 34, .08);
  --teal: #41A2A4;
  --teal-ink: #2F7F81;
  --mint: #A4CCB6;
  --rose: #E18FA2;
  --gold: #D4A22B;
  --violet: #5D479E;
  --sky: #8FB1E0;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
/* glows may spill past the sides; trim them there without cutting them under the top bar */
html, body { overflow-x: hidden; overflow-x: clip; }
body { position: relative; }

.glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.wrap { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* top bar */
.bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; max-width: 1040px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -.2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* type */
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -1.2px; font-weight: 600; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.6px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--ink); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 14px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 500; font-size: 16px; box-shadow: 0 10px 26px rgba(43, 38, 34, .18); border: none; }
.btn.soft { background: var(--surface); color: var(--ink); border: 1px solid var(--edge); box-shadow: 0 8px 22px rgba(43, 38, 34, .06); }
.btn[aria-disabled="true"] { cursor: default; }

/* hero */
.hero { position: relative; padding: 40px 0 70px; text-align: center; }
.hero .lead { max-width: 560px; margin: 20px auto 0; }
.hero .muted { max-width: 520px; margin: 14px auto 0; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* the breath, drawn like the app's opening breath */
.breath { position: relative; width: 240px; height: 240px; margin: 0 auto 18px; }
.breath .halo { position: absolute; inset: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(65, 162, 164, .42) 0%, rgba(164, 204, 182, .22) 34%, rgba(164, 204, 182, 0) 66%); }
.breath svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.breath .ring { fill: none; stroke: #fff; transform-box: fill-box; transform-origin: center; animation: swell 8.5s ease-in-out infinite; }
.breath .core { transform-box: fill-box; transform-origin: center; animation: swell 8.5s ease-in-out infinite; }
/* in for 4s, a quarter-second rest, out for 4s, a quarter-second rest: the same rhythm as the app */
@keyframes swell {
  0% { transform: scale(.62); }
  47% { transform: scale(1); }
  50% { transform: scale(1); }
  97% { transform: scale(.62); }
  100% { transform: scale(.62); }
}
@media (prefers-reduced-motion: reduce) { .breath .ring, .breath .core { animation: none; transform: scale(.82); } }

/* sections and cards */
section { position: relative; padding: 56px 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; background: var(--surface); border: 1px solid var(--edge); border-radius: 26px; padding: 24px 24px 20px; box-shadow: 0 16px 40px rgba(43, 38, 34, .06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.card .dot { width: 14px; height: 14px; border-radius: 50%; margin-bottom: 14px; }
.card p { color: var(--muted); }
.center { text-align: center; }
.center .lead, .center > p { margin-left: auto; margin-right: auto; max-width: 620px; }

/* the swipe illustration */
.swipe { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0 14px; max-width: 360px; margin: 26px auto 0; }
.swipe .w { font-size: 15px; }
.swipe .l { text-align: right; }
.swipe .mini { grid-column: 2; width: 132px; height: 168px; border-radius: 22px; background: var(--surface); border: 1px solid var(--edge); box-shadow: 0 18px 40px rgba(31, 40, 50, .16); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 600; letter-spacing: -.4px; color: #24595A; margin: 10px 0; }
.swipe .arrow { grid-column: 2; display: flex; justify-content: center; height: 26px; align-items: center; }

/* color blends, like History */
.blends { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.blends span { width: 34px; height: 34px; border-radius: 50%; }
.blends span.empty { border: 1.5px dashed var(--rule); }

/* lists and guides */
ol, ul { margin: 0 0 12px; padding-left: 22px; }
li { margin: 4px 0; }
.guide { margin-top: 18px; }
.guide h3 { display: flex; align-items: center; gap: 10px; }
.guide h3 .dot { width: 12px; height: 12px; border-radius: 50%; margin: 0; flex: none; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); text-decoration: none; font-size: 15px; }

.page-head { position: relative; padding: 30px 0 10px; }
.page-head .lead { margin-top: 14px; max-width: 640px; }
.note { background: rgba(143, 177, 224, .16); border-radius: 18px; padding: 14px 18px; font-size: 15px; color: var(--ink); margin: 18px 0; }

/* footer */
footer { position: relative; z-index: 1; border-top: 1px solid var(--rule); margin-top: 40px; padding: 30px 24px 46px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 0; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--muted); font-size: 15px; }
footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
  .nav { justify-content: flex-start; gap: 16px; }
  .wrap { padding: 0 20px; }
  section { padding: 40px 0; }
  .hero { padding-top: 24px; }
}
