/* Neko Security: page sections below the hero */
/* ============================================================
   Shared section styles
   ============================================================ */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section__head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 70px); }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.section__intro { margin-top: 20px; color: var(--ash); font-size: 1.1rem; max-width: 38em; }
.aside { font-family: var(--voice); color: var(--mask); }

/* ============================================================
   2. THE WATCH: camera wall + night log
   ============================================================ */
.watch { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; }
.feeds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feed {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #070707; border: 1px solid var(--line);
  transition: border-color .3s ease;
}
.feed svg.feed__art { position: absolute; inset: 18% 22%; width: 56%; height: 64%; color: #3a3a3a; }
/* Scanlines and film grain make it feel like a real camera */
.feed::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.feed::after {
  content: ""; position: absolute; inset: -50%; z-index: 1; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -2%); } }
.feed__osd {
  position: absolute; z-index: 2; inset: 10px 12px auto 12px;
  display: flex; justify-content: space-between;
  font-family: var(--osd); font-size: 1.15rem; color: var(--ash);
}
.feed__time { position: absolute; z-index: 2; right: 12px; bottom: 8px; font-family: var(--osd); font-size: 1.1rem; color: var(--mask); }
.feed__alert {
  position: absolute; z-index: 2; left: 12px; bottom: 10px; right: 90px;
  font-family: var(--osd); font-size: 1.1rem; line-height: 1.1; color: var(--white);
  background: var(--red); padding: 3px 8px; width: fit-content;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.feed.is-alert { border-color: var(--red); }
.feed.is-alert .feed__alert { opacity: 1; transform: none; }
.feed.is-alert svg.feed__art { color: var(--red); }

.log { border: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; min-height: 100%; }
.log__head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--osd); font-size: 1.3rem; }
.log__head small { color: var(--mask); font-size: 1rem; }
.log ul { list-style: none; margin: 12px 0 0; padding: 0; }
.log li { padding: 12px 0; border-top: 1px solid var(--line); font-size: .95rem; animation: logIn .4s ease; }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } }
.log time { font-family: var(--osd); font-size: 1.05rem; color: var(--mask); margin-right: 8px; }
.log .what { color: var(--white); }
.log .did { display: block; color: var(--ash); font-size: .88rem; margin-top: 2px; }
.chip { display: inline-block; margin-left: 6px; padding: 0 7px; font-family: var(--osd); font-size: 1rem; border: 1px solid currentColor; }
.chip--contained { color: var(--white); }
.chip--investigating { color: var(--red); }
.chip--closed { color: var(--mask); }

/* ============================================================
   3. NINE LIVES: shoji-screen grid of services
   1px gaps over a grey background draw the lattice lines.
   ============================================================ */
