/*
  Marketa — w5 visual world
  THESIS: a payments site shaped like a bright market stall under a striped
          awning; refuses the muted fintech gradient-and-cards brochure.
  OWN-WORLD: bright warm-white (#fff8f3), bold ink (#181425), a full palette of
             coral (#ff5a3c), grape (#6a49 f0) and sun (#ffc23d), with an awning
             stripe motif and chunky rounded storefront cards. Confident sans,
             oversized display weights.
  MOTION: one authored moment — the awning stripes sweep in and the "OPEN" sign
          flips on above the hero.
*/

:root {
  --paper: #fff8f3;
  --paper-2: #fff1e8;
  --ink: #181425;
  --ink-soft: #5b5470;
  --coral: #ff5a3c;
  --coral-deep: #e8401f;
  --grape: #6a49f0;
  --grape-deep: #5334d4;
  --sun: #ffc23d;
  --mint: #17b890;
  --line: #efe2d6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 44px -22px rgba(24, 20, 37, 0.32);
  --shadow-sm: 0 10px 22px -12px rgba(24, 20, 37, 0.28);
  --font: "Trebuchet MS", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.62; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--grape-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* awning stripe strip */
.awning { height: 12px; background: repeating-linear-gradient(90deg, var(--coral) 0 26px, #fff 26px 52px); }

/* topbar */
.topbar { background: var(--ink); color: #ffd9cd; font-size: 13.5px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 9px 0; align-items: center; }
.topbar a { color: #ffd9cd; } .topbar .sep { margin-left: auto; }

/* nav */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(255,248,243,.92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--ink); }
.nav { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg, .brand img { width: 36px; height: 36px; }
.brand b { font-size: 21px; letter-spacing: -0.02em; font-weight: 800; }
.brand b i { color: var(--coral); font-style: normal; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink); padding: 8px 13px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.nav-links a:hover { background: var(--paper-2); text-decoration: none; }
.nav-cta { background: var(--coral); color: #fff !important; box-shadow: var(--shadow-sm); }
.nav-cta:hover { background: var(--coral-deep); }
.nav-toggle { display: none; }

/* hero */
.hero { position: relative; padding: 70px 0 84px; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.open-sign { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--sun); font-weight: 800; letter-spacing: 0.14em; font-size: 12.5px; padding: 8px 16px; border-radius: 999px; text-transform: uppercase; margin-bottom: 20px; transform: rotate(-2deg); animation: flip .6s cubic-bezier(.2,.9,.3,1.2) both; }
.open-sign::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(23,184,144,.3); }
@keyframes flip { from { opacity: 0; transform: rotate(-2deg) scale(.7); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.0; letter-spacing: -0.04em; margin: 0 0 18px; font-weight: 800; }
.hero h1 mark { background: linear-gradient(180deg, transparent 62%, var(--sun) 62% 92%, transparent 92%); color: inherit; padding: 0 2px; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.btn-row { display: flex; gap: 13px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 24px; border-radius: 999px; font-weight: 800; font-size: 16px; border: 0; cursor: pointer; transition: transform .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* stall card — signature object */
.stall { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.stall .stall-awning { height: 30px; background: repeating-linear-gradient(90deg, var(--coral) 0 30px, #fff 30px 60px); border-bottom: 2px solid var(--ink); }
.stall .stall-body { padding: 22px 24px 24px; }
.stall .tag { display: inline-block; background: var(--grape); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.08em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.stall .amt { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 4px; }
.stall .rowline { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: 15px; }
.stall .paid { margin-top: 14px; display: flex; align-items: center; gap: 8px; color: var(--mint); font-weight: 800; }

/* sections */
.section { padding: 76px 0; }
.section.alt { background: var(--paper-2); }
.section.grape { background: var(--grape); color: #fff; }
.section.grape h2, .section.grape .kick { color: #fff; }
.section.grape p { color: #e4dcff; }
.section-head { max-width: 62ch; margin-bottom: 42px; }
.kick { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 14px; }
.section p { color: var(--ink-soft); max-width: 68ch; }
.prose p { margin: 0 0 18px; }
.prose h3 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 30px 0 10px; }

/* stall grid — varied storefront tiles, not identical cards */
.stalls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease; }
.tile:hover { transform: translateY(-4px); }
.tile .bignum { font-size: 30px; font-weight: 800; color: var(--grape); letter-spacing: -0.02em; }
.tile:nth-child(2) .bignum { color: var(--coral); }
.tile:nth-child(3) .bignum { color: var(--mint); }
.tile:nth-child(4) .bignum { color: var(--coral); }
.tile:nth-child(5) .bignum { color: var(--mint); }
.tile:nth-child(6) .bignum { color: var(--grape); }
.tile h3 { margin: 8px 0 6px; font-size: 1.2rem; letter-spacing: -0.02em; }
.tile p { margin: 0; font-size: 15.5px; }
.tile.wide { grid-column: span 2; display: flex; gap: 20px; align-items: center; }
.tile.wide img { width: 42%; border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* media band */
.mediaband { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.mediaband img { border-radius: var(--radius); border: 2px solid var(--ink); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.mediaband.flip { direction: rtl; } .mediaband.flip > * { direction: ltr; }

/* stats */
/* paired h3 blocks under each keyword h2 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 22px; }
.duo > div { padding-top: 16px; border-top: 2px solid var(--coral); }
.duo h3 { margin: 0 0 6px; font-size: 1.14rem; letter-spacing: -0.02em; }
.duo p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; }
.stat .n { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--coral); }
.stat .l { color: var(--ink-soft); font-size: 14.5px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { overflow: hidden; border-radius: var(--radius-sm); border: 2px solid var(--ink); }
.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.07) rotate(-1deg); }

/* team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member img { aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--ink); margin-bottom: 12px; }
.member b { display: block; } .member span { color: var(--ink-soft); font-size: 14.5px; }

/* cta */
.cta-band { padding: 72px 0; text-align: center; background: var(--coral); color: #fff; }
.cta-band h2 { color: #fff; } .cta-band p { color: #ffe6de; margin: 0 auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--coral-deep); }

/* login */
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 80vh; }
.login-aside { background: var(--grape); color: #fff; padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-aside::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px; background: repeating-linear-gradient(90deg, var(--sun) 0 26px, #fff 26px 52px); }
.login-aside h2 { color: #fff; } .login-aside p { color: #e4dcff; }
.login-main { padding: 64px 6vw; display: flex; flex-direction: column; justify-content: center; }
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; max-width: 440px; width: 100%; }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(106,73,240,.28); border-color: var(--grape); }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.btn-block { width: 100%; justify-content: center; background: var(--coral); color: #fff; }
.btn-block:hover { background: var(--coral-deep); }
.muted { color: var(--ink-soft); font-size: 14.5px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-list ul { padding: 0; margin: 0; }
.contact-list li { list-style: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--coral); font-weight: 800; }

/* page hero */
.page-hero { padding: 58px 0; background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.035em; margin: 0 0 10px; }
.page-hero p { color: var(--ink-soft); max-width: 62ch; margin: 0; }
.crumbs { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; font-weight: 700; }

/* footer */
.site-foot { background: var(--ink); color: #c7bfe0; padding: 54px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-foot h5, .site-foot .fh { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; font-weight: 700; }
.site-foot a { color: #c7bfe0; display: block; padding: 5px 0; } .site-foot a:hover { color: var(--sun); }
.foot-bottom { border-top: 1px solid #322c46; margin-top: 32px; padding-top: 20px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* cookie */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto; background: #fff; border: 2px solid var(--ink); color: var(--ink); padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; z-index: 60; font-size: 14px; }
.cookie button { border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 800; cursor: pointer; }
.cookie .ok { background: var(--coral); color: #fff; } .cookie .no { background: transparent; color: var(--ink-soft); }

/* thank-you */
.ty { text-align: center; padding: 90px 0; }
.ty .check { width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 24px; background: var(--mint); display: grid; place-items: center; box-shadow: var(--shadow); border: 2px solid var(--ink); }

@media (max-width: 900px) {
  .hero .grid, .mediaband, .stalls, .stats, .gallery-grid, .team, .contact-grid, .foot-grid, .login-shell { grid-template-columns: 1fr; }
  .stats, .team, .gallery-grid, .stalls { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; flex-direction: column; } .tile.wide img { width: 100%; }
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 12px; border-bottom: 2px solid var(--ink); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: var(--coral); color: #fff; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
  .mediaband.flip { direction: ltr; } .login-aside { display: none; }
}
