@font-face {
  font-family: "Lyon Display";
  src: url("fonts/LyonDisplay-Light-Web.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Lyon Text";
  src: url("fonts/LyonText-Regular-Web.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --forest: #14302a;
  --forest-2: #1d4a3f;
  --lake: #2f6f73;
  --sand: #f6f1e7;
  --paper: #fffdf8;
  --ink: #1b1f1d;
  --muted: #5b6460;
  --gold: #c39a4e;
  --gold-soft: #e8d6ad;
  --danger: #9b3a2e;
  --live: #7fd3a3;
  --radius: 18px;
  --display: "Lyon Display", "Georgia", serif;
  --text: "Lyon Text", "Georgia", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Motion: strong ease-out for anything entering or responding to the user;
     the built-in CSS curves are too weak to feel responsive. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-press: 160ms;
  --dur-ui: 240ms;
  --dur-enter: 560ms;

  /* Hairline borders as shadows blend better over gradients than solid borders */
  --ring: 0 0 0 1px rgba(20, 48, 42, .08);
  --lift: 0 1px 2px rgba(20, 48, 42, .04), 0 8px 24px -12px rgba(20, 48, 42, .18);

  /* Swap in an Arba Minch photo when available, e.g. url("https://…/arbaminch/hero.jpg") */
  --hero-image: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold-soft); color: var(--forest); }

/* ---------- enter motion ---------- */
/* Never from nothing: start slightly lower, slightly blurred, then settle. */
@keyframes enter {
  from { opacity: 0; transform: translateY(10px); filter: blur(6px); }
}
.enter { animation: enter var(--dur-enter) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }

[data-reveal] {
  opacity: 0; transform: translateY(14px); filter: blur(4px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out), filter 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- top bar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px clamp(16px, 5vw, 48px);
}
.brand {
  background: var(--paper); border-radius: 12px; padding: 8px 12px;
  box-shadow: 0 4px 16px -6px rgba(0, 0, 0, .35);
  transition: transform var(--dur-press) var(--ease-out);
}
.brand:active { transform: scale(.97); }
.brand img { width: 84px; height: auto; }
.topbar-tag {
  font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-soft); text-align: right;
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(16px, 6vw, 72px) 72px;
  color: var(--paper); overflow: hidden; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(10, 28, 24, .35) 0%, rgba(10, 28, 24, .75) 100%),
    var(--hero-image),
    radial-gradient(120% 70% at 80% 110%, #3c8a83 0%, transparent 60%),
    radial-gradient(90% 60% at 10% 0%, #2a5a4c 0%, transparent 70%),
    linear-gradient(160deg, #10261f 0%, #1d4a3f 55%, #2f6f73 100%);
  background-size: cover; background-position: center;
}
.hero::before { /* fine grain keeps large gradients from banding */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.hero::after { /* faint contour lines: lakes & hills */
  content: ""; position: absolute; inset: auto -10% -20% -10%; height: 60%; z-index: -1;
  background: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 22px, rgba(232, 214, 173, .08) 22px 23px);
  pointer-events: none;
  animation: drift 24s var(--ease-in-out) infinite alternate;
}
@keyframes drift { to { transform: translateY(-14px) scaleX(1.03); } }

.hero-inner { position: relative; max-width: 760px; }

.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 253, 248, .08); box-shadow: inset 0 0 0 1px rgba(232, 214, 173, .22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-soft); flex: none; }
.status[data-state="live"] .status-dot { background: var(--live); }
.status[data-state="live"] .status-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--live);
  animation: ping 1.8s var(--ease-out) infinite;
}
.status[data-state="ended"] .status-dot { background: rgba(255, 253, 248, .45); }
@keyframes ping { 70%, 100% { transform: scale(2.6); opacity: 0; } }

