/* Matek Andival – Claude Design terv alapján (kezdőlap, belépés, óralista) */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700&family=Caveat:wght@500;700&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --pink-50:#fff4f8; --pink-100:#ffe3ee; --pink-200:#fcc8dc; --pink-300:#f7a3c6; --pink-500:#e5489a; --pink-600:#c92a7c;
  --lila-300:#cdb4f5; --lila-500:#9a5ce0; --lila-600:#7a3fc6; --lila-700:#5e2ea0;
  --paper:#fffdfb; --paper-edge:#f3dde8; --ink:#3a1a36; --ink-soft:#6e4a69; --line-strong:#a07f98; --grid-line:#fbe0ec;
  --danger:#b4233c; --danger-bg:#fdecef;
  --grad:linear-gradient(135deg,#c92a7c 0%,#7a3fc6 100%);
  --radius-card:24px; --radius-field:14px;
  --shadow-card:0 1px 0 #f3dde8,0 24px 48px -24px rgba(122,63,198,.35);
  --font-display:'Baloo 2',system-ui,sans-serif; --font-body:'Quicksand',system-ui,sans-serif; --font-hand:'Caveat',cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-weight: 500; }
a { color: var(--pink-600); font-weight: 700; } a:hover { color: var(--lila-700); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--lila-600); outline-offset: 3px; border-radius: 6px; }
.hidden { display: none !important; }
.grid-bg { background-color: var(--paper);
  background-image: linear-gradient(var(--grid-line) 1px,transparent 1px), linear-gradient(90deg,var(--grid-line) 1px,transparent 1px);
  background-size: 19px 19px; }
.hl { background: linear-gradient(transparent 62%, var(--pink-200) 62%, var(--pink-200) 92%, transparent 92%); padding: 0 4px; }

/* oldal-váz */
.page { position: relative; min-height: 100vh; padding: 40px 80px 32px; display: flex; flex-direction: column; overflow: hidden; }
.deco { position: absolute; inset: 0; pointer-events: none; font-family: var(--font-hand); color: var(--pink-300); opacity: .6; }
.deco span { position: absolute; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: #fff; font: 600 22px var(--font-display); transform: rotate(-4deg); box-shadow: 0 8px 16px -8px rgba(122,63,198,.7); }
.logo-mark sup { font-size: 12px; }
.logo-text { font: 600 24px var(--font-display); letter-spacing: -.01em; }
.site-header { position: relative; display: flex; align-items: center; justify-content: space-between; }
.site-footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); font-weight: 600; margin-top: 24px; }
.site-footer nav { display: flex; gap: 28px; }

