:root {
  --ink: #101418;
  --muted: #66727e;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #e6e1d7;
  --gold: #c9952e;
  --gold-dark: #7d5611;
  --green: #1e8f6f;
  --blue: #355f8f;
  --rose: #b35c6a;
  --charcoal: #151515;
  --shadow: 0 24px 70px rgba(29, 25, 17, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 149, 46, 0.16), transparent 35%),
    linear-gradient(180deg, #fffdf8 0%, #f6f3eb 52%, #f9f8f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(230, 225, 215, 0.72);
  background: rgba(251, 250, 246, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #050505;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav a:hover,
.nav-action:hover {
  color: var(--ink);
  background: rgba(201, 149, 46, 0.11);
}

.nav-action {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(310px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: clamp(34px, 6vw, 76px) clamp(16px, 5vw, 76px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 28px;
  color: #44505c;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fffaf0;
  background: linear-gradient(135deg, #111 0%, #3a2a10 46%, #c9952e 100%);
  box-shadow: 0 18px 34px rgba(101, 71, 17, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--line);
}

.button.compact {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 14px;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.phone-shell {
  justify-self: center;
  width: min(380px, 100%);
  padding: 13px;
  border-radius: 34px;
  background: linear-gradient(145deg, #171717, #4d3510 52%, #d9a83c);
  box-shadow: 0 34px 90px rgba(38, 30, 17, 0.34);
}

.phone-screen {
  overflow: hidden;
  min-height: 640px;
  padding: 22px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 80% 8%, rgba(201, 149, 46, 0.2), transparent 28%),
    #111315;
  color: #fff;
}

.phone-top,
.profile-line,
.workspace-top,
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.phone-top {
  color: #d8cab0;
  font-size: 13px;
}

.profile-line {
  margin-top: 26px;
}

.small-label {
  display: block;
  margin-bottom: 4px;
  color: #8a96a3;
  font-size: 12px;
  font-weight: 700;
}

.status,
.live-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status.good,
.live-pill {
  color: #dffaf1;
  background: rgba(30, 143, 111, 0.24);
}

.score-ring {
  display: grid;
  place-items: center;
  width: 208px;
  height: 208px;
  margin: 38px auto 30px;
  border: 13px solid rgba(201, 149, 46, 0.2);
  border-top-color: var(--gold);
  border-right-color: #f0c15a;
  border-radius: 50%;
}

.score-ring div {
  display: grid;
  place-items: center;
}

.score-ring strong {
  font-size: 58px;
  line-height: 1;
}

.score-ring span,
.mini-grid span,
.phone-note span {
  color: #b7bec7;
  font-size: 12px;
  font-weight: 700;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-grid div,
.phone-note,
.feature,
.metric-card,
.event,
.list-item,
.waitlist,
.trust-strip > div {
  border: 1px solid rgba(230, 225, 215, 0.82);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 32px rgba(27, 24, 19, 0.06);
}

.phone-screen .mini-grid div,
.phone-note {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.mini-grid div {
  padding: 14px;
}

.mini-grid strong {
  display: block;
  margin-bottom: 3px;
}

.phone-note {
  margin-top: 12px;
  padding: 14px;
}

.phone-note p {
  margin: 7px 0 0;
  color: #edf1f4;
  font-size: 14px;
  line-height: 1.45;
}

.trust-strip,
.section,
.app-section,
.founder-note,
.waitlist,
.footer {
  margin-inline: clamp(16px, 5vw, 76px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 70px;
}

.trust-strip > div {
  padding: 18px;
}

.trust-strip strong {
  display: block;
  margin-bottom: 6px;
}

.trust-strip span,
.feature p,
.waitlist p,
.event p,
.list-item p {
  color: var(--muted);
  line-height: 1.55;
}

.section,
.app-section {
  padding: 76px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  min-height: 230px;
  padding: 22px;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
}

.app-section {
  border-top: 1px solid var(--line);
}

.founder-note {
  display: grid;
  grid-template-columns: 150px minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: start;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.founder-media {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.founder-media img {
  width: 118px;
  height: 118px;
  border: 2px solid rgba(201, 149, 46, 0.48);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 36%;
  box-shadow: 0 18px 34px rgba(27, 24, 19, 0.16);
}

.founder-media span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(201, 149, 46, 0.34);
  border-radius: 999px;
  color: var(--gold-dark);
  background: rgba(201, 149, 46, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.founder-note h2 {
  font-size: clamp(26px, 3vw, 42px);
}

.founder-copy p {
  margin-bottom: 16px;
  color: #44505c;
  font-size: 16px;
  line-height: 1.72;
}

.app-header {
  margin-bottom: 18px;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(27, 24, 19, 0.06);
}

.auth-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(201, 149, 46, 0.16), 0 14px 34px rgba(27, 24, 19, 0.06);
}

.auth-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #111315;
}

.care-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: #fff;
}

.care-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.tab {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cfd5db;
  background: transparent;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.tab.active,
.tab:hover {
  color: #fff8e8;
  background: rgba(201, 149, 46, 0.18);
  border-color: rgba(201, 149, 46, 0.34);
}

.workspace {
  padding: clamp(18px, 3vw, 30px);
}

.workspace-top {
  margin-bottom: 18px;
}

.workspace-top h3 {
  margin: 0;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  padding: 18px;
}

.metric-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.metric-card strong {
  font-size: clamp(25px, 3vw, 38px);
}

.timeline h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.event,
.list-item {
  margin-bottom: 10px;
  padding: 15px;
}

.event span,
.list-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 900;
}

.event p,
.list-item p {
  margin: 0;
}

.event.alert {
  border-color: rgba(179, 92, 106, 0.32);
  background: #fff6f7;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 14px;
}

.profile-card {
  padding: 18px;
  border: 1px solid rgba(230, 225, 215, 0.82);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(27, 24, 19, 0.06);
}

.profile-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.profile-card dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.list-item.done {
  opacity: 0.68;
}

.list-item.done p {
  text-decoration: line-through;
}

.reminder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.reminder-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  padding: 0 9px;
  border-radius: 999px;
  color: #4d5b67;
  background: #f3f1eb;
  font-size: 11px;
}

.med-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.chip-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.chip-button:hover {
  border-color: var(--gold);
}

.chip-button.selected {
  color: #fffaf0;
  border-color: var(--green);
  background: var(--green);
}

.chip-button.urgent {
  color: var(--rose);
  border-color: rgba(179, 92, 106, 0.32);
}

.chip-button.urgent.selected {
  color: #fff;
  border-color: var(--rose);
  background: var(--rose);
}

.quick-add,
.note-composer,
.waitlist-form,
.checkin-form {
  display: grid;
  gap: 10px;
}

.quick-add {
  grid-template-columns: 1fr auto;
  margin-bottom: 12px;
}

.contact-add {
  grid-template-columns: 1fr 1fr 150px auto;
}

.reminder-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(53, 95, 143, 0.22);
  border-radius: 8px;
  background: #f4f8fb;
}

.reminder-banner p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.reminder-banner span {
  max-width: 230px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.med-add {
  display: grid;
  grid-template-columns: 1fr 130px 1fr 120px;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.med-add button {
  grid-column: 1 / -1;
  justify-self: start;
}

.checkin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.checkin-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.checkin-form .wide-field {
  grid-column: 1 / -1;
}

.checkin-form button {
  justify-self: start;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 149, 46, 0.16);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--gold);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.note-composer {
  margin-bottom: 12px;
}

.note-composer .button {
  justify-self: end;
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: 26px;
  align-items: center;
  margin-bottom: 54px;
  padding: clamp(22px, 4vw, 36px);
}

.waitlist-form {
  grid-template-columns: 1fr;
}

.form-message {
  min-height: 20px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .waitlist,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .trust-strip,
  .feature-grid,
  .metric-grid,
  .overview-grid,
  .auth-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-card,
  .overview-grid,
  .founder-note {
    grid-template-columns: 1fr;
  }

  .auth-form,
  .med-add,
  .contact-add,
  .reminder-banner {
    grid-template-columns: 1fr;
  }

  .reminder-banner span {
    max-width: none;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .care-person {
    grid-column: 1 / -1;
  }

  .tab {
    margin-bottom: 0;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav a {
    padding-inline: 8px;
  }

  .nav-action {
    min-width: 72px;
  }

  .hero {
    padding-top: 26px;
  }

  h1 {
    font-size: 46px;
  }

  .phone-screen {
    min-height: 560px;
    padding: 18px;
  }

  .score-ring {
    width: 176px;
    height: 176px;
  }

  .trust-strip,
  .feature-grid,
  .metric-grid,
  .quick-add,
  .checkin-form {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
  }

  .app-header,
  .workspace-top,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .list-item {
    grid-template-columns: 1fr;
  }

  .chip-button {
    justify-self: start;
  }
}