.lives { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.life {
  background: var(--black); color: var(--white); text-align: left;
  border: 0; padding: 28px 26px 30px; cursor: pointer;
  font: inherit; display: flex; flex-direction: column; gap: 10px;
  transition: background .2s ease;
}
.life:hover { background: #0c0c0c; }
.life__n { font-family: var(--osd); font-size: 1.2rem; color: var(--mask); }
.life h3 { font-size: 1.35rem; }
.life__one { color: var(--ash); font-size: .98rem; }
.life__more { display: none; color: var(--white); font-size: .95rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.life.is-open { background: #0c0c0c; box-shadow: inset 4px 0 0 var(--red); }
.life.is-open .life__more { display: block; }
/* The toggle is a real button (keyboard + screen readers), styled as a text link */
.life__toggle { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 0; font: 700 .85rem var(--body); color: var(--red); cursor: pointer; }
/* Giant vertical ネコ ("neko" = cat) behind the grid */
.kana {
  position: absolute; right: 0; top: 60px; z-index: 0; pointer-events: none;
  writing-mode: vertical-rl; font-family: var(--display);
  font-size: clamp(8rem, 22vw, 20rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px #1c1c1c;
}
.section > .wrap { position: relative; z-index: 1; }

/* ============================================================
   4. HOW WE POUNCE: a real 4-step sequence, so numbers are fair
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; position: relative; }
.steps li { position: relative; padding-top: 70px; }
.step__paw { position: absolute; top: 0; left: 0; width: 46px; height: 46px; color: var(--red); }
.steps li:nth-child(even) .step__paw { top: 14px; transform: rotate(12deg); }
.steps h3 { font-size: 1.9rem; }
.steps p { margin-top: 10px; color: var(--ash); font-size: 1rem; }
.steps .n { font-family: var(--osd); color: var(--mask); font-size: 1.2rem; display: block; margin-bottom: 4px; }
/* Heading + manga panel side by side */
.pounce__top { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.pounce__top .section__head { margin-bottom: 0; }
.panel { margin: 0; background: var(--white); padding: 10px; transform: rotate(2deg); }
.panel img { display: block; width: 100%; height: auto; border: 3px solid var(--black); }
/* Dashed trail line joining the paw prints */
.steps::before { content: ""; position: absolute; top: 30px; left: 40px; right: 10%; border-top: 2px dashed #2e2e2e; }

/* ============================================================
   5. WHY NEKO: white section, "We don't sell boxes"
   ============================================================ */
.light { background: var(--white); color: var(--black); }
.light .section__intro, .light p { color: #3a3a3a; }
.why__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.why__top h2 { font-size: clamp(2.8rem, 8vw, 6.6rem); }
.why__top .aside { font-size: 1.25rem; margin-top: 14px; color: var(--mask); }
.why__cat { width: 100%; max-width: 300px; height: auto; justify-self: end; }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 56px; margin-top: 70px; }
.why__grid h3 { font-family: var(--body); font-weight: 700; font-size: 1.25rem; }
.why__grid p { margin-top: 8px; }
.creds { margin-top: 70px; padding-top: 28px; border-top: 2px solid var(--black); display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.creds strong { font-family: var(--display); font-weight: 400; font-size: 1.4rem; }
.creds span { color: #3a3a3a; font-size: .95rem; }

/* ============================================================
   6. CONTACT: red section
   ============================================================ */
.contact { background: var(--red); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.contact .section__intro { color: var(--white); opacity: .92; }
.contact .aside { color: var(--white); margin-top: 26px; font-size: 1.15rem; }
.contact__email { margin-top: 26px; font-weight: 700; font-size: 1.1rem; }
.contact__email a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--black); background: var(--white);
  border: 2px solid var(--white); padding: 12px 14px; border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--black); outline-offset: 0; }
.form .btn { background: var(--black); border-color: var(--black); justify-self: start; }
.form__status { grid-column: 1 / -1; font-family: var(--voice); font-size: 1.1rem; min-height: 1.5em; }


/* Pounce section sits close under Nine lives */
.section--tight { padding-top: 0; }
/* Spam trap field: invisible to people, bots fill it in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* FAQ: native <details>, so it works without script and stays crawlable */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--osd); font-size: 1.8rem; color: var(--red); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { padding: 0 40px 22px 0; color: var(--ash); max-width: 40em; }

/* Nav links jump to sections: stop the fixed nav covering the heading */
section[id] { scroll-margin-top: 80px; }

/* Links from a service tile to its own page */
.life__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; }
.life__link { font-weight: 700; color: var(--white); text-decoration-color: var(--red); text-underline-offset: 3px; }

/* Results strip in the white "Why" section */
.proof { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 28px; align-items: end; }
.proof b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--red); line-height: 1; }
.proof span { display: block; margin-top: 8px; font-size: .95rem; color: #3a3a3a; }
.proof__link { font-weight: 700; color: var(--black); text-decoration-color: var(--red); text-underline-offset: 4px; white-space: nowrap; }
@media (max-width: 960px) { .proof { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .proof { grid-template-columns: 1fr; } }
