/* The homepage palette is the single theme for every page. */
:root {
  color-scheme: light;
  --bg: #fbfdff;
  --surface: #fff;
  --soft: #ebebef;
  --text: #3c3c43;
  --muted: #67676c;
  --line: #e2e2e3;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --cyan: #41c2f3;
  --tint: #eaf2ff;
  --green: #15946d;
  --green-bg: #e7f7f0;
  --red: #c94954;
  --red-bg: #fff0f1;
  --shadow: 0 18px 55px #183a7210;
  --radius: 12px;
  --link-hover: #2563eb;
  --secondary-hover: #e4e4e9;
  --switch-track: rgba(142, 150, 170, 0.14);
  --switch-border: #d5e6fb;
  --switch-hover-border: #2563eb;
  --switch-thumb: #fff;
  --switch-icon: var(--muted);
  --feature-bg: #f1f7ff;
  --feature-hover-border: var(--blue);
  --feature-title: var(--text);
  --feature-description: var(--muted);
  --footer-line: var(--line);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  font-synthesis: none;
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #202127;
  --soft: #32363f;
  --text: #dfdfd6;
  --muted: #98989f;
  --line: #2e2e32;
  --tint: #213654;
  --green: #66d5b0;
  --green-bg: #19382f;
  --red: #f2939c;
  --red-bg: #3c242d;
  --shadow: 0 18px 55px #0003;
  --link-hover: #93c5fd;
  --secondary-hover: #414853;
  --switch-track: rgba(101, 117, 133, 0.16);
  --switch-border: rgba(148, 163, 184, 0.22);
  --switch-hover-border: #93c5fd;
  --switch-thumb: #000;
  --feature-bg: #152238;
  --feature-hover-border: #60a5fa;
  --footer-line: #000;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1;
  width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button {
  color: inherit;
}
input,
select {
  color: var(--text);
}
button,
a,
input,
select,
summary {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input[type='checkbox']:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.35;
}
button {
  border: 0;
  background: none;
}
img {
  max-width: 100%;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding-inline: 24px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* Shared navigation, footer, buttons and theme switch. */
.site-header {
  height: 64px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1280px;
  height: 100%;
  margin: auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.4px;
  white-space: nowrap;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.site-header nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 550;
}
.site-header nav a:hover,
.site-header nav a[aria-current='page'],
.muted-link:hover {
  color: var(--link-hover);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 0;
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.button {
  min-height: 40px;
  padding: 8px 22px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 14px;
  font-weight: 650;
  transition:
    color 0.25s,
    background-color 0.25s;
  white-space: nowrap;
}
.button.primary {
  background: var(--blue);
  color: #fff;
}
.button.primary:hover {
  background: var(--blue-dark);
}
.button.secondary {
  background: var(--soft);
  color: var(--text);
}
.button.secondary:hover {
  background: var(--secondary-hover);
}
.button-small {
  min-height: 36px;
  padding: 8px 17px;
  font-size: 13px;
}
.full-width {
  width: 100%;
}
.muted-link {
  font-size: 13px;
  color: var(--muted);
  padding: 0;
}

.gradient-text {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 1.8px;
}
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 32px;
  color: var(--muted);
  transition: color 0.2s;
}
.github-link:hover {
  color: var(--text);
}
.github-link svg {
  display: block;
  width: 20px;
  height: 20px;
}
.theme-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--switch-border);
  border-radius: 11px;
  background: var(--switch-track);
  transition: border-color 0.25s;
}
.theme-toggle::before {
  content: '';
  position: absolute;
  inset: -9px 0;
}
.theme-toggle:hover {
  border-color: var(--switch-hover-border);
}
.theme-toggle-thumb {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow:
    0 1px 2px #0000000a,
    0 1px 2px #0000000f;
  transition: transform 0.25s;
}
.theme-toggle-thumb svg {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  color: var(--switch-icon);
  transition: opacity 0.25s;
}
.theme-toggle-moon {
  opacity: 0;
}
:root[data-theme='dark'] .theme-toggle-thumb {
  transform: translateX(18px);
}
:root[data-theme='dark'] .theme-toggle-sun {
  opacity: 0;
}
:root[data-theme='dark'] .theme-toggle-moon {
  opacity: 1;
}
.hero {
  max-width: 1280px;
  padding: 80px 64px 64px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 592px) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}
