/* ===== RigFox landing — tokens + base ===== */
:root {
  --orange: #E87722;
  --orange-dark: #D56615;
  --orange-darker: #B3500E;
  --orange-soft: #FBE7D5;
  --ink: #1C1B1A;
  --ink-2: #2A2826;
  --cream: #EDEAE3;
  --cream-2: #DDD9CF;
  --cream-3: #E5E1D6;
  --border: #D8D3C8;
  --border-2: #C8C2B4;
  --muted: #6B6A67;
  --muted-2: #8A8884;
  --success: #166534;
  --success-bg: #DCEFE0;
  --danger: #991B1B;
  --danger-bg: #F5DADA;
  --info-bg: #DCE5F5;
  --info-fg: #1E3A8A;
  --warn-bg: #F7E6C7;
  --warn-fg: #92580C;
  --white: #FFFFFF;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(28,27,26,0.06);
  --shadow-md: 0 6px 18px -8px rgba(28,27,26,0.18);
  --shadow-phone: 0 30px 60px -25px rgba(28,27,26,0.35), 0 14px 30px -18px rgba(28,27,26,0.25);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Type ===== */
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.2; }
h4 { font-size: 17px; line-height: 1.25; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--orange-darker); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--orange); }
.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 8px 22px -10px rgba(232,119,34,0.6);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-primary:active { background: var(--orange-darker); transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark {
  background: var(--ink); color: white;
  border: 1.5px solid var(--ink);
}
.btn-dark:hover { background: #000; }
.btn-outline-orange {
  background: transparent; color: var(--orange);
  border: 1.5px solid var(--orange);
}
.btn-outline-orange:hover { background: var(--orange); color: white; }
.btn-lg { padding: 16px 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237,234,227,0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.scrolled { border-bottom-color: var(--border); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--orange-darker); }
.header .btn { padding: 10px 18px; font-size: 14px; }

/* ===== Sections ===== */
section { padding: 96px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; align-items: center; }

.bg-dark { background: var(--ink); color: white; }
.bg-dark .muted { color: #A8A6A1; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: white; }
.bg-dark .eyebrow { color: #F2B989; }
.bg-cream-2 { background: var(--cream-2); }

/* ===== Hero ===== */
.hero { padding: 56px 0 96px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
}
.hero h1 .accent { color: var(--orange); }
.hero .lead { margin-top: 22px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.trust-row {
  display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 14px; height: 14px; color: var(--success); }

/* ===== Phone mockup ===== */
.hero-vis { position: relative; min-height: 640px; }
.phone {
  width: 340px; margin: 0 auto;
  background: #0F0E0D; border-radius: 44px; padding: 10px;
  box-shadow: var(--shadow-phone);
  position: relative; z-index: 3;
}
.phone-screen {
  background: var(--cream);
  border-radius: 36px; overflow: hidden;
  height: 680px;
  position: relative;
  display: flex; flex-direction: column;
}
.notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #0F0E0D; border-radius: 14px;
  z-index: 5;
}
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px 8px; font-size: 13px; font-weight: 600;
}
.status-bar .icons { display: flex; gap: 5px; align-items: center; }
.status-bar .icons svg { width: 14px; height: 14px; }
.phone-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.phone-back {
  display: inline-flex; align-items: center; gap: 4px;
  background: white; padding: 6px 12px 6px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.phone-title { font-size: 14px; font-weight: 600; flex: 1; text-align: center; padding-right: 32px; }

.worksheet-head { padding: 16px 18px 12px; }
.worksheet-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.worksheet-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.progress-row {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  font-size: 12px; font-weight: 600;
}
.progress-bar {
  flex: 1; height: 6px; background: var(--cream-2); border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--success); border-radius: 999px;
  width: 0%; transition: width .35s ease;
}
.progress-pct { font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; color: var(--muted); }

.step-list { padding: 6px 12px 14px; overflow-y: auto; flex: 1; }
.step {
  display: flex; align-items: center; gap: 12px;
  background: white; border-radius: var(--r-md);
  padding: 12px 14px; margin: 8px 4px;
  box-shadow: var(--shadow-sm);
  transition: background .25s ease;
}
.step-num {
  width: 28px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-2); color: var(--muted);
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  transition: all .25s ease;
}
.step.done .step-num {
  background: var(--success); color: white;
}
.step-body { flex: 1; min-width: 0; }
.step-name { font-size: 14px; font-weight: 600; line-height: 1.25; }
.step-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
}
.tag-photo { background: var(--warn-bg); color: var(--warn-fg); }
.tag-qr { background: var(--info-bg); color: var(--info-fg); }
.tag.done-tag { background: var(--success-bg); color: var(--success); }
.tag svg { width: 10px; height: 10px; }

.step-check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
  background: white;
}
.step.done .step-check {
  background: var(--success); border-color: var(--success);
}
.step-check svg { width: 14px; height: 14px; color: white; opacity: 0; transition: opacity .2s ease; }
.step.done .step-check svg { opacity: 1; }

