/*
 * Homepage redesign (card 1e07f8da, Pixel's plan: store/reports/weboldal-nulla).
 * Everything is scoped under .kh (the <main> of front-page.php) and uses kh-
 * prefixed classes, so neither Astra nor the other child-theme sheets are
 * touched. The header, the menu and the footer stay the theme's own.
 */

.kh {
  --kh-cream: #fff8f1;
  --kh-ink: #2b211c;
  --kh-mut: #6f625a;
  --kh-o: #d9743f;
  --kh-od: #b4552a;
  --kh-ot: #fbe3d3;
  --kh-p: #6f5bb5;
  --kh-pt: #e9e4f7;
  --kh-g: #4f8a5b;
  --kh-gt: #dcebdc;
  --kh-a: #c98a12;
  --kh-at: #fbebc0;
  --kh-r: #c2587a;
  --kh-rt: #f8dce5;
  --kh-line: #eaddd1;
  /* Pixel 16618: filled buttons with white text use the darker orange (4.6:1);
     #d9743f stays on dots, stripes and other non-text marks. */
  --kh-btn: #b4552a;
  --kh-btn-hover: #9c4a24;
  --kh-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --kh-sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  background: var(--kh-cream);
  color: var(--kh-ink);
  font: 17px/1.55 var(--kh-sans);
  overflow-x: hidden;
}

.kh h1,
.kh h2,
.kh h3 {
  font-family: var(--kh-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  margin: 0;
}

.kh a {
  color: inherit;
  text-decoration: none;
}

.kh-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.kh-kicker {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kh-od);
}

.kh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}