.hero-copy {
  min-width: 0;
}
.hero-copy::after {
  content: '';
  display: block;
  width: min(420px, 80vw);
  max-width: 100%;
  height: 4px;
  margin-top: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #38bdf8);
}
.hero h1 {
  font-size: 56px;
  font-weight: 750;
  line-height: 64px;
  letter-spacing: -1.5px;
}
.hero-description {
  max-width: 592px;
  margin-top: 12px;
  font-size: 24px;
  line-height: 36px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  transform: translate(-32px, -32px);
}
.hero-icon {
  display: block;
  width: 260px;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 20px 32px #397af81c);
}
.features-section {
  max-width: 1280px;
  padding-inline: 64px;
  padding-bottom: 88px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  height: 100%;
  min-height: 100px;
  padding: 16px 24px;
  border: 1px solid var(--feature-bg);
  background: var(--feature-bg);
  border-radius: 12px;
  transition:
    border-color 0.25s,
    background-color 0.25s;
}
@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--feature-hover-border);
    box-shadow: 0 14px 34px #0f172a14;
  }
}
.feature-card h3 {
  color: var(--feature-title);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.feature-card p {
  margin-top: 8px;
  color: var(--feature-description);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}
.site-footer {
  position: relative;
  padding: 16px 24px;
  border-top: 1px solid var(--footer-line);
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
}
.footer-inner {
  max-width: 1440px;
  margin: auto;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 16px 32px;
  }
}

