:root {
  --fondo: #f6f6f4;
  --card: #ffffff;
  --inchiostro: #111113;
  --grigio: #6b6b73;
  --grigio-chiaro: #a1a1aa;
  --bordo: rgba(17, 17, 19, 0.08);
  --vetro: #eef0f4;
  --accento: #2f6bff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 14px;
}

.ask {
  width: min(372px, 100%);
  background: var(--card);
  border: 1px solid var(--bordo);
  border-radius: 22px;
  padding: clamp(8px, 2.2vmin, 10px);
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.04), 0 22px 54px -22px rgba(17, 17, 19, 0.2);
}

/* the sample lock screen where the alerts drop in */
.preview {
  position: relative;
  height: clamp(104px, 27vh, 138px);
  border-radius: 15px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 0%, #dfe7ff 0%, rgba(223, 231, 255, 0) 60%),
    radial-gradient(90% 80% at 100% 100%, #ffe9dc 0%, rgba(255, 233, 220, 0) 60%),
    var(--vetro);
}
.preview.is-open { overflow: visible; z-index: 2; }
.preview__time {
  position: absolute; left: 0; right: 0; top: 7px;
  text-align: center;
  font-size: 11px; font-weight: 640; font-variation-settings: "wdth" 110;
  color: rgba(17, 17, 19, 0.38);
  letter-spacing: 0.02em;
}

.note {
  position: absolute; left: 10px; right: 10px; top: clamp(24px, 6.4vh, 30px);
  display: flex; gap: 9px; align-items: flex-start;
  padding: 9px 11px 10px 9px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(17, 17, 19, 0.04), 0 10px 22px -12px rgba(17, 17, 19, 0.35);
  transform-origin: 50% 0;
  opacity: 0;
}
.note__icon {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accento);
}
.note__icon svg { width: 17px; height: 17px; fill: #fff; transform: rotate(-12deg); }
.note__body { min-width: 0; flex: 1; }
.note__top { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--grigio); line-height: 1.2; }
.note__top b { font-weight: 640; color: rgba(17, 17, 19, 0.7); text-transform: uppercase; letter-spacing: 0.04em; font-size: 9.5px; }
.note__title { font-size: 12.5px; font-weight: 640; margin-top: 2px; line-height: 1.25; }
.note__text { font-size: 11.5px; color: var(--grigio); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the lower half: the form, and the done state laid over it */
.lower { position: relative; padding: clamp(10px, 2.6vh, 14px) clamp(6px, 1.6vmin, 8px) 2px; }
.done {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px;
  opacity: 0; visibility: hidden;
}
.done__check { width: 44px; height: 44px; fill: none; stroke: var(--accento); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.done__check circle { stroke: rgba(47, 107, 255, 0.18); }
.done__title { font-size: 17px; font-weight: 680; font-variation-settings: "wdth" 104; letter-spacing: -0.01em; }
.done__sub { font-size: 12.5px; color: var(--grigio); max-width: 26ch; }

.head { display: flex; gap: 11px; align-items: flex-start; }
.bell {
  flex: none;
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(47, 107, 255, 0.1);
  color: var(--accento);
}
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.head__title { font-size: clamp(15px, 4.2vmin, 17px); font-weight: 680; font-variation-settings: "wdth" 104; letter-spacing: -0.01em; line-height: 1.2; }
.head__sub { font-size: 12.5px; color: var(--grigio); line-height: 1.35; margin-top: 2px; }

.opts { list-style: none; margin-top: clamp(8px, 2.2vh, 12px); border-top: 1px solid var(--bordo); }
.opts li {
  display: flex; align-items: center; justify-content: space-between;
  height: clamp(32px, 8.2vh, 38px);
  border-bottom: 1px solid var(--bordo);
  font-size: 13px; font-weight: 520;
}

.switch {
  position: relative;
  width: 34px; height: 20px;
  border-radius: 20px;
  border: 0;
  background: #e4e4e7;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.25s;
}
.switch.is-on { background: var(--accento); }
.switch i {
  position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 19, 0.25);
}
.switch:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }

.acts { display: flex; gap: 8px; margin-top: clamp(10px, 2.6vh, 14px); }
.btn {
  flex: 1;
  height: clamp(36px, 9.4vh, 42px);
  border-radius: 12px;
  font: inherit; font-size: 13.5px; font-weight: 620;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn--ghost { background: #fff; color: var(--inchiostro); border: 1px solid var(--bordo); }
.btn--solid { background: var(--inchiostro); color: #fff; border: 1px solid var(--inchiostro); box-shadow: 0 8px 16px -8px rgba(17, 17, 19, 0.55); }
.btn span { display: inline-block; }
.btn--ghost.is-hover { background: #f4f4f5; }
.btn--solid.is-hover { background: #26262b; }
@media (hover: hover) {
  .btn--ghost:hover { background: #f4f4f5; }
  .btn--solid:hover { background: #26262b; }
}
.btn:focus-visible { outline: 2px solid var(--accento); outline-offset: 2px; }

.ghost {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  fill: var(--inchiostro); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.18));
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
