/* OneStudio — WordPress theme
   Fonts: Hanken Grotesk (Google Fonts). All colors/spacing via variables below.
   Ported from the html-template with additions marked "WP theme addition" below. */
:root {
  --bg: #f5f6fd;
  --bg-tint: #eef2ff;
  --bg-hero: linear-gradient(180deg, #e7ebff, #f5f6fd);
  --bg-dark: linear-gradient(135deg, #10173f 0%, #20308c 55%, #3f5bf6 130%);
  --text: #0c0e14;
  --muted: #5c6180;
  --accent: #3f5bf6;
  --accent-dark: #2a3fb8;
  --accent-100: #e8ecfe;
  --divider: #dde2f6;
  --card-border: #e3e7fb;
  --radius: 20px;
  --shadow: 0 12px 32px rgba(63, 91, 246, 0.07);
  --shadow-pop: 0 24px 64px rgba(19, 27, 77, 0.18);
  --font: 'Hanken Grotesk', sans-serif;
  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 72px);
  --pad-y: clamp(56px, 7vw, 88px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
a { color: var(--text); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* Type */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 6.5vw, 88px); }
h2 { font-size: clamp(28px, 3.2vw, 44px); }
h3 { font-size: 21px; line-height: 1.2; }
.kicker { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); margin-bottom: 12px; }
.lead { color: var(--muted); max-width: 58ch; }
.rule { height: 1px; border: 0; background: var(--divider); margin: 0 0 32px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font: 700 15px var(--font); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: linear-gradient(180deg, #5b74ff, #3f5bf6); color: #fff; box-shadow: 0 8px 20px rgba(63, 91, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-primary:hover { background: linear-gradient(180deg, #6a81ff, #4a64f7); color: #fff; }
.btn-secondary { border: 1.5px solid var(--text); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Cards */
.card { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }

/* Header + mega menus */
.site-header { position: sticky; top: 0; z-index: 50; }
.site-header .bar { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--card-border); }
.site-header .row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(16px, 3vw, 44px); }
.logo { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: var(--accent); padding: 18px 0; }
.logo span { color: var(--text); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(14px, 2.4vw, 36px); margin-left: auto; }
.main-nav > .nav-item { position: relative; }
.main-nav a.top { display: flex; align-items: center; gap: 5px; padding: 26px 0; font-weight: 700; text-decoration: none; }
.main-nav a.top svg { width: 13px; height: 13px; margin-top: 2px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.mega { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(680px, calc(100vw - 32px)); background: #fff; border-radius: 22px; box-shadow: var(--shadow-pop); padding: 28px 32px 32px; display: none; }
.nav-item:hover .mega, .nav-item:focus-within .mega { display: block; }
.mega .chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-100); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.mega .links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 32px; margin-top: 20px; }
.mega .links a { font-weight: 600; text-decoration: none; }
.mega hr { height: 1px; border: 0; background: #eceffb; margin: 24px 0; }
.icon-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.icon-link .sq { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-100); flex: none; }
.icon-link .sq svg { width: 17px; height: 17px; stroke: var(--accent); }
.icon-link small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.lang-switch { display: inline-flex; border: 1px solid var(--divider); border-radius: 999px; background: #fff; overflow: hidden; }
.lang-switch a { padding: 7px 14px; font-size: 13px; font-weight: 700; text-decoration: none; }
.lang-switch a.active { background: var(--accent); color: #fff; }

/* Section bands */
.band { padding: var(--pad-y) 0; }
.band-white { background: #fff; }
.band-tint { background: var(--bg-tint); }
.band-soft { background: var(--bg); }
.band-hero { background: var(--bg-hero); padding-top: clamp(64px, 8vw, 110px); }
.band-dark { background: var(--bg-dark); color: #fff; }
.band-dark .kicker { color: #b9c6ff; }
.band-dark .rule { background: rgba(255, 255, 255, 0.28); }
.band-dark .lead { color: rgba(255, 255, 255, 0.8); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px clamp(24px, 5vw, 96px); align-items: end; margin-top: 36px; }
.notice { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 48px; padding: 14px 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); text-decoration: none; }
.notice:hover { background: rgba(63, 91, 246, 0.05); }
.notice .tag { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--accent-dark); }
.notice .arrow { margin-left: auto; color: var(--accent-dark); }

/* Index list */
.index-row { display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 6fr) 32px; gap: 16px clamp(16px, 3vw, 48px); align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--divider); text-decoration: none; }
.index-row:hover { background: rgba(63, 91, 246, 0.05); }
.index-row .no { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-dark); }
.index-row .name { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.015em; }
.index-row .desc { color: var(--muted); font-size: 15px; }
.index-row .arrow { color: var(--accent-dark); justify-self: end; }

/* Split (text + figure) */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px clamp(24px, 5vw, 96px); align-items: center; }
.figure { border-radius: var(--radius); border: 1px solid var(--card-border); background: #fff; box-shadow: var(--shadow); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; overflow: hidden; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.stat { padding: 24px; }
.stat .label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.stat .value { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-dark); margin-top: 12px; }
.stat p { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Expertise list */
.expertise a { display: flex; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--divider); font-weight: 600; text-decoration: none; }
.expertise a:hover { background: rgba(63, 91, 246, 0.05); }
.expertise .dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }

