/* Conversion features: the numbers, price dock, viewing sheet, story tour. */

/* ---------- the numbers ---------- */
.numbers {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(16px, 2.4vw, 36px);
  padding: clamp(72px, 10vw, 150px) var(--gutter);
}
.numbers[hidden] { display: none; }
.numbers__head { grid-column: 1 / span 5; }
.numbers__price { font-family: var(--f-display); font-size: var(--step-3); line-height: 1; color: var(--parasol-ink); margin-bottom: .35em; }
.numbers__head h2 { font-size: var(--step-2); max-width: 16ch; }
.numbers__head > p:last-child { margin-top: 1rem; max-width: 36ch; color: var(--ink-soft); }
.calc { grid-column: 6 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.calc__inputs { display: grid; gap: 26px; }
.slider { display: grid; gap: 4px; }
.slider__row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--ink-soft); }
.slider output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slider input { width: 100%; height: 34px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.slider input:disabled { opacity: .35; cursor: default; }
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p, 0%), color-mix(in srgb, var(--ink) 16%, transparent) var(--p, 0%)); }
.slider input::-moz-range-track { height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.slider input::-moz-range-progress { height: 4px; background: var(--ink); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--marble); border: 6px solid var(--ink); }
.slider input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--marble); border: 6px solid var(--ink); }

.calc__out { background: var(--ink); color: var(--marble); padding: clamp(22px, 3vw, 36px); border-radius: 4px; }
.calc__pay { display: grid; gap: 2px; }
.calc__pay output { font-family: var(--f-display); font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: var(--ochre); font-variant-numeric: lining-nums; }
.calc__pay span { color: color-mix(in srgb, var(--marble) 75%, transparent); }
.bars { display: grid; gap: 10px; margin: 26px 0 16px; }
.bar { display: grid; grid-template-columns: 5.6em 1fr auto; align-items: center; gap: 10px; font-size: .8125rem; }
.bar i { display: block; height: 10px; border-radius: 5px; min-width: 2px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.bar--pay i { background: var(--ochre); }
.bar--rent i { background: #5fd6d2; }
.bar b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 5.2em; text-align: right; }
.calc__cover { font-size: .9375rem; line-height: 1.5; }
.calc__stats { display: flex; gap: 28px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--marble) 16%, transparent); }
.calc__stats div { display: flex; flex-direction: column-reverse; }
.calc__stats dt { font-size: .75rem; color: color-mix(in srgb, var(--marble) 60%, transparent); }
.calc__stats dd { margin: 0; font-family: var(--f-display); font-size: 1.7rem; line-height: 1.1; }
.calc__note { margin-top: 18px; font-size: .75rem; line-height: 1.5; color: color-mix(in srgb, var(--marble) 55%, transparent); }
.numbers__fine { display: none; }

/* ---------- Golden Visa ---------- */
/* tag under the hero lede, in the colours of the ΠΩΛΕΙΤΑΙ sign */
.hero__gv {
  display: flex; width: fit-content; align-items: center; gap: .45em; margin: 0 0 1.4rem; padding: .4em .95em .4em .7em;
  background: var(--sign); color: var(--ink); border-radius: 4px; text-decoration: none;
  font-weight: 600; font-size: .9375rem; line-height: 1.2;
}
.hero__gv svg { width: 18px; height: 18px; fill: var(--sign-ink); flex: none; }
.hero__gv:hover span { text-decoration: underline; text-underline-offset: 3px; }

.visa {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px clamp(16px, 2.4vw, 36px);
  padding: clamp(72px, 10vw, 150px) var(--gutter); background: var(--marble-2);
}
.visa[hidden] { display: none; }
.visa__head { grid-column: 1 / span 5; }
.visa__head h2 { max-width: 11ch; }
.visa__head p { margin-top: 1.4rem; max-width: 44ch; }
/* the ladder: each bar is its amount as a share of the highest one */
.ladder { grid-column: 7 / -1; margin: 0; align-self: end; }
.ladder__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.ladder__row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 6px 16px; }
.ladder__row b { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; }
.ladder__row span { font-size: .9375rem; line-height: 1.35; color: var(--ink-soft); }
.ladder__row i { grid-column: 1 / -1; width: var(--w); height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.ladder__row.is-self span, .ladder__row.is-route span { color: var(--ink); font-weight: 600; }
.ladder__row.is-route i { background: var(--ink); }
.ladder__row.is-self i { height: 22px; border-radius: 3px; background: var(--sign); }
.ladder figcaption { margin-top: 18px; font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); }