.community-main {
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 40px 24px 48px;
  text-align: center;
}
.community-main h1 {
  font-size: 28px;
  line-height: 40px;
}
.community-poster {
  display: block;
  width: min(360px, 100%);
  margin: 24px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.community-poster img {
  display: block;
  width: 100%;
  height: auto;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}
.auth-layout {
  width: 100%;
  max-width: 498px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 32px;
}
.login-panel {
  width: 100%;
  min-width: 0;
  padding: 32px;
}
.qr-refresh {
  display: flex;
  margin: 20px auto 0;
}
.login-panel .form-hint {
  text-align: center;
}

.panel-heading {
  text-align: center;
  margin-bottom: 26px;
}
.mini-brand {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  margin: 0 auto 14px;
}
.panel-heading h1 {
  font-size: 23px;
}
.segmented {
  background: var(--soft);
  padding: 4px;
  display: flex;
  gap: 4px;
  border-radius: 10px;
}
.segmented button {
  flex: 1;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 7px;
  white-space: nowrap;
  color: var(--muted);
}
.segmented button.active {
  background: var(--surface);
  color: var(--blue);
  font-weight: 650;
  box-shadow: 0 2px 6px #1d3a6210;
}
.qr-box {
  width: 232px;
  height: 232px;
  margin: 28px auto 14px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-box img {
  width: 218px;
  height: 218px;
  object-fit: contain;
}
.qr-status {
  text-align: center;
  font-size: 13px;
  font-weight: 550;
  min-height: 22px;
}
.spinner {
  width: 27px;
  height: 27px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  margin-top: 18px;
}
.field-label {
  font-size: 12px;
  font-weight: 550;
}
input:not([type='checkbox']),
select,
.select-trigger {
  width: 100%;
  height: 44px;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s ease;
}
input::placeholder,
textarea::placeholder {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  color: var(--muted);
  opacity: 0.75;
}
input:not([type='checkbox']):focus-within,
select:focus-within,
.select-trigger:focus-within {
  border-color: var(--blue);
  outline: none;
  box-shadow: none;
}
.captcha-row {
  display: grid;
  grid-template-columns: 1fr 125px;
  gap: 10px;
  margin-top: 8px;
}
.captcha-button {
  height: 44px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
}
.captcha-button img {
  width: 120px;
  height: 40px;
  object-fit: contain;
}
.login-panel form > .button {
  margin-top: 25px;
}
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.8;
}
.inline-message {
  padding: 13px 15px;
  border-radius: 9px;
  font-size: 12px;
  margin: 18px 0;
}
.inline-message.error {
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid #f09fa025;
}
.toast {
  position: fixed;
  z-index: 80;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  font-size: 13px;
  padding: 13px 21px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.error-toast {
  background: var(--red);
  color: #fff;
}
.setup-layout {
  max-width: 528px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}
.setup-panel {
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow);
}
.setup-panel h1 {
  font-size: 26px;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 26px;
}
.setup-panel form > .button {
  margin-top: 28px;
}
.setup-panel .field {
  margin-top: 20px;
}
.input-with-icon,
.select-control {
  position: relative;
  display: block;
  min-width: 0;
}
.input-with-icon input {
  position: relative;
  padding-right: 44px;
}
.control-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.input-with-icon input::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.select-control select {
  appearance: none;
  padding-right: 44px;
}
.select-trigger {
  position: relative;
  display: block;
  padding-right: 44px;
  text-align: left;
}
.select-trigger[data-empty='true'] span {
  color: var(--muted);
  opacity: 0.75;
}
.select-control > .control-icon {
  transition: transform 0.15s ease;
}
.select-control[data-open='true'] > .control-icon {
  transform: translateY(-50%) rotate(180deg);
}
.select-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.select-control[data-side='top'] .select-options {
  top: auto;
  bottom: calc(100% + 6px);
}
.select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
.select-option.is-active,
.select-option[aria-selected='true'] {
  background: var(--tint);
  color: var(--blue);
}
.select-option[aria-selected='true'] {
  font-weight: 550;
}
.select-option svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.select-option[aria-selected='false'] svg {
  visibility: hidden;
}
.notification-setup > .button {
  margin-top: 20px;
}
.notification-status {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  min-height: 24px;
}
.setup-back {
  display: block;
  text-align: center;
  margin-top: 22px;
}
.verify-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.verify-row input {
  min-width: 0;
}
.account-layout {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.account-heading h1 {
  font-size: 28px;
  letter-spacing: -0.5px;
}
.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--muted);
  transition:
    color 0.15s,
    background-color 0.15s;
}
.icon-action:hover {
  color: var(--blue);
  background: var(--tint);
}
.icon-action svg {
  display: block;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat-card {
  padding: 18px 22px;
}
.stat-card h2 {
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -1.5px;
  line-height: 1.2;
  color: var(--blue);
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.today-status {
  font-size: 24px;
  font-weight: 550;
  margin-top: 20px;
  line-height: 1.4;
}
.today-status[data-state='success'] {
  color: var(--green);
}
.today-status[data-state='failed'],
.today-status[data-state='login_required'] {
  color: var(--red);
}
.today-status[data-state='paused'],
.today-status[data-state='unconfigured'] {
  color: var(--muted);
}
.automation-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  margin-top: 16px;
  padding: 16px 22px;
}
.automation-card h2 {
  font-size: 16px;
  font-weight: 550;
}
.control-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.control-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0002;
  transition: transform 0.2s;
}
.control-switch[aria-checked='true'] {
  background: var(--blue);
  border-color: var(--blue);
}
.control-switch[aria-checked='true'] .control-switch-thumb {
  transform: translateX(20px);
}
.control-switch[aria-busy='true'] {
  opacity: 0.65;
}
.current-schedule {
  margin-top: 16px;
  padding: 16px 22px;
}
.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.schedule-header h2 {
  font-size: 16px;
  font-weight: 550;
}
.schedule-header .icon-action {
  width: 32px;
  height: 32px;
}
.schedule-summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.6fr);
  gap: 24px;
  margin: 0;
}
.schedule-summary > div {
  min-width: 0;
}
.schedule-summary > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.schedule-summary dt {
  font-size: 13px;
  color: var(--muted);
}
.schedule-summary dd {
  font-size: 18px;
  line-height: 1.4;
  margin: 6px 0 0;
  font-weight: 550;
  overflow-wrap: anywhere;
}
#schedule-time {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
}
.notification-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  margin-top: 16px;
  padding: 14px 22px;
  transition: border-color 0.15s;
}
.notification-card:hover {
  border-color: var(--blue);
}
.notification-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--tint);
  color: var(--blue);
}
.notification-copy {
  flex: 1;
  min-width: 0;
}
.notification-copy h2 {
  font-size: 16px;
  font-weight: 550;
}
.notification-copy p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  margin-top: 2px;
}
.notification-copy p[data-state='connected'] {
  color: var(--green);
}
.notification-arrow {
  flex-shrink: 0;
  color: var(--muted);
}
.account-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
}
.success-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  color: var(--text);
}
.success-dialog[open] {
  display: grid;
  place-items: center;
}
.success-dialog::backdrop {
  background: #0f172a44;
  backdrop-filter: blur(7px);
}
#celebration-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.success-card {
  position: relative;
  width: min(360px, calc(100% - 40px));
  padding: 38px 28px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: success-appear 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.success-medallion {
  width: 88px;
  height: 88px;
  margin: auto;
}
.success-medallion svg {
  width: 100%;
  height: 100%;
  stroke: var(--blue);
}
.success-ring {
  fill: var(--tint);
  stroke-width: 2;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: success-draw 0.55s ease forwards;
}
.success-check {
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
  animation: success-draw 0.45s 0.25s ease forwards;
}
.success-card h2 {
  font-size: 22px;
  margin-top: 20px;
  letter-spacing: -0.3px;
}
.success-card > .button {
  margin-top: 26px;
}
@keyframes success-appear {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes success-draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 1050px) {
  .site-header nav {
    gap: 22px;
  }
}
@media (max-width: 800px) {
  .container {
    padding-inline: 22px;
  }
  .header-inner {
    gap: 16px;
  }
  .header-actions {
    gap: 13px;
  }
  .login-panel {
    padding: 27px;
  }
}
@media (max-width: 560px) {
  .container {
    padding-inline: 20px;
  }
  .header-actions {
    gap: 10px;
  }
  .login-panel {
    padding: 24px 22px;
  }
  .panel-heading h1 {
    font-size: 21px;
  }
  .login-panel .qr-box {
    width: 218px;
    height: 218px;
  }
  .login-panel .qr-box img {
    width: 204px;
    height: 204px;
  }
  .setup-layout {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .setup-panel {
    padding: 26px 24px;
  }
  .setup-panel h1 {
    font-size: 23px;
  }
  .notification-setup .qr-box {
    width: 220px;
    height: 220px;
  }
  .notification-setup .qr-box img {
    width: 206px;
    height: 206px;
  }
  .account-layout {
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .account-heading {
    gap: 14px;
    margin-bottom: 22px;
  }
  .account-heading h1 {
    font-size: 25px;
  }
  .account-stats {
    gap: 12px;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card h2 {
    font-size: 13px;
  }
  .stat-value {
    font-size: 34px;
    gap: 6px;
    margin-top: 10px;
  }
  .stat-unit {
    font-size: 12px;
  }
  .today-status {
    font-size: 18px;
    margin-top: 18px;
  }
  .automation-card,
  .current-schedule {
    padding: 16px 18px;
  }
  .notification-card {
    padding: 14px 18px;
  }
  .schedule-summary {
    grid-template-columns: minmax(86px, 0.8fr) minmax(0, 1.6fr);
    gap: 18px;
  }
  .schedule-summary > div + div {
    padding-left: 18px;
  }
  .schedule-summary dd {
    font-size: 17px;
  }
  #schedule-time {
    font-size: 24px;
  }
  .toast {
    bottom: 18px;
    padding: 12px 17px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .hero h1 {
    font-size: 44px;
    letter-spacing: -1px;
  }
  .hero-description {
    font-size: 20px;
    line-height: 32px;
  }
}
@media (max-width: 800px) {
  .features-section {
    padding-bottom: 64px;
  }
  .header-actions {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }
}
@media (max-width: 560px) {
  .header-inner {
    gap: 6px;
  }
  .header-actions {
    gap: 8px;
  }
}
@media (max-width: 959px) {
  .header-inner {
    padding-inline: 48px;
  }
  .hero {
    padding: 48px 48px 64px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    text-align: center;
  }
  .hero-copy {
    width: 100%;
    max-width: 680px;
    margin: auto;
  }
  .hero-copy::after {
    margin-inline: auto;
  }
  .hero-visual {
    grid-row: 1;
  }
  .hero-visual {
    transform: none;
  }
  .hero h1 {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -1px;
  }
  .hero-description {
    max-width: 680px;
    margin-inline: auto;
    font-size: 20px;
    line-height: 32px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-icon {
    width: 256px;
    height: 256px;
  }
  .features-section {
    max-width: none;
    padding-inline: 48px;
  }
}
@media (max-width: 767px) {
  .hero-copy::after {
    margin-top: 24px;
  }
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 639px) {
  .header-inner {
    padding-inline: 24px;
  }
  .hero {
    padding: 40px 24px 48px;
  }
  .hero {
    gap: 16px;
  }
  .hero h1 {
    font-size: clamp(26px, 8.2vw, 32px);
    line-height: 40px;
    letter-spacing: -0.8px;
  }
  .hero-description {
    margin-top: 8px;
    font-size: 18px;
    line-height: 28px;
  }
  .hero-actions {
    justify-content: center;
    margin-top: 24px;
  }
  .hero-icon {
    width: 192px;
    height: 192px;
  }
  .features-section {
    padding-bottom: 48px;
  }

  .features-section {
    padding-inline: 24px;
  }
}
@media (max-width: 359px) {
  .header-inner {
    padding-inline: 18px;
  }
}