/* Stack grid */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border: 1px solid var(--divider); border-right: 0; margin-top: 40px; }
.stack span, .stack a { padding: 26px 16px; border-right: 1px solid var(--divider); border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--muted); text-decoration: none; }
.stack a:hover { color: var(--accent); }

/* Notes cards */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.note { display: flex; flex-direction: column; }
.note .cover { aspect-ratio: 16 / 10; background: var(--accent-100); border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: center; color: var(--accent-dark); font-size: 13px; }
.note .body { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.note .cat { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.note p { font-size: 14px; color: var(--muted); margin: 0; }
.note .more { font-weight: 600; margin-top: auto; text-decoration: none; color: var(--accent-dark); }

/* Contact form */
.form-card { max-width: 820px; padding: clamp(24px, 3vw, 40px); margin-top: 40px; }
.form-grid { display: grid; gap: 20px; }
.form-grid .two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input, .field textarea { border: 1px solid var(--divider); border-radius: 12px; background: #fff; padding: 12px 14px; font: 400 15px var(--font); color: var(--text); }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.email-link { font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; color: #fff; text-decoration: none; border-bottom: 2px solid #fff; }
.band-dark .email-link:hover { color: #b9c6ff; border-color: #b9c6ff; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--divider); }
.footer-main { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); padding-top: clamp(44px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 56px); }
.footer-id { flex: 1 1 260px; max-width: 360px; border-right: 1px solid var(--divider); padding-right: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.footer-id .wordmark { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.footer-id .wordmark em { font-style: normal; color: var(--accent); }
.footer-id .contact-line { display: flex; align-items: center; gap: 10px; font-size: 14px; text-decoration: none; color: var(--muted); }
.footer-id .contact-line svg { width: 16px; height: 16px; stroke: var(--accent-dark); flex: none; }
.footer-id .socials { display: flex; gap: 10px; }
.footer-id .socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--divider); background: #fff; }
.footer-id .socials svg { width: 17px; height: 17px; stroke: currentColor; }
.footer-links { flex: 2 1 420px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); }
.footer-cols h4 { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 22px; }
.footer-cols .col-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 32px; }
.footer-cols .col-links.single { grid-template-columns: 1fr; }
.footer-cols a { font-size: 14px; text-decoration: none; color: var(--muted); }
.footer-cols a:hover { color: var(--accent); }
.footer-legal { margin-top: auto; font-size: 13px; color: var(--muted); }
.footer-strip { border-top: 1px solid var(--divider); }
.footer-strip .inner { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 40px; }
.footer-strip .caption { font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.footer-strip .marks { display: flex; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.footer-strip .marks a { text-decoration: none; color: var(--muted); display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.footer-strip .marks a:hover { color: var(--accent); }
.footer-strip .marks .mark { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.footer-strip .marks small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Registry table */
.registry table { width: 100%; border-collapse: collapse; }
.registry th, .registry td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--divider); font-size: 15px; }
.registry th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.registry .status { font-weight: 800; color: var(--accent-dark); }
.registry .head { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--divider); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.registry .head span { padding: 12px 24px; }
.registry .head span + span { border-left: 1px solid var(--divider); color: var(--muted); white-space: nowrap; }
.registry .foot { padding: 12px 24px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--muted); }

@media (max-width: 720px) {
  .index-row { grid-template-columns: 40px 1fr 24px; }
  .index-row .desc { grid-column: 2; }
  .main-nav a.top { padding: 12px 0; }
  .footer-id { border-right: 0; padding-right: 0; }
}

/* WP theme addition: tap-to-open mega menu on touch devices (no :hover) */
.nav-item.is-open .mega { display: block; }

/* WP theme addition: generic emphasis escape hatch for menu items (see inc/menus.php).
   Selector is deliberately as specific as ".mega .links a" (the rule it needs to beat). */
.mega .links a.is-emphasis, a.icon-link.is-emphasis { font-weight: 800; text-decoration: underline; }

/* WP theme addition: contact form submit feedback + spam honeypot */
.form-status { padding: 14px 18px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.form-status.success { background: rgba(63, 91, 246, 0.1); color: var(--accent-dark); }
.form-status.error { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* WP theme addition: plugin registry status pill variants (from the Plugins post type) */
.registry .status--soon { color: var(--muted); }
.registry .status--beta { color: #b45309; }

/* WP theme addition: note card as a real link wrapper (single.php read-more target) */
.note { text-decoration: none; color: inherit; }
.note .cover img { width: 100%; height: 100%; object-fit: cover; }

/* WP theme addition: single post / page / 404 / search / blog-index — content not covered by html-template bands */
.band-post { max-width: 760px; margin: 0 auto; }
.band-post .post-header { margin-bottom: 32px; }
.band-post .post-meta { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 12px; }
.band-post .post-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; border: 1px solid var(--card-border); }
.band-post .entry-content { font-size: 17px; line-height: 1.7; }
.band-post .entry-content > * + * { margin-top: 1.2em; }
.band-post .entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.band-post .entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.band-post .entry-content a { color: var(--accent-dark); text-decoration: underline; }
.band-post .entry-content img { border-radius: 12px; }
.band-post .entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--muted); font-style: italic; }
.blog-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { padding: 10px 18px; border: 1px solid var(--divider); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.not-found { text-align: center; padding: 40px 0; }
.comments-area { max-width: 760px; margin: 48px auto 0; }
.comment-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; }
.comment-list .comment-body { border: 1px solid var(--card-border); border-radius: var(--radius); padding: 20px; }
.comment-respond { margin-top: 32px; }
.comment-form p { display: grid; gap: 6px; margin: 0 0 16px; }
.comment-form label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.comment-form input, .comment-form textarea { border: 1px solid var(--divider); border-radius: 12px; background: #fff; padding: 12px 14px; font: 400 15px var(--font); color: var(--text); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

@media (max-width: 720px) {
  .mega { position: fixed; left: 16px; right: 16px; width: auto; top: 74px; max-height: calc(100vh - 100px); overflow-y: auto; }
}

/* WP theme addition: FAQ page-section accordion (native <details>/<summary>, no JS) */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 4px; }
.faq-item { border-bottom: 1px solid var(--divider); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--accent); flex: none; transition: transform 0.15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 1.6; }
.faq-answer > * + * { margin-top: 0.8em; }
