/* ======================================================================
   Keiko - the public home page
   Deep ink, a faint grid, mint light. Chakra Petch for the brand voice,
   Inter for reading. Real screens of the admin system in device frames.
   ====================================================================== */

:root {
    --ink: #070b10;
    --ink-2: #0b1118;
    --ink-3: #111a24;
    --panel: rgba(17, 25, 35, 0.72);
    --panel-solid: #111923;
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.12);
    --text: #e9eef2;
    --soft: #b6c2cc;
    --muted: #7f8d99;
    --mint: #3cd2a5;
    --mint-deep: #22a882;
    --mint-rgb: 60, 210, 165;
    --red: #ef6461;
    --amber: #f2b45c;
    --radius: 1.1rem;
    --wrap: 1240px;
    --head: 'Chakra Petch', system-ui, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body.kh {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.kh img { max-width: 100%; display: block; }
.kh a { color: inherit; }

.kh h1, .kh h2, .kh h3, .kh h4 {
    margin: 0;
    font-family: var(--head);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

.kh-wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---- the backdrop: a faint grid and two slow glows ------------------- */

.kh-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.kh-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

.kh-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.22;
}

.kh-glow.is-one {
    top: -25vw;
    right: -15vw;
    background: radial-gradient(circle, rgba(var(--mint-rgb), 0.9), transparent 65%);
    animation: kh-drift 22s ease-in-out infinite alternate;
}

.kh-glow.is-two {
    top: 40vh;
    left: -25vw;
    background: radial-gradient(circle, rgba(46, 122, 168, 0.8), transparent 65%);
    opacity: 0.14;
    animation: kh-drift 28s ease-in-out infinite alternate-reverse;
}

@keyframes kh-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6vw, 6vw, 0) scale(1.12); }
}

/* ---- type helpers --------------------------------------------------- */

.kh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    font-family: var(--head);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
}

.kh-eyebrow::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mint));
}

.kh-gradient {
    background: linear-gradient(100deg, #8ff0d0 0%, var(--mint) 45%, #1fb488 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kh-lead {
    max-width: 34rem;
    margin: 1.5rem 0 0;
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--soft);
}

.kh-icon {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    font-size: 1.35rem;
    color: var(--mint);
    background: linear-gradient(145deg, rgba(var(--mint-rgb), 0.18), rgba(var(--mint-rgb), 0.04));
    border: 1px solid rgba(var(--mint-rgb), 0.22);
}

