:root {
  --bg: #e9e3d4;
  --panel: #f7f3e9;
  --panel-2: #e7dfcf;
  --line: rgba(25,67,78,.16);
  --text: #15313a;
  --muted: #697d7f;
  --gold: #a97938;
  --gold-soft: #c79c57;
  --terracotta: #b85f43;
  --green: #347b62;
  --violet: #756f9d;
  --blue: #167f9b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, rgba(250,248,241,.1) 0%, rgba(239,235,220,.52) 48%, #e9e3d4 78%), url("images/ithaque-columns.184de306cbeb.png") top center / max(1500px, 100vw) auto no-repeat;
}
body:after {
  display: none;
}
.ambient { position: fixed; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); opacity: .16; pointer-events: none; }
.ambient-one { background: var(--gold); top: -270px; left: 15%; }
.ambient-two { background: var(--blue); right: -330px; top: 38%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.topbar { position: relative; height: 82px; padding-inline: 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(169,121,56,.24); border-top: 0; border-radius: 0 0 14px 14px; background: rgba(247,243,233,.86); box-shadow: 0 12px 32px rgba(39,68,71,.1); backdrop-filter: blur(16px); }
.topbar:after { display: none; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(201,154,82,.55); border-radius: 50%; font: 600 18px "Cinzel"; color: var(--gold-soft); box-shadow: inset 0 0 0 3px rgba(201,154,82,.08); }
.brand strong, .brand small { display: block; letter-spacing: .16em; }
.brand strong { font: 600 12px "Cinzel"; }
.brand small { margin-top: 3px; color: var(--gold); font: 500 8px "Cinzel"; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.demo-pill, .status { border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 7px 10px; text-transform: uppercase; }
.demo-pill i { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--gold); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-2); color: var(--text); font: 700 10px "Inter"; text-decoration: none; }
.nav-action, .text-link { color: var(--text); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero { padding: 76px 0 54px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 70px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font: 600 9px "Cinzel"; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font: 700 clamp(54px, 7.5vw, 94px)/.88 "Cormorant Garamond"; letter-spacing: -.035em; text-shadow: 0 2px 24px rgba(255,255,255,.4); }
h1 em { color: var(--gold); font-weight: 700; }
.hero-sub { max-width: 480px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.campaign-card { padding: 24px; border: 1px solid rgba(169,121,56,.28); border-radius: 12px; background: linear-gradient(145deg, rgba(251,248,238,.9), rgba(231,223,207,.82)); box-shadow: inset 0 1px rgba(255,255,255,.72), 0 14px 35px rgba(39,68,71,.08); backdrop-filter: blur(16px); }
.campaign-top, .campaign-bottom { display: flex; align-items: center; justify-content: space-between; }
.campaign-top span, .campaign-bottom { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.campaign-top strong { font: 700 22px "Cormorant Garamond"; }
.campaign-top small { color: var(--muted); font-size: 12px; }
.campaign-track { height: 4px; margin: 27px 0 12px; border-radius: 99px; background: rgba(25,67,78,.1); overflow: hidden; }
.campaign-track span { display: block; height: 100%; min-width: 2%; border-radius: inherit; background: linear-gradient(90deg, #aa7734, var(--gold-soft)); box-shadow: 0 0 22px rgba(231,181,92,.6); }
.mission { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 30px; border: 1px solid rgba(169,121,56,.32); border-radius: 12px; background: linear-gradient(100deg, rgba(255,250,239,.92), rgba(231,223,207,.68)); box-shadow: 0 14px 36px rgba(39,68,71,.07); }
.mission h2 { margin: 0; font: 700 25px/1.15 "Cormorant Garamond"; }
.mission h2 span { color: var(--gold); }
.mission-target { display: flex; align-items: center; gap: 14px; min-width: 220px; padding: 14px 18px; border-left: 1px solid rgba(231,181,92,.22); }
.target-icon { font-size: 28px; color: var(--gold); }
.mission-target strong, .mission-target small { display: block; }
.mission-target strong { font-size: 15px; }
.mission-target small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.weekly-todos { margin-top: 32px; padding: 25px 30px; border: 1px solid rgba(169,121,56,.22); border-radius: 12px; background: rgba(247,243,233,.9); box-shadow: 0 14px 36px rgba(39,68,71,.07); backdrop-filter: blur(18px); }
.weekly-todos-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.weekly-todos-head h2 { margin: 0; font: 700 25px "Cormorant Garamond"; }
.weekly-todos-head > strong { color: var(--gold); font: 700 28px "Cormorant Garamond"; }
.weekly-todos-head > strong small { color: var(--muted); font: 700 8px "Inter"; letter-spacing: .12em; text-transform: uppercase; }
.weekly-todos ul { margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; list-style: none; }
.weekly-todos li { padding: 12px 0; display: flex; align-items: center; gap: 11px; border-top: 1px solid rgba(25,67,78,.08); font-size: 12px; }
.weekly-todos li.done { color: var(--muted); text-decoration: line-through; }
.todo-check { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid rgba(231,181,92,.35); border-radius: 50%; color: var(--green); font-size: 10px; }
.weekly-todos-empty { margin: 20px 0 0; color: var(--muted); font-size: 11px; }
.section-heading { margin: 68px 0 22px; display: flex; align-items: end; justify-content: space-between; }
.section-heading h2 { margin-bottom: 0; font: 700 31px "Cormorant Garamond"; }
.updated { color: var(--muted); font-size: 10px; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { min-height: 385px; padding: 25px; border: 1px solid rgba(25,67,78,.13); border-radius: 14px; background: linear-gradient(145deg, rgba(251,248,238,.94), rgba(232,225,211,.9)); box-shadow: inset 0 1px rgba(255,255,255,.8), 0 20px 50px rgba(39,68,71,.1); backdrop-filter: blur(18px); }
.card-featured { grid-row: span 2; min-height: 786px; background: radial-gradient(circle at 50% 20%, rgba(169,121,56,.12), transparent 39%), linear-gradient(145deg, rgba(251,248,238,.96), rgba(235,227,212,.92)); }
.card-head { display: flex; align-items: center; gap: 12px; }
.card-head > div:nth-child(2) { flex: 1; }
.card-head .eyebrow { margin-bottom: 4px; }
.card h3 { margin: 0; font: 700 21px "Cormorant Garamond"; }
.icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.icon-gold { color: var(--gold); background: rgba(231,181,92,.12); }
.icon-violet { color: var(--violet); background: rgba(155,137,255,.12); }
.icon-blue { color: var(--blue); background: rgba(76,167,255,.12); }
.icon-green { color: var(--green); background: rgba(103,212,156,.12); }
.status-live { color: var(--gold); border-color: rgba(231,181,92,.2); }
.status-good { color: var(--green); border-color: rgba(103,212,156,.2); }
.approach-main { min-height: 295px; display: flex; align-items: center; justify-content: space-around; gap: 20px; }
.big-stat strong, .big-stat span { display: block; }
.big-stat strong { font: 700 51px "Cormorant Garamond"; letter-spacing: -.04em; }
.big-stat strong small { color: var(--muted); font-size: 17px; }
.big-stat span { margin-top: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.big-stat.compact strong { font-size: 34px; }
.ring { --value: 25; position: relative; display: grid; place-items: center; width: 145px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(25,67,78,.09) 0); }
.ring:before { content: ""; position: absolute; width: 126px; aspect-ratio: 1; border-radius: 50%; background: var(--panel); }
.ring span { position: relative; font: 700 35px "Cormorant Garamond"; }
.ring small { color: var(--muted); font-size: 15px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.metric-row.two { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
.metric-row div { padding: 17px; text-align: center; border-right: 1px solid var(--line); }
.metric-row div:last-child { border-right: 0; }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { font: 700 20px "Cormorant Garamond"; }
.metric-row span { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.week-chart { height: 185px; margin: 30px 0 18px; padding-top: 10px; display: flex; justify-content: space-around; align-items: end; border-bottom: 1px solid var(--line); }
.bar-wrap { height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 9px; }
.bar { width: 11px; min-height: 3px; border-radius: 99px 99px 0 0; background: rgba(231,181,92,.34); }
.bar.active { background: var(--gold); box-shadow: 0 0 18px rgba(231,181,92,.35); }
.bar-wrap small { color: var(--muted); font-size: 8px; }
.card-footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.card-footer strong { color: var(--gold-soft); }
.split-stat { min-height: 154px; display: flex; align-items: center; justify-content: space-around; }
.score-orb { display: grid; place-items: center; align-content: center; width: 100px; aspect-ratio: 1; border-radius: 50%; border: 1px solid currentColor; background: rgba(155,137,255,.06); box-shadow: inset 0 0 30px rgba(155,137,255,.08); }
.score-orb strong, .score-orb span { display: block; }
.score-orb strong { font: 700 34px "Cormorant Garamond"; color: var(--text); }
.score-orb span { margin-top: 3px; font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.violet { color: var(--violet); }
.sparkline { height: 58px; display: flex; align-items: end; gap: 6px; border-bottom: 1px solid var(--line); }
.sparkline i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(155,137,255,.1), rgba(155,137,255,.65)); }
.body-stat { min-height: 112px; display: flex; align-items: center; justify-content: space-between; }
.down { color: var(--green); font-size: 11px; font-weight: 700; padding: 7px 10px; border-radius: 99px; background: rgba(103,212,156,.09); }
.weight-line { height: 80px; }
.weight-line svg { width: 100%; height: 100%; overflow: visible; }
.weight-line .area { fill: url(#blueFill); }
.weight-line .line { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
.weight-line.first-measure { display: grid; place-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.habit-score { min-height: 108px; display: flex; align-items: end; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.habit-score strong { font: 700 49px "Cormorant Garamond"; }
.habit-score small { color: var(--muted); font-size: 18px; }
.habit-score span { max-width: 100px; padding-bottom: 7px; color: var(--muted); font-size: 9px; line-height: 1.4; text-transform: uppercase; letter-spacing: .1em; }
.habit-list { margin: 12px 0 0; padding: 0; list-style: none; }
.habit-list li { padding: 10px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(25,67,78,.07); color: var(--muted); font-size: 11px; }
.habit-list li.done { color: var(--text); }
.check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--green); }
.habit-state { margin-left: auto; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.bottom-grid { margin-top: 16px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.quote-card, .next-card { min-height: 190px; padding: 30px; border: 1px solid rgba(169,121,56,.2); border-radius: 14px; background: rgba(247,243,233,.92); box-shadow: 0 14px 36px rgba(39,68,71,.07); backdrop-filter: blur(18px); }
.quote-card blockquote { margin: 20px 0; font: italic 700 24px/1.25 "Cormorant Garamond"; color: var(--gold-soft); }
.quote-card span, .next-card p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.next-card { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(120deg, rgba(76,167,255,.08), var(--panel)); }
.next-card h3 { margin-bottom: 8px; font: 700 23px "Cormorant Garamond"; }
.next-card p { max-width: 440px; margin-bottom: 0; }
.arrow { color: var(--blue); font-size: 37px; }
footer { padding: 45px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.journal-heading { margin-top: 58px; }
.sport-log { margin-bottom: 16px; padding: 22px; border: 1px solid rgba(22,127,155,.2); border-radius: 14px; background: rgba(247,243,233,.92); box-shadow: 0 14px 36px rgba(39,68,71,.07); backdrop-filter: blur(18px); }
.sport-log-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.sport-log-head h3 { margin: 0; font: 700 23px "Cormorant Garamond"; }
.sport-log-head > strong { color: var(--blue); font: 700 25px "Cormorant Garamond"; }
.sport-log-head > strong small { color: var(--muted); font: 700 8px "Inter"; letter-spacing: .1em; text-transform: uppercase; }
.sport-list { display: grid; gap: 8px; }
.sport-list article { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-top: 1px solid rgba(25,67,78,.08); }
.sport-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; color: var(--blue); background: rgba(22,127,155,.09); }
.sport-main { flex: 1; }
.sport-main strong, .sport-main small, .sport-metrics strong, .sport-metrics small { display: block; }
.sport-main strong { font: 700 17px "Cormorant Garamond"; }
.sport-main small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.sport-metrics { display: flex; gap: 24px; text-align: right; }
.sport-metrics strong { font: 700 16px "Cormorant Garamond"; }
.sport-metrics small { margin-top: 2px; color: var(--muted); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.timeline-card { padding: 22px; border: 1px solid rgba(169,121,56,.2); border-radius: 14px; background: rgba(247,243,233,.92); box-shadow: 0 14px 36px rgba(39,68,71,.07); backdrop-filter: blur(18px); }
.empty-log { min-height: 170px; display: flex; align-items: center; gap: 22px; }
.empty-log .compass { display: grid; place-items: center; flex: 0 0 64px; width: 64px; height: 64px; border: 1px solid rgba(231,181,92,.3); border-radius: 50%; color: var(--gold); font-size: 26px; box-shadow: inset 0 0 22px rgba(231,181,92,.07); }
.empty-log div { flex: 1; }
.empty-log strong { font: 700 21px "Cormorant Garamond"; }
.empty-log p { max-width: 560px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty-log a { padding: 11px 14px; border: 1px solid rgba(231,181,92,.3); border-radius: 99px; color: var(--gold-soft); font-size: 9px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .09em; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.photo-strip figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.photo-strip img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-strip figcaption { display: flex; justify-content: space-between; padding: 10px; font-size: 9px; }
.photo-strip figcaption span { color: var(--muted); }
.auth-page:before { background: linear-gradient(90deg, rgba(250,248,241,.88), rgba(239,235,220,.32)), url("images/ithaque-columns.184de306cbeb.png") center / cover no-repeat; }
.auth-shell { min-height: 100vh; width: min(1080px, calc(100% - 32px)); margin: auto; display: grid; grid-template-columns: 1fr 430px; align-items: center; gap: 70px; }
.auth-brand { display: flex; align-items: center; gap: 13px; color: var(--text); font: 600 12px "Cinzel"; letter-spacing: .18em; }
.auth-card { padding: 38px; border: 1px solid rgba(169,121,56,.3); border-radius: 14px; background: rgba(247,243,233,.94); box-shadow: 0 30px 100px rgba(39,68,71,.18), inset 0 1px rgba(255,255,255,.8); backdrop-filter: blur(20px); }
.auth-card h1 { font-size: 52px; }
.auth-card > p:not(.eyebrow), .auth-card > small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.auth-card form { margin: 28px 0 20px; }
.auth-card input, .auth-card select, .auth-card textarea { width: 100%; margin-bottom: 10px; padding: 14px 15px; border: 1px solid rgba(25,67,78,.16); border-radius: 10px; outline: 0; background: rgba(255,255,255,.56); color: var(--text); font: 500 12px "Inter"; }
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus { border-color: rgba(231,181,92,.55); }
.auth-card button { width: 100%; margin-top: 6px; padding: 14px 16px; display: flex; justify-content: space-between; border: 0; border-radius: 10px; background: linear-gradient(100deg, #bd8740, var(--gold-soft)); color: #111; font: 700 11px "Inter"; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.cancel-link { display: block; margin: -7px 0 20px; padding: 11px 14px; border: 1px solid rgba(25,67,78,.16); border-radius: 10px; color: var(--muted); font: 600 10px "Inter"; letter-spacing: .05em; text-align: center; text-decoration: none; text-transform: uppercase; }
.cancel-link:hover { border-color: rgba(169,121,56,.45); color: var(--text); }
.form-error { display: block; margin-bottom: 10px; color: #f29988; font-size: 10px; }
.upload-card { grid-column: 2; margin: 30px 0; }
.upload-card form p { margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.upload-card label { display: block; margin-bottom: 5px; }

@media (max-width: 800px) {
  .shell { width: min(100% - 24px, 600px); }
  .topbar { height: 68px; }
  .demo-pill { display: none; }
  .hero { padding: 48px 0 34px; grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: 53px; }
  .hero-sub { font-size: 13px; }
  .mission { align-items: start; flex-direction: column; }
  .mission-target { width: 100%; padding: 15px 0 0; border-left: 0; border-top: 1px solid rgba(231,181,92,.22); }
  .weekly-todos { padding: 22px; }
  .weekly-todos ul { grid-template-columns: 1fr; }
  .section-heading { margin-top: 50px; }
  .updated { display: none; }
  .pillar-grid, .bottom-grid { grid-template-columns: 1fr; }
  .card-featured { grid-row: auto; min-height: auto; }
  .approach-main { min-height: 235px; }
  .big-stat strong { font-size: 42px; }
  .ring { width: 124px; }
  .ring:before { width: 107px; }
  .week-chart { height: 150px; }
  footer { gap: 20px; line-height: 1.5; }
  .auth-shell { grid-template-columns: 1fr; align-content: center; padding: 24px 0; }
  .auth-brand { display: none; }
  .auth-card, .upload-card { grid-column: 1; padding: 27px; }
  .auth-card h1 { font-size: 44px; }
  .empty-log { align-items: start; flex-wrap: wrap; }
  .empty-log a { margin-left: 86px; }
  .sport-list article { align-items: start; flex-wrap: wrap; }
  .sport-metrics { width: 100%; padding-left: 47px; justify-content: flex-start; text-align: left; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 410px) {
  .card { padding: 20px; }
  .approach-main { justify-content: space-between; }
  .ring { width: 110px; }
  .ring:before { width: 95px; }
  .metric-row div { padding: 14px 8px; }
}
