/* forenly.ai home (l2c, kurucu 01.12.2026 brief: "Improve the existing https://forenly.ai/ website using the Taste Skill")
   Kind: software (robot skill software for hotels). Brand kept: ink #252b27, paper #f9f7f2, Forenly blue.
   Flat grounds, one dark band (commercial model), one button pair, one card style, one radius scale. */

:root {
  --h-bg: var(--p-bg, #f9f7f2);
  --h-surface: var(--p-surface, #f1eee6);
  --h-ink: var(--p-ink, #252b27);
  --h-muted: var(--p-muted, #5f655f);
  --h-line: color-mix(in oklab, var(--h-ink) 12%, transparent);
  --h-line-2: color-mix(in oklab, var(--h-ink) 22%, transparent);
  --h-blue: #2a4c99;
  --h-wa: #1f9d55;
  --h-wa-ink: #ffffff;
  --h-dark: #161a17;
  --h-dark-ink: #f2f1ec;
  --h-dark-muted: #a9aea8;
  --h-r: 16px;
  --h-r-sm: 10px;
  --h-wrap: 1240px;
  --h-pad: clamp(20px, 5vw, 64px);
  --h-sec: clamp(72px, 9vw, 128px);
  --h-font: "Instrument Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --h-mono: "DM Mono", ui-monospace, Menlo, monospace;
  --h-ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="dark"] { --h-blue: #8fb3ee; --h-dark: #0b0d0c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --h-blue: #8fb3ee; --h-dark: #0b0d0c; } }

/* The page is no longer one screen: undo the old locks */
html, body { height: auto !important; overflow: visible !important; }
main.fh > section { height: auto !important; min-height: 0 !important; }
footer.closing { display: block !important; }

main.fh { font-family: var(--h-font); color: var(--h-ink); background: var(--h-bg); }
.fh-wrap { width: 100%; max-width: calc(var(--h-wrap) + 2 * var(--h-pad)); margin: 0 auto; padding-inline: var(--h-pad); box-sizing: border-box; }
.fh-sec { padding-block: var(--h-sec); border-top: 1px solid var(--h-line); scroll-margin-top: 80px; }
.fh-eyebrow { font: 500 13px/1.2 var(--h-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--h-blue); margin: 0 0 18px; }
.fh h2 { font: 600 clamp(32px, 3.4vw, 52px)/1.06 var(--h-font); letter-spacing: -.025em; margin: 0; max-width: 18ch; text-wrap: balance; }
.fh h3 { font: 600 20px/1.25 var(--h-font); letter-spacing: -.01em; margin: 0; }
.fh p { margin: 0; }
.fh-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--h-muted); max-width: 40ch; }
.fh-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
@media (max-width: 899px) { .fh-head { grid-template-columns: 1fr; align-items: start; } }

/* Buttons: one pair (WhatsApp solid, outline) */
.fh-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.fh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 16px/1 var(--h-font); text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--h-ease), background-color .18s, border-color .18s, box-shadow .18s; }
.fh-btn:hover { transform: translateY(-1px); }
.fh-btn:active { transform: translateY(0) scale(.98); }
.fh-btn:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 3px; }
.fh-btn svg { width: 20px; height: 20px; flex: none; }
.fh-btn--wa { background: var(--h-wa); color: var(--h-wa-ink); box-shadow: 0 8px 20px -10px color-mix(in oklab, var(--h-wa) 70%, transparent); }
.fh-btn--wa:hover { background: color-mix(in oklab, var(--h-wa) 88%, #000); }
.fh-btn--line { background: transparent; color: var(--h-ink); border-color: var(--h-line-2); }
.fh-btn--line:hover { border-color: var(--h-ink); }
.fh-link { color: var(--h-ink); text-decoration: underline; text-decoration-color: var(--h-line-2); text-underline-offset: 4px; transition: text-decoration-color .18s; }
.fh-link:hover { text-decoration-color: currentColor; }

/* 1 · Hero */
.fh-hero { padding: calc(72px + clamp(32px, 5vw, 72px)) 0 clamp(48px, 6vw, 88px); border-top: 0; }
.fh-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fh-hero h1 { font: 600 clamp(40px, 5.2vw, 80px)/1.0 var(--h-font); letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance; }
.fh-hero h1 em { font-style: normal; color: var(--h-blue); }
.fh-hero .fh-lead { margin-bottom: 30px; max-width: 34ch; }
.fh-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font: 500 14px/1.3 var(--h-font); color: var(--h-muted); }
.fh-facts li { display: flex; align-items: center; gap: 8px; }
.fh-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--h-blue); }
.fh-hero__stage { min-width: 0; }
.fh-hero__stage .mk-one__stage { padding-top: 0 !important; }
@media (max-width: 1023px) {
  .fh-hero__grid { grid-template-columns: 1fr; }
  .fh-hero { padding-top: calc(72px + 32px); }
}
@media (max-width: 559px) { .fh-hero .fh-btn { width: 100%; } }