.kh-icon.is-small {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.kh-icon .kw-icon path:not([opacity]),
.kh-icon .kw-icon circle:not([opacity]) {
    fill: #c4f7e6;
}

/* ---- buttons -------------------------------------------------------- */

.kh-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 0.8rem;
    font-family: var(--head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s ease, border-color 0.2s ease;
}

.kh-btn.is-primary {
    color: #04130e;
    background: linear-gradient(180deg, #5fe2bb, var(--mint));
    box-shadow: 0 10px 30px -8px rgba(var(--mint-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.kh-btn.is-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -8px rgba(var(--mint-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.kh-btn.is-ghost {
    color: var(--text);
    border-color: var(--line-2);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
}

.kh-btn.is-ghost:hover {
    border-color: rgba(var(--mint-rgb), 0.5);
    background: rgba(var(--mint-rgb), 0.06);
}

.kh-btn.is-small { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.kh-btn.is-large { padding: 1.15rem 2rem; font-size: 1.05rem; }

/* ---- header --------------------------------------------------------- */

.kh-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.kh-header.is-scrolled,
.kh-header.is-open {
    background: rgba(7, 11, 16, 0.78);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom-color: var(--line);
}

.kh-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 4.5rem;
}

.kh-brand img { height: 1.75rem; width: auto; }

.kh-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.kh-nav ul {
    display: flex;
    gap: 0.25rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.kh-nav ul a {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.kh-nav ul a:hover,
.kh-nav ul a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.kh-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

/* the language flags - the look is flags.css */

/* the copy in the bar only shows once the menu folds away */
.kh-lang.is-bar { display: none; }

.kh-link-login {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--soft);
    text-decoration: none;
}

.kh-link-login:hover { color: #fff; }

.kh-menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 0.7rem;
    background: transparent;
}

.kh-menu-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 0.3rem auto;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.25s var(--ease);
}

.kh-header.is-open .kh-menu-toggle span:first-child { transform: translateY(0.2rem) rotate(45deg); }
.kh-header.is-open .kh-menu-toggle span:last-child { transform: translateY(-0.2rem) rotate(-45deg); }

/* ---- hero ----------------------------------------------------------- */

.kh-hero {
    position: relative;
    padding: 9rem 0 0;
}

.kh-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 3.5rem;
}

.kh-hero h1 {
    display: flex;
    flex-direction: column;
    font-size: clamp(2.6rem, 4.6vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.kh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2.25rem;
}

.kh-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
    color: var(--muted);
}

.kh-hero-points i {
    margin-right: 0.35rem;
    color: var(--mint);
}

/* the arrival of the hero, line by line */
.kh-rise {
    opacity: 0;
    transform: translateY(18px);
    animation: kh-rise 0.9s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 0.09s + 0.1s);
}

@keyframes kh-rise { to { opacity: 1; transform: none; } }

/* the stage: a laptop window, a tablet and a phone, leaning in */
.kh-stage {
    position: relative;
    perspective: 2200px;
    padding: 2rem 0 4rem;
}

.kh-stage-tilt {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(calc(6deg + var(--rx))) rotateY(calc(-14deg + var(--ry)));
    transition: transform 0.6s var(--ease);
    animation: kh-stage-in 1.4s var(--ease) both;
}

@keyframes kh-stage-in {
    from { opacity: 0; transform: rotateX(18deg) rotateY(-26deg) translateY(40px); }
}

.kh-browser {
    position: relative;
    overflow: hidden;
    border-radius: 0.9rem;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 80px -20px rgba(var(--mint-rgb), 0.25);
}

.kh-browser-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 2rem;
    padding: 0 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--line);
}

.kh-browser-bar i {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.kh-browser-bar i:first-child { background: #ff5f57; opacity: 0.8; }
.kh-browser-bar i:nth-child(2) { background: #febc2e; opacity: 0.8; }
.kh-browser-bar i:nth-child(3) { background: #28c840; opacity: 0.8; }

.kh-browser-bar span {
    margin: 0 auto;
    padding: 0.15rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.kh-browser img { width: 100%; height: auto; }

.kh-tablet,
.kh-phone {
    position: relative;
    overflow: hidden;
    background: #05080b;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 90px -25px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.6);
}

.kh-tablet { padding: 0.6rem; border-radius: 1.6rem; }
.kh-tablet img,
.kh-phone img { width: 100%; height: auto; }
.kh-tablet img { border-radius: 1.05rem; }

.kh-phone { padding: 0.45rem; border-radius: 2.1rem; }
.kh-phone img { border-radius: 1.7rem; }

.kh-phone::before {
    content: "";
    position: absolute;
    top: 0.9rem;
    left: 50%;
    z-index: 2;
    width: 28%;
    height: 1.1rem;
    border-radius: 1rem;
    background: #000;
    transform: translateX(-50%);
}

.kh-tablet.is-hero {
    position: absolute;
    left: -9%;
    bottom: -2%;
    width: 31%;
    transform: translateZ(70px);
}

.kh-phone.is-hero {
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: 21%;
    transform: translateZ(120px);
}

/* the little cards floating over the screens */
.kh-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem 0.7rem 0.75rem;
    border-radius: 0.9rem;
    background: rgba(13, 20, 28, 0.82);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
    line-height: 1.25;
    animation: kh-float 6s ease-in-out infinite;
}

.kh-chip strong { display: block; font-family: var(--head); font-size: 0.85rem; color: #fff; }
.kh-chip small { font-size: 0.72rem; color: var(--muted); }

.kh-chip-dot {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    color: #04130e;
    background: var(--mint);
    box-shadow: 0 0 0 5px rgba(var(--mint-rgb), 0.15);
}

.kh-chip.is-here { top: 8%; left: -12%; transform: translateZ(140px); }
.kh-chip.is-paid { top: 34%; right: -10%; transform: translateZ(160px); animation-delay: -2s; }
.kh-chip.is-paid .kh-chip-dot { background: #8fd3ff; box-shadow: 0 0 0 5px rgba(143, 211, 255, 0.15); }
.kh-chip.is-term { bottom: 30%; left: 16%; transform: translateZ(180px); animation-delay: -4s; }
.kh-chip.is-term .kh-chip-dot { background: var(--amber); box-shadow: 0 0 0 5px rgba(242, 180, 92, 0.15); }

@keyframes kh-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* the styles drifting past */
.kh-styles {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: var(--wrap);
    margin: 3rem auto 0;
    padding: 1.6rem 1.5rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.kh-styles-label {
    flex-shrink: 0;
    font-family: var(--head);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.kh-marquee {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.kh-marquee-track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: kh-marquee 50s linear infinite;
}

.kh-marquee-track span {
    font-family: var(--head);
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    white-space: nowrap;
}

.kh-marquee-track span::after {
    content: "·";
    margin-left: 3rem;
    color: var(--mint);
}

@keyframes kh-marquee { to { transform: translateX(-50%); } }

/* ---- sections ------------------------------------------------------- */

.kh-section { padding: 7.5rem 0; position: relative; }
.kh-section.is-tight { padding: 3rem 0; }

.kh-head {
    max-width: 46rem;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.kh-head.is-left { margin: 0; text-align: left; }

.kh-head h2,
.kh-dive-copy h2,
.kh-contact-copy h2 {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.kh-head p,
.kh-dive-copy > p,
.kh-contact-copy > p {
    margin: 1.1rem 0 0;
    font-size: 1.08rem;
    color: var(--soft);
}

/* reveal on scroll */
.kh-js .kh-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 0.07s);
}

.kh-js .kh-reveal.is-in { opacity: 1; transform: none; }

/* ---- the bento of features ------------------------------------------ */

.kh-bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(19rem, auto);
    gap: 1.25rem;
}

.kh-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--line);
    transition: border-color 0.3s ease, transform 0.4s var(--ease);
}

.kh-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at 0% 0%, rgba(var(--mint-rgb), 0.08), transparent 50%);
    pointer-events: none;
}

.kh-tile:hover { border-color: rgba(var(--mint-rgb), 0.3); transform: translateY(-4px); }

.kh-tile-text { position: relative; padding: 1.75rem 1.75rem 1.25rem; }

.kh-tile-text h3 { margin-top: 1.1rem; font-size: 1.25rem; }

.kh-tile-text p { margin: 0.5rem 0 0; font-size: 0.93rem; color: var(--soft); max-width: 28rem; }

.kh-tile-shot {
    position: relative;
    flex: 1;
    min-height: 9rem;
    margin: 0 0 0 1.75rem;
    overflow: hidden;
    border-top-left-radius: 0.8rem;
    border: 1px solid var(--line-2);
    border-right: 0;
    border-bottom: 0;
    box-shadow: -20px -10px 50px -20px rgba(0, 0, 0, 0.6);
}

.kh-tile-shot img {
    position: absolute;
    top: 0;
    left: 0;
    width: 160%;
    max-width: none;
    height: auto;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.8s var(--ease);
}

.kh-tile:hover .kh-tile-shot img { transform: scale(1.03); }

.kh-tile.is-wide { grid-column: span 2; }
.kh-tile.is-wide .kh-tile-shot img { width: 118%; left: -10%; }

.kh-tile.is-tall { grid-row: span 2; }
.kh-tile.is-phone .kh-tile-shot {
    margin: 0 auto;
    width: 70%;
    border-radius: 1.6rem 1.6rem 0 0;
    border: 6px solid #05080b;
    border-bottom: 0;
}
.kh-tile.is-phone .kh-tile-shot img { width: 100%; }

/* ---- feature sections: words beside a screen -------------------------- */

.kh-dive-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 4.5rem;
}

.kh-dive.is-flipped .kh-dive-copy { order: 2; }
.kh-dive.is-flipped .kh-dive-media { order: 1; }

.kh-points {
    display: grid;
    gap: 0.85rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.kh-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--soft);
}

.kh-points i {
    width: 1.4rem;
    height: 1.4rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.12rem;
    border-radius: 50%;
    font-size: 0.65rem;
    color: var(--mint);
    background: rgba(var(--mint-rgb), 0.12);
    border: 1px solid rgba(var(--mint-rgb), 0.3);
}

.kh-dive-media {
    position: relative;
    perspective: 2000px;
}

.kh-dive-media .kh-browser {
    transform: rotateY(-8deg) rotateX(3deg);
    transition: transform 0.8s var(--ease);
}

.kh-dive.is-flipped .kh-dive-media .kh-browser { transform: rotateY(8deg) rotateX(3deg); }
.kh-dive-media:hover .kh-browser { transform: none; }

.kh-dive-media > .kh-tablet {
    width: 74%;
    margin: 0 auto 0 4%;
    transform: rotate(-2deg);
}

.kh-phone.is-beside {
    position: absolute;
    right: -2%;
    bottom: -10%;
    width: 27%;
    transform: rotate(3deg);
}

.kh-dive.is-flipped .kh-phone.is-beside { right: auto; left: -4%; transform: rotate(-3deg); }

/* a soft halo behind each screen */
.kh-dive-media::before {
    content: "";
    position: absolute;
    inset: 10% 5%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(var(--mint-rgb), 0.18), transparent);
    filter: blur(40px);
    z-index: -1;
}

/* ---- devices ---------------------------------------------------------- */

.kh-device-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.kh-device-card {
    padding: 2rem;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}

.kh-device-card h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.kh-device-card p { margin: 0.5rem 0 0; color: var(--soft); font-size: 0.95rem; }

/* ---- getting started -------------------------------------------------- */

.kh-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.kh-steps::before {
    content: "";
    position: absolute;
    top: 2.1rem;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--mint-rgb), 0.5), transparent);
}

