/* ToccaVino coming-soon page. Fonts are self-hosted (FE-6). Theme follows the device setting (FE-2). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 500 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* Light: red wine */
:root {
  color-scheme: light dark;
  --bg: #FAF6F0;
  --panel: #F3ECE3;
  --ink: #1E1418;
  --body: #4A3C40;
  --muted: #67585C;
  --line: #E3D7CC;
  --accent: #7A1F35;
  --on-accent: #FFFFFF;
  --floor: #E6DACE;
  --glass: #3A242B;
  --wine: #7A1F35;
  --foil: #4A1420;
  --label-ink: #7A1F35;
  --phone: #2B1B20;
  --phone-edge: #2B1B20;
  --screen: #FFFCF7;
  --dot-off: #E3D7CC;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Dark: white wine */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110E;
    --panel: #1F1A16;
    --ink: #F4EEE3;
    --body: #D8CFC2;
    --muted: #ADA296;
    --line: #3A322A;
    --accent: #D9BE7A;
    --on-accent: #14110E;
    --floor: #2A231D;
    --glass: #33402F;
    --wine: #D8C27A;
    --foil: #8C7A45;
    --label-ink: #8C7A45;
    --phone: #4A3E32;
    --phone-edge: #7A6650;
    --screen: #2B241E;
    --dot-off: #4A4036;
  }
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header and language switch */
.top { display: flex; justify-content: flex-end; padding-top: 24px; padding-bottom: 24px; }
.lang { display: flex; gap: 4px; }
.lang a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}
.lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.lang a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Main */
main { flex: 1; display: flex; align-items: center; padding-top: 24px; padding-bottom: 64px; }
main > .row, main > .intro { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; justify-content: center; }
.intro { flex: 1 1 400px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.brand { display: flex; align-items: center; gap: 16px; }
.brand svg { width: 76px; height: 76px; flex: none; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 52px; line-height: 1; }
.wordmark em, h1 em { font-style: italic; color: var(--accent); }

h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1.02; letter-spacing: -0.01em; }
h1 em { display: block; }
.what { margin: 0; max-width: 440px; font-size: 19px; color: var(--body); }

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Mark colors */
.m-fg { fill: var(--accent); }
.m-fg-s { stroke: var(--accent); fill: none; }
.m-hole { fill: var(--bg); }
.stain .m-hole { fill: var(--panel); }

/* Scene */
.scene { flex: 1 1 520px; min-width: 0; max-width: 620px; height: 440px; position: relative; overflow: hidden; background: var(--panel); border-radius: 28px; }
.stage { position: relative; left: 50%; width: 520px; height: 440px; transform: translateX(-50%); transform-origin: top center; }
.stage > svg.floor { position: absolute; left: 0; top: 0; }
.floor ellipse { fill: var(--floor); }

.bottle { position: absolute; left: 130px; top: 62px; width: 120px; height: 340px; transition: transform .6s ease-in, opacity .6s ease-in; }
.bottle svg { position: absolute; left: 0; top: 0; }
.f-glass { fill: var(--glass); }
.f-foil { fill: var(--foil); }
.f-label { fill: #F5EEE3; }
.s-label-ink { stroke: var(--label-ink); }
.bottle.is-out, .bottle.is-gone { transform: translateX(420px) rotate(8deg); opacity: 0; }
.bottle.is-in { animation: bottle-in .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bottle-in { from { transform: translateX(-220px); opacity: 0; } to { transform: none; opacity: 1; } }

.wineclip { position: absolute; left: 0; top: 0; width: 120px; height: 340px; overflow: hidden; clip-path: path("M48 30V76C48 97 13 109 13 146V317Q13 327 23 327H97Q107 327 107 317V146C107 109 72 97 72 76V30Z"); }
.wine { position: absolute; left: 0; right: 0; top: 32px; bottom: 0; background: var(--wine); transition: transform 1.3s ease-in-out; }
.wine.is-drained { transform: translateY(100%); }
.wine.is-instant { transition: none; }

.burst { position: absolute; left: 214px; top: 142px; stroke: var(--accent); animation: burst 1.4s ease both; }
@keyframes burst { 0%, 30% { opacity: 0; } 45% { opacity: 1; } 60% { opacity: .3; } 75% { opacity: 1; } 100% { opacity: 0; } }

button { font: inherit; }
.sticker {
  position: absolute; left: 168px; top: 178px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #F5EEE3; color: var(--accent); box-shadow: 0 6px 14px -6px rgba(0,0,0,.5);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.sticker.is-loose { transform: translate(214px, -70px) scale(1.3); cursor: pointer; }
.sticker.is-hidden { opacity: 0; }
.pulse { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid currentColor; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { opacity: .8; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }

.phone {
  position: absolute; left: 300px; top: 74px; width: 172px; height: 320px; padding: 10px; border-radius: 26px;
  background: var(--phone); box-shadow: inset 0 0 0 1.5px var(--phone-edge), 0 30px 50px -28px rgba(0,0,0,.6);
  transition: opacity .5s ease;
}
.phone.is-off { opacity: 0; transform: translateX(40px) rotate(-10deg); pointer-events: none; }
.phone.is-hover { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-10deg); } 50% { transform: translateY(-12px) rotate(-10deg); } }
.phone.is-tapped { animation: tap 1.4s cubic-bezier(.3,.7,.2,1) both; }
@keyframes tap { 0% { transform: rotate(-10deg); } 35%, 58% { transform: translate(-80px, 40px) rotate(-20deg); } 100% { transform: none; } }
.screen { width: 100%; height: 100%; border-radius: 18px; overflow: hidden; background: var(--screen); display: flex; align-items: center; justify-content: center; }
.scr-ready svg { stroke: var(--accent); }
.scr-ready .dot { fill: var(--accent); }
.scr-bottle { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.scr-bottle .mini { fill: var(--wine); }
.dots { display: flex; gap: 8px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--dot-off); transition: background .4s ease; }
.dots span.on { background: var(--accent); }
.glass-btn { width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.glass-btn svg { stroke: var(--on-accent); }
.glass-btn.glow { animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 0%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 30%, transparent); } }

.hit { position: absolute; background: transparent; border: 0; cursor: pointer; }
.hit-phone { inset: 0; border-radius: 26px; }
.hit-bottle { left: 130px; top: 62px; width: 120px; height: 340px; }
.stain { position: absolute; left: 120px; top: 236px; width: 140px; height: 140px; padding: 0; border: 0; background: transparent; cursor: pointer; animation: fade-in .9s .3s ease both; }
.stain svg { width: 140px; height: 140px; }

.fade-in { animation: fade-in .5s ease both; }
.fade-in-late { animation: fade-in .45s 1.15s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

[hidden] { display: none !important; }

/* Footer and privacy note (FE-5, FE-13) */
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: flex-end; padding-top: 24px; padding-bottom: 40px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.foot p { margin: 0; max-width: 560px; }

/* Phone width */
@media (max-width: 640px) {
  h1 { font-size: 46px; }
  .wordmark { font-size: 44px; }
  .brand svg { width: 64px; height: 64px; }
  .scene { height: 290px; }
  .stage { transform: translateX(-50%) scale(.64); }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .phone, .burst, .fade-in, .fade-in-late, .bottle.is-in, .glass-btn.glow, .stain { animation: none !important; }
  .sticker, .bottle, .wine { transition: none; }
}