/* Entrance, once */
@media (prefers-reduced-motion: no-preference) {
  .fh-hero [data-in] { opacity: 0; transform: translateY(14px); animation: fh-in .7s var(--h-ease) forwards; }
  .fh-hero [data-in="2"] { animation-delay: .08s; } .fh-hero [data-in="3"] { animation-delay: .16s; }
  .fh-hero [data-in="4"] { animation-delay: .24s; } .fh-hero [data-in="5"] { animation-delay: .32s; }
}
@keyframes fh-in { to { opacity: 1; transform: none; } }

/* 2 · Challenge: photo + three statements */
.fh-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 899px) { .fh-split { grid-template-columns: 1fr; } }
.fh-frame { position: relative; overflow: hidden; border-radius: var(--h-r); background: #0b0d0c; aspect-ratio: 4 / 3; }
.fh-frame img, .fh-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--h-ease); }
.fh-frame:hover img, .fh-frame:hover video { transform: scale(1.025); }
.fh-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.fh-points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--h-line); }
.fh-points li:last-child { border-bottom: 1px solid var(--h-line); }
.fh-points b { font: 500 13px/1.6 var(--h-mono); color: var(--h-blue); }
.fh-points p { font-size: 17px; line-height: 1.5; }

/* 3 · Approach: three cards */
.fh-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 899px) { .fh-cards { grid-template-columns: 1fr; } }
.fh-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-surface);
  transition: transform .2s var(--h-ease), border-color .2s; }
.fh-card:hover { transform: translateY(-2px); border-color: var(--h-line-2); }
.fh-card p { color: var(--h-muted); font-size: 16px; line-height: 1.55; }
.fh-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--h-bg); border: 1px solid var(--h-line); color: var(--h-blue); }
.fh-ico svg { width: 22px; height: 22px; }