.kh-steps li {
    position: relative;
    padding: 0 0.5rem;
    text-align: center;
}

.kh-step-number {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.2rem;
    height: 4.2rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    font-family: var(--head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mint);
    background: var(--ink);
    border: 1px solid rgba(var(--mint-rgb), 0.4);
    box-shadow: 0 0 0 8px var(--ink), 0 0 40px -5px rgba(var(--mint-rgb), 0.35);
}

.kh-steps h3 { font-size: 1.15rem; }
.kh-steps p { margin: 0.6rem auto 0; max-width: 16rem; font-size: 0.93rem; color: var(--soft); }

/* ---- styles ----------------------------------------------------------- */

.kh-styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 1rem;
}

.kh-style {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 0.75rem 1.1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--line);
    text-decoration: none;
    text-align: center;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.3s var(--ease);
}

.kh-style:hover { border-color: rgba(var(--mint-rgb), 0.4); background: rgba(var(--mint-rgb), 0.05); transform: translateY(-3px); }

.kh-style img {
    width: 100%;
    height: 5.2rem;
    object-fit: contain;
    border-radius: 0.65rem;
    filter: saturate(0.9);
}

.kh-style span { font-family: var(--head); font-size: 0.9rem; font-weight: 600; color: var(--soft); }

/* ---- pricing ---------------------------------------------------------- */