.routes { grid-column: 1 / -1; margin-top: clamp(8px, 3vw, 40px); }
.routes h3 { margin-bottom: 1.4rem; }
.routes dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); }
.routes dl div { padding-top: 16px; border-top: 2px solid var(--ink); }
.routes dt { font-weight: 600; margin-bottom: .45rem; }
.routes dd { margin: 0; max-width: 40ch; font-size: .9375rem; line-height: 1.6; color: var(--ink-soft); }
.routes__tax { margin-top: 32px; max-width: 62ch; font-family: var(--f-display); font-size: var(--step-1); line-height: 1.4; }
.visa__cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.visa__fine { grid-column: 1 / -1; max-width: 75ch; font-size: .8125rem; line-height: 1.5; color: var(--ink-soft); }

/* ---------- price dock ---------- */
.dock {
  position: fixed; z-index: 30; left: 50%; bottom: 16px;
  width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 22px;
  background: rgba(16, 48, 58, .95); color: var(--marble);
  border-radius: 999px; box-shadow: 0 18px 40px -16px rgba(8, 28, 34, .65);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.dock.is-on { transform: translate(-50%, 0); }
.dock__price { margin: 0 auto 0 0; display: grid; line-height: 1.15; min-width: 0; }
.dock__price strong { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; }
.dock__price span { font-size: .75rem; color: color-mix(in srgb, var(--marble) 70%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__share { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid color-mix(in srgb, var(--marble) 28%, transparent); cursor: pointer; }
.dock__share svg { width: 20px; height: 20px; fill: none; stroke: var(--marble); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock .dock__book { flex: none; background: var(--sign); color: #2b1e06; }
.dock .dock__book:hover { background: #F7D04F; }

.toast {
  position: fixed; z-index: 60; left: 50%; bottom: 100px; transform: translate(-50%, 20px);
  margin: 0; padding: 10px 18px; border-radius: 999px; background: var(--marble); color: var(--ink);
  font-size: .9375rem; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(8,28,34,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- viewing sheet ---------- */
.sheet { padding: 0; border: 0; background: transparent; width: min(520px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; color: var(--ink); }
.sheet::backdrop { background: rgba(8, 28, 34, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__inner {
  position: relative; display: grid; gap: 20px;
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 30px 24px 24px; background: var(--marble); border-radius: 18px;
}
.sheet[open] .sheet__inner { animation: sheetIn .28s cubic-bezier(.2,.8,.2,1); }
.sheet.is-closing .sheet__inner { animation: sheetOut .2s ease-in forwards; }
@keyframes sheetIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(16px) scale(.98); } }
.sheet h2 { font-size: 2.2rem; padding-right: 48px; }
.sheet__body { color: var(--ink-soft); margin-top: -8px; }
.sheet__grip { display: none; }
.sheet__x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); cursor: pointer; }
.sheet__x svg, .story__x svg, .story__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sheet legend { padding: 0; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -24px; padding: 2px 24px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); color: var(--ink); font-weight: 500;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip--day { flex: none; display: grid; gap: 1px; padding: 9px 14px; min-width: 78px; text-align: center; line-height: 1.2; scroll-snap-align: start; }
.chip--day b { font-size: .875rem; font-weight: 600; }
.chip--day span { font-size: .75rem; color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--marble); border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: color-mix(in srgb, var(--marble) 75%, transparent); }
.field { display: grid; gap: 8px; font-size: .875rem; font-weight: 600; }
.field input { min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); background: #fff; color: var(--ink); font: 400 1rem var(--f-text); }
.field input:focus { outline: 2px solid var(--parasol); outline-offset: 1px; border-color: transparent; }
.sheet__send { display: grid; gap: 10px; }
.sheet__send .btn { width: 100%; min-height: 54px; }

/* ---------- story tour ---------- */
.story { padding: 0; margin: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #081F25; color: var(--marble); overflow: hidden; }
.story::backdrop { background: #081F25; }
.story__frame { position: absolute; inset: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
.story__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; overflow: hidden; }
.story__slide.is-on { opacity: 1; visibility: visible; transition: opacity .4s; }
.story__bg { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(30px) brightness(.5) saturate(1.2); }
.story__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.story__slide.is-on .story__img { animation: kenburns 7s ease-out both; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.story__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 24px calc(30px + env(safe-area-inset-bottom));
  font-family: var(--f-display); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05;
  background: linear-gradient(transparent, rgba(8, 31, 37, .78));
}
.story__bars { position: absolute; z-index: 3; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; pointer-events: none; }
.story__bars span { flex: 1; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(232, 236, 233, .28); }
.story__bars i { display: block; height: 100%; width: 0; background: var(--marble); }
.story__bars .is-done i { width: 100%; }
.story__bars .is-run i { animation: storybar 5.2s linear forwards; }
.story.is-still .story__bars .is-run i { animation: none; width: 100%; }
.story.is-still .story__slide.is-on .story__img { animation: none; }
.story.is-paused .story__bars .is-run i, .story.is-paused .story__slide.is-on .story__img { animation-play-state: paused; }
@keyframes storybar { to { width: 100%; } }
.story__x { position: absolute; z-index: 4; top: calc(24px + env(safe-area-inset-top)); right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(8, 31, 37, .45); color: var(--marble); cursor: pointer; }
.story__nav { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(232, 236, 233, .14); color: var(--marble); cursor: pointer; }
.story__nav:hover { background: rgba(232, 236, 233, .26); }
.story__nav--prev { left: 16px; }
.story__nav--next { right: 16px; }
.story.is-end .story__nav--next { display: none; }
.story__end { display: grid; place-content: center; justify-items: start; gap: 14px; padding: 32px max(24px, 8vw); background: radial-gradient(120% 80% at 80% 0%, #1b4b55, #081F25 70%); }
.story__endPrice { font-family: var(--f-display); font-size: clamp(3rem, 12vw, 6rem); line-height: 1; color: var(--ochre); }
.story__end h2 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 12ch; }
.story__end > p:not(.story__endPrice) { color: color-mix(in srgb, var(--marble) 70%, transparent); }
.story__endActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.story__hint {
  position: absolute; z-index: 3; left: 50%; top: calc(30px + env(safe-area-inset-top)); transform: translateX(-50%);
  margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(8, 31, 37, .6); font-size: .75rem; white-space: nowrap; pointer-events: none;
  animation: hintOut 3.6s ease forwards;
}
@keyframes hintOut { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.inside__head .btn { order: 3; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .numbers__head, .calc { grid-column: 1 / -1; }
  .visa__head, .ladder { grid-column: 1 / -1; }
  .ladder { max-width: 640px; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
  .facts .is-price { grid-column: 1 / -1; }
  .facts .is-price dd { font-size: 3rem; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .top__book { display: none; }

  .numbers { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .calc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .calc__out { order: -1; position: sticky; top: 8px; z-index: 2; padding: 18px 18px 16px; box-shadow: 0 16px 30px -18px rgba(8,28,34,.6); }
  .calc__pay { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
  .calc__pay output { font-size: 2.6rem; }
  .calc__pay span { font-size: .875rem; line-height: 1.3; }
  .bars { margin: 14px 0 10px; }
  .calc__stats { margin-top: 12px; padding-top: 12px; }
  .calc__stats dd { font-size: 1.4rem; }
  .calc__note { display: none; }
  .numbers__fine { display: block; font-size: .75rem; line-height: 1.5; color: var(--ink-soft); }

  .visa { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ladder__row { grid-template-columns: minmax(0, 1fr); }
  .ladder__row b { font-size: 1.5rem; }
  .routes dl { grid-template-columns: minmax(0, 1fr); }
  .visa__cta .btn { width: 100%; }

  .dock { left: 0; right: 0; bottom: 0; width: 100%; transform: translateY(110%); border-radius: 18px 18px 0 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 18px; }
  .dock.is-on { transform: none; }
  .dock__price strong { font-size: 1.4rem; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

  .sheet { margin: auto 0 0; width: 100%; max-height: 92dvh; }
  .sheet__inner { border-radius: 22px 22px 0 0; max-height: 92dvh; padding: 26px 20px calc(20px + env(safe-area-inset-bottom)); }
  .chips--scroll { margin: 0 -20px; padding: 2px 20px 6px; }
  .sheet__grip { display: block; position: absolute; top: 9px; left: 50%; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 22%, transparent); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }

  .story__nav { display: none; }
  .story__slide[data-land="0"] .story__img { object-fit: cover; }
  .contact__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dock, .toast, .bar i { transition: none; }
  .sheet[open] .sheet__inner, .sheet.is-closing .sheet__inner { animation: none; }
  .story__slide, .story__slide.is-on { transition: none; }
}
