:root {
  --ink: #17201e;
  --muted: #77807c;
  --paper: #f4f1e9;
  --card: #fffdf8;
  --line: #ddd9ce;
  --forest: #173f37;
  --sage: #96a985;
  --gold: #c7903e;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.app-shell { min-height: 100vh; }
.sidebar { background: #10211e; color: #edf0e8; width: 250px; padding: 30px 22px 24px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 10; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; }
.brand i { color: #aebb9c; font-weight: 400; }
.brand-mark { width: 30px; height: 30px; border: 1px solid #708078; display: grid; place-items: center; border-radius: 50%; color: #d5aa62; font-size: 13px; }
.nav { margin-top: 56px; display: grid; gap: 6px; }
.nav a { color: #a7b0ab; text-decoration: none; padding: 11px 12px; border-radius: 7px; font-size: 14px; display: flex; gap: 12px; align-items: center; }
.nav a span { font-size: 18px; width: 20px; text-align: center; }
.nav a.active, .nav a:hover { background: #1c3430; color: #fff; }
.season-mini { margin-top: auto; border: 1px solid #2c443f; border-radius: 10px; padding: 16px; background: transparent; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 700; }
.season-mini strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; margin-top: 10px; }
.season-mini p { color: #9ca9a4; font-size: 11px; line-height: 1.5; margin: 5px 0 15px; }
.progress { background: #d8ddd3; height: 3px; overflow: hidden; border-radius: 4px; }
.progress span { background: var(--sage); height: 100%; display: block; }
.season-mini .progress { background: #344944; }
.season-mini small { display: block; margin-top: 8px; color: #81908a; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.profile { margin-top: 18px; background: none; border: 0; color: inherit; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; text-align: left; gap: 10px; padding: 4px; cursor: pointer; }
.profile[href] { text-decoration: none; }
.sidebar > form { margin: 18px 0 0; }
.sidebar > form .profile { margin-top: 0; width: 100%; }
.profile .avatar { width: 34px; height: 34px; border-radius: 50%; background: #c6a264; color: #18312c; display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.profile strong, .profile small { display: block; }
.profile strong { font-size: 12px; }.profile small { color: #82908a; font-size: 9px; margin-top: 2px; }
.main { margin-left: 250px; min-height: 100vh; }
.demo-banner { margin: 18px clamp(24px, 5vw, 72px) 0; max-width: 1120px; border: 1px solid #decda9; background: #fbf3df; color: #72582d; border-radius: 7px; padding: 10px 14px; font-size: 11px; }
.demo-banner span { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-right: 8px; }.demo-banner a { color: inherit; float: right; }
.topbar { min-height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 5vw, 72px); }
.topbar p { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.focus-button { border: 0; background: var(--forest); color: white; padding: 10px 16px; border-radius: 5px; font-size: 12px; cursor: pointer; }
.focus-button span { margin-left: 12px; color: #b6c4ad; }
.menu-button { display: none; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; padding: 60px clamp(24px, 5vw, 72px) 38px; max-width: 1440px; }
h1 { font-family: var(--serif); font-size: clamp(42px, 5vw, 66px); line-height: .98; font-weight: 400; margin: 15px 0 0; letter-spacing: -.02em; }
h1 em { color: var(--forest); font-weight: 400; }
.alignment-score { width: 118px; height: 118px; border: 1px solid #bcc8b8; border-radius: 50%; display: grid; place-content: center; text-align: center; position: relative; }
.alignment-score:after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--sage); border-right-color: var(--sage); transform: rotate(22deg); }
.alignment-score span { font-family: var(--serif); font-size: 27px; }
.alignment-score small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; line-height: 1.4; }
.priority-card { margin: 0 clamp(24px, 5vw, 72px) 22px; max-width: 1120px; background: var(--forest); color: white; border-radius: 10px; padding: 26px 30px 28px; box-shadow: 0 15px 35px rgba(30, 49, 43, .08); }
.card-heading { display: flex; justify-content: space-between; align-items: start; padding-bottom: 21px; border-bottom: 1px solid rgba(255,255,255,.14); }
.card-heading > div { display: flex; gap: 20px; }
.number { color: #80988c; font-family: var(--serif); font-size: 26px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 4px 0 0; }
.priority-card h2 { font-size: 21px; }
.card-heading button { background: transparent; border: 0; color: #a7b8b0; font-size: 11px; cursor: pointer; }
.essential-task, .essential-task label { display: flex; align-items: center; gap: 14px; padding-top: 22px; cursor: pointer; width: 100%; }
.essential-task label { padding-top: 0; }
.inline-form { margin: 0; }
.empty-essential { display: block; width: 100%; border: 1px dashed rgba(255,255,255,.25); color: #b9c7c0; background: transparent; padding: 18px; border-radius: 6px; text-align: left; margin-top: 20px; cursor: pointer; }
input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { flex: 0 0 22px; width: 22px; height: 22px; border: 1px solid #71877e; border-radius: 50%; display: grid; place-items: center; }
input:checked + .custom-check:after { content: "✓"; font-size: 12px; }
.essential-task strong, .essential-task small { display: block; }
.essential-task strong { font-size: 14px; font-weight: 500; }
.essential-task small { color: #96aaa1; font-size: 10px; margin-top: 5px; }
.duration { margin-left: auto; color: #95aaa1; font-size: 11px; }
.content-grid { margin: 0 clamp(24px, 5vw, 72px) 46px; max-width: 1120px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px 22px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; }
.panel-title h2 { font-size: 25px; }
.completion { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 5px 9px; }
.big-three { list-style: none; padding: 13px 0 3px; margin: 0; }
.big-three li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid #ebe7df; align-items: center; }
.big-three li button { width: 28px; height: 28px; border-radius: 50%; background: transparent; border: 1px solid #c9c7bf; color: var(--muted); font-family: var(--serif); cursor: pointer; }
.big-three li.done button { background: var(--sage); color: #fff; border-color: var(--sage); }
.big-three li.empty { opacity: .6; }
.big-three li > span { flex: 1; }
.big-three strong, .big-three small { display: block; }
.big-three strong { font-size: 12px; font-weight: 600; }
.big-three small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.big-three .done strong { text-decoration: line-through; color: #8e9490; }
.text-button { background: none; border: 0; color: var(--forest); font-size: 10px; font-weight: 700; padding: 11px 0 0; cursor: pointer; }
.text-button span { margin-left: 5px; }
.add-button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 19px; color: var(--forest); cursor: pointer; }
.task-list { margin-top: 18px; }
.task-list label { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px solid #ebe7df; padding: 12px 0; cursor: pointer; font-size: 11px; }
.empty-task { width: 100%; border: 0; background: transparent; color: var(--muted); padding: 22px 0; text-align: left; cursor: pointer; font-size: 11px; }
.task-list .custom-check { width: 18px; height: 18px; }
.task-list small { color: var(--muted); }
.task-list input:checked ~ span:not(.custom-check) { color: #9ca19e; text-decoration: line-through; }
.day-progress { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; color: var(--muted); font-size: 9px; }
.pillars { max-width: 1264px; padding: 0 clamp(24px, 5vw, 72px) 58px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 37px; margin-bottom: 22px; }
.section-heading p { color: var(--muted); font-family: var(--serif); font-style: italic; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 9px; padding: 20px; position: relative; }
.pillar-grid article { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.pillar-grid article:hover, .pillar-grid article:focus { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(29, 47, 41, .08); outline: none; }
.pillar-icon { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #d9d7cf; border-radius: 50%; color: var(--forest); margin-bottom: 23px; }
.pillar-grid small { color: var(--gold); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.pillar-grid h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 5px 0 3px; }
.pillar-grid p { color: var(--muted); font-size: 10px; margin: 0 0 24px; }
.pillar-grid strong { position: absolute; right: 20px; bottom: 15px; font-family: var(--serif); font-weight: 400; font-size: 12px; }
.pillar-grid .progress { margin-right: 33px; }
footer { border-top: 1px solid var(--line); min-height: 82px; margin: 0 clamp(24px, 5vw, 72px); max-width: 1120px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 14px; }
footer > span { color: var(--gold); } footer a { margin-left: auto; color: var(--forest); text-decoration: none; font-family: var(--sans); font-style: normal; font-size: 10px; font-weight: 700; }
.review-panel { margin: 0 clamp(24px, 5vw, 72px) 40px; max-width: 1120px; padding: 30px 34px; background: #e7e9df; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.review-panel h2 { margin-top: 6px; }.review-panel p { color: var(--muted); font-size: 11px; margin: 7px 0 0; }
.review-panel > button, .primary-action { border: 0; border-radius: 5px; background: var(--forest); color: white; padding: 12px 18px; cursor: pointer; white-space: nowrap; }
.review-panel > button span, .primary-action span { margin-left: 14px; }

.modal { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 12px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 24px 80px rgba(14, 31, 27, .28); }
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(9, 26, 22, .62); backdrop-filter: blur(3px); }
.modal > form { padding: 30px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 26px; }
.modal-head button { border: 0; background: transparent; color: var(--muted); font-size: 26px; cursor: pointer; }
.modal label, .auth-form label { display: grid; gap: 8px; color: #58615e; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.modal input:not([type="checkbox"]):not([type="range"]), .modal select, .modal textarea, .auth-form input { width: 100%; border: 1px solid var(--line); background: #faf8f2; color: var(--ink); padding: 12px 13px; border-radius: 5px; font: 400 13px var(--sans); text-transform: none; letter-spacing: 0; resize: vertical; }
.modal input:focus, .modal select:focus, .modal textarea:focus, .auth-form input:focus { outline: 2px solid rgba(23,63,55,.18); border-color: var(--forest); }
.form-row, .review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-label { grid-template-columns: 18px 1fr !important; align-items: center; cursor: pointer; }
.square-check { width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 4px; }
.check-label input:checked + .square-check { background: var(--forest); border-color: var(--forest); }.check-label input:checked + .square-check:after { content: "✓"; color: white; display: grid; place-items: center; font-size: 11px; }
.primary-action { width: 100%; }.primary-action:disabled { opacity: .45; cursor: not-allowed; }
input[type="range"] { accent-color: var(--forest); width: 100%; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--forest); color: white; padding: 12px 16px; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.2); z-index: 50; font-size: 12px; animation: toast-in .25s ease both; }
.toast.error, .notice.error { background: #713b36; color: white; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #10211e; }
.auth-card { width: min(440px, 100%); background: var(--card); padding: 42px; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.auth-brand { font-family: var(--serif); font-size: 22px; margin-bottom: 48px; }.auth-brand span { color: var(--gold); }.auth-brand i { color: var(--sage); font-weight: 400; }
.auth-card h1 { font-size: 46px; margin: 10px 0 8px; }.auth-card > p { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 28px; }
.auth-form button { width: 100%; border: 0; border-radius: 5px; background: var(--forest); color: white; padding: 13px; cursor: pointer; }.auth-form button span { float: right; }
.notice { padding: 12px; border-radius: 5px; margin: 0 0 20px; font-size: 11px; line-height: 1.5; }
.focus-overlay { position: fixed; inset: 0; z-index: 100; background: #10211e; color: white; display: grid; place-items: center; text-align: center; }
.focus-overlay h2 { font-size: clamp(42px, 6vw, 72px); max-width: 760px; }.focus-overlay p { color: #9eb0a8; }.focus-overlay button { margin-top: 24px; border: 1px solid #557069; background: transparent; color: white; padding: 10px 16px; border-radius: 5px; cursor: pointer; }

@media (max-width: 950px) {
  .sidebar { width: 208px; padding-inline: 16px; }
  .main { margin-left: 208px; }
  .content-grid { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; width: 250px; }
  body.menu-open .sidebar { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-button { display: block; background: none; border: 0; font-size: 20px; color: var(--ink); }
  .topbar { padding-inline: 20px; }
  .topbar p { display: none; }
  .hero { padding-top: 38px; align-items: start; }
  .alignment-score { width: 86px; height: 86px; flex: 0 0 86px; margin-left: 10px; }
  .alignment-score span { font-size: 21px; }
  .priority-card { padding: 22px 20px; }
  .card-heading .number { display: none; }
  .essential-task { align-items: flex-start; }
  .duration { display: none; }
  .panel { padding-inline: 20px; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .review-panel { align-items: flex-start; flex-direction: column; }
  .demo-banner a { float: none; display: block; margin-top: 5px; }
}

@media (max-width: 480px) {
  h1 { font-size: 39px; }
  .hero { padding-bottom: 28px; }
  .alignment-score { display: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .section-heading p { display: none; }
  footer a { display: none; }
  .form-row, .review-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-card { padding: 30px 24px; }
}