.kh-price {
    position: relative;
    max-width: 58rem;
    margin: 0 auto;
    padding: 3rem;
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(160deg, rgba(var(--mint-rgb), 0.1), rgba(17, 25, 35, 0.85) 35%);
    border: 1px solid rgba(var(--mint-rgb), 0.28);
    box-shadow: 0 40px 100px -40px rgba(var(--mint-rgb), 0.35);
}

.kh-price-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line-2);
}

.kh-price-label {
    font-family: var(--head);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mint);
}

.kh-price-value {
    margin-top: 0.5rem;
    font-family: var(--head);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.kh-price-value small {
    margin-left: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--soft);
}

.kh-price-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kh-price-list li { display: flex; gap: 0.7rem; color: var(--soft); font-size: 0.95rem; }
.kh-price-list i { margin-top: 0.3rem; font-size: 0.75rem; color: var(--mint); }

/* ---- faq -------------------------------------------------------------- */

.kh-faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 4rem;
    align-items: start;
}

.kh-faq details {
    border-bottom: 1px solid var(--line-2);
}

.kh-faq details:first-child { border-top: 1px solid var(--line-2); }

.kh-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 0;
    font-family: var(--head);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
}

.kh-faq summary::-webkit-details-marker { display: none; }

.kh-faq summary i {
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--mint);
    transition: transform 0.3s var(--ease);
}

