:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
}

a {
  color: inherit;
}

.page-shell {
  --ink: #122118;
  --muted: #657168;
  --paper: #f5f2e9;
  --card: #fffdf7;
  --line: #d9ddd4;
  --green: #174d34;
  --green-bright: #52cf84;
  --lime: #d9f36c;
  --sales: #f36b4d;
  --sales-soft: #ffdbcd;
  --on-accent: #fff;
  --transparent: transparent;
  --glow-green: rgba(82, 207, 132, 0.18);
  --glow-lime: rgba(217, 243, 108, 0.22);
  --header-line: rgba(18, 33, 24, 0.14);
  --pill-bg: rgba(255, 253, 247, 0.55);
  --card-hover-line: rgba(23, 77, 52, 0.34);
  --card-hover-shadow: 0 34px 80px rgba(33, 52, 40, 0.18);
  --status-bg: rgba(23, 77, 52, 0.08);
  --sales-status-bg: rgba(243, 107, 77, 0.12);
  --sales-status-ink: #9f311e;
  --sales-action: #b63c24;
  --sales-action-border: rgba(159, 49, 30, 0.24);
  --sales-action-bg: rgba(255, 253, 247, 0.82);
  --sales-action-ink: #702316;
  --sales-action-hover: #fff;
  --sales-card: #fff8f4;
  --sales-card-line: #f2b8aa;
  --sales-card-title: #8f2d1c;
  --sales-card-shadow: 0 26px 70px rgba(104, 45, 30, 0.16);
  --shadow: 0 26px 70px rgba(33, 52, 40, 0.12);
  display: grid;
  width: 100%;
  min-height: 100svh;
  padding-inline: max(24px, calc((100% - 1240px) / 2));
  grid-template-rows: auto 1fr auto;
  color-scheme: light;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 12%, var(--glow-green), var(--transparent) 23rem),
    radial-gradient(circle at 93% 86%, var(--glow-lime), var(--transparent) 26rem),
    var(--paper);
}

@media (prefers-color-scheme: dark) {
  .page-shell {
    --ink: #eff8f1;
    --muted: #aab8ae;
    --paper: #0d1711;
    --card: #15231a;
    --line: #314238;
    --green: #7cdaa3;
    --green-bright: #8de3b2;
    --lime: #d9f36c;
    --sales: #ff8065;
    --sales-soft: #51261d;
    --on-accent: #0d1711;
    --glow-green: rgba(82, 207, 132, 0.1);
    --glow-lime: rgba(217, 243, 108, 0.08);
    --header-line: rgba(239, 248, 241, 0.16);
    --pill-bg: rgba(21, 35, 26, 0.72);
    --card-hover-line: rgba(124, 218, 163, 0.45);
    --card-hover-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
    --status-bg: rgba(124, 218, 163, 0.12);
    --sales-status-bg: rgba(255, 128, 101, 0.14);
    --sales-status-ink: #ff9a84;
    --sales-action: #f07a5f;
    --sales-action-border: rgba(255, 154, 132, 0.35);
    --sales-action-bg: rgba(21, 35, 26, 0.84);
    --sales-action-ink: #ffb5a5;
    --sales-action-hover: #21352a;
    --sales-card: #2a1b18;
    --sales-card-line: #6a382f;
    --sales-card-title: #ff9a84;
    --sales-card-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
  }

  #themeswitch:checked ~ .page-shell {
    --ink: #122118;
    --muted: #657168;
    --paper: #f5f2e9;
    --card: #fffdf7;
    --line: #d9ddd4;
    --green: #174d34;
    --green-bright: #52cf84;
    --lime: #d9f36c;
    --sales: #f36b4d;
    --sales-soft: #ffdbcd;
    --on-accent: #fff;
    --glow-green: rgba(82, 207, 132, 0.18);
    --glow-lime: rgba(217, 243, 108, 0.22);
    --header-line: rgba(18, 33, 24, 0.14);
    --pill-bg: rgba(255, 253, 247, 0.55);
    --card-hover-line: rgba(23, 77, 52, 0.34);
    --card-hover-shadow: 0 34px 80px rgba(33, 52, 40, 0.18);
    --status-bg: rgba(23, 77, 52, 0.08);
    --sales-status-bg: rgba(243, 107, 77, 0.12);
    --sales-status-ink: #9f311e;
    --sales-action: #b63c24;
    --sales-action-border: rgba(159, 49, 30, 0.24);
    --sales-action-bg: rgba(255, 253, 247, 0.82);
    --sales-action-ink: #702316;
    --sales-action-hover: #fff;
    --sales-card: #fff8f4;
    --sales-card-line: #f2b8aa;
    --sales-card-title: #8f2d1c;
    --sales-card-shadow: 0 26px 70px rgba(104, 45, 30, 0.16);
    --shadow: 0 26px 70px rgba(33, 52, 40, 0.12);
    color-scheme: light;
  }
}