/* 4 · How it works: four steps on one line */
.fh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: st; }
.fh-steps li { counter-increment: st; position: relative; padding: 28px 28px 8px 0; border-top: 2px solid var(--h-line); }
.fh-steps li::before { content: "0" counter(st); display: block; font: 500 13px/1 var(--h-mono); color: var(--h-blue); margin-bottom: 22px; }
.fh-steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 0; height: 2px; background: var(--h-blue); transition: width .9s var(--h-ease); }
.fh-steps.is-on li::after { width: 100%; }
.fh-steps.is-on li:nth-child(2)::after { transition-delay: .25s; } .fh-steps.is-on li:nth-child(3)::after { transition-delay: .5s; } .fh-steps.is-on li:nth-child(4)::after { transition-delay: .75s; }
.fh-steps h3 { font-size: 24px; margin-bottom: 10px; }
.fh-steps p { color: var(--h-muted); font-size: 16px; line-height: 1.55; }
@media (max-width: 899px) { .fh-steps { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
@media (max-width: 559px) { .fh-steps { grid-template-columns: 1fr; } .fh-steps li { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .fh-steps li::after { width: 100%; transition: none; } }

/* 5 · Hotel applications: real robot footage tiles */
.fh-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.fh-tile { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; }
.fh-tile .fh-frame { aspect-ratio: 16 / 10; }
.fh-tile h3 { font-size: 18px; }
.fh-tile span { font: 500 12px/1 var(--h-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--h-muted); }
@media (max-width: 899px) { .fh-tiles { grid-template-columns: 1fr 1fr; } .fh-tile { grid-column: span 1; } }
@media (max-width: 559px) { .fh-tiles { grid-template-columns: 1fr; } }

/* 6 · Commercial model: the one dark band, type moment */
.fh-dark { background: var(--h-dark); color: var(--h-dark-ink); border-top: 0; }
.fh-dark .fh-eyebrow { color: #8fb3ee; }
.fh-dark .fh-lead, .fh-dark p { color: var(--h-dark-muted); }
.fh h2.fh-big { max-width: none; font: 600 clamp(56px, 10vw, 152px)/.92 var(--h-font); letter-spacing: -.045em; margin: 0 0 clamp(40px, 5vw, 64px); color: var(--h-dark-ink); }
.fh-big span { display: block; color: #8fb3ee; }
.fh-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgb(242 241 236 / .16); }
.fh-terms > div { padding: 28px 28px 0 0; }
.fh-terms > div + div { padding-left: 28px; border-left: 1px solid rgb(242 241 236 / .16); }
.fh-terms h3 { color: var(--h-dark-ink); margin-bottom: 8px; }
@media (max-width: 899px) { .fh-terms { grid-template-columns: 1fr; } .fh-terms > div, .fh-terms > div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid rgb(242 241 236 / .16); } }

/* 7 · Partners */
.fh-partner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.fh-partner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fh-partner li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--h-line); border-radius: var(--h-r-sm); font-size: 16px; line-height: 1.5; }
.fh-partner li b { display: block; color: var(--h-ink); margin-bottom: 2px; }
.fh-partner li span { color: var(--h-muted); }
@media (max-width: 899px) { .fh-partner { grid-template-columns: 1fr; } }

/* 8 · Contact */
.fh-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 899px) { .fh-contact { grid-template-columns: 1fr; } }
.fh-channels { display: grid; gap: 12px; margin-top: 32px; }
.fh-channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--h-line); border-radius: var(--h-r-sm); color: var(--h-ink); text-decoration: none;
  transition: transform .2s var(--h-ease), border-color .2s; min-height: 44px; }
.fh-channel:hover { transform: translateY(-2px); border-color: var(--h-line-2); }
.fh-channel svg { width: 24px; height: 24px; flex: none; }
.fh-channel b { display: block; font-size: 16px; }
.fh-channel span { color: var(--h-muted); font-size: 14px; }
.fh-channel--wa { background: var(--h-wa); border-color: var(--h-wa); color: var(--h-wa-ink); }
.fh-channel--wa span { color: rgb(255 255 255 / .85); }
.fh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-surface); }
.fh-form .fh-full { grid-column: 1 / -1; }
.fh-field { display: grid; gap: 8px; }
.fh-field label { font-size: 14px; font-weight: 600; }
.fh-field input, .fh-field textarea { font: 16px/1.4 var(--h-font); color: var(--h-ink); background: var(--h-bg); border: 1px solid var(--h-line-2); border-radius: var(--h-r-sm); padding: 13px 14px; min-height: 48px; box-sizing: border-box; width: 100%; }
.fh-field textarea { min-height: 128px; resize: vertical; }
.fh-field input:focus, .fh-field textarea:focus { outline: 2px solid var(--h-blue); outline-offset: 1px; border-color: transparent; }
.fh-field .fh-err { color: #b3261e; font-size: 13px; min-height: 0; }
:root[data-theme="dark"] .fh-field .fh-err { color: #ff8a80; }
.fh-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.fh-form__note { color: var(--h-muted); font-size: 14px; line-height: 1.5; max-width: 46ch; }
@media (max-width: 559px) { .fh-form { grid-template-columns: 1fr; } .fh-form .fh-btn { width: 100%; } }

/* The old phone action bar is replaced by the floating WhatsApp button */
nav.actionbar { display: none !important; }

/* 4 · How it works diagram (Magic UI AnimatedBeam, MIT, ported to SVG) */
.fh-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; justify-items: start;
  padding: clamp(28px, 4vw, 48px) 0; margin-bottom: 8px; }
.fh-flow > svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fh-node { position: relative; z-index: 1; display: grid; place-items: center; width: clamp(64px, 7vw, 88px); aspect-ratio: 1; border-radius: 22px;
  background: var(--h-bg); border: 1px solid var(--h-line-2); color: var(--h-muted);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04), 0 12px 28px -18px rgb(0 0 0 / .35);
  transition: color .4s, border-color .4s, box-shadow .4s, transform .4s var(--h-ease); }
