:root {
  --ink: #0e0d0c;
  --cream: #ede4d8;
  --cream-soft: rgba(237, 228, 216, 0.72);
  --cream-mute: rgba(237, 228, 216, 0.52);
  --line: rgba(237, 228, 216, 0.18);
  --line-strong: rgba(237, 228, 216, 0.34);
  --field: rgba(14, 13, 12, 0.35);
  --error: #e7a08f;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background ---------- */
.pl-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('bg.webp') center / cover no-repeat;
}
.pl-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* linear-gradient(90deg, rgba(10,9,8,.86) 0%, rgba(10,9,8,.55) 45%, rgba(10,9,8,.35) 70%, rgba(10,9,8,.6) 100%),
    linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,0) 30%, rgba(10,9,8,0) 70%, rgba(10,9,8,.7) 100%) */
    linear-gradient(90deg, rgba(10,9,8,.26) 0%, rgba(10,9,8,.55) 45%, rgba(10,9,8,.35) 70%, rgba(10,9,8,0) 100%),
    linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,0) 30%, rgba(10,9,8,0) 70%, rgba(10,9,8,0) 100%);
}

/* ---------- Header ---------- */
.pl-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 36px 24px 0;
  position: relative;
}
.pl-logo img { height: 40px; width: auto; display: block; }
.pl-lock {
  position: absolute;
  right: clamp(24px, 6vw, 108px);
  top: 44px;
  color: var(--cream-soft);
}

/* ---------- Layout ---------- */
.pl-main {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 680px);
  gap: 48px;
  align-items: start;
  padding: 72px clamp(24px, 5.5vw, 108px) 48px;
  max-width: 1720px;
  margin: 0 auto;
}

.pl-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 18px 0 40px;
}
.pl-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 124px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0;
  color: #f6f0e7;
}
.pl-title em { font-style: italic; }
.pl-lead {
  max-width: 34ch;
  margin: 40px 0 0;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.5;
  font-weight: 300;
  color: var(--cream-soft);
}

/* ---------- Card ---------- */
.pl-card {
  position: relative;
  padding: clamp(28px, 3.2vw, 58px);
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 70% at 70% 0%, rgba(237,228,216,.14), rgba(237,228,216,0) 60%),
    linear-gradient(180deg, rgba(40,36,32,.72), rgba(18,16,15,.82));
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
}
.pl-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: #f6f0e7;
}
.pl-card .pl-sub {
  margin: 0 0 36px;
  font-size: 19px;
  font-weight: 300;
  color: var(--cream-soft);
}

.pl-field { margin-bottom: 26px; }
.pl-field label,
.pl-legend {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--cream-soft);
  margin-bottom: 10px;
}
.pl-field input {
  width: 100%;
  height: 62px;
  padding: 0 18px;
  font: 400 17px var(--font-sans);
  color: var(--cream);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.pl-field input::placeholder { color: rgba(237,228,216,.3); }
.pl-field input:hover { border-color: rgba(237,228,216,.5); }
.pl-field input:focus {
  border-color: var(--cream);
  background: rgba(14,13,12,.5);
  box-shadow: 0 0 0 3px rgba(237,228,216,.12);
}
.pl-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--cream);
  -webkit-box-shadow: 0 0 0 100px #1d1a17 inset;
  caret-color: var(--cream);
}

/* Colour preference */
.pl-colours { border: 0; padding: 0; margin: 10px 0 26px; }
.pl-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pl-swatch { position: relative; cursor: pointer; }
.pl-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.pl-swatch span {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 8px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--field);
  font-size: 16px;
  color: var(--cream);
  transition: border-color .2s ease, background .2s ease;
}
.pl-swatch span::before {
  content: '';
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #2a2522 var(--dot) var(--dot-pos, 50% 50%) / 320% auto no-repeat;
  box-shadow: inset 0 -6px 12px rgba(0,0,0,.35), inset 0 4px 8px rgba(255,255,255,.18), 0 0 0 1px rgba(255,255,255,.12);
}
.pl-swatch:hover span { border-color: rgba(237,228,216,.55); }
.pl-swatch input:checked + span { border-color: var(--cream); background: rgba(237,228,216,.1); }
.pl-swatch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(237,228,216,.25); }