@media (prefers-color-scheme: light) {
  #themeswitch:checked ~ .page-shell {
    --ink: #eff8f1;
    --muted: #aab8ae;
    --paper: #0d1711;
    --card: #15231a;
    --line: #314238;
    --green: #7cdaa3;
    --green-bright: #8de3b2;
    --lime: #d9f36c;
    --sales: #ff8065;
    --sales-soft: #51261d;
    --on-accent: #0d1711;
    --glow-green: rgba(82, 207, 132, 0.1);
    --glow-lime: rgba(217, 243, 108, 0.08);
    --header-line: rgba(239, 248, 241, 0.16);
    --pill-bg: rgba(21, 35, 26, 0.72);
    --card-hover-line: rgba(124, 218, 163, 0.45);
    --card-hover-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
    --status-bg: rgba(124, 218, 163, 0.12);
    --sales-status-bg: rgba(255, 128, 101, 0.14);
    --sales-status-ink: #ff9a84;
    --sales-action: #f07a5f;
    --sales-action-border: rgba(255, 154, 132, 0.35);
    --sales-action-bg: rgba(21, 35, 26, 0.84);
    --sales-action-ink: #ffb5a5;
    --sales-action-hover: #21352a;
    --sales-card: #2a1b18;
    --sales-card-line: #6a382f;
    --sales-card-title: #ff9a84;
    --sales-card-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    color-scheme: dark;
  }
}

.page-shell,
.page-shell *,
.page-shell *::before,
.page-shell *::after {
  transition: background-color 350ms ease, border-color 350ms ease,
    color 350ms ease, box-shadow 350ms ease;
}

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--header-line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 26px;
  height: 27px;
  padding: 5px;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  border-radius: 8px;
  background: var(--green);
}

.brand-mark span {
  border-radius: 4px;
  background: var(--lime);
}

.brand-mark span:nth-child(1) { height: 8px; }
.brand-mark span:nth-child(2) { height: 16px; }
.brand-mark span:nth-child(3) { height: 11px; }

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--pill-bg);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

#themeswitch:checked ~ .page-shell .theme-toggle {
  color: var(--on-accent);
  background: var(--green);
}

#themeswitch:focus-visible ~ .page-shell .theme-toggle {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  display: grid;
  align-items: center;
}

.landing {
  display: grid;
  padding: clamp(44px, 7vh, 84px) 0;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.3fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.intro {
  max-width: 500px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.lede {
  max-width: 44ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
}

.principles {
  display: flex;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 8px;
}

.principles span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
}

.services {
  min-width: 0;
}

.section-head {
  display: flex;
  margin-bottom: 14px;
  align-items: baseline;
  justify-content: space-between;
}

.section-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.section-head > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.manual-setup {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--pill-bg);
}

.manual-setup summary {
  padding: 15px 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  cursor: pointer;
}

.manual-setup summary:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

