/* Where’s My Matcha – landing page
   Barvy a fonty značky jsou v proměnných níže. Font: Nunito z assets/fonts. */

/* Nunito (SIL Open Font License, viz assets/fonts/OFL.txt) z vlastního serveru,
   ne z Google Fonts: IP adresy návštěvníků tak nedostává Google a stránka
   nečeká na cizí doménu. Jeden variabilní soubor na sadu znaků pokryje řezy
   400–800; latin-ext nese českou diakritiku. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #FAF7ED;
  --green: #3C643B;
  --green-dark: #24401F;
  --green-text: #2E4A2D;
  --green-soft: #E4ECDF;
  --pink: #E29591;        /* růžová z loga */
  --pink-muted: #D4857F;  /* tlumená růžová pro text */
  --pink-deep: #B5524E;   /* tmavší růžová pro text na růžovém pozadí */
  --pink-band: #F6DEDB;
  --pink-light: #F2B9B5;
  --line: #DDE6D6;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body { margin: 0; background: var(--cream); color: var(--green-dark); font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1040px; margin: 0 auto; }

/* ---------- tlačítka ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 22px 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 15px; white-space: nowrap; transition: transform .2s ease; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn svg { flex: 0 0 auto; width: 20px; height: 20px; }
.btn--green { background: var(--green); color: var(--cream); }
.btn--green:hover { color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--green); }
.btn--pink { background: var(--pink); color: #fff; font-size: 17px; }
.btn--pink:hover { color: #fff; }
.btn .free { position: absolute; top: -12px; right: -14px; padding: 3px 11px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.4; transform: rotate(8deg); }
.label-short { display: none; }
/* Dokud appka není v App Storu, tlačítka jsou jen štítky „Brzy v App Store“ a nikam
   nevedou. Po vydání z nich budou zase odkazy, viz README. */
