:root {
  --ink: #183532;
  --ink-2: #38524e;
  --muted: #6f817d;
  --bg: #f6f4ed;
  --bg-soft: #fbfaf6;
  --paper: #ffffff;
  --paper-soft: #f7fbf9;
  --line: #dfe9e5;
  --line-soft: #edf3f1;
  --teal: #0f766e;
  --teal-dark: #07554f;
  --teal-soft: #e6f5f1;
  --gold: #c99a3d;
  --gold-soft: #fff6dc;
  --shadow-sm: 0 10px 24px rgba(24, 53, 50, 0.07);
  --shadow: 0 22px 55px rgba(24, 53, 50, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
img { display: block; max-width: 100%; }

.site-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(180deg, #f9f7ef 0%, #f2f6f1 48%, #f6f4ed 100%);
}
.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,118,110,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15,118,110,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .55;
}
.mesh { position: absolute; border-radius: 999px; filter: blur(10px); opacity: .28; }
.mesh-one { width: 32rem; height: 32rem; left: -16rem; top: -8rem; background: radial-gradient(circle, rgba(15,118,110,.30), transparent 65%); }
.mesh-two { width: 30rem; height: 30rem; right: -15rem; top: 10rem; background: radial-gradient(circle, rgba(201,154,61,.22), transparent 67%); }
.mesh-three { width: 28rem; height: 28rem; left: 44%; bottom: -16rem; background: radial-gradient(circle, rgba(15,118,110,.18), transparent 66%); }
.pattern { display: none; }

.landing-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.brand strong { display: block; font-size: .96rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-weight: 650; font-size: .78rem; }
.header-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.header-actions a {
  color: var(--ink-2);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 750;
  font-size: .84rem;
}
.header-actions a:hover { background: #fff; color: var(--teal-dark); box-shadow: var(--shadow-sm); }
.admin-link { border: 1px solid var(--line); background: rgba(255,255,255,.64); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero-section {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 450px);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: 48px 0 40px;
}
.hero-copy { color: var(--ink); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  border: 1px solid #cfe7e1;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: .84rem;
}
h1 {
  margin: 22px 0 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.065em;
  max-width: 620px;
}
.hero-lead {
  margin: 0;
  max-width: 670px;
  color: var(--ink-2);
  font-size: clamp(.98rem, 1.1vw, 1.06rem);
  line-height: 1.68;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.primary-btn, .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-btn { color: #fff; background: var(--teal); box-shadow: 0 12px 26px rgba(15,118,110,.20); }
.ghost-btn { color: var(--teal-dark); border: 1px solid #cfe3df; background: #fff; }
.primary-btn:hover, .ghost-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 26px;
  max-width: 620px;
}
.trust-row div {
  padding: 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.trust-row strong { display: block; font-size: .94rem; letter-spacing: -.02em; }
.trust-row span { display: block; margin-top: 7px; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.selector-card, .table-card, .info-grid article {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(220,232,227,.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.selector-card { padding: 24px; position: relative; overflow: hidden; }
.selector-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--teal); opacity: .9; }
.card-head, .section-title { display: flex; align-items: flex-start; gap: 14px; }
.card-icon, .section-title span {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 1.2rem;
  border: 1px solid #cfe7e1;
}
.card-head h2, .section-title h2 { margin: 0; font-size: 1.2rem; letter-spacing: -.035em; }
.card-head p, .section-title p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; }
.form-grid { display: grid; gap: 13px; margin-top: 23px; }
.form-grid label span { display: block; margin-bottom: 7px; font-size: .76rem; color: var(--ink-2); font-weight: 850; text-transform: uppercase; letter-spacing: .055em; }
select, input[type="month"] {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
select:focus, input[type="month"]:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,.10); background: #fff; }
select:disabled { color: #94a3b8; background: #f6f8f7; }
.status-line {
  margin-top: 15px;
  padding: 12px 13px;
  border-radius: 14px;
  color: var(--ink-2);
  background: var(--paper-soft);
  border: 1px solid var(--line-soft);
  font-size: .9rem;
  line-height: 1.45;
}
.status-line.error { color: #b91c1c; background: #fff1f2; border-color: #fecdd3; }
.today-panel {
  margin-top: 17px;
  border-radius: 23px;
  background: linear-gradient(135deg, #07554f, #0f766e);
  color: #fff;
  padding: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 34px rgba(15, 118, 110, .18);
}
.today-panel::after { content: ""; position: absolute; right: -56px; bottom: -70px; width: 176px; height: 176px; border-radius: 50%; border: 30px solid rgba(255,255,255,.055); }
.today-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; position: relative; z-index: 1; }
.muted-label { color: rgba(255,255,255,.68); font-weight: 850; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.today-top h3 { margin: 6px 0 5px; font-size: 1.16rem; letter-spacing: -.035em; }
.today-top p { margin: 0; color: rgba(255,255,255,.78); line-height: 1.45; }
.next-time { text-align: right; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 17px; padding: 11px 13px; min-width: 126px; }
.next-time span, .next-time small { display: block; color: rgba(255,255,255,.72); font-size: .74rem; font-weight: 800; }
.next-time strong { display: block; margin: 4px 0; font-size: .96rem; }
.times-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 17px; position: relative; z-index: 1; }
.time-box { padding: 13px; border-radius: 16px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.15); }
.time-box span { display: block; color: rgba(255,255,255,.70); font-weight: 800; font-size: .74rem; }
.time-box strong { display: block; margin-top: 5px; font-size: 1.08rem; letter-spacing: -.035em; }

.content-section { padding: 12px 0 32px; }
.section-title { color: var(--ink); margin-bottom: 16px; align-items: center; }
.section-title span { background: #fff; color: var(--teal); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.section-title p { color: var(--muted); }
.table-card { padding: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px 15px; color: var(--ink-2); font-weight: 800; font-size: .95rem; }
.print-btn { border: 0; border-radius: 999px; background: var(--teal); color: #fff; min-height: 38px; padding: 0 14px; font-weight: 850; cursor: pointer; box-shadow: 0 10px 20px rgba(15,118,110,.15); }
.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line-soft); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 780px; background: #fff; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid #edf2ef; white-space: nowrap; }
th { color: var(--teal-dark); font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; background: #f7fbf9; }
td { color: #29433f; font-weight: 700; }
tbody tr:hover td { background: #fbf8ef; }
tbody tr.today-row td { background: #e9f8f3; color: #07554f; }
.empty-cell { text-align: center; padding: 30px; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; padding: 18px 0 56px; }
.info-grid article { padding: 20px; box-shadow: var(--shadow-sm); }
.info-grid i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; background: var(--gold-soft); color: #9a6700; font-size: 1.1rem; border: 1px solid rgba(201,154,61,.20); }
.info-grid h3 { margin: 16px 0 8px; font-size: .96rem; letter-spacing: -.025em; }
.info-grid p { margin: 0; color: var(--muted); line-height: 1.65; }
.landing-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 18px 0 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: rgba(24,53,50,.62); font-weight: 700; }

@media (max-width: 1020px) {
  .hero-section { grid-template-columns: 1fr; padding-top: 28px; }
  .selector-card { max-width: 720px; width: 100%; }
  .trust-row, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .landing-header { align-items: flex-start; flex-direction: column; width: min(100% - 26px, 1180px); }
  main, .landing-footer { width: min(100% - 26px, 1180px); }
  .header-actions { justify-content: flex-start; gap: 5px; }
  .header-actions a { padding: 8px 10px; font-size: .82rem; }
  .hero-section { padding: 24px 0 36px; gap: 24px; }
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.85rem); letter-spacing: -.045em; }
  .hero-lead { font-size: .94rem; line-height: 1.68; }
  .selector-card { padding: 20px; border-radius: 24px; }
  .card-head { align-items: center; }
  .today-top { flex-direction: column; }
  .next-time { text-align: left; width: 100%; }
  .times-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table-card { border-radius: 24px; }
  .table-toolbar { flex-direction: column; align-items: flex-start; }
}
@media print {
  body { background: #fff; }
  .landing-header, .hero-copy, .selector-card, .section-title, .info-grid, .landing-footer, .site-bg, .print-btn { display: none !important; }
  main { width: 100%; }
  .content-section { padding: 0; }
  .table-card { box-shadow: none; border: 0; padding: 0; }
  .table-wrap { border: 0; }
}