.kh-faq details[open] summary i { transform: rotate(45deg); }

.kh-faq details p { margin: 0 0 1.4rem; max-width: 42rem; color: var(--soft); }

/* ---- call to action --------------------------------------------------- */

.kh-cta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem;
    overflow: hidden;
    border-radius: 1.75rem;
    background:
        radial-gradient(800px circle at 100% 0%, rgba(var(--mint-rgb), 0.25), transparent 50%),
        linear-gradient(135deg, #0f1c20, #0a1117);
    border: 1px solid rgba(var(--mint-rgb), 0.25);
}

.kh-cta-kanji {
    position: absolute;
    right: 2rem;
    bottom: -3.5rem;
    font-family: 'Noto Serif JP', serif;
    font-size: 15rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(var(--mint-rgb), 0.06);
    pointer-events: none;
    user-select: none;
}

.kh-cta-copy { position: relative; max-width: 40rem; }
.kh-cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.1; }
.kh-cta p { margin: 1rem 0 0; font-size: 1.1rem; color: var(--soft); }
.kh-cta small { display: block; margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }
.kh-cta .kh-btn { position: relative; }

/* ---- contact ---------------------------------------------------------- */

.kh-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: start;
}

.kh-contact-list { margin: 2.25rem 0 0; display: grid; gap: 1.25rem; }
.kh-contact-list div { display: grid; gap: 0.15rem; }
.kh-contact-list dt { font-family: var(--head); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kh-contact-list dd { margin: 0; color: var(--text); }
.kh-contact-list a { text-decoration: none; }
.kh-contact-list a:hover { color: var(--mint); }

.kh-form-card {
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(10px);
}

.kh-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.kh-form label { display: grid; gap: 0.45rem; }
.kh-form label.is-full { grid-column: 1 / -1; }
.kh-form label span { font-size: 0.85rem; font-weight: 500; color: var(--soft); }
.kh-form label em { font-style: normal; color: var(--mint); }

.kh-form input,
.kh-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kh-form input:focus,
.kh-form textarea:focus {
    outline: 0;
    border-color: rgba(var(--mint-rgb), 0.6);
    box-shadow: 0 0 0 4px rgba(var(--mint-rgb), 0.12);
}

.kh-form .kh-btn { justify-self: start; margin-top: 0.4rem; }

.kh-alert { padding: 1rem 1.2rem; border-radius: 0.8rem; margin-bottom: 1.25rem; }
.kh-alert.is-success { background: rgba(var(--mint-rgb), 0.1); border: 1px solid rgba(var(--mint-rgb), 0.35); }
.kh-alert.is-error { background: rgba(239, 100, 97, 0.1); border: 1px solid rgba(239, 100, 97, 0.35); }

/* ---- footer ----------------------------------------------------------- */

.kh-footer {
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.kh-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; }
.kh-footer-brand { max-width: 22rem; }
.kh-footer-brand img { height: 1.7rem; width: auto; }
.kh-footer-brand p { margin: 1rem 0 0; font-size: 0.9rem; color: var(--muted); }

.kh-footer-links { display: flex; flex-wrap: wrap; gap: 4rem; }
.kh-footer-links div { display: grid; gap: 0.6rem; align-content: start; }
.kh-footer-links h4 { margin-bottom: 0.4rem; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.kh-footer-links a { font-size: 0.9rem; color: var(--muted); text-decoration: none; }
.kh-footer-links a:hover,
.kh-footer-links a.is-active { color: var(--mint); }

.kh-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

.kh-footer-bottom a { text-decoration: none; }
.kh-footer-bottom a:hover { color: var(--mint); }

/* ---- smaller screens ---------------------------------------------------- */

@media (max-width: 1199.98px) {
    .kh-nav ul a { padding: 0.5rem 0.6rem; }
    .kh-header-inner { gap: 1.25rem; }
}

@media (max-width: 1099.98px) {
    .kh-header-inner { gap: 0.75rem; }
}

@media (max-width: 1099.98px) {
    .kh-menu-toggle { display: block; margin-left: 0; }
    .kh-lang.is-bar { display: flex; margin-left: auto; }
    .kh-nav .kh-lang { display: none; }

    .kh-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1rem 1.5rem 1.5rem;
        background: var(--ink);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    }

    .kh-header.is-open .kh-nav { display: flex; }
    .kh-nav ul { flex-direction: column; margin: 0; }
    .kh-nav ul a { padding: 0.75rem 0.5rem; font-size: 1rem; }
    .kh-nav-actions { flex-wrap: wrap; }

    .kh-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .kh-hero { padding-top: 7.5rem; }
    .kh-stage { max-width: 46rem; margin: 0 auto; padding: 1rem 2rem 3rem; }

    .kh-dive-inner,
    .kh-faq-inner,
    .kh-contact { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .kh-dive.is-flipped .kh-dive-copy { order: 1; }
    .kh-dive.is-flipped .kh-dive-media { order: 2; }

    .kh-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-tile.is-wide { grid-column: span 2; }
    .kh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
    .kh-steps::before { display: none; }
}

@media (max-width: 767.98px) {
    .kh-section { padding: 5rem 0; }
    .kh-wrap { padding: 0 1rem; }

    .kh-hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
    .kh-lead { font-size: 1.05rem; }
    .kh-actions .kh-btn { flex: 1 1 100%; }

    .kh-stage { padding: 0 0.5rem 2.5rem; }
    .kh-stage-tilt { transform: rotateX(4deg) rotateY(-6deg); }
    .kh-chip { display: none; }
    .kh-chip.is-here { display: flex; top: auto; bottom: -1.5rem; left: 0; transform: translateZ(60px); }

    .kh-styles { flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 2rem; }

    .kh-bento { grid-template-columns: minmax(0, 1fr); }
    .kh-tile.is-wide,
    .kh-tile.is-tall { grid-column: auto; grid-row: auto; }
    .kh-tile.is-phone .kh-tile-shot { height: 22rem; flex: none; }

    .kh-device-row,
    .kh-steps,
    .kh-price-list,
    .kh-form { grid-template-columns: minmax(0, 1fr); }

    .kh-price,
    .kh-cta,
    .kh-form-card { padding: 1.75rem; }
    .kh-cta-kanji { font-size: 9rem; right: -1rem; }

    .kh-phone.is-beside { width: 32%; right: -2%; bottom: -6%; }
    .kh-dive.is-flipped .kh-phone.is-beside { left: -2%; }
    .kh-footer-links { gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .kh-rise, .kh-js .kh-reveal { opacity: 1; transform: none; }
}

/* a flipped section keeps the wide column for its screen */
@media (min-width: 1100px) {
    .kh-dive.is-flipped .kh-dive-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

/* tablets: more room at the sides, and the phones and chips stay inside it */
@media (min-width: 768px) and (max-width: 1099.98px) {
    .kh-wrap { padding: 0 3rem; }
    .kh-stage { padding: 1.5rem 3.5rem 3.5rem; }
    .kh-stage-tilt { transform: rotateX(calc(5deg + var(--rx))) rotateY(calc(-9deg + var(--ry))); }
    .kh-tablet.is-hero { left: -5%; }
    .kh-phone.is-hero { right: -3%; }
    .kh-chip.is-here { left: -6%; }
    .kh-chip.is-paid { right: -6%; }

    .kh-dive-media { max-width: 48rem; margin: 0 auto; padding: 0 2rem 2.5rem; }
    .kh-dive-media > .kh-tablet { width: 82%; margin: 0 auto; }
    .kh-phone.is-beside,
    .kh-dive.is-flipped .kh-phone.is-beside { right: 0; left: auto; bottom: 0; width: 26%; transform: rotate(3deg); }
}
