/* twogram.gr landing page. The game's "cozy toy" look made modern: cream paper, oak wood, the two
   players' colours (blue = rows, orange = columns), Fredoka for headings. No build step. */
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --cream: #fff6e6;
  --paper: #fffaf1;
  --paper-2: #fbefda;
  --ink: #3d2515;
  --ink-2: #6e4a32;
  --line: #f0dcbd;
  --blue: #3f7ee8;
  --blue-d: #2a5fc0;
  --blue-l: #e3eeff;
  --orange: #f08a2c;
  --orange-d: #c96612;
  --orange-l: #ffeedb;
  --green: #4fb52c;
  --wood: #b9773f;
  --wood-d: #8a5124;
  --shadow: 0 1px 2px rgba(80, 40, 10, .06), 0 10px 30px rgba(80, 40, 10, .10);
  --shadow-lg: 0 2px 4px rgba(80, 40, 10, .08), 0 24px 60px rgba(80, 40, 10, .18);
  --radius: 22px;
  --font-head: "Fredoka", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); }
h2 { font-size: clamp(32px, 4.2vw, 50px); }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wrap--narrow { max-width: 820px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); margin-bottom: 16px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot--blue { background: var(--blue); }
.dot--orange { background: var(--orange); }
.hl-blue { color: var(--blue); }
.hl-orange { color: var(--orange); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; font: 600 17px/1 var(--font-head); text-decoration: none; color: #fff; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 16px; }
.btn--orange { background: var(--orange); box-shadow: 0 4px 0 var(--orange-d); }
.btn--orange:hover { background: #f4973e; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-d); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px; border-radius: 16px; background: #1b120c; color: #fff; text-decoration: none; font: 600 19px/1.1 var(--font-head); box-shadow: 0 4px 0 #000; transition: transform .15s ease, box-shadow .15s ease; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font: 500 11px/1.3 var(--font-body); letter-spacing: .02em; opacity: .8; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #000; }
a.store:active { transform: translateY(3px); box-shadow: 0 1px 0 #000; }
.store--soon { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); cursor: default; }
.store--soon small { color: var(--orange-d); opacity: 1; font-weight: 700; }
.stores--light .store--soon { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.stores--light .store--soon small { color: #ffd9b0; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1140px, calc(100% - 24px)); display: flex; align-items: center; gap: 24px; padding: 8px 10px 8px 14px; border-radius: 20px; background: rgba(255, 250, 241, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 0 0 1px rgba(160, 110, 60, .14), 0 8px 30px rgba(80, 40, 10, .08); transition: box-shadow .2s ease; }
.nav.is-scrolled { box-shadow: 0 0 0 1px rgba(160, 110, 60, .18), 0 10px 34px rgba(80, 40, 10, .14); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 22px/1 var(--font-head); }
.nav__brand img { border-radius: 10px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font: 500 16px/1 var(--font-head); padding: 12px 14px; border-radius: 12px; transition: background-color .2s ease, color .2s ease; }
.nav__links a:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 820px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; background:
  radial-gradient(900px 500px at 85% 10%, rgba(63, 126, 232, .14), transparent 60%),
  radial-gradient(800px 500px at 5% 90%, rgba(240, 138, 44, .16), transparent 60%), var(--cream); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__copy .lead { margin-top: 22px; }
.hero__facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-size: 15px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__phone { position: relative; justify-self: center; }
.phone { position: relative; width: 300px; aspect-ratio: 540 / 1170; border-radius: 48px; padding: 11px; background: #1d140e; box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a2a20; transform: rotate(3deg); }
.phone__art { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone__island { position: absolute; z-index: 2; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 28px; border-radius: 20px; background: #000; }
.phone__logo { position: absolute; left: 50%; top: 18%; width: 72%; transform: translateX(-50%); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
.toast-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; color: var(--ink-2); white-space: nowrap; }
.toast-card strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 16px; }
.toast-card img { width: 40px; height: 40px; }
.toast-card--a { left: -90px; top: 26%; animation: bob 6s ease-in-out infinite; }
.toast-card--b { right: -70px; bottom: 18%; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-tile { position: absolute; width: 54px; height: 54px; border-radius: 14px; opacity: .9; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 8px 20px rgba(80, 40, 10, .12); animation: drift 14s ease-in-out infinite; }
.ft1 { background: var(--blue); top: 104px; left: 50%; transform: rotate(12deg); }
.ft2 { background: var(--orange); top: 62%; left: 3%; width: 40px; height: 40px; animation-delay: -4s; }
.ft3 { background: #fff1d6; top: 18%; right: 4%; width: 36px; height: 36px; animation-delay: -7s; }
.ft4 { background: var(--orange); bottom: 8%; right: 38%; width: 30px; height: 30px; animation-delay: -2s; }
.ft5 { background: var(--blue); bottom: 5%; left: 47%; width: 24px; height: 24px; animation-delay: -9s; }
.ft6 { background: #fff1d6; top: 30%; left: 2%; width: 26px; height: 26px; animation-delay: -5s; }
@keyframes drift { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 10px -16px; rotate: 10deg; } }
@media (max-width: 960px) {
  .ft1, .ft3, .ft5, .ft6 { display: none; }
  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .hero__copy .stores, .hero__facts { justify-content: center; }
  .eyebrow { justify-content: center; }
  .toast-card--a { left: -40px; }
  .toast-card--b { right: -30px; }
}
@media (max-width: 520px) {
  .phone { width: 240px; }
  .toast-card--a { left: -18px; top: 12%; }
  .toast-card--b { right: -14px; bottom: 10%; }
  .lead { font-size: 17px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.demo, .features, .journey, .faq { padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head .lead { margin: 18px auto 0; }
@media (max-width: 720px) { .demo, .features, .journey, .faq { padding: 80px 0; } }

/* ---------- demo ---------- */
.demo { background: var(--paper); border-block: 1px solid var(--line); }
.demo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo__copy .lead { margin-top: 18px; }
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.steps strong { color: var(--ink); }
.steps__n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--paper-2); color: var(--ink); font: 600 17px/1 var(--font-head); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08); }
.steps__n--blue { background: var(--blue); color: #fff; }
.steps__n--orange { background: var(--orange); color: #fff; }
@media (max-width: 960px) { .demo__grid { grid-template-columns: 1fr; gap: 44px; } }

.board-card { margin: 0; justify-self: center; width: min(470px, 100%); padding: 22px; border-radius: 28px; background: linear-gradient(#8f5a32, #6c4122); box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255, 255, 255, .15); position: relative; }
.board-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #ffe8cc; font: 600 16px/1 var(--font-head); }
.turn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(0, 0, 0, .22); transition: background-color .3s ease; }
.turn img { width: 26px; height: 26px; }
.passes { opacity: .85; }
.board { --cell: min(54px, calc((100vw - 150px) / 6.6)); display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; gap: 8px; justify-content: center; }
.board__corner { width: 1px; }
.board__cols { display: grid; grid-template-columns: repeat(var(--n), var(--cell)); gap: 6px; }
.board__rows { display: grid; grid-template-rows: repeat(var(--n), var(--cell)); gap: 6px; }
.board__cells { display: grid; grid-template-columns: repeat(var(--n), var(--cell)); grid-template-rows: repeat(var(--n), var(--cell)); gap: 6px; padding: 8px; margin: -8px; border-radius: 16px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .3); }
.clue { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font: 600 18px/1 var(--font-head); border-radius: 10px; padding: 0 9px; }
.board__cols .clue { flex-direction: column; justify-content: flex-end; padding: 8px 0; gap: 3px; }
.clue--row { background: var(--blue-l); color: var(--blue-d); }
.clue--col { background: var(--orange-l); color: var(--orange-d); }
.cell { border-radius: 10px; background: #f6e6cc; box-shadow: inset 0 -4px 0 rgba(120, 70, 30, .18); transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.cell.is-a { background: var(--blue); box-shadow: inset 0 -5px 0 var(--blue-d); }
.cell.is-b { background: var(--orange); box-shadow: inset 0 -5px 0 var(--orange-d); }
.cell.is-pop { transform: scale(.82); }
.cell.is-x { background: #ecd8b8; position: relative; }
.cell.is-x::before, .cell.is-x::after { content: ""; position: absolute; left: 30%; right: 30%; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: #b99568; transform: rotate(45deg); }
.cell.is-x::after { transform: rotate(-45deg); }
.board.is-solved .cell { animation: solved .5s ease both; }
.board.is-solved .cell.is-a, .board.is-solved .cell.is-b { background: #e64b63; box-shadow: inset 0 -5px 0 #b72f45; }
.board.is-solved .cell:not(.is-a):not(.is-b) { background: #fffdf6; box-shadow: inset 0 -4px 0 #ead7b4; }
@keyframes solved { from { transform: scale(.85); } to { transform: scale(1); } }
.board-card__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; color: #ffe8cc; font-size: 14px; }
.board-card__legend span { display: inline-flex; align-items: center; gap: 7px; }
.chip { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.chip--blue { background: var(--blue); }
.chip--orange { background: var(--orange); }
.board-card__done { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); white-space: nowrap; padding: 10px 18px; border-radius: 999px; background: var(--green); color: #fff; font: 600 16px/1 var(--font-head); box-shadow: 0 4px 0 #378a1b, var(--shadow); animation: pop .35s ease both; }
.board-card__done[hidden] { display: none; }
@keyframes pop { from { transform: translateX(-50%) scale(.7); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px 26px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: box-shadow .2s ease, transform .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #e8c99c, var(--shadow-lg); }
.feature img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 18px; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- room ---------- */
.room { padding: 110px 0; background: linear-gradient(180deg, var(--cream), #fdebd1); }
.room__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.room__copy .lead { margin-top: 18px; }
.room__frame { position: relative; aspect-ratio: 1100 / 880; border-radius: 30px; background: radial-gradient(circle at 50% 40%, #fff7e6, #f5dcb5); box-shadow: var(--shadow-lg); overflow: hidden; }
.room__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s ease; }
.room__frame[data-state="later"] .room__img--early, .room__frame[data-state="early"] .room__img--later { opacity: 0; }
.seg { display: inline-flex; margin: 18px auto 0; padding: 5px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.room__pic { text-align: center; }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: 600 15px/1 var(--font-head); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.seg button[aria-pressed="true"] { background: var(--orange); color: #fff; }
@media (max-width: 960px) { .room__grid { grid-template-columns: 1fr; gap: 36px; } .room__copy { text-align: center; } .room__copy .lead { margin-left: auto; margin-right: auto; } .room { padding: 80px 0; } }

/* ---------- journey ---------- */
.journey { background: var(--paper); border-block: 1px solid var(--line); overflow: hidden; }
.stage-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(22px, calc((100vw - 1136px) / 2)) 26px; scrollbar-width: thin; }
.stage { flex: 0 0 170px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 12px 20px; border-radius: var(--radius); background: var(--cream); box-shadow: 0 0 0 1px var(--line); }
.stage img { width: 110px; height: 110px; object-fit: contain; margin-bottom: 8px; transition: transform .25s ease; }
.stage:hover img { transform: translateY(-4px) rotate(-3deg); }
.stage__n { font: 600 12px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--orange-d); }
.stage strong { font: 600 20px/1.2 var(--font-head); margin: 6px 0 4px; }
.stage__size { font-size: 13px; color: var(--ink-2); }

/* ---------- faq ---------- */
.qa { border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.qa summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font: 600 19px/1.3 var(--font-head); position: relative; border-radius: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(45deg); transition: transform .2s ease; }
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa summary:hover { background: var(--paper-2); }
.qa p { padding: 0 22px 22px; color: var(--ink-2); }

/* ---------- final cta ---------- */
.cta { padding: 40px 0 110px; background: var(--cream); }
.cta__inner { position: relative; text-align: center; padding: 72px 28px; border-radius: 36px; color: #fff;
  background: linear-gradient(rgba(70, 35, 12, .55), rgba(70, 35, 12, .72)), url("../img/bg_table.webp") center / cover; box-shadow: var(--shadow-lg); overflow: hidden; }
.cta__inner h2 { font-size: clamp(34px, 5vw, 58px); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.cta__inner .lead { color: #ffe8cc; margin: 18px auto 0; }
.cta__inner .stores { justify-content: center; }
.cta__tiles { display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; justify-content: center; margin-bottom: 22px; }
.cta__tiles img { width: 44px; height: 44px; }

/* ---------- footer ---------- */
.foot { padding: 30px 0 40px; border-top: 1px solid var(--line); background: var(--cream); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a, .foot__made { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot__made { display: inline-flex; align-items: center; gap: 8px; }
.foot__made img { height: 16px; width: auto; filter: brightness(.35); }
@media (max-width: 720px) { .foot__inner { flex-direction: column; text-align: center; } .foot nav { justify-content: center; } }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-tile, .toast-card { animation: none; }
  .cell, .board.is-solved .cell { transition: none; animation: none; }
}
