/* Apple-inspired layout for pickup watch */
:root {
  --aw-bg: #fbfbfd;
  --aw-bg-elevated: #ffffff;
  --aw-text: #1d1d1f;
  --aw-text-secondary: #6e6e73;
  --aw-link: #0066cc;
  --aw-border: rgba(0, 0, 0, 0.08);
  --aw-green: #34c759;
  --aw-red: #ff3b30;
  --aw-radius: 18px;
  --aw-max: 980px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--aw-bg);
  color: var(--aw-text);
  -webkit-font-smoothing: antialiased;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--aw-text);
  text-decoration: none;
  border: 1px solid var(--aw-border);
  background: var(--aw-bg-elevated);
}

.nav-top-link:hover {
  background: #f2f2f7;
}

.nav-top-link.is-active {
  background: #f2f2f7;
  color: var(--aw-text);
  border-color: var(--aw-border);
}

.nav-logout-form-top {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: none;
}

.nav-logout-form-top .nav-top-link {
  cursor: pointer;
  font-family: inherit;
}

.site-header {
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--aw-border);
}

.site-header .logo-text {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--aw-text);
}

.site-header .nav a:not(.nav-top-link),
.site-header .nav .btn-ghost {
  color: var(--aw-text);
  font-size: 0.875rem;
  font-weight: 400;
}

.site-header .nav .nav-top-link {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
}

button.nav-top-link,
.auth-submit-btn {
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  margin-top: 0.25rem;
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-submit-btn--inline {
  width: auto;
  margin-top: 0;
}

.auth-verify-page {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.auth-verify-card {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.auth-verify-title {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.auth-verify-card .watch-lead {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.auth-verify-note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.auth-verify-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.auth-verify-form .watch-label {
  text-align: left;
  width: 100%;
  max-width: 22rem;
}

.auth-verify-form .watch-input {
  width: 100%;
  margin-top: 0.35rem;
}

.auth-verify-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.auth-verify-resend {
  margin-top: 1.5rem;
  align-items: center;
}

.auth-verify-resend .nav-top-link {
  width: auto;
}

.site-footer {
  background: var(--aw-bg);
  border-top: 1px solid var(--aw-border);
  color: var(--aw-text-secondary);
  font-size: 0.75rem;
}

.watch-page {
  padding: 2.5rem 1.25rem 4rem;
}

.watch-container {
  max-width: var(--aw-max);
  margin: 0 auto;
}

.watch-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aw-text-secondary);
  margin: 0 0 0.5rem;
}

.watch-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.05;
}

.watch-lead {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--aw-text-secondary);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.watch-banner {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.watch-banner-ok {
  background: #e8f8ec;
  color: #1d3d28;
}

.watch-banner-err {
  background: #ffeceb;
  color: #5c1a16;
}

.watch-zip-card {
  background: var(--aw-bg-elevated);
  border-radius: var(--aw-radius);
  border: 1px solid var(--aw-border);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.watch-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.watch-zip-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.watch-input {
  flex: 1 1 10rem;
  min-width: 8rem;
  font-size: 1.0625rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--aw-border);
  background: #fff;
}

.watch-btn {
  background: var(--aw-link);
  color: #fff;
  border: none;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.65rem 1.35rem;
  cursor: pointer;
}

.watch-btn:hover {
  filter: brightness(1.05);
}

.watch-btn-light {
  background: #fff;
  color: var(--aw-text);
  border: 1.5px solid var(--aw-text);
}

.watch-btn-light:hover {
  filter: none;
  background: #f5f5f7;
}

.watch-hint {
  font-size: 0.8125rem;
  color: var(--aw-text-secondary);
  margin: 0.75rem 0 0;
}

.watch-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.watch-status {
  flex: 1 1 12rem;
  font-size: 0.8125rem;
  color: var(--aw-text-secondary);
  margin: 0;
}

.watch-btn-secondary {
  background: var(--aw-text);
  flex-shrink: 0;
}

.watch-btn-secondary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.watch-store {
  background: var(--aw-bg-elevated);
  border-radius: var(--aw-radius);
  border: 1px solid var(--aw-border);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.watch-store-name {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.watch-store-meta,
.watch-store-addr {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--aw-text-secondary);
}

.watch-color-block {
  margin-top: 1.25rem;
}

.watch-color-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0.5rem;
  justify-items: center;
  align-items: center;
}

/* Let label + icon cells share one 4-column grid (stacked per capacity). */
.watch-grid-head,
.watch-grid-row {
  display: contents;
}

.watch-grid-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  color: var(--aw-text-secondary);
  text-align: center;
}

.watch-grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2rem;
  padding: 0.15rem 0;
}

.watch-avail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 700;
}

.watch-avail-yes {
  color: #fff;
  background: var(--aw-green);
}

.watch-avail-no {
  color: #fff;
  background: var(--aw-red);
}

