/* Sections, in page order. The stamp circle is the only shape. */

.section { padding-block: var(--section) 0; }
.h2 { font-size: var(--step-heading); }
.lead { font-size: var(--step-lead); line-height: 1.45; }

/* Hero: copy on the ground, a green stamp-disc ~120vh cropped by the right edge carrying the sample pass and the sticker */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - 72px); display: grid; align-items: center; padding-block: var(--gap-5); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-4); align-items: center; position: relative; z-index: 1; }
.hero-copy { display: grid; gap: var(--gap-3); justify-items: start; }
.hero h1 { font-size: var(--step-display); letter-spacing: -0.03em; }
.hero .lead { max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fact { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.hero-fact::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.hero-disc { position: absolute; z-index: 0; top: 3%; bottom: 3%; aspect-ratio: 1; border-radius: 50%; background: var(--green); right: -16%; }
.hero-stage { position: relative; display: grid; justify-items: center; gap: 14px; padding-block: var(--gap-3); }
.hero-stage .sample { justify-self: center; }
.hero-sticker { position: absolute; width: clamp(110px, 12vw, 170px); left: max(-4%, -40px); bottom: 2%; border-radius: 50%; }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: var(--gap-4) 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: var(--gap-4); }
  .hero-disc { width: 150vw; right: auto; left: 50%; top: auto; bottom: -78vw; transform: translateX(-50%); }
  .hero-stage { padding-bottom: var(--gap-4); }
  .hero-sticker { width: 96px; left: 4%; bottom: 8%; }
}

/* How it works: two fields, one slider drives the clause and the fragment */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 88svh; }
.how-clause { background: var(--ink); color: #fff; padding: var(--gap-5) var(--gutter) var(--gap-4); display: grid; align-content: start; gap: var(--gap-3); }
.how-clause h3 { font-size: clamp(2rem, 1rem + 2.6vw, 3.6rem); max-width: 15ch; }
.how-clause p { color: var(--on-dark-muted); max-width: 38ch; font-size: var(--step-lead); line-height: 1.45; }
.how-stage { background: var(--mint); display: grid; place-items: center; padding: var(--gap-4) var(--gutter); position: relative; }
.how-panel { grid-area: 1 / 1; display: grid; justify-items: center; gap: 14px; transition: opacity var(--dur-swap) var(--ease-out), transform var(--dur-swap) var(--ease-out); }
.how-panel[hidden] { display: grid; opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; }
.how-sticker { width: min(320px, 70%); border-radius: 50%; }
.how-control { grid-column: 1 / -1; background: var(--ink); color: #fff; padding: var(--gap-3) var(--gutter) var(--gap-4); }
.how-control label { display: block; font-weight: 700; margin-bottom: 14px; }
.how-range { width: 100%; appearance: none; background: none; height: 44px; margin: 0; cursor: pointer; }
.how-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(var(--mint), var(--mint)) 0 / var(--fill, 0%) 100% no-repeat, var(--dark-2); } /* taste-skill-ignore: track fill, not decoration */
.how-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--dark-2); }
.how-range::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--mint); }
.how-range::-webkit-slider-thumb { appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 50%; background: var(--mint); border: 0; }
.how-range::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: var(--mint); border: 0; }
.how-range:focus-visible { outline: 3px solid var(--mint); outline-offset: 6px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-3); margin: 14px 0 0; padding: 0; list-style: none; color: var(--on-dark-muted); }
.how-steps li.on { color: #fff; }
.how-steps button { all: unset; cursor: pointer; display: grid; gap: 4px; padding: 6px 0; transition: color var(--dur-ui) ease; }
.how-steps b { font-weight: 700; font-size: 1.0625rem; }
.how-steps span { font-size: var(--step-small); line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .how-steps li:not(.on) button:hover { color: #fff; } }
.how-steps button:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 860px) {
  .how { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .how-stage { order: -1; min-height: 46svh; } .how-control { order: 0; } .how-clause { order: 1; padding-top: var(--gap-4); }
  .how-clause h3 { font-size: 7.6vw; }
}

/* Showcase: an index of names beside one disc that swaps its object */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-4); align-items: center; }
.index { margin: 0; padding: 0; display: grid; gap: 6px; justify-items: start; }
.index-title { color: var(--muted); font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem); line-height: 1.15; margin-bottom: 8px; }
.index button { all: unset; cursor: pointer; min-height: 44px; display: grid; grid-template-columns: 0.42em 1fr; gap: 0.45em; align-items: center;
  font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--muted);
  transition: color var(--dur-ui) ease; }
.index button::before { content: ""; width: 0.42em; height: 0.42em; border-radius: 50%; background: currentColor; transform: scale(0.6); transition: transform var(--dur-ui) var(--ease-out), background-color var(--dur-ui) ease; }
.index button[aria-selected="true"] { color: var(--ink); }
.index button[aria-selected="true"]::before { transform: scale(1); background: var(--green); }
.index button:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; border-radius: 6px; }
.stage-disc { position: relative; justify-self: center; width: min(64vh, 92%); aspect-ratio: 1; display: grid; place-items: center; }
.stage-disc::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: var(--disc, var(--green)); transition: background-color var(--dur-swap) var(--ease-out); }
.stage-item { grid-area: 1 / 1; position: relative; display: grid; justify-items: center; gap: 12px; transform: translateY(-6%);
  transition: opacity var(--dur-swap) var(--ease-out), transform var(--dur-swap) var(--ease-out); }