.toast {
  position: absolute; left: 14px; right: 14px; bottom: 22px;
  background: var(--ink); color: white;
  padding: 12px 14px; border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.4);
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 999px; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,0.2); }

/* dashboard floater behind phone */
.dash {
  position: absolute;
  right: -40px; top: 30px;
  width: 360px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 20px 50px -25px rgba(28,27,26,0.25);
  z-index: 1;
  opacity: 0.96;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.dash-badge { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-weight: 600; }
.dash-stat { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.dash-stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.dash-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dash-item { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.dash-item .lbl { flex: 1; color: var(--ink-2); font-weight: 500; }
.dash-item .pct { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 36px; text-align: right; }
.dash-bar { flex: 2; height: 5px; background: var(--cream-2); border-radius: 999px; overflow: hidden; max-width: 110px; }
.dash-bar-fill { height: 100%; background: var(--orange); transition: width .5s ease; }

.floater-left {
  position: absolute;
  left: -30px; bottom: 60px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 14px 30px -18px rgba(28,27,26,0.25);
  font-size: 12px; z-index: 4;
}
.floater-left .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.floater-left .ic svg { width: 18px; height: 18px; color: var(--orange-darker); }
.floater-left .ttl { font-weight: 700; font-size: 13px; }
.floater-left .sub { color: var(--muted); font-size: 11px; }

/* ===== Cards ===== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.card-cream { background: var(--cream); border-color: var(--border-2); }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.problem-quote {
  font-style: italic; color: var(--ink-2);
  font-size: 16px; line-height: 1.5;
  padding: 12px 14px; background: var(--cream); border-radius: var(--r-md);
  border-left: 3px solid var(--orange);
}
.problem-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.problem-body { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.problem-body strong { color: var(--orange-darker); font-weight: 700; }

/* ===== How it works ===== */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  position: relative;
}
.step-tile {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.step-tile-num {
  font-size: 13px; font-weight: 700; color: var(--orange);
  display: inline-flex; align-items: center; gap: 8px;
}
.step-tile-num .circle {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.step-tile h4 { font-size: 19px; letter-spacing: -0.015em; }
.step-tile p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.mini-screen {
  margin-top: 8px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--cream); padding: 12px; min-height: 110px;
}

/* ===== Features ===== */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 22px; height: 22px; color: var(--orange-darker); }
.feat-card h4 { font-size: 16px; }
.feat-card p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* ===== Audience ===== */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.aud-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.aud-role { font-size: 12px; font-weight: 700; color: var(--orange-darker); text-transform: uppercase; letter-spacing: 0.04em; }
.aud-card h4 { font-size: 19px; letter-spacing: -0.015em; }
.aud-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.aud-footnote { margin-top: 32px; font-size: 14px; color: var(--muted); font-style: italic; max-width: 720px; }

/* ===== Two surfaces ===== */
.two-surf {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
  background: var(--cream-2); border-radius: var(--r-xl);
  padding: 48px;
}
.two-surf-vis {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  position: relative; min-height: 280px;
}
.surf-phone, .surf-laptop {
  background: #0F0E0D; border-radius: 18px; padding: 6px;
  box-shadow: var(--shadow-md);
}
.surf-phone { width: 130px; height: 240px; border-radius: 22px; padding: 5px; }
.surf-phone .sc { width: 100%; height: 100%; background: white; border-radius: 18px; padding: 10px; font-size: 8px; }
.surf-laptop { width: 380px; height: 240px; }
.surf-laptop .sc { width: 100%; height: 100%; background: white; border-radius: 12px; padding: 14px; font-size: 10px; }
.sync-arrow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: white; border: 2px solid var(--orange); width: 48px; height: 48px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.sync-arrow svg { width: 22px; height: 22px; color: var(--orange); }

/* ===== Pricing ===== */
.price-eyebrow { color: var(--orange-darker); font-weight: 700; font-size: 14px; }
.price-hero {
  background: white;
  border: 2px solid var(--orange);
  border-radius: var(--r-xl);
  padding: 40px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
  position: relative;
}
.price-hero::before {
  content: "Használat alapú"; position: absolute; top: -12px; left: 32px;
  background: var(--orange); color: white; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase;
}
.price-num {
  font-size: clamp(56px, 7vw, 88px); font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.95; color: var(--ink);
}
.price-num .unit { font-size: 0.4em; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-left: 8px; }
.price-def { font-size: 14px; color: var(--muted); margin-top: 12px; font-style: italic; }

.price-table {
  width: 100%; border-collapse: collapse;
}
.price-table th, .price-table td {
  text-align: left; padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.price-table th { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.price-table td.price-cell { font-weight: 700; text-align: right; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: 0; }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.compare-card {
  background: var(--ink); color: white;
  border-radius: var(--r-lg); padding: 28px;
}
.compare-card h4 { color: white; margin-bottom: 8px; }
.compare-card p { color: #C4C2BE; font-size: 14px; line-height: 1.6; margin-top: 10px; }
.compare-card .vs {
  display: flex; gap: 12px; margin-top: 16px;
  padding: 12px; background: rgba(255,255,255,0.06); border-radius: var(--r-md);
}
.compare-card .vs > div { flex: 1; }
.compare-card .vs .label { font-size: 11px; color: #A8A6A1; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.compare-card .vs .val { font-size: 18px; font-weight: 700; margin-top: 4px; }
.compare-card .vs .val.good { color: #F2B989; }

.benefits-card {
  background: var(--cream-3); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
}
.benefits-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.benefits-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.benefits-card li .check {
  width: 20px; height: 20px; border-radius: 999px; background: var(--success); color: white;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.benefits-card li .check svg { width: 12px; height: 12px; }
.benefits-card li strong { font-weight: 700; }

.calc {
  margin-top: 40px;
  background: white; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px;
}
.calc h4 { margin-bottom: 4px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 20px; align-items: end; margin-top: 20px; }
.calc-field label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.calc-field input, .calc-field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--border-2);
  font: inherit; font-size: 16px; background: white; color: var(--ink);
}
.calc-field input:focus, .calc-field select:focus { outline: none; border-color: var(--orange); }
.calc-result {
  text-align: right; padding: 10px 16px;
  background: var(--cream); border-radius: var(--r-md);
  min-width: 200px;
}
.calc-result .label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.calc-result .value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--orange-darker); }
.calc-formula { margin-top: 16px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.includes {
  margin-top: 28px; padding: 24px; border-radius: var(--r-md);
  background: var(--cream-3); border: 1px dashed var(--border-2);
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
}
.includes strong { color: var(--ink); }

/* ===== Trust bar ===== */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { display: flex; gap: 14px; align-items: flex-start; }
.trust-card .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(232,119,34,0.15); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-card .ic svg { width: 20px; height: 20px; color: var(--orange); }
.trust-card h4 { color: white; font-size: 15px; }
.trust-card p { font-size: 13px; color: #A8A6A1; line-height: 1.5; margin-top: 2px; }

/* ===== Final CTA ===== */
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.final-card {
  border-radius: var(--r-xl); padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.final-card.primary { background: white; color: var(--ink); }
.final-card.primary h3 { color: var(--ink); }
.final-card.primary p { color: var(--ink-2); }
.final-card.secondary { background: #2A2826; color: white; border: 1px solid #3A3835; }
.final-card.secondary h3 { color: white; }
.final-card.secondary p { color: #C4C2BE; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--border-2);
  font: inherit; font-size: 15px; background: white; color: var(--ink);
}
.final-card.secondary .field input { background: #1C1B1A; border-color: #3A3835; color: white; }
.final-card.secondary .field input::placeholder { color: #6B6A67; }
.field input:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field-full { grid-column: 1 / -1; }
.micro { font-size: 12px; color: var(--muted); margin-top: 6px; }
.final-card.secondary .micro { color: #8A8884; }
.store-badges { display: flex; gap: 10px; margin-top: 10px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: black; color: white; padding: 8px 14px; border-radius: 10px;
  font-size: 12px; border: 1px solid #3A3835;
}
.store-badge .lbl { font-size: 10px; color: #A8A6A1; }
.store-badge .name { font-size: 14px; font-weight: 700; }

.final-eyebrow { color: #F2B989; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.final-headline { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; color: white; text-align: center; max-width: 760px; margin: 0 auto 40px; text-wrap: balance; }

/* ===== Footer ===== */
.footer { padding: 56px 0 32px; background: var(--ink); color: #A8A6A1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: white; margin: 0 0 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { font-size: 14px; }
.footer a:hover { color: white; }
.footer .pos { font-size: 14px; color: #C4C2BE; margin-top: 14px; max-width: 320px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid #3A3835; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #6B6A67; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-vis { min-height: auto; }
  .dash { right: 50%; transform: translateX(50%); top: -10px; width: 320px; }
  .floater-left { left: 20px; bottom: 40px; }
  .feat-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .aud-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .price-hero { grid-template-columns: 1fr; gap: 28px; padding: 32px; }
  .price-grid { grid-template-columns: 1fr; }
  .two-surf { grid-template-columns: 1fr; padding: 32px; }
  .final-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .feat-grid, .steps-grid, .aud-grid, .trust-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .calc-result { text-align: left; min-width: 0; }
  .price-hero { padding: 24px; }
  .price-table { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .header-inner { padding: 12px 16px; }
  .wrap { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .floater-left { display: none; }
  .dash { width: 280px; }
}
/* =====================================================
 * RigFox Landing — UX & mobile optimization patch (v1)
 * =====================================================
 * Append this file to the END of styles.css (or load it after).
 * Every rule here is additive or overrides a specific issue.
 * No existing rules need to be deleted.
 *
 * Pair this with the HTML additions described in
 * RigFox-landing-optimization.md (hamburger button, aria-labels,
 * skip link, calc-field--rate class, store-badge aria-hidden).
 * ===================================================== */


/* ----------------------------------------------------
 * P0 #1 — Mobil hamburger navigáció
 * ---------------------------------------------------- */

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border-radius: 10px;
  color: var(--ink);
  flex-shrink: 0;
  transition: background .15s ease;
}
.nav-toggle:hover { background: rgba(28, 27, 26, 0.06); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  /* Override the original "display: none" — make .nav into a
   * full-width dropdown panel that reveals with .open class. */
  .header-inner { position: relative; }
  .nav {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(237, 234, 227, 0.98);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px -16px rgba(28, 27, 26, 0.2);
    padding: 6px 0;
    /* Hidden by default — only visible when .open is added */
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
    padding: 0;
  }
  .nav.open {
    max-height: 320px;
    padding: 6px 0;
  }
  .nav a {
    padding: 14px 24px;
    font-size: 16px;
    border-top: 1px solid var(--border);
  }
  .nav a:first-child { border-top: 0; }
}


/* ----------------------------------------------------
 * P0 #2 — Hero telefon-mockup méretezés mobilon
 * ---------------------------------------------------- */

@media (max-width: 1080px) {
  .hero { padding: 40px 0 64px; }
  .hero-vis {
    min-height: auto;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .phone {
    width: 300px;
    margin: 0;
  }
  .phone-screen {
    height: 600px;
  }
}

@media (max-width: 640px) {
  .hero { padding: 32px 0 48px; }
  .phone {
    width: 260px;
    padding: 8px;
    border-radius: 36px;
  }
  .phone-screen {
    height: 520px;
    border-radius: 30px;
  }
  .notch {
    width: 88px; height: 22px;
    top: 8px;
    border-radius: 11px;
  }
  .status-bar {
    padding: 12px 22px 6px;
    font-size: 11px;
  }
  .status-bar .icons svg { width: 12px; height: 12px; }
  .phone-topbar { padding: 6px 14px 10px; }
  .phone-back { padding: 5px 10px 5px 7px; font-size: 12px; }
  .phone-title { font-size: 13px; padding-right: 28px; }
  .worksheet-head { padding: 14px 16px 10px; }
  .worksheet-title { font-size: 18px; }
  .worksheet-sub { font-size: 12px; }
  .step {
    padding: 10px 12px;
    margin: 6px 4px;
  }
  .step-num {
    width: 24px; height: 24px;
    font-size: 12px;
  }
  .step-name { font-size: 13px; }
  .tag {
    font-size: 10px;
    padding: 2px 7px;
  }
  .step-check { width: 20px; height: 20px; }
  .toast {
    left: 12px; right: 12px; bottom: 18px;
    padding: 10px 12px;
    font-size: 12px;
  }
}


/* ----------------------------------------------------
 * P0 #3 — Dashboard floater és offline floater mobilon
 * ----------------------------------------------------
 * Mobilon nincs térbeli viszony, így a floaterek statikus
 * elemekké válnak, NEM ráúsznak a telefonra. A flex
 * konténer (lásd P0 #2 .hero-vis) szépen elrendezi őket.
 */

@media (max-width: 1080px) {
  .dash {
    position: static;
    right: auto; left: auto; top: auto;
    transform: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    opacity: 1;
  }
  .floater-left {
    position: static;
    left: auto; bottom: auto;
    width: max-content;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .dash {
    max-width: 320px;
    padding: 14px;
  }
  .dash-stat { font-size: 30px; }
  .dash-list { gap: 6px; }
  .floater-left {
    padding: 10px 12px;
    font-size: 11px;
  }
}


/* ----------------------------------------------------
 * P0 #4 — Árazási tábla: kártyásítás mobilon
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .price-table { border: 0; }
  .price-table thead { display: none; }
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: 100%; }
  .price-table tr {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .price-table td {
    border-bottom: 0 !important;
    padding: 2px 0 !important;
    font-size: 14px !important;
  }
  .price-table td:nth-child(1) {
    font-weight: 700;
    margin-bottom: 4px;
  }
  .price-table td:nth-child(2) {
    color: var(--muted);
    font-size: 13px !important;
  }
  .price-table td.price-cell {
    text-align: left !important;
    margin-top: 6px;
    font-size: 20px !important;
    color: var(--orange-darker);
    font-weight: 800;
  }
}


/* ----------------------------------------------------
 * P1 #5 — Kalkulátor reszponzív layout
 * ---------------------------------------------------- */

@media (max-width: 1080px) {
  .calc-row {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .calc-result {
    grid-column: 1 / -1;
    text-align: left;
    min-width: 0;
  }
  /* The disabled "Munkalap-ár" field is decorative — hide on
   * smaller screens to reduce noise. Requires the HTML class
   * .calc-field--rate to be added (see optimization.md). */
  .calc-field--rate { display: none; }
}

@media (max-width: 640px) {
  .calc-row { grid-template-columns: 1fr; }
  .calc { padding: 22px; }
  .calc-result { padding: 14px 16px; }
  .calc-result .value { font-size: 28px; }
  .calc-formula { font-size: 12px; line-height: 1.5; }
}


/* ----------------------------------------------------
 * P1 #6 — Hero CTA gombok mobilon: teljes szélesség
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .trust-row {
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
  }
}


/* ----------------------------------------------------
 * P1 #7 — Focus accessibility
 * ---------------------------------------------------- */

.btn:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.calc-field input:focus-visible,
.calc-field select:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible,
.brand:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}
/* On dark backgrounds, use a lighter ring */
.bg-dark .btn:focus-visible,
.bg-dark .field input:focus-visible,
.bg-dark a:focus-visible,
.footer a:focus-visible {
  outline-color: #F2B989;
}


/* ----------------------------------------------------
 * P2 #9 — Header CTA gomb tap-target mobilon
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .header .btn {
    padding: 11px 16px;
    font-size: 14px;
    min-height: 42px;
  }
  .header-inner { padding: 10px 16px; gap: 10px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 28px; height: 28px; }
}


/* ----------------------------------------------------
 * P2 #10 — Two-surfaces vizualizáció finomítás mobilon
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .two-surf { padding: 24px; }
  .two-surf-vis {
    flex-direction: column;
    gap: 16px;
    min-height: auto;
  }
  .surf-laptop {
    width: 100%;
    max-width: 320px;
    height: 200px;
  }
  .surf-phone {
    width: 110px;
    height: 200px;
  }
  .sync-arrow {
    position: static;
    transform: none;
    width: 40px; height: 40px;
  }
  .sync-arrow svg { width: 18px; height: 18px; }
}


/* ----------------------------------------------------
 * P2 #11 — Szekció padding tömörebb mobilon
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  section { padding: 56px 0; }
  section.tight { padding: 40px 0; }
  .section-head { margin-bottom: 32px; gap: 10px; }
}


/* ----------------------------------------------------
 * P2 #12 — Lead text mobil méret
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; line-height: 1.55; }
}


/* ----------------------------------------------------
 * P2 — Final CTA stacking és form polish mobilon
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .final-card { padding: 24px; }
  .final-card h3 {
    font-size: 20px !important;
    line-height: 1.25;
  }
  .final-card .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .final-headline {
    font-size: 26px;
    margin-bottom: 28px;
  }
  .final-eyebrow { font-size: 12px; }
  .store-badges {
    flex-wrap: wrap;
    gap: 8px;
  }
  .store-badge {
    padding: 8px 12px;
  }
}


/* ----------------------------------------------------
 * P2 — Compare card "vs" mobil olvashatóság
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .compare-card { padding: 22px; }
  .compare-card h4 { font-size: 17px; }
  .compare-card .vs { gap: 10px; padding: 10px; }
  .compare-card .vs .val { font-size: 16px; }
}


/* ----------------------------------------------------
 * P2 — Problem és audience card padding optimization
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .problem-card { padding: 24px; gap: 14px; }
  .problem-quote { font-size: 15px; padding: 10px 12px; }
  .problem-title { font-size: 18px; }
  .problem-body { font-size: 14px; }

  .aud-card { padding: 22px; }
  .aud-card h4 { font-size: 17px; }
  .aud-footnote { margin-top: 24px; font-size: 13px; }

  .feat-card { padding: 22px; }
  .feat-card h4 { font-size: 16px; }

  .step-tile { padding: 24px 20px; }
  .step-tile h4 { font-size: 17px; }
}


/* ----------------------------------------------------
 * P2 — Price hero box: padding & spacing mobile
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .price-hero {
    padding: 28px 20px;
    gap: 22px;
  }
  .price-hero::before {
    left: 20px;
    font-size: 11px;
    padding: 3px 10px;
  }
  .price-num .unit { font-size: 0.35em; }
  .includes { padding: 18px; font-size: 13px; }
}


/* ----------------------------------------------------
 * P3 #16 — Store badge: ne tűnjön kattinthatónak
 * ---------------------------------------------------- */

.store-badge {
  cursor: default;
}


/* ----------------------------------------------------
 * P3 #18 — Skip link (HTML-be be kell tenni)
 * ---------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: var(--orange);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 600;
  font-size: 14px;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid white;
  outline-offset: 2px;
}


/* ----------------------------------------------------
 * Reduced motion — tisztelet a felhasználói preferencia iránt
 * ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .progress-fill { transition: none; }
  .step { transition: none; }
}


/* ----------------------------------------------------
 * Aprócska finomítás: form input min-height mobilon
 * (iOS Safari nem zoom-ol, ha az input font-size ≥ 16px)
 * ---------------------------------------------------- */

@media (max-width: 640px) {
  .field input,
  .field select,
  .calc-field input,
  .calc-field select {
    font-size: 16px;
    min-height: 44px;
  }
}
