/* Chorsee site stylesheet. Plain CSS, copied as is by Jekyll. */

/* Tokens */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --card: #ffffff;
  --ink: #0f172a;
  --ink-2: #4b5567;
  --ink-3: #7b8597;
  --line: #e4e8f0;
  --accent: #2f6bdc;
  --accent-ink: #ffffff;
  --accent-soft: #e8effc;
  --check: #1f5fa8;
  --check-soft: #b9d3ec;
  --star: #f5a524;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --phone-shadow: rgba(15, 23, 42, .45);
  --radius: 20px;
  --max: 1120px;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f17;
    --bg-soft: #111827;
    --card: #172033;
    --ink: #f1f5f9;
    --ink-2: #a3aec2;
    --ink-3: #7b879c;
    --line: #243047;
    --accent: #5b95ff;
    --accent-ink: #0b0f17;
    --accent-soft: #1a2a4a;
    --check: #6fa8ff;
    --check-soft: #2a3d60;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --phone-shadow: rgba(0, 0, 0, .6);
  }
}

/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 19px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 15px; font-weight: 600;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-header nav { display: flex; gap: 28px; margin-left: auto; }
.site-header nav a, .site-footer nav a { color: var(--ink-2); font-size: 15px; font-weight: 500; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer small { color: var(--ink-3); font-size: 14px; }

@media (max-width: 900px) {
  section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* Homepage */
/* Hero */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero .lede { font-size: 20px; color: var(--ink-2); margin-top: 22px; max-width: 520px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.badges img { height: 52px; width: auto; }
.platforms { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

.hero-art { position: relative; display: flex; justify-content: center; padding: 20px 0; }
.hero-art::before {
  content: ""; position: absolute; inset: 6% -10% 6% 8%;
  background: radial-gradient(60% 60% at 60% 40%, var(--accent-soft), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.phone {
  --w: 290px; --p: 6px; --rim: #c9ced6;
  --screen: calc(var(--w) - 2 * var(--p));
  --r: calc(var(--screen) * .154);
  position: relative; z-index: 1;
  width: var(--w); padding: var(--p);
  border-radius: calc(var(--r) + var(--p));
  background: #05070a;
  box-shadow: 0 0 0 2px var(--rim), 0 0 0 2.5px rgba(0, 0, 0, .12), 0 30px 60px -20px var(--phone-shadow);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: var(--r); }
.phone.sm { --w: 270px; }
.phone .island {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--p) + var(--screen) * .0274);
  width: calc(var(--screen) * .313); height: calc(var(--screen) * .092);
  background: #000; border-radius: 999px;
}
.phone .btn-l, .phone .btn-r { position: absolute; width: 2px; background: var(--rim); }
.phone .btn-l { left: -2px; top: 24%; height: 9%; border-radius: 2px 0 0 2px; box-shadow: 0 calc(var(--w) * -.14) 0 var(--rim); }
.phone .btn-r { right: -2px; top: 27%; height: 13%; border-radius: 0 2px 2px 0; }

.float {
  position: absolute; z-index: 2;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 16px 18px;
}
.float.today { left: 0; bottom: 14%; width: 200px; }
.float.balance { right: 0; top: 14%; width: 170px; text-align: right; }
.w-title { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.w-title b { font-weight: 700; }
.w-list { list-style: none; font-size: 14px; display: grid; gap: 6px; }
.w-list li { display: flex; align-items: center; gap: 8px; }
.w-list li.done { color: var(--ink-3); text-decoration: line-through; }
.box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--ink-3); flex: none; display: grid; place-items: center; }
.done .box { background: var(--check); border-color: var(--check); }
.done .box::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.bal-label { font-size: 13px; color: var(--ink-2); }
.bal-amt { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.spark { margin-top: 8px; }

/* Features grid */
.features { background: var(--bg-soft); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -0.01em; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; }
.i-yellow { background: #fcef6d; color: #3b3300; }
.i-red { background: #ffa49c; color: #4a120d; }
.i-green { background: #9eefb4; color: #0d3b1c; }
.i-cyan { background: #8af3f3; color: #063b3b; }
.i-tan { background: #ebd3b5; color: #3d2a12; }
.i-blue { background: #b4ccff; color: #0f2a66; }

/* Spotlights */
.spot .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.spot + .spot { padding-top: 0; }
.spot.flip .copy { order: 2; }
.spot .art { display: flex; justify-content: center; position: relative; }
.spot .art::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 40px;
  background: var(--bg-soft); z-index: 0;
}
.spot h2 { font-size: clamp(28px, 3.6vw, 40px); }
.spot .copy > p { color: var(--ink-2); font-size: 19px; margin-top: 16px; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; margin-top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%232f6bdc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* Widgets band */
.widgets { background: var(--bg-soft); }
.widget-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 20px; align-items: stretch; }
.widget {
  background: var(--card); border-radius: 26px; padding: 22px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.week { display: grid; grid-template-columns: auto repeat(7, 1fr); gap: 10px 8px; align-items: center; font-size: 15px; }
.week .d { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pill { height: 10px; border-radius: 6px; background: var(--check-soft); }
.pill.full { background: var(--check); }
.pill.half { background: linear-gradient(90deg, var(--check) 50%, var(--check-soft) 50%); }
.pill.none { background: transparent; }
.progress { height: 8px; border-radius: 4px; background: var(--line); margin-top: 14px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 4px; }

/* Values */
.values .grid { gap: 40px; }
.value h3 { font-size: 21px; margin-bottom: 10px; }
.value p { color: var(--ink-2); }
.value .num { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 12px; display: block; }
.value { border-top: 2px solid var(--ink); padding-top: 20px; }

/* Reviews */
.reviews { background: var(--bg-soft); }
.review blockquote { font-size: 17px; color: var(--ink); margin-top: 14px; }
.review h3 { font-size: 18px; margin-top: 14px; }
.review footer { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.stars { display: flex; gap: 3px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }

/* CTA */
.cta-panel {
  border-radius: 32px; padding: 72px 32px; text-align: center;
  background: linear-gradient(135deg, #2a4fc8 0%, #3b86ea 100%);
  color: #fff;
}
.cta-panel img.appicon { width: 84px; height: 84px; border-radius: 19px; margin: 0 auto 24px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.cta-panel h2 { font-size: clamp(30px, 4.4vw, 46px); }
.cta-panel p { margin-top: 14px; font-size: 19px; opacity: .88; }
.cta-panel .badges { justify-content: center; }

/* Document pages */
.doc { max-width: 768px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 24px; }
.doc * + h1 { margin-top: 40px; }
.doc .post-meta + h1 { margin-top: 0; }
.doc h2 { font-size: 24px; margin: 40px 0 14px; }
.doc p { margin-bottom: 16px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 24px; color: var(--ink-2); }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { overflow-wrap: anywhere; }
.doc a:hover { text-decoration: underline; }
.doc iframe { display: block; border: 0; }
.doc img { height: auto; margin: 12px 0 20px; border-radius: 12px; }
/* The Tally form always uses dark text, so it stays on white in both modes */
.form-panel { color-scheme: light; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 24px; }

/* Blog */
.post-meta { font-size: 15px; }
.doc .post-list { list-style: none; padding: 0; margin: 0; }
.doc .post-list li { padding: 24px 0; margin: 0; border-top: 1px solid var(--line); }
.post-list time { color: var(--ink-3); font-size: 14px; }
.post-list h2 { margin: 6px 0 8px; font-size: 24px; }
.post-list h2 a { color: var(--ink); }
.post-list p { margin: 0; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 8px; height: 8px; margin-right: 3px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--bg-soft); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer ol { padding-left: 22px; }
.faq .answer li + li { margin-top: 6px; }
.faq-more { margin-top: 32px; }

/* Join household */
.join { max-width: 768px; padding-top: 56px; padding-bottom: 80px; }
.join h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 32px; }
.join-steps { list-style: none; counter-reset: step; display: grid; gap: 16px; }
.join-steps > li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 72px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.join-steps > li::before {
  content: counter(step);
  position: absolute; left: 24px; top: 22px;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 16px;
}
.join-steps h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; padding-top: 3px; }
.join-steps p { margin-top: 12px; color: var(--ink-2); }
.join-copy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.join-copy[hidden] { display: none; }
.join-copy input {
  width: 150px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-soft); color: var(--ink);
  font: 600 18px/1 var(--font-text); letter-spacing: .04em;
}
.join-copy .btn { height: 44px; min-width: 96px; border: 0; cursor: pointer; font-family: inherit; }
.join-steps .badges { margin-top: 16px; }
.join-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; margin-top: 16px; }
.join-shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }

/* 404 */
.not-found { padding-top: 96px; padding-bottom: 112px; text-align: center; }
.not-found h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 14px; }
.not-found p { color: var(--ink-2); margin-bottom: 24px; }
.not-found .more { margin: 24px 0 0; font-size: 15px; }

/* Homepage responsive */
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap, .spot .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero .copy { text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .badges { justify-content: center; }
  .spot.flip .copy { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .widget-row { grid-template-columns: 1fr 1fr; }
  .widget-row .widget:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid, .values .grid { grid-template-columns: 1fr; }
  .widget-row { grid-template-columns: 1fr; }
  .phone, .phone.sm { --w: 240px; }
  .float.today { left: -4px; width: 176px; }
  .float.balance { right: -4px; width: 150px; }
  .badges img { height: 46px; }
  .cta-panel { padding: 56px 20px; border-radius: 24px; }
  .join-steps > li { padding: 20px 16px 20px 60px; }
  .join-steps > li::before { left: 16px; top: 18px; }
}
