/* WeeklyFlow web pages follow the mobile app's default palette and type scale. */

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans_400Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans_500Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans_600SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans_700Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #EEF5FA;
  --surface: #FFFFFF;
  --ink: #000000;
  --body: #1C1C1E;
  --muted: rgba(60, 60, 67, 0.72);
  --faint: rgba(60, 60, 67, 0.48);
  --rule: rgba(60, 60, 67, 0.18);
  --accent: #2E9BD6;
  --accent-soft: #D5EEFD;
  --accent-deep: #15577C;
  --green: #1C9A5F;
  --green-soft: #DDF7E9;
  --focus: #DEDBF7;
  --strength: #C9EAD3;
  --create: #FBDBC2;
  --knowledge: #F3E9B0;
  --connection: #F8D6E0;
  --recovery: #CDE7EE;
  --shadow: 0 14px 34px rgba(21, 87, 124, 0.10);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-deep); }

.site-header,
.page-shell,
.site-footer {
  width: min(100%, 960px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--accent-soft);
}

.site-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a,
.footer-nav a {
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'],
.footer-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.18;
}

h1 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 7vw, 3rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 17px;
  letter-spacing: -0.02em;
}

p { margin: 0 0 0.9rem; color: var(--body); }

.lead {
  max-width: 560px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-block;
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.button:hover {
  box-shadow: 0 8px 20px rgba(46, 155, 214, 0.22);
  transform: translateY(-1px);
}

.button.secondary {
  border-color: #B5DDF2;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -45px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.hero-card-top,
.hero-card-content,
.mini-schedule { position: relative; }

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--accent-soft);
}

.hero-card-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-schedule {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 0.45rem;
  height: 105px;
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--bg);
}

.schedule-day {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
  height: 100%;
}

.schedule-day::after {
  content: '';
  display: block;
  height: 5px;
  border-radius: 999px;
  background: var(--rule);
}

.schedule-block {
  display: block;
  min-height: 12px;
  border-radius: 5px;
}

.schedule-block.focus { height: 42px; background: var(--focus); }
.schedule-block.strength { height: 28px; background: var(--strength); }
.schedule-block.create { height: 52px; background: var(--create); }
.schedule-block.knowledge { height: 34px; background: var(--knowledge); }
.schedule-block.connection { height: 45px; background: var(--connection); }
.schedule-block.recovery { height: 22px; background: var(--recovery); }

.hero-card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-card span {
  display: block;
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 3.5rem 0;
  border-top: 1px solid var(--rule);
}

.section-heading { max-width: 680px; margin-bottom: 1.75rem; }
.section-heading p { color: var(--muted); font-size: 17px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.card,
.callout {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  padding: 1.25rem;
}

.card { overflow: hidden; }
.card::before {
  content: '';
  display: block;
  width: 34px;
  height: 5px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: var(--accent);
}

.card:nth-child(2)::before { background: var(--green); }
.card:nth-child(3)::before { background: #B48BDD; }
.card p { color: var(--muted); }
.card p:last-child,
.callout p:last-child { margin-bottom: 0; }

.callout {
  border-color: #B5DDF2;
  background: var(--accent-soft);
}

.prose {
  max-width: 760px;
  padding: 3rem 0 5rem;
}

.prose h1 { font-size: clamp(2rem, 6vw, 2.75rem); }

.meta {
  margin: 0.8rem 0 2.5rem;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.prose > p:first-of-type {
  color: var(--muted);
  font-size: 18px;
}

.prose section { margin-top: 2.75rem; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 17px; font-weight: 600; }
.prose p { color: var(--body); }

.prose ul {
  margin: 0.75rem 0 1rem;
  padding: 0;
  list-style: none;
}

.prose li {
  position: relative;
  margin: 0;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  color: var(--body);
}

.prose li:first-child { border-top: 1px solid var(--rule); }

.prose li::before {
  content: '•';
  position: absolute;
  top: 0.62rem;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.divider {
  margin: 2.75rem 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.contact-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-card a { font-size: 17px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p { color: inherit; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0C0F;
    --surface: #1C1C20;
    --ink: #FFFFFF;
    --body: #F2F2F7;
    --muted: rgba(235, 235, 245, 0.72);
    --faint: rgba(235, 235, 245, 0.48);
    --rule: rgba(235, 235, 245, 0.12);
    --accent: #3D93C4;
    --accent-soft: rgba(61, 147, 196, 0.18);
    --accent-deep: #69B4D8;
    --green: #81E0A5;
    --green-soft: rgba(48, 209, 88, 0.16);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  }

  .hero-card::before { background: rgba(61, 147, 196, 0.16); }
  .button.secondary { border-color: rgba(105, 180, 216, 0.35); }
  .callout { border-color: rgba(105, 180, 216, 0.35); }
}

@media (max-width: 700px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding: 3.5rem 0; }
  .hero-card { min-height: 270px; }
  .card-grid { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