/* Official store badges (Apple's and Google's artwork guidelines), at one height. */
.kh-stores {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.kh-stores a {
  display: inline-flex;
}

.kh-stores img {
  height: 54px;
  width: auto;
  display: block;
}

.kh-chip {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(60, 30, 10, 0.16);
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.kh-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

/* Hero */
.kh-hero {
  padding: 54px 0 90px;
  position: relative;
}

.kh-hero .kh-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.kh-hero h1 {
  font-size: 84px;
  line-height: 0.98;
  margin: 18px 0 22px;
}

.kh-hero h1 em {
  font-style: italic;
  color: var(--kh-o);
  font-weight: 600;
}

.kh-lead {
  font-size: 21px;
  color: var(--kh-mut);
  max-width: 520px;
  margin: 0;
}

.kh-hero .kh-stores {
  margin: 32px 0 22px;
}

.kh-weblink {
  display: inline-block;
  margin: -8px 0 20px;
  color: var(--kh-od);
  font-weight: 700;
  font-size: 15.5px;
  border-bottom: 2px solid var(--kh-ot);
}

.kh-trustrow {
  display: flex;
  gap: 10px 22px;
  flex-wrap: wrap;
  color: var(--kh-mut);
  font-size: 14.5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kh-stage {
  position: relative;
  height: 640px;
}

.kh-arch {
  position: absolute;
  right: 0;
  top: 0;
  width: 430px;
  height: 600px;
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(165deg, #f4b182, #d9743f 55%, #9c4a26);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 40px;
}

.kh-arch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 14px, transparent 14px 28px);
}

.kh-stage .kh-phone {
  position: absolute;
  left: 10px;
  bottom: -30px;
  height: 520px;
  width: auto;
  filter: drop-shadow(0 28px 40px rgba(60, 30, 10, 0.35));
}

.kh-stage .kh-phone2 {
  position: absolute;
  right: 46px;
  top: 70px;
  height: 500px;
  width: auto;
  filter: drop-shadow(0 24px 36px rgba(60, 30, 10, 0.3));
}

/* The chips sit in the stage's free corners, never on a phone (Pixel review 16529):
   c1 above the back phone, c3 and c2 below it, right of the front phone. */
.kh-c1 { right: 0; top: 14px; }
.kh-c3 { right: 0; top: 586px; }
.kh-c2 { right: 0; top: 636px; }

.kh-seal {
  position: absolute;
  right: 360px;
  top: 20px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--kh-at);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
  transform: rotate(-12deg);
  border: 2px dashed var(--kh-a);
  color: #7a5200;
  padding: 12px;
}

/* Sections */
.kh-sec {
  padding: 90px 0;
}

.kh-sec h2 {
  font-size: 56px;
  line-height: 1.04;
  margin: 14px 0;
  max-width: 780px;
}

.kh-sub {
  font-size: 19px;
  color: var(--kh-mut);
  max-width: 620px;
  margin: 0 0 46px;
}

/* Bento */
.kh-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.kh-tile {
  border-radius: 32px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  min-height: 330px;
}

.kh-tile h3 {
  font-size: 31px;
  line-height: 1.1;
  margin: 10px 0;
}

.kh-tile p {
  margin: 0;
  max-width: 340px;
  font-size: 16.5px;
  color: rgba(43, 33, 28, 0.78);
}

.kh-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kh-tag i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.kh-t1 { grid-column: span 7; grid-row: span 2; background: var(--kh-ot); min-height: 680px; }
.kh-t1 .kh-tag { color: var(--kh-od); }
.kh-t1 .kh-tag i { background: var(--kh-o); }
.kh-t1 p { max-width: 290px; }
.kh-t1 img { position: absolute; right: 40px; bottom: -60px; width: 300px; height: auto; filter: drop-shadow(0 20px 30px rgba(60, 30, 10, 0.28)); }
.kh-t1 .kh-chip { right: 300px; top: 330px; }

.kh-t2 { grid-column: span 5; background: var(--kh-pt); }
.kh-t2 .kh-tag { color: var(--kh-p); }
.kh-t2 .kh-tag i { background: var(--kh-p); }

.kh-t3 { grid-column: span 5; background: var(--kh-gt); }
.kh-t3 .kh-tag { color: var(--kh-g); }
.kh-t3 .kh-tag i { background: var(--kh-g); }

.kh-t4 { grid-column: span 4; background: var(--kh-at); }
.kh-t4 .kh-tag { color: #8a5d00; }
.kh-t4 .kh-tag i { background: var(--kh-a); }

.kh-t5 { grid-column: span 4; background: var(--kh-rt); }
.kh-t5 .kh-tag { color: var(--kh-r); }
.kh-t5 .kh-tag i { background: var(--kh-r); }

.kh-t6 { grid-column: span 4; background: var(--kh-ink); color: #fff; }
.kh-t6 p { color: rgba(255, 255, 255, 0.75); }
.kh-t6 .kh-tag { color: #f4b182; }
.kh-t6 .kh-tag i { background: #f4b182; }
.kh-t6 img { position: absolute; right: -10px; bottom: -10px; width: 200px; height: auto; opacity: 0.9; filter: invert(1) brightness(1.4); }

.kh-mini {
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(40, 25, 60, 0.1);
  margin: 22px 0 0;
  font-size: 14.5px;
  list-style: none;
}

.kh-mini li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f0eae4;
}

.kh-mini li:last-child { border: 0; }
.kh-mini b { width: 54px; color: var(--kh-p); font-size: 13px; }
.kh-mini li.is-on { background: var(--kh-pt); margin: 0 -8px; padding: 7px 8px; border-radius: 10px; border: 0; }
.kh-mini li.is-done span:not(.kh-cb) { text-decoration: line-through; color: #9a8f86; }
.kh-mini em { margin-left: auto; font-style: normal; color: #9a8f86; font-size: 13px; }

.kh-cb {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 2px solid #c9bfb5;
  flex: none;
}

.kh-cb.is-on {
  background: var(--kh-g);
  border-color: var(--kh-g);
}

.kh-timer {
  font: 800 52px/1 var(--kh-serif);
  margin: 22px 0 8px;
}

.kh-step {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14.5px;
  box-shadow: 0 8px 20px rgba(100, 70, 0, 0.1);
}

.kh-fchips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.kh-fchips span {
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
}

.kh-pbtn {
  display: inline-block;
  background: var(--kh-r);
  color: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 700;
  margin-top: 20px;
}

/* Photo band */
.kh-band {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: radial-gradient(110% 100% at 75% 40%, #f2a56e 0%, #d9743f 45%, #7d371b 100%);
  overflow: hidden;
}

.kh-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 14px, transparent 14px 28px);
}

.kh-band-in {
  position: relative;
  max-width: 900px;
  padding: 60px 28px;
}

.kh-band h2 {
  font-size: 78px;
  line-height: 1;
  margin-bottom: 20px;
}

.kh-band h2 em {
  font-style: italic;
  font-weight: 600;
}

.kh-band p {
  font-size: 21px;
  opacity: 0.95;
  margin: 0 auto 30px;
  max-width: 560px;
}

.kh-band .kh-btn {
  background: #fff;
  color: var(--kh-od);
}

/* Upcoming (the menu's "Hamarosan" anchor) */
.kh-upcoming {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.kh-upcoming li {
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: 26px;
  padding: 28px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.kh-upcoming img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: none;
}

.kh-upcoming h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.kh-upcoming p {
  margin: 0;
  color: var(--kh-mut);
  font-size: 16px;
}

/* Final download block */
.kh-final {
  background: var(--kh-ink);
  color: #fff;
  border-radius: 44px;
  padding: 80px 40px;
  max-width: 1160px;
  margin: 0 auto 40px;
}

/* base.css gives every homepage section width:100%; with this block's side
   margins (phone view) that would overflow the viewport. */
body.home .ka-main.kh > .kh-final {
  width: auto;
}

.kh-final h2 {
  font-size: 60px;
  line-height: 1.02;
  margin-bottom: 16px;
}

.kh-final p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  max-width: 480px;
  margin: 0 0 28px;
}

.kh-final p a {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Newsletter band (opens the existing #ka-newsletter-modal, styled by contact.css) */
.kh-news {
  max-width: 1160px;
  margin: 0 auto;
}

body.home .ka-main.kh > .kh-news {
  width: auto;
}

.kh-news-in {
  background: var(--kh-ot);
  border-radius: 28px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.kh-news h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.kh-news p {
  margin: 0;
  color: var(--kh-mut);
  font-size: 16px;
}

.kh .kh-news-btn {
  background: var(--kh-btn);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-family: var(--kh-sans);
  box-shadow: 0 10px 24px rgba(180, 85, 42, 0.3);
}

.kh .kh-news-btn:hover,
.kh .kh-news-btn:focus-visible {
  background: var(--kh-btn-hover);
}

/* FAQ */
.kh-faq {
  max-width: 820px;
  margin: 50px auto 0;
  padding: 0 20px 60px;
}

.kh-faq h2 {
  font-size: 34px;
  margin-bottom: 20px;
  text-align: center;
}

.kh-faq details {
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 10px;
}

.kh-faq summary {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.kh-faq summary::-webkit-details-marker {
  display: none;
}

.kh-faq summary::after {
  content: "+";
  color: var(--kh-o);
  font-size: 24px;
  line-height: 1;
}

.kh-faq details[open] summary::after {
  content: "\2212";
}

.kh-faq details p {
  margin: 12px 0 0;
  color: var(--kh-mut);
}

/* "Mi új" band (card f6a88940, Pixel 16564) */
.kh-whatsnew {
  padding: 0 0 90px;
}

.kh-whatsnew-card {
  background: #fff;
  border: 1px solid var(--kh-line);
  border-radius: 28px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}

.kh-pill {
  display: inline-block;
  background: var(--kh-btn);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
}

.kh-whatsnew-head h2 {
  font-size: 24px;
  margin: 10px 0 4px;
}

.kh-whatsnew-head time {
  color: var(--kh-mut);
  font-size: 14.5px;
}

.kh-whatsnew-list {
  /* A grid item's min-width defaults to its content; with nowrap lines that
     pushed the list 1347px wide (measured, 2.0.2's long notes). */
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--kh-ink);
  font-size: 16px;
}

.kh-whatsnew-list li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kh .kh-whatsnew-link {
  color: var(--kh-od);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .kh-wrap { padding: 0 18px; }
  .kh-hero { padding: 30px 0 50px; }
  .kh-hero .kh-wrap { grid-template-columns: 1fr; }
  .kh-hero h1 { font-size: 50px; }
  .kh-lead { font-size: 18px; }
  .kh-stores img { height: 46px; }
  .kh-stage { height: 460px; margin-top: 10px; }
  .kh-arch { right: 0; width: 74%; height: 430px; padding: 50px 14px; }
  .kh-stage .kh-phone { height: 340px; left: -4px; bottom: -20px; }
  .kh-stage .kh-phone2 { right: 6%; top: 50px; height: 300px; }
  .kh-c1, .kh-c2, .kh-seal { display: none; }
  .kh-c3 { top: auto; bottom: 60px; right: -6px; font-size: 12.5px; padding: 7px 12px; }
  .kh-sec { padding: 56px 0; }
  .kh-sec h2 { font-size: 34px; }
  .kh-sub { font-size: 17px; margin-bottom: 28px; }
  .kh-bento { grid-template-columns: 1fr; gap: 14px; }
  .kh-tile { grid-column: auto; grid-row: auto; min-height: 0; padding: 26px; }
  .kh-t1 { min-height: 760px; }
  .kh-t1 img { width: 260px; right: 10px; }
  .kh-t1 .kh-chip { right: auto; left: 26px; top: 300px; }
  .kh-tile h3 { font-size: 26px; }
  .kh-t6 { min-height: 280px; }
  .kh-band { min-height: 460px; }
  .kh-band h2 { font-size: 42px; }
  .kh-band p { font-size: 17px; }
  .kh-upcoming { grid-template-columns: 1fr; }
  .kh-whatsnew { padding-bottom: 56px; }
  .kh-whatsnew-card { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .kh-whatsnew-list li { white-space: normal; }
  .kh .kh-whatsnew-link { display: block; text-align: center; border: 2px solid var(--kh-o); border-radius: 999px; padding: 11px 20px; }
  .kh-final { margin: 0 18px 30px; padding: 44px 24px; border-radius: 30px; }
  .kh-final h2 { font-size: 38px; }
  .kh-news { margin: 0 18px; }
  .kh-news-in { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* The newsletter modal's submit button (contact.css: --ka-recipes, white
   text below 4.5:1) takes the button orange too (Pixel 16618). */
.kh .ka-modal-form__submit {
  background: var(--kh-btn);
}

.kh .ka-modal-form__submit:hover,
.kh .ka-modal-form__submit:focus-visible {
  background: var(--kh-btn-hover);
}

/* 320px: no room for the bottom chip beside the front phone. */
@media (max-width: 360px) {
  .kh-c3 { display: none; }
}
