/*
Theme Name: Magnus Life Planner
Theme URI: https://magnuslifeplanner.wordpress.com
Description: Landing page theme for the Magnus app — Calm & Balanced identity.
Version: 2.1.1
Author: Magnus
Author URI: https://magnuslifeplanner.wordpress.com
Text Domain: magnus-life-planner
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  --bg: #FAF4ED;
  --surface: #FFFDF9;
  --ink: #2D3A42;
  --ink-2: #43525B;
  --muted: #857C70;
  --accent: #457B9D;
  --accent-press: #3A6885;
  --accent-soft: #E6EEF3;
  --coral: #FF8C42;
  --coral-ink: #ED7A2E;
  --sage: #A7C957;
  --sage-ink: #6F8F2E;
  --gold: #E9B872;
  --gold-ink: #C4933F;
  --band: #EEF2E1;
  --line: rgba(45, 58, 66, 0.10);
  --line-strong: rgba(45, 58, 66, 0.20);
  --shadow-card: 0 1px 0 rgba(45,58,66,.04), 0 22px 50px rgba(45,58,66,.12);
  --radius: 18px;
  --radius-sm: 10px;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; font-weight: 600; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(250, 244, 237, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: background .2s ease; }
.nav-cta:hover { background: var(--accent-press); }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  text-decoration: none; font-family: var(--body); font-size: 15px; font-weight: 600;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease; cursor: pointer; border: 0;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 26px rgba(69,123,157,.26); }
.button-primary:hover { background: var(--accent-press); }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.button-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.hero-arc { position: absolute; top: -12%; right: -8%; width: 720px; max-width: 90vw; height: auto; opacity: .55; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 2; width: min(1120px, 100%); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: clamp(36px, 6vw, 80px); align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 68px); line-height: 1.02; max-width: 12ch; }
.hero-sub { margin: 22px 0 30px; max-width: 46ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 24px 0 0; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

/* product card */
.today-card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.today-head { display: flex; align-items: baseline; justify-content: space-between; }
.today-head strong { font-family: var(--display); font-weight: 600; font-size: 20px; }
.today-head time { color: var(--muted); font-size: 13px; }
.today-cap { margin: 4px 0 14px; font-size: 14px; color: var(--muted); }
.brow { display: grid; grid-template-columns: 22px 1fr auto; gap: 11px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.brow .bdot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); justify-self: center; }
.brow .bdot.warm { background: var(--coral); }
.brow .brt { color: var(--muted); font-size: 12px; }
.brow.is-muted { color: var(--muted); }
.brow.is-muted .bdot { background: var(--line-strong); }

/* ---------- features (multi-accent) ---------- */
.section { padding: clamp(56px, 8vw, 92px) clamp(20px, 5vw, 64px); }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-heading .eyebrow { color: var(--muted); }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; }
.feature-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); background: var(--accent-soft); }
.feature-icon.fi-blue  { color: var(--accent);   background: var(--accent-soft); }
.feature-icon.fi-sage  { color: var(--sage-ink); background: #EFF3E1; }
.feature-icon.fi-gold  { color: var(--gold-ink); background: #FBF0DC; }
.feature-icon.fi-coral { color: var(--coral-ink);background: #FFEEE1; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- accent band (soft sage) ---------- */
.band { background: var(--band); }
.band-inner { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(52px, 7vw, 80px) clamp(20px, 5vw, 64px); }
.band-inner h2 { margin: 0 0 14px; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.08; }
.band-inner p { margin: 0 auto; max-width: 52ch; color: var(--ink-2); font-size: 17px; }

/* ---------- how it works ---------- */
.how-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: clamp(36px, 7vw, 90px); align-items: center; }
.how-copy h2 { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 28px; }
.steps { display: flex; flex-direction: column; gap: 22px; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; }
.step h3 { margin: 0 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.phone { width: min(320px, 100%); margin: 0 auto; border: 9px solid var(--ink); border-radius: 40px; background: var(--ink); box-shadow: var(--shadow-card); }
.phone-screen { background: var(--surface); border-radius: 31px; padding: 30px 20px 22px; min-height: 480px; }

/* ---------- cta (deep slate, coral action) ---------- */
.cta { background: var(--ink); color: #fff; }
.cta-inner { max-width: 980px; margin: 0 auto; padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta-inner h2 { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 3.6vw, 38px); }
.cta-inner p { margin: 0; color: rgba(255,255,255,.74); max-width: 52ch; }
.cta .button-primary { background: var(--coral); color: var(--ink); box-shadow: 0 12px 26px rgba(255,140,66,.3); }
.cta .button-primary:hover { background: #ff7d2b; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 52px clamp(20px,5vw,64px) 30px; display: grid; grid-template-columns: minmax(240px,1.6fr) repeat(3, minmax(130px,.5fr)); gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; margin: 0; color: rgba(255,255,255,.58); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin: 0 0 4px; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.footer-col a { text-decoration: none; color: rgba(255,255,255,.72); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; text-align: center; color: rgba(255,255,255,.45); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-inner, .how-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-arc .arc-path { stroke-dasharray: 760; stroke-dashoffset: 760; animation: arc 1.8s ease forwards .15s; }
  @keyframes arc { to { stroke-dashoffset: 0; } }
}

/* ---------- legal / content pages ---------- */
.site-header-page { position: relative; }
.page-shell { padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 64px); max-width: 860px; margin: 0 auto; min-height: 60vh; }
.page-content .eyebrow { color: var(--muted); }
.page-content h1 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(30px, 5vw, 46px); line-height: 1.08; color: var(--ink); }
.rule { width: 48px; height: 2px; background: var(--accent); margin: 18px 0 24px; }
.page-body { color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.page-body h2, .page-body h3, .page-body h4 { font-family: var(--display); color: var(--ink); margin: 1.9rem 0 .6rem; }
.page-body p, .page-body ul, .page-body ol { margin: 0 0 1rem; }
.page-body a { color: var(--accent); }
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
