/* FormApo AI — landing page. Same system as the app: ink, one green, hairlines. */

:root {
  --ink: #0b0b0c;
  --ink-2: #18181b;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #a1a1aa;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --accent: #0f5132;
  --accent-hover: #0b3f27;
  --accent-bright: #1f8a55;
  --on-dark: #fafafa;
  --on-dark-2: #a1a1aa;
  --line-dark: rgba(255, 255, 255, 0.09);
  --radius: 8px;
  --font: "Inter", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 15px/1.8 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-feature-settings: "palt"; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 48px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }
.sp { display: none; }

/* -- buttons ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 7px; font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; cursor: pointer; white-space: nowrap; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.outline { border-color: #d4d4d8; color: var(--text); background: #fff; }
.btn.outline:hover { border-color: var(--text); }
.btn.ghost { color: var(--text-2); }
.btn.ghost:hover { color: var(--text); }

/* -- nav ------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.01em; }
.mark { width: 24px; height: 24px; border-radius: 6px; background: var(--ink-2); display: grid; place-items: center; }
.mark i { width: 11px; height: 2px; background: #fff; border-radius: 2px; box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 6px; }

/* -- hero ------------------------------------------------------------------ */
.hero { background: var(--ink); color: var(--on-dark); padding: 88px 0 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: repeating-linear-gradient(to bottom, transparent 0 47px, rgba(255, 255, 255, 0.035) 47px 48px); mask-image: linear-gradient(to bottom, #000 40%, transparent 85%); }
.hero .wrap { position: relative; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-dark-2); border: 1px solid var(--line-dark); border-radius: 999px; padding: 4px 12px; }
.kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 3px rgba(31, 138, 85, 0.25); }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.25; font-weight: 700; margin: 22px 0 20px; }
.hero .lead { font-size: 17px; color: var(--on-dark-2); max-width: 640px; }
.hero-cta { display: flex; gap: 12px; margin: 34px 0 44px; flex-wrap: wrap; }
.hero .btn.outline { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); }
.hero .btn.outline:hover { border-color: var(--on-dark); }
.hero-proof { list-style: none; padding: 0; margin: 0 0 56px; display: flex; gap: 0; border-top: 1px solid var(--line-dark); }
.hero-proof li { flex: 1; padding: 18px 20px 0 0; }
.hero-proof li + li { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.hero-proof b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-proof span { font-size: 13px; color: var(--on-dark-2); }
.hero-proof b [data-count] { font: inherit; color: inherit; }
.hero-proof small { font-size: 10px; margin-left: 2px; }
.shot { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(11, 11, 12, 0.35), 0 8px 20px -8px rgba(11, 11, 12, 0.15); background: #fff; }


/* -- sections ---------------------------------------------------------------- */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 14px; }
.dark .eyebrow { color: #5fc493; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.4; font-weight: 700; margin-bottom: 18px; }
.section-lead { color: var(--text-2); max-width: 660px; margin-bottom: 48px; }
.dark .section-lead { color: var(--on-dark-2); }
.center .section-lead { margin-left: auto; margin-right: auto; }
.note { display: block; font-size: 12px; color: var(--text-3); margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 12px; overflow: hidden; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 26px; background: #fff; }
.card h3, .features h3 { font-size: 17px; margin-bottom: 10px; }
.card p, .features p { color: var(--text-2); font-size: 14px; }
.features { gap: 40px 36px; }
.features article { border-top: 1px solid var(--line); padding-top: 22px; }

.steps { list-style: none; padding: 0; margin: 44px 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: s; }
.steps span { display: block; font-weight: 700; font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--text); width: 100%; }
.steps h3 { font-size: 18px; margin-bottom: 10px; }
.steps p { color: var(--text-2); font-size: 14px; }

.safety article { background: var(--ink); padding: 30px; }
.safety h3 { font-size: 17px; margin-bottom: 10px; }
.safety p { color: var(--on-dark-2); font-size: 14px; }

.bar { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; margin: 8px 0 18px; }
.bar span { height: 100%; }
.b1 { background: #1f8a55; } .b2 { background: #d4d4d8; } .b3 { background: #d9776e; } .b4 { background: #a1a1aa; } .b5 { background: #e0b04a; } .b6 { background: #52525b; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* -- pricing ---------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--text); }
.badge { position: absolute; top: -12px; left: 32px; background: var(--text); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 16px; color: var(--text-2); font-weight: 600; }
.price { margin: 10px 0 4px; }
.price b { font-size: 40px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--text-2); font-size: 14px; margin-left: 4px; }
.plan-note { color: var(--text-2); font-size: 13px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.plan li { padding: 7px 0 7px 24px; font-size: 14px; position: relative; }
.plan li::before, .checks li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.trial { max-width: 780px; margin: 28px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border: 1px dashed #bbb; border-radius: 12px; background: #fff; }
.trial h3 { font-size: 17px; margin-bottom: 4px; }
.trial p { color: var(--text-2); font-size: 14px; }

/* -- faq ---------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 27px; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { color: var(--text-2); font-size: 14px; padding: 0 0 22px; }

/* -- contact ---------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 6px 0 6px 24px; color: var(--on-dark); }
.checks li::before { border-color: #5fc493; }
.contact-form { background: #fff; color: var(--text); border-radius: 14px; padding: 30px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.contact-form input:not([type=radio]):not([type=checkbox]), .contact-form textarea { font: inherit; font-weight: 400; font-size: 15px; width: 100%; padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 7px; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #e7f1ec; }
.req { font-size: 11px; color: #b42318; font-weight: 600; margin-left: 6px; }
.intent { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; }
.intent label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d4d4d8; border-radius: 7px; padding: 10px; cursor: pointer; font-weight: 600; }
.intent label:has(input:checked) { border-color: var(--text); background: #fafafa; }
.agree { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.agree a { text-decoration: underline; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14px; min-height: 1.5em; }
.form-status.ok { color: var(--accent); font-weight: 600; }
.form-status.err { color: #b42318; }

/* -- footer ---------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 13px; color: var(--text-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-company { margin-top: 12px; line-height: 1.7; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a:hover { color: var(--text); }
.copyright { margin-top: 32px; color: var(--text-3); font-size: 12px; }

/* legal page */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 28px; margin-bottom: 28px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.legal th { width: 30%; color: var(--text-2); font-weight: 600; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid-3, .steps, .contact, .grid-2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .trial { flex-direction: column; align-items: flex-start; }
  .contact { gap: 36px; }
  .pc { display: none; }
  .sp { display: inline; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav-cta .ghost { display: none; }
  .hero { padding-top: 56px; }
  .hero-cta .btn { width: 100%; }
  .hero-proof { flex-direction: column; }
  .hero-proof li + li { padding-left: 0; border-left: 0; }
  .hero-proof li { padding: 14px 0 0; }
  .section { padding: 72px 0; }
}


/* -- live demo (hero) ------------------------------------------------------------ */
.demo-wrap { position: relative; padding-bottom: 72px; }
.glow { position: absolute; inset: 8% 10% 10%; background: radial-gradient(closest-side, rgba(31, 138, 85, 0.35), rgba(31, 138, 85, 0) 70%); filter: blur(40px); pointer-events: none; }
.demo { position: relative; border-radius: 14px; overflow: hidden; background: #fff; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.chrome { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: #f4f4f5; border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d8; }
.chrome .url { margin-left: 12px; font-size: 12px; color: var(--text-2); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 12px; }
/* -- framed product shots --------------------------------------------------------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; perspective: 1600px; }
.frame { margin: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(11, 11, 12, 0.3), 0 8px 18px -8px rgba(11, 11, 12, 0.12); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.frame .chrome { height: 30px; }
.frame .chrome i { width: 8px; height: 8px; }
.frame .chrome .url { font-size: 11px; }
.tilt-left { transform: rotateY(8deg) rotateX(2deg); transform-origin: right center; }
.tilt-right { transform: rotateY(-8deg) rotateX(2deg); transform-origin: left center; }
.frame:hover { transform: none; }

/* -- icons, reveal ---------------------------------------------------------------- */
.ico { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; padding: 5px; border-radius: 8px; background: #e7f1ec; box-sizing: content-box; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.shots.reveal.in .tilt-left { transform: rotateY(8deg) rotateX(2deg); }
.shots.reveal.in .tilt-right { transform: rotateY(-8deg) rotateX(2deg); }

@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr; }
  .tilt-left, .tilt-right, .shots.reveal.in .tilt-left, .shots.reveal.in .tilt-right { transform: none; }
}
@media (max-width: 560px) {
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* -- hero demo: the real app screens, animated (app.js) ------------------------------
   Same tokens and components as app.formapo.jp so the demo never drifts from the product. */
.ad { --a-bg: #fafafa; --a-sunk: #f4f4f5; --a-line: #e4e4e7; --a-text: #18181b; --a-2: #52525b; --a-3: #a1a1aa; --a-accent: #0f5132;
  position: relative; display: grid; grid-template-columns: 188px 1fr; height: 470px; background: var(--a-bg); color: var(--a-text); font-size: 12.5px; line-height: 1.5; overflow: hidden; text-align: left; }
.ad svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ad-side { background: var(--a-sunk); border-right: 1px solid var(--a-line); padding: 14px 10px; }
.ad-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; padding: 0 6px 10px; }
.ad-brand .mark { width: 18px; height: 18px; border-radius: 5px; }
.ad-brand .mark i { width: 8px; box-shadow: 0 -3px 0 #fff, 0 3px 0 #fff; }
.ad-tenant { font-size: 11px; color: var(--a-2); padding: 0 6px 10px; }
.ad-side nav a { display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 5px; color: var(--a-2); font-weight: 500; transition: background 0.2s; }
.ad-side nav a svg { width: 13px; height: 13px; }
.ad-side nav a.on { background: #fff; color: var(--a-text); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 0 0 1px var(--a-line); }
.ad-main { position: relative; padding: 16px 22px; overflow: hidden; }
.ad-view[hidden], .ad-panel[hidden] { display: none; }
.ad-view, .ad-panel { animation: adIn 0.35s ease; }
@keyframes adIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ad-crumbs { font-size: 10.5px; color: var(--a-3); margin-bottom: 4px; }
.ad-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ad-title { display: flex; align-items: center; gap: 8px; }
.ad-title b { font-size: 16px; letter-spacing: -0.02em; }
.ad-sub { color: var(--a-2); font-size: 11px; margin: 2px 0 12px; }
.ad-pill { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 500; white-space: nowrap; background: var(--a-sunk); color: var(--a-2); border: 1px solid var(--a-line); transition: all 0.25s; }
.ad-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.ad-pill.info { background: #eef2fe; color: #1d4ed8; border-color: #cdd8fb; }
.ad-pill.sent, .ad-pill.ok { background: #e7f1ec; color: var(--a-accent); border-color: #cfe3d9; }
.ad-pill.bad { background: #fdf0ee; color: #b42318; border-color: #f4c7c0; }
.ad-pill.warn { background: #fbf5e6; color: #9a6700; border-color: #eedcae; }
.ad-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--a-accent); background: var(--a-accent); color: #fff; font: inherit; font-weight: 600; font-size: 12px; transition: transform 0.12s, opacity 0.2s; }
.ad-btn svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.ad-btn:disabled { opacity: 0.4; }
.ad-btn.press { transform: scale(0.94); }
.ad-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0 12px; }
.ad-steps div { padding: 7px 10px 8px; border-top: 2px solid var(--a-line); color: var(--a-3); font-size: 10.5px; transition: all 0.3s; }
.ad-steps b { display: block; font-weight: 500; }
.ad-steps .done { border-top-color: var(--a-accent); color: var(--a-2); }
.ad-steps .now { border-top-color: var(--a-text); color: var(--a-text); }
.ad-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--a-line); margin-bottom: 12px; }
.ad-tabs span { padding-bottom: 7px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--a-2); font-weight: 500; transition: all 0.25s; }
.ad-tabs span.on { color: var(--a-text); border-bottom-color: var(--a-text); }
.ad-drop { position: relative; height: 188px; border: 1.5px dashed #d4d4d8; border-radius: 9px; background: #fff; display: grid; place-items: center; transition: all 0.3s; }
.ad-drop.over { border-color: var(--a-accent); background: #e7f1ec; }
.ad-drop.done { border-style: solid; border-color: #cfe3d9; background: #f3f8f5; }
.ad-drop p { color: var(--a-2); font-size: 12px; position: absolute; bottom: 36px; }
.ad-drop.done p { color: var(--a-accent); font-weight: 600; font-size: 13px; }
.ad-file { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 7px; background: #fff; border: 1px solid var(--a-line); box-shadow: 0 10px 24px -8px rgba(24, 24, 27, 0.25); font-weight: 600; position: absolute; top: 44px; opacity: 0; transform: translateY(-70px) rotate(-6deg); transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15), opacity 0.3s; }
.ad-file svg { width: 14px; height: 14px; color: var(--a-accent); }
.ad-file.in { opacity: 1; transform: none; }
.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--a-line); border-radius: 8px; }
.ad-stats.three { grid-template-columns: 2fr 1fr 1fr; }
.ad-stats div { padding: 9px 12px; border-left: 1px solid var(--a-line); }
.ad-stats div:first-child { border-left: 0; }
.ad-stats span { display: block; font-size: 10.5px; color: var(--a-2); }
.ad-stats b { font-size: 17px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ad-stats small { font-size: 10px; color: var(--a-3); font-weight: 400; }
.ad-mini { display: block; height: 4px; border-radius: 2px; background: var(--a-sunk); margin-top: 6px; overflow: hidden; }
.ad-mini em { display: block; height: 100%; background: var(--a-text); }
.ad-progress { height: 4px; border-radius: 2px; background: var(--a-sunk); margin: 10px 0; overflow: hidden; }
.ad-progress i { display: block; height: 100%; width: 0; background: var(--a-accent); transition: width 0.4s ease; }
.ad-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--a-line); border-radius: 8px; overflow: hidden; }
.ad-table th { text-align: left; font-size: 10.5px; font-weight: 500; color: var(--a-2); background: var(--a-sunk); padding: 6px 12px; border-bottom: 1px solid var(--a-line); }
.ad-table td { padding: 6px 12px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.ad-table tr:last-child td { border-bottom: 0; }
.ad-table tbody tr { animation: adRow 0.35s ease; transition: background 0.2s; }
.ad-table tbody tr.hover td { background: #f7f7f8; }
@keyframes adRow { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ad-co { font-weight: 600; font-size: 12px; }
.ad-dom { font-size: 10px; color: var(--a-3); }
.ad-when { color: var(--a-2); font-size: 11px; white-space: nowrap; }
.ad-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 300px; background: #fff; border-left: 1px solid var(--a-line); box-shadow: -18px 0 36px -18px rgba(24, 24, 27, 0.25); padding: 16px 18px; transform: translateX(105%); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ad-drawer.open { transform: none; }
.ad-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-drawer-head b { font-size: 13.5px; }
.ad-d-url { font-size: 10.5px; color: var(--a-3); margin: 2px 0 12px; }
.ad-d-label { font-size: 10.5px; font-weight: 600; color: var(--a-2); margin: 10px 0 6px; }
.ad-fill { width: 100%; border-collapse: collapse; font-size: 11px; }
.ad-fill td { padding: 4px 0; border-bottom: 1px solid var(--a-sunk); }
.ad-fill td:first-child { color: var(--a-3); width: 64px; }
.ad-fill td:last-child { width: 16px; }
.ad-fill i.ok { display: inline-block; width: 9px; height: 5px; border-left: 2px solid var(--a-accent); border-bottom: 2px solid var(--a-accent); transform: rotate(-45deg) translateY(-2px); }
.ad-shot { border: 1px solid var(--a-line); border-radius: 6px; overflow: hidden; background: #fff; height: 190px; }
.ad-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ad-stats.res { grid-template-columns: repeat(3, 1fr); }
.ad-chart { background: #fff; border: 1px solid var(--a-line); border-radius: 8px; padding: 10px 14px 12px; margin-top: 12px; }
.ad-chart p { font-weight: 600; font-size: 12px; margin-bottom: 8px; }
.ad-bars { height: 170px; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--a-line); }
.ad-bars i { flex: 1; max-width: 18px; margin: 0 auto; height: 0; background: #1f8a55; border-radius: 3px 3px 0 0; transition: height 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ad-cursor { position: absolute; left: 0; top: 0; width: 20px; height: 20px; fill: #18181b !important; stroke: #fff !important; stroke-width: 1.4 !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); transform: translate(70%, 110%); transition: transform 0.8s cubic-bezier(0.45, 0, 0.2, 1); pointer-events: none; z-index: 5; }
.ad-cursor.click { animation: adClick 0.25s ease; }
@keyframes adClick { 50% { scale: 0.82; } }

@media (max-width: 900px) {
  .ad { grid-template-columns: 1fr; height: 520px; }
  .ad-side { display: none; }
  .ad-drawer { width: 86%; }
  .ad-when { display: none; }
}
@media (max-width: 560px) {
  .ad-main { padding: 14px; }
  .ad-stats:not(.res) { grid-template-columns: repeat(2, 1fr); }
  .ad-stats:not(.res) div:nth-child(3) { border-left: 0; }
  .ad-stats:not(.res) div:nth-child(n + 3) { border-top: 1px solid var(--a-line); }
  .ad-stats.three { grid-template-columns: 1fr 1fr; }
  .ad-stats.three div:first-child { grid-column: 1 / -1; }
  .ad-stats.three div:nth-child(2) { border-left: 0; border-top: 1px solid var(--a-line); }
  .ad-steps b { font-size: 10px; }
}
