:root {
  --cream: #f2efe7;
  --ink: #37372f;
  --gold: #927342;
  --line: #c9b997;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  overflow-x: clip;
  touch-action: pan-y;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #eeeae1;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
button {
  font: inherit;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 8% 8%, #fffdf7, transparent 58%),
    radial-gradient(ellipse at 92% 85%, #c6b28b77, transparent 50%),
    linear-gradient(135deg, #e6dfd1, #f5efe3 50%, #d6c8af);
}
.ambient:before,
.ambient:after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  transform: rotate(-32deg);
}
.ambient:before {
  width: 650px;
  height: 950px;
  right: -210px;
  top: 3vh;
  border: 65px solid #baa47738;
  box-shadow:
    inset 2px 2px 0 #fff9,
    2px 2px 0 #fff9,
    0 25px 60px #9d85511a;
  background: linear-gradient(120deg, #ffffff15, transparent 65%);
}
.ambient:after {
  width: 440px;
  height: 680px;
  right: 230px;
  bottom: -420px;
  border: 32px solid #ffffff57;
  box-shadow:
    inset 1px 1px 0 #fff,
    1px 1px 0 #b9a47733;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 25px 5%;
  max-width: 1300px;
  margin: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #6d5836;
  text-decoration: none;
  font:
    italic 35px "Cormorant Garamond",
    serif;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.brand-mark {
  width: 39px;
  height: 45px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
.arabic {
  font:
    22px "Aref Ruqaa",
    serif;
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  margin-left: 6px;
  padding-left: 18px;
}
.back {
  color: #79694e;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
}
.back:hover {
  text-decoration: underline;
}
main {
  width: min(520px, calc(100% - 36px));
  margin: 28px auto 70px;
}
.intro {
  text-align: center;
  animation: arrive 0.58s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8c7147;
}
.intro h1 {
  font:
    400 clamp(49px, 7vw, 67px)/1 "Cormorant Garamond",
    serif;
  letter-spacing: -2px;
  margin: 14px 0 10px;
}
.intro p {
  margin: 0 auto 28px;
  max-width: 380px;
  color: #6e685d;
  font-size: 13px;
  line-height: 1.7;
}
.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 36px 38px 32px;
  text-align: center;
  border: 1px solid #ffffffd9;
  border-radius: 32px;
  background: linear-gradient(
    125deg,
    #ffffff40,
    #ffffff08 36%,
    #ffffff14 70%,
    #e8d7b620
  );
  -webkit-backdrop-filter: blur(8px) saturate(135%);
  backdrop-filter: blur(8px) saturate(135%);
  box-shadow:
    inset 1px 2px 1px #fff,
    inset -1px -1px 1px #95744360,
    inset 0 0 16px #ffffff20,
    0 14px 35px #72572f15;
  animation: arrive 0.58s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.panel:before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #ffffff65;
  border-top-color: #fff;
  border-left-color: #ffffffaa;
  border-radius: 29px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    135deg,
    #ffffff45,
    transparent 16%,
    transparent 80%,
    #ffffff25
  );
}
.panel:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #fff 35%,
    #fff 65%,
    transparent
  );
  pointer-events: none;
}
.sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.sheen:after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 35%;
  height: 140%;
  background: linear-gradient(
    90deg,
    transparent,
    #fff1 30%,
    #ffffff80 49%,
    #fff3 54%,
    transparent 72%
  );
  transform: translateX(-170%) skewX(-22deg);
  animation: light 0.96s 0.16s ease-in-out both;
}
.panel > *:not(.sheen) {
  position: relative;
}
.icon-ring {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: linear-gradient(135deg, #ffffffa8, #decba86b);
  box-shadow:
    inset 0 1px 0 #fff,
    0 10px 22px #74592c1c;
  color: #917246;
}
.state-icon {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-label {
  font-size: 9px;
  letter-spacing: 2.2px;
  color: #866a41;
}
.panel h2 {
  font:
    400 38px/1.05 "Cormorant Garamond",
    serif;
  letter-spacing: -1px;
  margin: 12px auto 13px;
  max-width: 365px;
}
.description {
  margin: 0 auto;
  max-width: 390px;
  font-size: 13px;
  line-height: 1.75;
  color: #665e51;
}
.resend-label {
  display: block;
  margin: 22px 0 8px;
  color: #665e51;
  font-size: 12px;
  text-align: left;
}
.resend-input {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 0 15px;
  border: 1px solid #ffffffd9;
  border-radius: 13px;
  background: #ffffff9c;
  color: var(--ink);
  font: 14px "DM Sans", sans-serif;
  box-shadow: inset 0 1px 1px #ffffffd9, 0 5px 15px #74603e0d;
}
.resend-input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.resend-error {
  margin: 7px 0 0;
  color: #8f3e32;
  font-size: 12px;
  text-align: left;
}
.preview-note {
  margin: 25px 0 0;
  padding: 11px 13px;
  border: 1px solid #ffffffb8;
  border-radius: 10px;
  background: #ffffff4d;
  color: #655339;
  font-size: 11px;
  line-height: 1.6;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  max-width: 100%;
  padding: 0 25px;
  margin-top: 23px;
  border: 1px solid #aa9062;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78b57, #80643b);
  box-shadow:
    inset 0 1px 0 #ffffff65,
    0 5px 15px #74603e12;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.primary:active {
  transform: scale(0.97);
}
.primary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.action-status {
  margin: 13px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: #f6ead1;
  color: #5c4829;
  font-size: 12px;
  line-height: 1.6;
}
.support {
  margin: 20px auto 0;
  max-width: 390px;
  color: #746d60;
  font-size: 12px;
  line-height: 1.65;
}
.support a {
  color: #755a31;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.preview-controls {
  margin-top: 24px;
  padding: 0 4px;
  color: #75674f;
}
.preview-controls summary {
  width: max-content;
  max-width: 100%;
  margin: auto;
  cursor: pointer;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.state-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.state-list button {
  min-height: 36px;
  padding: 5px 12px;
  border: 1px solid #ffffffcc;
  border-radius: 999px;
  background: #ffffff72;
  color: #645638;
  font-size: 11px;
  cursor: pointer;
}
.state-list button[aria-pressed="true"] {
  background: #80643b;
  color: white;
  border-color: #80643b;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: min(520px, calc(100% - 36px));
  margin: 0 auto 26px;
  color: #847b6a;
  font-size: 9px;
  letter-spacing: 1.2px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes light {
  0% {
    transform: translateX(-170%) skewX(-22deg);
    opacity: 0;
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.4;
  }
  100% {
    transform: translateX(360%) skewX(-22deg);
    opacity: 0;
  }
}
@media (max-width: 600px) {
  header {
    padding: 16px 18px 12px;
  }
  .brand {
    font-size: 26px;
    gap: 5px;
    letter-spacing: -1px;
  }
  .brand-mark {
    width: 24px;
    height: 31px;
  }
  .arabic {
    font-size: 18px;
    padding-left: 9px;
    margin-left: 3px;
  }
  main {
    margin-top: 24px;
    margin-bottom: 40px;
  }
  .panel {
    padding: 30px 22px 27px;
  }
  .intro p {
    margin-bottom: 22px;
  }
}
@media (max-width: 360px) {
  header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 21px;
  }
  .arabic {
    font-size: 16px;
    padding-left: 7px;
  }
  .back {
    font-size: 11px;
  }
  .panel {
    padding: 27px 17px;
  }
  .panel h2 {
    font-size: 34px;
  }
}
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .panel {
    background: #f5efe3ee;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