.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-soft); margin: 0 0 18px;
}
h1 { margin: 0; font-family: var(--display); font-weight: 300; }
.hero-figure {
  display: block; font-size: clamp(104px, 28vw, 232px); line-height: .85; letter-spacing: -.035em; color: var(--gold-soft);
  font-variant-numeric: lining-nums;
}
.hero-figure sup { font-size: .42em; vertical-align: .95em; letter-spacing: 0; margin-left: .02em; }
.hero-line { display: block; font-size: clamp(28px, 5.4vw, 52px); line-height: 1.12; margin-top: 14px; max-width: 16ch; }
.hero-line em { font-style: normal; color: var(--gold-soft); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 26px 0 34px;
  font-family: var(--sans); font-size: 15px; color: rgba(255, 253, 248, .82);
}
.hero-meta span[aria-hidden] { opacity: .5; }
@media (max-width: 520px) { .hero-meta { flex-direction: column; gap: 2px; } .hero-meta span[aria-hidden] { display: none; } }
.hero-motto {
  position: relative; margin: 56px 0 0; font-family: var(--display); font-weight: 300;
  font-size: clamp(18px, 2.6vw, 24px); color: rgba(255, 253, 248, .66);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 999px; border: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; user-select: none; touch-action: manipulation;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    opacity 200ms var(--ease-out);
}
/* Press feedback makes the UI feel like it is listening */
.btn:active:not([disabled]) { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--gold); color: var(--forest); box-shadow: 0 6px 20px -8px rgba(195, 154, 78, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-dark { background: var(--forest); color: var(--paper); box-shadow: 0 6px 18px -10px rgba(20, 48, 42, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn-ghost { background: transparent; color: var(--forest); box-shadow: inset 0 0 0 1px rgba(20, 48, 42, .2); }
.btn[disabled] { cursor: progress; }
.btn-dark[disabled] { opacity: .88; }

.btn .arrow { transition: transform var(--dur-ui) var(--ease-out); }

/* Hover only where a real pointer exists, so taps on phones don't leave sticky hover states */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #cea85c; }
  .btn-dark:hover:not([disabled]) { background: var(--forest-2); }
  .btn-ghost:hover { background: rgba(20, 48, 42, .05); box-shadow: inset 0 0 0 1px rgba(20, 48, 42, .32); }
  .btn:hover .arrow { transform: translateY(2px); }
  .steps li:hover { transform: translateY(-2px); box-shadow: var(--ring), 0 2px 4px rgba(20, 48, 42, .04), 0 18px 36px -18px rgba(20, 48, 42, .28); }
  .footer-fine a:hover { color: var(--paper); }
}

/* Label swaps cross-fade with a touch of blur instead of jumping */
.swap { display: inline-grid; align-items: center; justify-items: center; }
.swap > * {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 10px;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), filter 200ms var(--ease-out);
}
.swap > [aria-hidden="true"] { opacity: 0; transform: translateY(6px) scale(.96); filter: blur(3px); pointer-events: none; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 253, 248, .25); border-top-color: currentColor;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- steps ---------- */
.steps { padding: 96px clamp(16px, 6vw, 72px) 88px; max-width: 1180px; margin: 0 auto; }
.steps h2, .claim h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 36px; color: var(--forest); }
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.steps li {
  background: var(--paper); border-radius: var(--radius); padding: 26px 24px 28px;
  box-shadow: var(--ring), var(--lift);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out),
              opacity 600ms var(--ease-out), filter 600ms var(--ease-out);
}
.step-n { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.steps h3 { font-family: var(--display); font-weight: 300; font-size: 26px; margin: 10px 0 6px; color: var(--forest); }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- claim ---------- */
.claim { padding: 0 clamp(16px, 6vw, 72px) 104px; max-width: 760px; margin: 0 auto; scroll-margin-top: 24px; }
.panel {
  position: relative; background: var(--paper); border-radius: 24px; overflow: hidden;
  box-shadow: var(--ring), 0 1px 2px rgba(20, 48, 42, .04), 0 40px 80px -48px rgba(20, 48, 42, .55);
  transition: box-shadow 300ms var(--ease-out);
}
.panel-body { padding: clamp(28px, 5vw, 48px); }
.panel-body > * { animation: enter 420ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.panel-body.no-enter > * { animation: none; }
.panel h2 { margin-bottom: 12px; }
.panel p { color: var(--muted); margin: 0 0 22px; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.panel .actions.trio { display: grid; grid-template-columns: 1fr 1fr; }
.panel .actions.trio > :first-child { grid-column: 1 / -1; }
@media (min-width: 620px) { .panel .actions.trio { grid-template-columns: auto auto auto; justify-content: start; } .panel .actions.trio > :first-child { grid-column: auto; } }
@media (max-width: 360px) { .panel .actions.trio { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
.panel .actions.trio .btn { white-space: nowrap; padding-left: 16px; padding-right: 16px; }
.panel .note { display: flex; gap: 8px; align-items: flex-start; font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--muted); margin: 20px 0 0; }
.panel .note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; opacity: .7; }
.panel.is-error { box-shadow: 0 0 0 1px rgba(155, 58, 46, .22), 0 40px 80px -48px rgba(155, 58, 46, .45); }
.panel.is-error h2 { color: var(--danger); }

/* gentle shake when a claim is refused: small distance, quick, no bounce-back overshoot */
@keyframes nudge { 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.panel.nudge { animation: nudge 380ms var(--ease-out); }

/* voucher ticket */
@keyframes voucher-in {
  from { opacity: 0; transform: translateY(16px) scale(.96) rotateX(8deg); filter: blur(8px); }
}
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); opacity: 1; } 85% { opacity: 1; } to { transform: translateX(360%) skewX(-18deg); opacity: 0; } }

.voucher-wrap { perspective: 900px; margin: 6px 0 26px; }
.voucher {
  position: relative; border-radius: 20px; overflow: hidden; color: var(--paper);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(232, 214, 173, .14), transparent 60%),
    linear-gradient(150deg, #10261f 0%, #1d4a3f 60%, #2f6f73 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 24px 48px -24px rgba(16, 38, 31, .7);
  transform-origin: 50% 100%;
  animation: voucher-in 700ms var(--ease-out) both 60ms;
}
.voucher::after {
  content: ""; position: absolute; inset: -20% auto -20% 0; width: 40%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 248, .16), transparent);
  transform: translateX(-120%) skewX(-18deg); opacity: 0;
  animation: sheen 1100ms var(--ease-in-out) 650ms backwards;
}
.voucher.is-restored, .voucher.is-restored::after { animation: none; }
.voucher-top { padding: 28px 28px 22px; }
.panel .voucher p { margin: 0; color: var(--paper); }
.panel .voucher .voucher-label { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin: 0; }
.panel .voucher .voucher-figure { font-family: var(--display); font-weight: 300; font-size: 72px; line-height: 1; letter-spacing: -.02em; margin: 12px 0 6px; color: var(--gold-soft); }
.panel .voucher .voucher-what { font-family: var(--display); font-size: 22px; line-height: 1.3; margin: 0; }
.voucher-cut { position: relative; border-top: 2px dashed rgba(232, 214, 173, .32); margin: 0 18px; }
.voucher-cut::before, .voucher-cut::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); }
.voucher-cut::before { left: -30px; } .voucher-cut::after { right: -30px; }
.voucher-bottom { padding: 20px 28px 26px; display: grid; gap: 14px; }
.panel .voucher .voucher-code {
  font-family: var(--mono); font-size: clamp(21px, 6.4vw, 30px); font-weight: 500; letter-spacing: .05em;
  white-space: nowrap; margin: 6px 0 0; user-select: all; font-variant-numeric: tabular-nums slashed-zero;
}
.panel .voucher .voucher-valid { font-family: var(--sans); font-size: 13px; color: rgba(255, 253, 248, .78); margin: 0; }
.voucher-preview { position: absolute; top: 14px; right: 14px; z-index: 1; background: var(--danger); color: #fff; font: 700 11px/1 var(--sans); letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; }

/* ---------- sticky claim bar (phones) ---------- */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(20, 48, 42, .86); color: var(--paper);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 0 0 1px rgba(232, 214, 173, .14), 0 16px 40px -12px rgba(0, 0, 0, .45);
  font-family: var(--sans); font-size: 14px;
  transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none;
  transition: transform 500ms var(--ease-drawer), opacity 300ms var(--ease-out);
}
.dock.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.dock strong { color: var(--gold-soft); font-weight: 600; }
.dock .btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- toast ---------- */
.toast-region { position: fixed; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; display: grid; justify-items: center; pointer-events: none; }
.toast {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 500 14px/1.2 var(--sans);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, .45);
  animation: toast-in 400ms var(--ease-out) both;
}
.toast svg { width: 16px; height: 16px; color: var(--live); }
.toast.is-leaving { animation: toast-out 200ms ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(4px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- footer ---------- */
.footer { background: var(--forest); color: var(--paper); text-align: center; padding: 72px clamp(16px, 6vw, 72px) calc(56px + env(safe-area-inset-bottom)); }
.footer-name { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 4vw, 40px); margin: 0; }
.footer-tagline { font-family: var(--display); font-weight: 300; color: var(--gold-soft); font-size: 20px; margin: 4px 0 28px; }
.footer-fine { font-family: var(--sans); font-size: 12px; color: rgba(255, 253, 248, .6); max-width: 620px; margin: 0 auto 10px; }
.footer-fine a { color: rgba(255, 253, 248, .85); transition: color 200ms var(--ease-out); }

/* ---------- reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes enter { from { opacity: 0; } }
  @keyframes voucher-in { from { opacity: 0; } }
  @keyframes toast-in { from { opacity: 0; } }
  @keyframes nudge { to { opacity: 1; } }
  [data-reveal] { transform: none; filter: none; }
  .hero::after, .voucher::after, .status-dot::after { animation: none !important; }
  .voucher::after { display: none; }
  .dock { transition: opacity 200ms linear; transform: none; }
  .spinner { animation-duration: 1.6s; }
  .btn:active:not([disabled]) { transform: none; }
}
