:root {
  --pine: #0b2e22;
  --pine-mid: #164a36;
  --needle: #1f6b4a;
  --mist: #e8eef2;
  --snow: #f4f8fa;
  --ink: #132820;
  --muted: #4d6358;
  --berry: #b4232e;
  --gold: #c9a227;
  --wood: #8b5e34;
  --panel: rgba(244, 248, 250, 0.92);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(5, 24, 16, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(11, 46, 34, 0.72), rgba(11, 46, 34, 0.88)),
    url("/images/hero-workshop.jpg") center / cover fixed;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.snow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.45), transparent);
  animation: drift 28s linear infinite;
  opacity: 0.55;
}

@keyframes drift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(40px);
  }
}

.top,
main,
.foot {
  position: relative;
  z-index: 1;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--snow);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--snow);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.lang-btn.active {
  border-color: rgba(201, 162, 39, 0.75);
  background: rgba(201, 162, 39, 0.22);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-code {
  opacity: 0.9;
}

.hero {
  min-height: calc(100vh - 5.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 38rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  animation: rise 0.9s ease both;
}

.hero-gift {
  width: min(100%, 15rem);
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.35));
  animation: floaty 5.2s ease-in-out infinite;
}

.hero-gift-left {
  justify-self: end;
  animation-delay: 0s;
}

.hero-gift-right {
  justify-self: start;
  width: min(100%, 22rem);
  animation-delay: 0.8s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  max-width: 38rem;
  justify-self: center;
  width: 100%;
}

.mascot {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  animation: floaty 4.5s ease-in-out infinite;
}

.mascot.small {
  width: 4.5rem;
  height: 4.5rem;
  animation: none;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.brand {
  margin: 1rem 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.4rem);
  line-height: 0.95;
  color: var(--snow);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 0 auto 1.6rem;
  max-width: 32rem;
  color: rgba(244, 248, 250, 0.9);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.coffee-nudge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.35rem auto 0;
  max-width: 28rem;
  width: fit-content;
  text-align: left;
  color: rgba(244, 248, 250, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  transition: color 0.15s ease, transform 0.15s ease;
}

.coffee-nudge:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.coffee-cup {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35em;
  height: 2.35em;
  line-height: 1;
  font-size: 2.25em;
  transform-origin: center;
  animation: steam 2.4s ease-in-out infinite;
}

@keyframes steam {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.btn.coffee {
  background: #ffdd00;
  color: #0d0c0c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.coffee-card {
  margin: 0 auto 1.25rem;
  max-width: 26rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 221, 0, 0.12);
  border: 1px solid rgba(255, 221, 0, 0.35);
  text-align: center;
  animation: rise 0.7s ease both;
}

.coffee-card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffdd00;
}

.coffee-card-copy {
  margin: 0 0 0.95rem !important;
  font-size: 0.92rem !important;
  color: rgba(244, 248, 250, 0.88) !important;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.btn.primary {
  background: var(--gold);
  color: var(--pine);
}

.btn.accent {
  background: var(--berry);
  color: white;
}

.btn.ghost {
  background: transparent;
  color: var(--needle);
  border: 1px dashed rgba(31, 107, 74, 0.45);
  padding: 0.55rem 0.9rem;
}

.btn.tiny {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  background: rgba(180, 35, 46, 0.1);
  color: var(--berry);
}

.workspace,
.done {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  animation: rise 0.55s ease both;
}

.workspace-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--snow);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.75;
}

.workspace-head h2,
.done h2 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 2rem;
}

.panel {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

fieldset {
  border: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

legend {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--pine);
}

label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pine-mid);
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

input,
textarea,
select {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(19, 40, 32, 0.14);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(201, 162, 39, 0.55);
  outline-offset: 1px;
}

.hint {
  margin: -0.25rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.stack {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 0.5rem;
  align-items: center;
}

.row.exclusion {
  grid-template-columns: 1fr auto 1fr auto;
}

.between {
  color: var(--muted);
  font-size: 0.85rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.privacy-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(22, 74, 54, 0.06);
  border: 1px solid rgba(22, 74, 54, 0.12);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.privacy-note a {
  color: var(--pine-mid);
  font-weight: 600;
}

.lock-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(244, 248, 250, 0.92);
  color: var(--pine);
  border-left: 4px solid var(--gold);
}

.status-box.error {
  border-left-color: var(--berry);
}

.done {
  text-align: center;
  color: var(--snow);
  background: rgba(11, 46, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
}

.done p {
  max-width: 28rem;
  margin: 0.75rem auto 1.25rem;
  color: rgba(244, 248, 250, 0.9);
}

.sent-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1.5rem;
  max-width: 22rem;
  text-align: left;
}

.sent-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem 1.5rem;
  color: rgba(244, 248, 250, 0.55);
  font-size: 0.82rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.foot a {
  color: rgba(244, 248, 250, 0.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot a:hover {
  color: var(--snow);
}

.legal {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto 3rem;
}

.legal-panel {
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 1.75rem 1.5rem 2rem;
  color: var(--ink);
}

.legal-panel h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--pine);
  line-height: 1.15;
}

.legal-panel h2 {
  margin: 1.6rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--pine-mid);
}

.legal-panel p,
.legal-panel li {
  color: var(--muted);
  font-size: 0.98rem;
}

.legal-panel ul {
  padding-left: 1.2rem;
}

.legal-lead {
  color: var(--ink) !important;
}

.legal-panel a {
  color: var(--pine-mid);
  font-weight: 600;
}

.legal-panel .eyebrow {
  color: var(--needle);
}

.legal-back {
  margin-top: 2rem !important;
}

@media (max-width: 960px) {
  .hero-gift {
    width: min(100%, 9.5rem);
  }

  .hero-gift-right {
    width: min(100%, 14rem);
  }
}

@media (max-width: 640px) {
  .row,
  .row.exclusion {
    grid-template-columns: 1fr;
  }

  .between {
    display: none;
  }

  .top {
    padding-inline: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-gift {
    display: none;
  }
}