.btn.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- hlavička ---------- */
.site-header { max-width: 1180px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { width: 140px; height: auto; display: block; }
.logo:hover img { animation: wiggle .6s ease; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.header-cta { padding: 0 18px 0 14px; }
.header-cta svg { width: 18px; height: 18px; }
.lang { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--green); font-weight: 800; font-size: 14px; text-decoration: none; }
.lang a[aria-current="page"], .lang a[aria-current="page"]:hover { background: var(--green); color: var(--cream); }

/* ---------- úvod (béžový) ---------- */
.hero { position: relative; overflow: hidden; }
.hero-inner { padding: 48px 24px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin: 0; font-weight: 800; font-size: clamp(48px, 6.5vw, 84px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; color: var(--green); }
.hero h1 .hl { color: var(--pink-muted); }
.hero-cup { display: block; width: 300px; max-width: 70%; height: auto; margin: 32px 0 -260px; }
.wave { display: block; width: 100%; height: clamp(18px, 2.5vw, 36px); }
.hero .wave { position: absolute; left: 0; bottom: -1px; z-index: 1; }
/* Vlnky mezi pruhy: pozadí = barva pruhu, do kterého vlnka vede. */
.wave--into-pink, .wave--into-cream { position: relative; margin: -1px 0; }
.wave--into-pink { background: var(--pink-band); }
.wave--into-cream { background: var(--cream); }

/* ---------- zelený pruh ---------- */
.steps-band { background: var(--green); color: var(--cream); }
.steps-grid { padding: 16px 24px 24px; display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: center; grid-template-areas: ". phone" "words phone" "cap phone" "btn phone" ". phone"; grid-template-rows: 1fr auto auto auto 1fr; align-items: center; column-gap: 80px; row-gap: 18px; }
.steps { grid-area: words; display: flex; flex-direction: column; align-items: flex-start; }
.step-word { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-weight: 800; font-size: clamp(44px, 5.5vw, 72px); line-height: 1.12; letter-spacing: -0.01em; color: var(--cream); transition: color .3s ease; }
.step-word[aria-pressed="true"] { color: var(--pink-light); }
.step-captions { grid-area: cap; }
.step-caption { margin: 0; max-width: 26rem; min-height: 3.2em; font-size: 20px; font-weight: 600; line-height: 1.55; color: var(--green-soft); }
.steps-btn { grid-area: btn; }
.phone-wrap { grid-area: phone; position: relative; z-index: 2; margin: -4px 0 -84px; display: flex; justify-content: center; }
.phone { position: relative; width: 260px; max-width: 100%; aspect-ratio: 603 / 1228; border: 9px solid var(--green-dark); border-radius: 46px; overflow: hidden; background: var(--cream); transform: rotate(2deg); box-shadow: 0 24px 48px rgba(20, 40, 18, .35); }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.screen.is-on { opacity: 1; }

/* ---------- růžový pruh ---------- */
.community { background: var(--pink-band); }
.community-inner { padding: 48px 24px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.plus { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--pink); animation: bob 3s ease-in-out infinite; }
.plus svg { width: 36px; height: 36px; }
.section-title { margin: 0; font-weight: 800; font-size: clamp(34px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; color: var(--green); }
.community p { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.55; color: var(--pink-deep); }
.community .btn { margin-top: 8px; }

/* ---------- Instagram ---------- */
.insta { padding: 32px 24px 56px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.insta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }
.insta-divider { width: 2px; height: 44px; background: var(--pink-muted); border-radius: 2px; }
.posts { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); }
.posts a { display: block; border-radius: 20px; overflow: hidden; line-height: 0; transition: transform .25s ease; }
.posts a:hover { transform: rotate(-2deg) scale(1.03); }
.posts img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }

/* ---------- časté otázky ---------- */
.faq { padding: 8px 24px 72px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.faq-list { width: 100%; max-width: 760px; background: #fff; border-radius: 28px; padding: clamp(6px, 1.5vw, 12px) clamp(24px, 4vw, 40px); }
.faq-item { padding: 22px 0; }
.faq-item + .faq-item { border-top: 1.5px solid var(--line); }
.faq-item h3 { margin: 0 0 6px; font-weight: 800; font-size: 21px; line-height: 1.3; color: var(--green); }
.faq-item p { margin: 0; color: var(--green-text); }

/* ---------- právní stránky ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 24px 24px 88px; display: flex; flex-direction: column; gap: 24px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--green); text-decoration: none; font-weight: 800; }
.back svg { width: 18px; height: 18px; }
.legal-page h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; color: var(--green); }
.legal-updated { margin: 0; color: #4D6A4B; font-size: 15px; font-weight: 600; }
.legal-intro { margin: 0; }
.legal-body { background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.legal-body section { display: flex; flex-direction: column; gap: 8px; }
.legal-body h2 { margin: 0; font-weight: 800; font-size: 23px; line-height: 1.25; color: var(--green); }
.legal-body p { margin: 0; white-space: pre-line; color: var(--green-text); }
.legal-body ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; color: var(--green-text); }

/* ---------- patička ---------- */
.site-footer { border-top: 1.5px solid var(--line); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #4D6A4B; font-weight: 600; }
.footer-brand img { width: 18px; height: 35px; object-fit: contain; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 700; }

/* ---------- animace ---------- */
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- mobil ---------- */
@media (max-width: 560px) {
  .logo img { width: 108px; }
  .header-cta { min-height: 40px; padding: 0 14px 0 12px; font-size: 14px; gap: 6px; }
  .header-cta svg { width: 16px; height: 16px; }
  .hero-inner { padding: 28px 20px 0; }
  .hero h1 { font-size: 42px; }
  .hero-cup { width: 190px; margin: 20px 0 -170px; }
  .steps-grid { padding: 20px 16px 32px; column-gap: 12px; row-gap: 12px; }
  .steps-btn .btn { padding: 9px 18px 9px 14px; font-size: 15px; }
  .label-long { display: none; }
  .label-short { display: inline; }
  .step-word { font-size: 34px; line-height: 1.08; }
  .step-caption { font-size: 15px; line-height: 1.45; min-height: 5.8em; }
  .phone-wrap { margin: -4px 0 -56px; }
  .phone { width: 164px; border-width: 6px; border-radius: 26px; }
  .community-inner { padding: 48px 20px 24px; gap: 10px; }
  .plus { width: 56px; height: 56px; }
  .section-title { font-size: 30px; }
  .community p { font-size: 16px; }
  .insta { padding: 28px 20px 40px; gap: 20px; }
  .insta-row { flex-wrap: nowrap; gap: 12px; }
  .insta-row .section-title { font-size: 28px; white-space: nowrap; }
  .insta-row .btn { font-size: 14px; padding: 8px 14px 8px 12px; min-height: 40px; gap: 6px; }
  .insta-row .btn svg { width: 17px; height: 17px; }
  .insta-divider { height: 34px; }
  .faq { padding: 4px 20px 48px; gap: 20px; }
  .faq-item { padding: 18px 0; }
  .faq-item h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .plus, .logo:hover img { animation: none; }
  .btn:hover, .posts a:hover { transform: none; }
  .screen, .step-word { transition: none; }
}