.fh-node svg { width: 42%; height: 42%; }
.fh-node span { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
  background: var(--h-bg); border: 1px solid var(--h-line-2); font: 500 11px/1 var(--h-mono); color: var(--h-muted); transition: background-color .4s, color .4s, border-color .4s; }
.fh-node.is-on { color: var(--h-blue); border-color: color-mix(in oklab, var(--h-blue) 55%, transparent);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--h-blue) 10%, transparent), 0 14px 30px -18px color-mix(in oklab, var(--h-blue) 70%, transparent); transform: translateY(-2px); }
.fh-node.is-on span { background: var(--h-blue); border-color: var(--h-blue); color: var(--h-bg); }
.fh-steps li::after { display: none; }
@media (max-width: 899px) { .fh-flow { justify-items: center; } }
.fh-flow ~ .fh-steps li::before { content: none; }
.fh-flow ~ .fh-steps li { padding-top: 24px; }

/* 4 · How it works as a ScrollStack (React Bits idea, plain CSS + small JS; no tilt, no blur) */
#how .fh-head { margin-bottom: 28px; }
.fh-rail { position: sticky; top: 84px; z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  padding: 12px 0 14px; margin-bottom: 20px; background: var(--h-bg); font: 500 12px/1 var(--h-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--h-muted); }
.fh-rail span { transition: color .3s; }
.fh-rail span.is-on { color: var(--h-blue); }
.fh-rail i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--h-line); }
.fh-rail i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--h-blue); transition: width .12s linear; }
.fh-stack { list-style: none; margin: 0; padding: 0 0 4vh; }
.fh-scard { position: sticky; top: calc(140px + var(--i, 0) * 18px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  min-height: min(64vh, 520px); margin-bottom: 16vh; padding: clamp(24px, 3.5vw, 44px); box-sizing: border-box;
  border: 1px solid var(--h-line); border-radius: 28px; background: var(--h-surface);
  box-shadow: 0 -12px 40px -18px rgb(0 0 0 / .22), 0 24px 48px -28px rgb(0 0 0 / .3);
  transform-origin: 50% 0; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1)); will-change: transform; }
.fh-scard:last-child { margin-bottom: 0; }
.fh-scard__text b { display: block; font: 500 13px/1 var(--h-mono); color: var(--h-blue); margin-bottom: 18px; }
.fh-scard__text h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.02em; margin-bottom: 14px; }
.fh-scard__text p { color: var(--h-muted); font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; max-width: 30ch; }
.fh-scard .fh-frame { aspect-ratio: 16 / 10; }
.fh-check { border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-bg); padding: clamp(20px, 2.5vw, 32px); }
.fh-check__head { font: 500 12px/1.3 var(--h-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--h-muted); margin-bottom: 14px !important; }
.fh-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fh-check li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--h-line); font-size: 16px; }
.fh-check li i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--h-line-2); position: relative; transition: background-color .3s, border-color .3s; }
.fh-check li i::after { content: ""; position: absolute; left: 7px; top: 3.5px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s var(--h-ease); }
.fh-check li.is-on i { background: var(--h-wa); border-color: var(--h-wa); }
.fh-check li.is-on i::after { transform: rotate(45deg) scale(1); }
@media (max-width: 899px) {
  .fh-scard { grid-template-columns: 1fr; top: calc(130px + var(--i, 0) * 12px); min-height: 0; margin-bottom: 10vh; }
  .fh-rail { top: 72px; font-size: 10.5px; }
}
@media (max-width: 559px) { .fh-rail span { overflow: hidden; white-space: nowrap; text-overflow: clip; } .fh-rail { letter-spacing: .02em; } }
@media (prefers-reduced-motion: reduce) { .fh-scard { transform: none !important; filter: none !important; } }
@media (max-width: 559px) { .fh-rail { font-size: 9.5px; letter-spacing: 0; } }