.stage-item[hidden] { display: grid; opacity: 0; transform: translateY(-3%) scale(0.98); visibility: hidden; }
.stage-fact { max-width: 40ch; color: var(--ink); margin-top: var(--gap-3); min-height: 6.5em; }
.stage-fact b { color: var(--ink); }
@media (max-width: 900px) {
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .stage-disc { order: -1; width: 86vw; }
  .index { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 24px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .index button { font-size: 1.6rem; }
}

/* Owner tools: a board of close-ups */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile .el { position: absolute; font-size: var(--zoom, 2.6rem); }
.tile .cap { position: relative; display: grid; gap: 2px; max-width: 30ch; }
.tile .cap b { font-size: 1.125rem; font-weight: 700; }
.tile .cap span { font-size: 0.95rem; }
.t-head { grid-column: span 6; grid-row: span 2; background: var(--ground); justify-content: flex-start; padding: 0; }
.t-head h2 { font-size: var(--step-heading); max-width: 12ch; }
.t-head p { margin-top: 12px; max-width: 42ch; }
.t-kpi { grid-column: span 6; grid-row: span 4; background: var(--mint); }
.t-kpi .el { --zoom: clamp(1.5rem, 0.9rem + 1.4vw, 2.5rem); top: 22px; left: 22px; }
.t-sw { grid-column: span 3; grid-row: span 4; background: var(--ink); color: #fff; }
.t-sw .el { --zoom: 1.25rem; top: 20px; left: 20px; right: -90px; }
.t-sw .pass { width: 300px; font-size: 16px; transform-origin: top left; transform: scale(0.78); margin-top: 1.4em; }
.t-ic { grid-column: span 3; grid-row: span 2; background: var(--surface); }
.t-ic .el { --zoom: 1.5rem; top: 18px; left: 18px; right: -40px; }
.t-csv { grid-column: span 3; grid-row: span 2; background: var(--mint-soft); }
.t-csv .el { --zoom: 1.7rem; top: 14px; right: -24px; }
.t-staff { grid-column: span 3; grid-row: span 2; background: var(--surface); }
.t-staff .el { --zoom: 1.5rem; top: 16px; right: -18px; }
.t-gift { grid-column: span 3; grid-row: span 2; background: var(--green); color: #fff; }
.t-gift .el { --zoom: 1.2rem; top: 14px; right: -10px; }
.t-near { grid-column: span 6; grid-row: span 2; background: var(--surface); }
.t-near .el { --zoom: 1.45rem; top: 18px; left: 20px; right: -80px; }
.t-setup { grid-column: span 6; grid-row: span 2; background: var(--ink); color: #fff; }
.t-setup .el { right: -30px; top: -26px; display: flex; gap: 10px; }
.t-setup .el i { width: 92px; height: 92px; border-radius: 50%; background: var(--green); }
.t-setup .el i:nth-child(2) { background: var(--mint); }
.tile .demo-tag { position: absolute; top: 14px; right: 14px; }
@media (max-width: 860px) {
  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px; }
  .t-head { grid-column: span 2; grid-row: span 2; }
  .t-kpi, .t-near, .t-setup { grid-column: span 2; grid-row: span 3; }
  .t-sw { grid-column: span 2; grid-row: span 4; }
  .t-ic, .t-csv, .t-staff, .t-gift { grid-column: span 1; grid-row: span 3; }
  .tile .cap b { font-size: 1rem; } .tile .cap span { font-size: 0.875rem; }
}
/* Fixes after the first look */
.how-clause .how-panel { justify-items: start; }
.t-ic .el { --zoom: 1.15rem; right: 18px; }
.t-near .el { right: 20px; }
.t-csv .el { right: 20px; }
.t-staff .el { right: 20px; }
.hero-sticker { left: -14%; bottom: -6%; }
@media (max-width: 900px) { .hero-sticker { display: none; } }
@media (max-width: 860px) {
  .tile .el { font-size: calc(var(--zoom, 2.6rem) * 0.72); }
  .t-ic, .t-csv { grid-column: span 2; grid-row: span 2; }
  .t-staff, .t-gift { grid-row: span 3; }
  .t-sw .el { right: auto; }
}

@media (max-width: 860px) { .how-steps { grid-template-columns: 1fr; gap: 10px; } .stage-item { scale: 0.82; } }
@media (max-width: 900px) {
  .index { grid-auto-flow: row; display: flex; flex-wrap: wrap; gap: 4px 20px; overflow: visible; }
  .index button { font-size: 1.4rem; }
}
/* Narrow phones (360): fragments shrink with their column instead of pushing it */
.how-panel, .stage-item { width: 100%; }
.how-panel > [data-ui], .stage-item > [data-ui] { max-width: 100%; min-width: 0; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.how-stage, .stage-disc { grid-template-columns: minmax(0, 1fr); }
.how-range { touch-action: pan-y; }

/* Below the fold: skip layout until needed (perf) */
#pos-douleuei, #ston-pagko, #gia-to-magazi, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
