:root {
  --fdhs-green: #123f2c;
  --fdhs-green-light: #176744;
  --fdhs-brass: #a7874d;
  --fdhs-cream: #f5f0e7;
  --fdhs-paper: #fbf8f1;
  --fdhs-ink: #171713;
  --fdhs-line: #d8d0c2;
}

.fd-home-screen-entry {
  margin-top: 18px;
}

.fd-home-screen-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.52);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}

.fd-home-screen-link:hover,
.fd-home-screen-link:focus-visible {
  color: #fff;
  border-color: #fff;
}

.fd-home-screen-link svg { flex: 0 0 auto; }

.fd-home-screen-modal[hidden],
.fd-home-screen-nudge[hidden] { display: none !important; }

.fd-home-screen-modal {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: end center;
  padding: 18px;
  background: rgba(12,24,18,.58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.fd-home-screen-sheet {
  position: relative;
  width: min(100%, 560px);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--fdhs-line);
  border-radius: 22px;
  background: var(--fdhs-paper);
  color: var(--fdhs-ink);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.fd-home-screen-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--fdhs-line);
  border-radius: 50%;
  background: transparent;
  color: var(--fdhs-ink);
  font: 400 26px/1 system-ui, sans-serif;
  cursor: pointer;
}

.fd-home-screen-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-inline-end: 48px;
}

.fd-home-screen-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(18,63,44,.18);
}

.fd-home-screen-eyebrow {
  margin: 0 0 5px;
  color: var(--fdhs-green-light);
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.fd-home-screen-title {
  margin: 0;
  color: var(--fdhs-green);
  font: 600 clamp(24px, 5vw, 34px)/1.08 Georgia, "Times New Roman", serif;
}

.fd-home-screen-intro {
  margin: 22px 0 0;
  color: #4c514b;
  font: 400 16px/1.6 system-ui, -apple-system, sans-serif;
}

.fd-home-screen-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fdhs;
}

.fd-home-screen-steps li {
  position: relative;
  min-height: 42px;
  padding-inline-start: 54px;
  color: #30352f;
  font: 500 15px/1.48 system-ui, -apple-system, sans-serif;
  counter-increment: fdhs;
}

.fd-home-screen-steps li::before {
  content: counter(fdhs);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--fdhs-brass);
  border-radius: 50%;
  color: var(--fdhs-green);
  font: 700 14px/1 system-ui, sans-serif;
}

.fd-home-screen-sheet .fd-home-screen-primary {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 12px 20px;
  border: 1px solid var(--fdhs-green);
  border-radius: 999px;
  background: var(--fdhs-green);
  color: #fff;
  font: 700 15px/1.2 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}

.fd-home-screen-sheet .fd-home-screen-primary:hover,
.fd-home-screen-sheet .fd-home-screen-primary:focus-visible { background: var(--fdhs-green-light); }

.fd-home-screen-sheet .fd-home-screen-primary[hidden] { display: none !important; }

.fd-home-screen-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--fdhs-line);
  color: #686c67;
  font: 400 13px/1.5 system-ui, -apple-system, sans-serif;
}

.fd-home-screen-nudge {
  position: fixed;
  inset-inline: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 2147482400;
  display: flex;
  max-width: 430px;
  align-items: center;
  gap: 12px;
  margin-inline: auto;
  padding: 12px 14px;
  border: 1px solid rgba(167,135,77,.65);
  border-radius: 16px;
  background: var(--fdhs-paper);
  color: var(--fdhs-ink);
  box-shadow: 0 14px 42px rgba(0,0,0,.2);
}

.fd-home-screen-nudge img { width: 44px; height: 44px; border-radius: 11px; }
.fd-home-screen-nudge-copy { flex: 1; min-width: 0; }
.fd-home-screen-nudge-title { display: block; color: var(--fdhs-green); font: 700 14px/1.2 system-ui, sans-serif; }
.fd-home-screen-nudge-text { display: block; margin-top: 3px; color: #646963; font: 400 12px/1.3 system-ui, sans-serif; }
.fd-home-screen-nudge-open,
.fd-home-screen-nudge-close { border: 0; background: transparent; color: var(--fdhs-green); cursor: pointer; }
.fd-home-screen-nudge-open { padding: 8px; font: 700 13px/1 system-ui, sans-serif; }
.fd-home-screen-nudge-close { width: 32px; height: 32px; padding: 0; font: 400 22px/1 system-ui, sans-serif; }

html[dir="rtl"] .fd-home-screen-sheet { text-align: right; }

@media (min-width: 720px) {
  .fd-home-screen-modal { place-items: center; }
  .fd-home-screen-sheet { padding: 34px; }
  .fd-home-screen-nudge { inset-inline: auto 24px; margin: 0; }
}

@media (max-width: 719px) {
  .fd-home-screen-modal { padding: 0; align-items: end; }
  .fd-home-screen-sheet { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; padding: 26px 22px max(26px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: no-preference) {
  .fd-home-screen-sheet { animation: fdhs-rise .24s ease-out; }
  .fd-home-screen-nudge { animation: fdhs-rise .28s ease-out; }
  @keyframes fdhs-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