.manual-setup-content {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.manual-setup-content p {
  margin: 0;
}

.manual-setup-content ol {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.manual-setup-content li + li {
  margin-top: 7px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 390px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
  transition:
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-card::after {
  position: absolute;
  z-index: -1;
  right: -54px;
  bottom: -62px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  content: "";
  opacity: 0.72;
  filter: blur(2px);
}

.service-card.holidays::after {
  background: var(--lime);
}

.service-card.sales::after {
  background: var(--sales-soft);
}

.service-card.sales {
  border-color: var(--sales-card-line);
  background: var(--sales-card);
  box-shadow: var(--sales-card-shadow);
}

.service-card:hover {
  border-color: var(--card-hover-line);
  box-shadow: var(--card-hover-shadow);
}

.service-card.sales:hover {
  border-color: var(--sales);
  box-shadow: var(--sales-card-shadow);
}

.service-card:focus-visible,
.card-title-link:focus-visible,
.sales-actions a:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 4px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-number {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--status-bg);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 760;
}

.sales .service-status {
  background: var(--sales-status-bg);
  color: var(--sales-status-ink);
}

.service-kind {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 740;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.card-title-link {
  text-decoration: none;
}

.sales .card-title-link {
  color: var(--sales-card-title);
}

.sales .card-title-link::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
}

.sales .card-title-link:focus-visible {
  outline: none;
}

.sales .card-title-link:focus-visible::after {
  border-radius: 28px;
  outline: 3px solid var(--green-bright);
  outline-offset: -3px;
}

.service-card p:not(.service-kind) {
  max-width: 29ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card-action {
  display: flex;
  min-height: 48px;
  padding: 7px 8px 7px 16px;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--green);
  border-radius: 14px;
  background: var(--green);
  color: var(--on-accent);
  font-size: 0.9rem;
  font-weight: 780;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.card-action span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: #174d34;
  font-size: 1rem;
}

.service-card.holidays:hover .card-action {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 77, 52, 0.24);
}

.sales .card-action span {
  background: var(--sales-action);
}

.sales-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sales-actions a {
  display: flex;
  min-height: 40px;
  padding: 8px 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sales-action-border);
  border-radius: 11px;
  background: var(--sales-action-bg);
  color: var(--sales-action-ink);
  font-size: 0.875rem;
  font-weight: 760;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.sales-actions a:hover {
  transform: translateY(-2px);
  background: var(--sales-action-hover);
}

.sales-actions .primary {
  grid-column: 1 / -1;
  border-color: var(--sales-action);
  background: var(--sales-action);
  color: var(--on-accent);
}

.sales-actions .primary:hover {
  border-color: var(--sales-card-title);
  background: var(--sales-card-title);
  color: var(--on-accent);
}

.site-footer {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--header-line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-main {
  display: block;
  width: min(760px, 100%);
  padding: clamp(28px, 4vw, 52px) 0 44px;
  align-self: start;
}

.legal-main h1 {
  max-width: none;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.legal-content {
  display: grid;
  margin-top: 30px;
  gap: 22px;
}

.legal-content h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .landing {
    grid-template-columns: 1fr;
  }

  .intro {
    max-width: 680px;
  }

  h1 {
    max-width: 12ch;
  }

  .service-card {
    min-height: 340px;
  }
}

@media (max-width: 660px) {
  .page-shell {
    padding-inline: 14px;
  }

  .site-header {
    min-height: 64px;
  }

  .header-note {
    display: none;
  }

  .landing {
    padding: 38px 0 46px;
    gap: 42px;
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.65rem, 14vw, 4.1rem);
  }

  .lede {
    margin-top: 22px;
  }

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

  .service-card {
    min-height: 310px;
    border-radius: 23px;
  }

  .site-footer {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-shell,
  .page-shell *,
  .page-shell *::before,
  .page-shell *::after {
    transition: none;
  }
}