.hero-grid { position: relative; flex-grow: 1; display: grid; grid-template-columns: minmax(0,1fr) 440px; gap: 80px; align-items: center; }
.eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--paper-edge); font-weight: 700; font-size: 14px; color: var(--lila-700); }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-600); }
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-copy h1 { margin: 0; font: 600 60px/1.06 var(--font-display); letter-spacing: -.02em; }
.hero-copy p { margin: 0; max-width: 460px; font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.illus { position: relative; height: 250px; margin-top: 12px; }
.illus .sys { position: absolute; left: 0; top: 18px; display: flex; align-items: center; gap: 6px; font: 700 44px/1.05 var(--font-hand); transform: rotate(-3deg); }
.illus .brace { font-size: 108px; font-weight: 500; color: var(--ink-soft); line-height: 1; }
.illus .result { position: absolute; left: 44px; top: 168px; font: 700 36px var(--font-hand); color: var(--ink); border-bottom: 3px double var(--pink-500); padding: 0 6px; transform: rotate(-2deg); }
.illus svg { position: absolute; left: 340px; top: 0; }

/* kártya */
.card { position: relative; background: #fff; border: 1px solid var(--paper-edge); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 44px 36px 32px; }
.tape { position: absolute; top: -14px; left: 50%; width: 112px; height: 28px; margin-left: -56px; background: rgba(247,163,198,.55); border-radius: 3px; transform: rotate(-3deg); }
.card h2 { margin: 0 0 6px; font: 600 32px var(--font-display); }
.card .lead { margin: 0 0 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.fieldset { display: flex; flex-direction: column; gap: 8px; }
.fieldset label { font-weight: 700; font-size: 15px; }
.field { width: 100%; height: 54px; padding: 0 16px; border: 2px solid var(--line-strong); border-radius: var(--radius-field); font: 600 17px var(--font-body); color: var(--ink); background: #fff; transition: border-color .15s; }
.field::placeholder { color: #8a6a86; font-weight: 500; }
.field:hover { border-color: var(--lila-500); }
.field:focus { outline: 3px solid var(--lila-300); outline-offset: 2px; border-color: var(--lila-600); }
.field-error { border-color: var(--danger); background: var(--danger-bg); }
.field-msg { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; color: var(--danger); font-size: 14px; font-weight: 700; }
.btn-primary { width: 100%; height: 56px; border: 0; border-radius: 16px; background: var(--grad); color: #fff; font: 600 18px var(--font-display); display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(201,42,124,.75); transition: transform .15s, filter .15s; margin-top: 18px; }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary[disabled] { cursor: progress; filter: saturate(.8); transform: none; }
.btn-secondary { width: 100%; height: 50px; border: 2px solid var(--lila-600); border-radius: 14px; background: #fff; color: var(--lila-700); font: 600 16px var(--font-display); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.btn-secondary[disabled] { border-color: #d9c6ea; color: var(--ink-soft); cursor: not-allowed; }
.btn-ghost { height: 44px; padding: 0 16px; border: 2px solid var(--paper-edge); border-radius: 12px; background: #fff; color: var(--ink); font: 700 15px var(--font-body); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--lila-500); color: var(--lila-700); }
.btn-cta { height: 60px; padding: 0 30px; border-radius: 16px; background: var(--grad); color: #fff !important; font: 600 19px var(--font-display); display: inline-flex; align-items: center; gap: 12px; text-decoration: none; box-shadow: 0 14px 28px -12px rgba(201,42,124,.75); }
.btn-cta:hover { filter: brightness(1.07); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--pink-600); font: 700 14px var(--font-body); text-decoration: underline; cursor: pointer; }
.hint { margin: 20px 0 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-soft); font-weight: 600; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-weight: 700; font-size: 15px; line-height: 1.45; margin-bottom: 24px; }
.note { margin-top: 22px; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--pink-50); border: 1px dashed var(--pink-300); font-size: 14px; line-height: 1.5; font-weight: 600; text-align: left; }
.sent { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sent p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* óralista */
.list-page { position: relative; min-height: 100vh; padding: 32px 120px 48px; display: flex; flex-direction: column; gap: 36px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-100); color: var(--pink-600); display: flex; align-items: center; justify-content: center; font: 600 18px var(--font-display); }
.greet h1 { margin: 0; font: 600 48px var(--font-display); letter-spacing: -.02em; }
.greet p { margin: 6px 0 0; font-size: 18px; color: var(--ink-soft); }
.feature { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 40px; align-items: center; background: #fff; border: 2px solid var(--pink-200); border-radius: 28px; padding: 32px 32px 32px 40px; box-shadow: var(--shadow-card); }
.feature .info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.feature h2 { margin: 0; font: 600 40px/1.1 var(--font-display); }
.feature .when { font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.badge-live { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--danger-bg); color: var(--danger); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.badge-new { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: #f4eefb; color: var(--lila-700); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink-600); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,42,124,.55); } 70% { box-shadow: 0 0 0 10px rgba(201,42,124,0); } 100% { box-shadow: 0 0 0 0 rgba(201,42,124,0); } }
.pulse { animation: pulse 1.6s infinite; }
.mini-board { position: relative; height: 230px; border-radius: 18px; border: 1px solid var(--paper-edge); overflow: hidden; font-family: var(--font-hand); font-weight: 700; }
.mini-board .sys { position: absolute; left: 22px; top: 18px; display: flex; align-items: center; gap: 4px; font-size: 30px; line-height: 1.05; transform: rotate(-2deg); }
.mini-board .work { position: absolute; left: 34px; top: 112px; font-size: 28px; color: var(--ink); line-height: 1.2; }
.mini-board .writing { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--paper-edge); font: 600 13px var(--font-body); color: var(--lila-700); }
.past-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.past-head h2 { margin: 0; font: 600 26px var(--font-display); }
.past-head span { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.lessons { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lrow { display: grid; grid-template-columns: 64px minmax(0,1fr) auto auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--paper-edge); border-radius: 16px; padding: 12px 16px 12px 12px; text-decoration: none; color: inherit; font-weight: 500; transition: border-color .15s, transform .15s; }
.lrow:hover { border-color: var(--pink-300); transform: translateY(-1px); color: inherit; }
.date-tile { height: 56px; border-radius: 12px; background: var(--pink-50); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-tile b { font: 600 22px var(--font-display); }
.date-tile span { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-top: 3px; }
.lrow .topic { font: 500 19px var(--font-display); }
.lrow .meta { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.chip { padding: 5px 12px; border-radius: 999px; background: #f4eefb; color: var(--lila-700); font-size: 13px; font-weight: 700; white-space: nowrap; }
.watch { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--pink-600); padding: 10px 8px; }
.empty { text-align: center; padding: 40px 24px; }

/* széles képernyő: középre, nagyobb méretek */
.site-header, .hero-grid, .site-footer { width: 100%; max-width: 1320px; margin-inline: auto; }
.illus-main { height: auto; display: flex; align-items: center; gap: 40px; margin-top: 16px; }
.illus-main .eqs { display: flex; flex-direction: column; gap: 22px; }
.illus-main .sys { position: static; }
.illus-main .result { position: static; align-self: flex-start; margin-left: 44px; }
.illus .graph { position: static; width: clamp(230px, 19vw, 340px); height: auto; flex-shrink: 0; }
@media (min-width: 1500px) {
  .hero-grid { grid-template-columns: minmax(0,1fr) 480px; gap: 96px; }
  .hero-copy h1 { font-size: 72px; }
  .hero-copy p { font-size: 21px; max-width: 520px; }
  .illus-main .sys { font-size: 52px; }
  .illus-main .brace { font-size: 124px; }
  .illus-main .result { font-size: 42px; }
  .card { padding: 52px 44px 40px; }
}

/* grafikon-animáció: egyenesek → metszéspont → szív, 14 mp-es körben */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene-a { animation: sceneA 14s infinite; }
.scene-b { opacity: 0; animation: sceneB 14s infinite; }
.draw-1 { animation: draw1 14s infinite; }
.draw-2 { animation: draw2 14s infinite; }
.pop { transform-box: fill-box; transform-origin: 0 0; animation: pop 14s infinite; }
.heart { stroke-dasharray: 1; stroke-dashoffset: 1; fill: #c92a7c; fill-opacity: 0; animation: heart 14s infinite; }
.heart-eq { animation: heartEq 14s infinite; }
@keyframes sceneA { 0%, 42% { opacity: 1; } 47%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sceneB { 0%, 44% { opacity: 0; } 49%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes draw1 { 0%, 3% { stroke-dashoffset: 1; } 14%, 100% { stroke-dashoffset: 0; } }
@keyframes draw2 { 0%, 10% { stroke-dashoffset: 1; } 21%, 100% { stroke-dashoffset: 0; } }
@keyframes pop { 0%, 21% { opacity: 0; transform: scale(.6); } 25%, 100% { opacity: 1; transform: scale(1); } }
@keyframes heart { 0%, 49% { stroke-dashoffset: 1; fill-opacity: 0; } 70% { stroke-dashoffset: 0; fill-opacity: 0; } 76%, 100% { stroke-dashoffset: 0; fill-opacity: .18; } }
@keyframes heartEq { 0%, 70% { opacity: 0; } 75%, 100% { opacity: 1; } }

/* lebegő díszjelek */
@keyframes float { 50% { translate: 0 -12px; } }
.deco span { animation: float 7s ease-in-out infinite; }
.deco span:nth-child(2) { animation-duration: 9s; animation-delay: -2s; }
.deco span:nth-child(3) { animation-duration: 8s; animation-delay: -4s; }
.deco span:nth-child(4) { animation-duration: 10s; animation-delay: -1s; }
.deco span:nth-child(5) { animation-duration: 7.5s; animation-delay: -5s; }
.deco span:nth-child(n+6) { animation-duration: 11s; animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) {
  .scene-a, .draw-1, .draw-2, .pop, .deco span { animation: none; }
  .draw { stroke-dashoffset: 0; }
  .scene-b { display: none; }
}

/* animációk */
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.write { display: inline-block; animation: write 1.4s cubic-bezier(.5,.1,.4,1) .4s both; }
.write-2 { animation-delay: 1.9s; } .write-3 { animation-delay: 3.4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes fly { 0% { transform: translate(-8px,6px) rotate(-8deg); } 50% { transform: translate(0,0) rotate(0); } 100% { transform: translate(-8px,6px) rotate(-8deg); } }
.fly { animation: fly 3s ease-in-out infinite; max-width: 100%; }
@media (prefers-reduced-motion: reduce) { .write, .spin, .fly, .pulse { animation: none; } }

/* tablet */
@media (max-width: 1100px) {
  .page { padding: 32px 40px 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-copy .eyebrow { align-self: center; }
  .hero-copy h1 { font-size: 48px; }
  .illus { height: 200px; width: 560px; max-width: 100%; }
  .illus svg { left: auto; right: 0; width: 200px; height: 200px; }
  .hero-grid > .card { width: min(480px, 100%); }
  .list-page { padding: 28px 40px 40px; }
  .feature { grid-template-columns: 1fr; }
}
/* telefon */
@media (max-width: 640px) {
  .page { padding: 24px 20px; }
  .deco { display: none; }
  .logo-mark { width: 36px; height: 36px; font-size: 18px; border-radius: 12px; }
  .logo-text { font-size: 21px; }
  .hero-grid { gap: 20px; justify-items: stretch; }
  .hero-copy { align-items: flex-start; text-align: left; gap: 8px; }
  .hero-copy .eyebrow, .illus { display: none; }
  .hero-copy h1 { font-size: 36px; line-height: 1.1; }
  .hero-copy p { font-size: 16px; }
  .card { padding: 28px 20px 22px; border-radius: 22px; }
  .card h2 { font-size: 26px; }
  .site-footer { justify-content: center; }
  .list-page { padding: 20px 16px 32px; gap: 24px; }
  .greet h1 { font-size: 34px; }
  .greet p { font-size: 16px; }
  .feature { padding: 22px 18px; border-radius: 22px; }
  .feature h2 { font-size: 30px; }
  .mini-board { display: none; }
  .btn-cta { width: 100%; justify-content: center; }
  .lrow { grid-template-columns: 56px minmax(0,1fr); gap: 12px; }
  .lrow .chip, .lrow .watch { display: none; }
}
@media (max-width: 1100px) {
  .illus.illus-main { height: auto; width: auto; justify-content: center; }
}
