:root {
  color-scheme: light;
  --bg: #f6f3ea;
  --surface: #ffffff;
  --ink: #17211f;
  --muted: #65726e;
  --line: #d9ded7;
  --primary: #176b5d;
  --primary-dark: #0f4d43;
  --accent: #d9863d;
  --soft: #e9f2ee;
  --danger: #c5433d;
  --danger-soft: #f8dedb;
  --ok: #20845f;
  --ok-soft: #dff1e9;
  --warn: #b87617;
  --warn-soft: #fff0cf;
  --shadow: 0 16px 42px rgba(32, 42, 38, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  padding: 18px 16px 28px;
}

.site-page {
  background: #f7f4ea;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.site-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav .nav-cta {
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 42px;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 28px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-weight: 900;
  line-height: 1.35;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.8rem, 10vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-line {
  margin: 18px 0 0;
  color: var(--accent);
  font-size: clamp(1.55rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
  color: #40504b;
  font-size: 1.14rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .button {
  width: auto;
  min-width: 150px;
  text-decoration: none;
}

.phone-preview {
  display: grid;
  justify-self: center;
  width: min(100%, 340px);
  min-height: 620px;
  border: 10px solid #17211f;
  border-radius: 34px;
  background: #f6f3ea;
  box-shadow: 0 28px 70px rgba(23, 33, 31, 0.22);
  padding: 18px;
  position: relative;
}

.phone-top {
  width: 86px;
  height: 6px;
  border-radius: 999px;
  background: #17211f;
  justify-self: center;
  margin-bottom: 20px;
}

.preview-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.preview-brand strong,
.preview-brand span {
  display: block;
}

.preview-brand span {
  color: var(--muted);
  font-size: 0.84rem;
}

.preview-status {
  border-radius: 8px;
  background: var(--warn-soft);
  color: var(--warn);
  padding: 11px 12px;
  font-weight: 900;
}

.preview-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.preview-calendar span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.preview-calendar .show {
  background: var(--ok-soft);
  border-color: #9bd3bd;
  color: var(--ok);
}

.preview-calendar .holiday {
  background: var(--warn-soft);
  border-color: #f2cc7a;
  color: var(--warn);
}

.preview-calendar .dispute {
  background: #eee6ff;
  border-color: #9d7ad8;
  color: #553596;
}

.preview-calendar .future {
  color: #a0aaa5;
}

.preview-pay {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.preview-pay span {
  color: var(--muted);
}

.preview-pay strong {
  color: var(--primary-dark);
  font-size: 1.35rem;
}

.site-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0;
}

.section-head {
  max-width: 680px;
}

.section-head h2,
.split-section h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.section-head p,
.split-section p {
  color: #40504b;
  font-size: 1.05rem;
  line-height: 1.55;
}

.steps,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.steps article,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.steps h3,
.feature-grid h3 {
  margin: 16px 0 8px;
}

.steps p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.feature-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.contact-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.contact-panel a {
  border-bottom: 1px solid var(--line);
  color: var(--primary-dark);
  padding: 8px 0 12px;
  font-weight: 900;
  text-decoration: none;
}

.contact-panel a:last-child {
  border-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0 32px;
}

.legal-shell {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.legal-shell h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 0.95;
}

.legal-shell p {
  color: #40504b;
  font-size: 1.05rem;
  line-height: 1.65;
}

.back-link {
  color: var(--primary-dark);
  font-weight: 900;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

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

.brand-mark,
.brand-logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand-mark {
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.brand-logo {
  border-radius: 10px;
}

.brand h1,
.screen-title h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
}

.brand p,
.screen-title p,
.hint,
.muted {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

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

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 12px 0;
}

.screen-title {
  margin: 12px 0 16px;
}

.field {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.field span {
  font-size: 0.85rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 107, 93, 0.14);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.single-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.button,
.icon-button,
.choice,
.chip,
.link-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  background: var(--soft);
  border-color: #c9ddd5;
  color: var(--primary-dark);
}

.button.danger {
  background: var(--danger-soft);
  border-color: #e7b8b5;
  color: var(--danger);
}

.small-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.small-button.danger {
  border-color: #e7b8b5;
  background: var(--danger-soft);
  color: var(--danger);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 42px;
}

.choice-grid,
.chip-grid {
  display: grid;
  gap: 10px;
}

.choice {
  min-height: 78px;
  padding: 14px;
  text-align: left;
}

.choice strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.choice.active,
.chip.active {
  border-color: var(--primary);
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chip {
  min-height: 48px;
  padding: 10px 8px;
  font-weight: 800;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 102px 106px;
  gap: 8px;
  align-items: end;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.service-row:first-child {
  border-top: 0;
}

.service-name {
  font-weight: 800;
  padding-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.pending {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-pill.approved,
.status-pill.show {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-pill.no-show,
.status-pill.rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-note {
  margin: 0 0 14px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.status-note.pending {
  background: var(--warn-soft);
  color: var(--warn);
}

.status-note.approved {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-note.rejected {
  background: var(--danger-soft);
  color: var(--danger);
}

.summary-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item span:first-child {
  color: var(--muted);
}

.summary-item strong {
  text-align: right;
}

.service-card {
  display: grid;
  width: 100%;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
}

.service-card span:not(.status-pill) {
  color: var(--muted);
  font-size: 0.84rem;
}

.pay-month {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pay-month[open] {
  border-color: #b8d6ca;
}

.pay-month-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}

.pay-month-head::-webkit-details-marker {
  display: none;
}

.pay-month-head span {
  color: var(--primary-dark);
  font-weight: 900;
}

.pay-breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pay-detail-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.pay-detail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
}

.pay-detail-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.comment-note {
  margin: 8px 0 0;
  border-radius: 8px;
  background: #fff8e7;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 0.86rem;
}

.support-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.support-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  text-align: left;
}

.support-card strong {
  font-size: 0.98rem;
}

.support-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.month-title {
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.weekday {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.day {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 3px;
  position: relative;
}

.day.empty {
  border-color: transparent;
  background: transparent;
}

.day.future {
  color: #a0aaa5;
}

.day.show {
  border-color: #9bd3bd;
  background: var(--ok-soft);
}

.day.no-show {
  border-color: #eca7a2;
  background: var(--danger-soft);
}

.day.holiday {
  border-color: #f2cc7a;
  background: var(--warn-soft);
}

.day.dispute {
  border-color: #9d7ad8;
  background: #eee6ff;
  color: #553596;
  font-weight: 900;
}

.day.pending-review::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  right: 5px;
  top: 5px;
}

.notification {
  border-left: 4px solid var(--accent);
  padding: 10px 0 10px 12px;
  border-bottom: 1px solid var(--line);
}

.approval-popup {
  border: 1px solid #f0c36c;
  border-radius: 8px;
  background: #fff8e7;
  padding: 14px;
  margin-bottom: 14px;
}

.approval-popup h3 {
  margin: 10px 0 4px;
  font-size: 1rem;
  line-height: 1.2;
}

.notification:last-child {
  border-bottom: 0;
}

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

.actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

@media (max-width: 380px) {
  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-name {
    padding-bottom: 0;
  }

  .chip-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header,
  .site-nav,
  .hero-actions,
  .site-footer {
    flex-wrap: wrap;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 10px;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .phone-preview {
    min-height: 520px;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }
}

.download-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.download-actions .button {
  text-decoration: none;
}

@media (max-width: 560px) {
  .download-actions {
    grid-template-columns: 1fr;
  }
}