.watch-avail-unknown {
  color: var(--aw-text-secondary);
  background: #f2f2f7;
}

.watch-empty {
  color: var(--aw-text-secondary);
  text-align: center;
  padding: 2rem;
}

.watch-loading {
  color: var(--aw-text-secondary);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.watch-alerts-card {
  background: var(--aw-bg-elevated);
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  padding: 1.35rem 1.25rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.watch-alerts-heading {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.watch-alerts-lead {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--aw-text-secondary);
  margin: 0 0 0.85rem;
}

.watch-alerts-kbd {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 980px;
  background: #fff;
  color: var(--aw-link);
  border: 1px solid rgba(0, 102, 204, 0.28);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.watch-alerts-meta {
  font-size: 0.875rem;
  color: var(--aw-text-secondary);
  margin-bottom: 0.65rem;
}

.watch-alerts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.watch-alerts-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f9f9fb;
  border: 1px solid var(--aw-border);
}

.watch-alerts-item-label {
  font-size: 0.9375rem;
  line-height: 1.4;
  flex: 1 1 12rem;
}

.watch-alerts-remove {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 980px;
  border: 1px solid var(--aw-border);
  background: #fff;
  color: var(--aw-text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.watch-alerts-remove:hover {
  background: #f2f2f7;
  border-color: rgba(0, 0, 0, 0.12);
}

.watch-alerts-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.watch-alerts-empty {
  font-size: 0.9375rem;
  color: var(--aw-text-secondary);
  margin: 0;
}

.watch-alerts-msg {
  font-size: 0.875rem;
  margin: 0 0 0.65rem;
}

.watch-alerts-msg-err {
  color: var(--aw-red);
}

.watch-cell-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 5.75rem;
  margin: 0 auto;
  padding: 0.55rem 0.4rem 0.5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f7 100%);
  border: 1px solid var(--aw-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.watch-alert-icon {
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.watch-alert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
  padding: 0.4rem 0.5rem;
  border-radius: 980px;
  border: none;
  background: var(--aw-link);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 102, 204, 0.28);
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.watch-alert-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.32);
}

.watch-alert-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.watch-alert-btn.watch-alert-btn-on {
  background: #fff;
  color: #007a3d;
  border: 1.5px solid rgba(52, 199, 89, 0.45);
  box-shadow: none;
  cursor: default;
}

.watch-alert-btn.watch-alert-btn-on .watch-alert-icon {
  color: var(--aw-green);
}

.watch-alert-btn:disabled:not(.watch-alert-btn-on) {
  background: #e8e8ed;
  color: var(--aw-text-secondary);
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.85;
}

.watch-alert-btn:disabled.watch-alert-btn-on {
  opacity: 1;
}

.home-page-landing {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.home-landing-grid {
  display: grid;
  gap: 2.5rem 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .home-landing-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 52%);
    min-height: min(72vh, 640px);
  }
}

.home-landing-copy {
  max-width: 34rem;
}

.home-landing-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}

.home-landing-blurb {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--aw-text-secondary);
  margin: 0 0 1.75rem;
}

.home-start-btn {
  padding: 0.65rem 1.5rem;
  font-size: 1.0625rem;
  color: var(--aw-text);
}

.home-start-btn:hover {
  color: var(--aw-text);
}

.home-landing-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.home-landing-video {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: var(--aw-radius);
  background: #e8e8ed;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.home-page .home-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.home-page .watch-lead {
  margin-left: auto;
  margin-right: auto;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
}

.home-cta-primary {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.home-cta-link {
  font-size: 1.0625rem;
  color: var(--aw-link);
  text-decoration: none;
}

.home-cta-link:hover {
  text-decoration: underline;
}

.home-cta-hint {
  text-align: center;
  max-width: 28rem;
  margin: 1.25rem auto 0;
}

.home-panels {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .home-panels {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-panel {
  background: var(--aw-bg-elevated);
  border: 1px solid var(--aw-border);
  border-radius: var(--aw-radius);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.home-panel-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.home-panel-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--aw-text-secondary);
  margin: 0;
}

.home-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--aw-text-secondary);
}

.home-list li {
  margin-bottom: 0.45rem;
}

.home-list li:last-child {
  margin-bottom: 0;
}

.home-footnote {
  text-align: center;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--aw-border);
}

.home-footnote p {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

@media (max-width: 380px) {
  .watch-grid {
    gap: 0.25rem 0.35rem;
  }

  .watch-grid-cap {
    font-size: 0.9375rem;
  }

  .watch-avail {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 1rem;
  }

  .watch-cell-actions {
    max-width: 5rem;
    padding: 0.45rem 0.3rem 0.4rem;
  }

  .watch-alert-btn {
    font-size: 0.6875rem;
    padding: 0.35rem 0.35rem;
  }
}