/* Checkbox */
.pl-check {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 26px;
  font-size: 17px;
  color: var(--cream-soft);
  cursor: pointer;
}
.pl-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 30px; height: 30px;
  flex: none;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--field);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.pl-check input::after {
  content: '';
  width: 12px; height: 7px;
  border: solid var(--ink);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px,-1px) scale(0);
  transition: transform .15s ease;
}
.pl-check input:checked { background: var(--cream); border-color: var(--cream); }
.pl-check input:checked::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.pl-check input:focus-visible { box-shadow: 0 0 0 3px rgba(237,228,216,.25); }

/* Button */
.pl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 76px;
  border: 0;
  border-radius: 6px;
  background: #f1ece4;
  color: var(--ink);
  font: 400 22px var(--font-sans);
  letter-spacing: .005em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.pl-btn:hover { background: #fffaf2; }
.pl-btn:active { transform: translateY(1px); }
.pl-btn[disabled] { opacity: .65; cursor: progress; }

.pl-note { margin: 34px 0 0; font-size: 14px; color: var(--cream-mute); }
.pl-note-strong { margin: 14px 0 0; font-size: 16px; color: var(--cream-soft); }
.pl-foot {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.pl-foot a { color: var(--cream-soft); text-underline-offset: 3px; }
.pl-foot a:hover { color: var(--cream); }

.pl-alert {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid rgba(231,160,143,.45);
  border-radius: 6px;
  background: rgba(231,160,143,.08);
  color: var(--error);
  font-size: 15px;
  line-height: 1.5;
}
.pl-error { display: block; margin-top: 8px; font-size: 13px; color: var(--error); }
.pl-field.has-error input { border-color: rgba(231,160,143,.7); }

.pl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pl-mark {
  position: fixed;
  left: clamp(24px, 5.5vw, 108px);
  bottom: 40px;
  width: 36px;
  opacity: .85;
}

/* Thank-you */
.pl-thanks { max-width: 640px; margin: 0 auto; text-align: center; }
.pl-thanks .pl-tick {
  width: 72px; height: 72px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--cream);
}
.pl-thanks .pl-sub { margin-bottom: 32px; line-height: 1.6; }
.pl-thanks .pl-btn { max-width: 320px; }

/* ---------- Entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pl-rise { opacity: 0; transform: translateY(18px); animation: plRise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .pl-rise.d1 { animation-delay: .08s; }
  .pl-rise.d2 { animation-delay: .18s; }
  .pl-rise.d3 { animation-delay: .28s; }
  .pl-rise.d4 { animation-delay: .38s; }
  @keyframes plRise { to { opacity: 1; transform: none; } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pl-main { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .pl-eyebrow { margin-bottom: 24px; }
  .pl-lead { margin-top: 24px; }
  .pl-mark { display: none; }
}
@media (max-width: 560px) {
  .pl-header { padding-top: 24px; }
  .pl-logo img { height: 30px; }
  .pl-lock { top: 28px; right: 16px; }
  .pl-main { padding: 36px 16px 32px; }
  .pl-eyebrow { font-size: 11px; letter-spacing: .32em; }
  .pl-card { padding: 26px 20px; border-radius: 14px; }
  .pl-card .pl-sub { font-size: 16px; margin-bottom: 26px; }
  .pl-field input { height: 54px; font-size: 16px; }
  .pl-swatches { grid-template-columns: repeat(2, 1fr); }
  .pl-swatch span { padding: 16px 4px; font-size: 14px; gap: 10px; }
  .pl-swatch span::before { width: 40px; height: 40px; }
  .pl-check { font-size: 15px; }
  .pl-btn { height: 62px; font-size: 18px; }

  .pl-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('bgm.jpg') top left / 115% no-repeat;
}

.pl-bg::after{
  background: linear-gradient(178deg, rgba(10, 9, 8, .80) 0%, rgba(10, 9, 8, .25) 35%, rgba(10, 9, 8, 0) 70%, rgba(10, 9, 8, 0) 100%), linear-gradient(180deg, rgba(10, 9, 8, 0) 0%, rgba(10, 9, 8, 0) 30%, rgba(10, 9, 8, 0) 70%, rgba(10, 9, 8, 0) 100%);
}
.pl-main{
  gap: 120px;
}
}
