/*
 * Content pages that share the landing header and footer (Blog, article, Support).
 * Layout follows kore.co's blog and contact pages; colors come from the landing tokens in site.css,
 * so dark mode carries over.
 */
.page {
	--blue: var(--cyan-text);
	--container: 1400px;
	--gutter: 28px;
	--r-sm: 12px;
	--r: 18px;
	--r-lg: 26px;
	--r-xl: 34px;
	--t: .32s;
}
.page main { padding-top: var(--nav-h); }
:where(.page) :where(h1, h2, h3, h4) { margin: 0; color: var(--ink-strong); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
:where(.page) :where(p) { margin: 0; }
:where(.page) :where(a) { text-decoration: none; }
:where(.page) :where(img) { display: block; height: auto; }

/* ---------- Containers and sections ---------- */
.k-container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.k-container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.k-section { padding: clamp(44px, 3.8vw, 58px) 0; position: relative; }
.k-section--tight { padding: clamp(30px, 2.6vw, 40px) 0; }
.k-section:not(.k-section--paper) + .k-section:not(.k-section--paper) { padding-top: 0; }
.k-section--paper { background: var(--paper); }
.k-head { max-width: 780px; margin-bottom: clamp(36px, 4vw, 64px); }
.k-h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; }
.k-lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }

/* ---------- Hero ---------- */
.s-hero { position: relative; overflow: hidden; padding: clamp(40px, 4.4vw, 64px) 0 clamp(26px, 2.8vw, 42px); background: linear-gradient(180deg, var(--paper-2), var(--bg) 78%); }
.s-hero__inner { position: relative; z-index: 2; max-width: 880px; margin-inline: auto; text-align: center; }
.s-hero .k-container--narrow { position: relative; z-index: 2; text-align: center; }
.s-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.035em; margin: 18px 0 0; text-wrap: balance; }
.s-hero__title--article { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.s-hero__lede { margin: 20px auto 0; }
.home-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.k-grid-bg {
	position: absolute; inset: 0; pointer-events: none; z-index: 0;
	background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
	mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
}
.k-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; -webkit-mask-image: radial-gradient(118% 96% at 50% 42%, #000 38%, transparent 88%); mask-image: radial-gradient(118% 96% at 50% 42%, #000 38%, transparent 88%); }
.k-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: kOrbDrift 22s ease-in-out infinite alternate; }
.k-orb--a { width: 520px; height: 520px; top: -180px; left: -120px; background: radial-gradient(circle, var(--orb-a), transparent 70%); }
.k-orb--b { width: 620px; height: 620px; top: 60px; right: -220px; background: radial-gradient(circle, var(--orb-b), transparent 70%); animation-delay: -7s; }
@keyframes kOrbDrift {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(40px, -30px, 0) scale(1.08); }
	100% { transform: translate3d(-30px, 26px, 0) scale(.96); }
}
@media (prefers-reduced-motion: reduce) { .k-orb { animation: none; } }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.post { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity .6s var(--ease-out); }
.post:hover { transform: translateY(-6px); }
.post.is-hidden { display: none; }
.post.is-fresh { opacity: 0; transform: translateY(16px); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted-2); }
.post__cat { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.post__title { font-size: 1.16rem; letter-spacing: -0.02em; line-height: 1.3; margin: 12px 0 10px !important; }
.post__excerpt { color: var(--muted); font-size: .92rem; flex: 1; }
.post__go { margin-top: 18px; font-size: .89rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 7px; position: relative; align-self: flex-start; transition: gap var(--t) var(--ease); }
.post__go::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1.5px; width: calc(100% - 22px); background: currentColor; border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .38s var(--ease); }
.post__go .k-icon { transition: transform .38s var(--ease); }
.post:hover .post__go { gap: 11px; }
.post:hover .post__go::after { transform: scaleX(1); }
.post:hover .post__go .k-icon { transform: translateX(3px); }
.post--feature { grid-column: 1 / -1; flex-direction: row; }
.post--feature .post__img { aspect-ratio: auto; flex: 1 1 52%; min-height: 340px; }
.post--feature .post__body { flex: 1 1 48%; padding: clamp(28px, 3.4vw, 52px); justify-content: center; }
.post--feature .post__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
@media (max-width: 820px) {
	.post--feature { flex-direction: column; }
	.post--feature .post__img { aspect-ratio: 16 / 10; min-height: 0; flex: none; }
}
.post--skeleton { pointer-events: none; }
.post--skeleton .post__img { background: var(--paper-2); }
.sk { display: block; border-radius: 6px; background: var(--paper-2); }
.sk--meta { width: 45%; height: 11px; margin-bottom: 14px; }
.sk--title { width: 85%; height: 18px; margin-bottom: 14px; }
.sk--line { width: 100%; height: 11px; margin-bottom: 8px; }
.sk--short { width: 60%; }
.post--skeleton .post__img, .sk { animation: kSkPulse 1.4s ease-in-out infinite; }
@keyframes kSkPulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* ---------- Blog listing ---------- */
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 26px; }
.blog-search { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); flex: 1 1 320px; max-width: 420px; transition: border-color var(--t) var(--ease); }
.blog-search:focus-within { border-color: var(--cyan); }
.blog-search .k-icon { color: var(--muted-2); flex: none; }
.blog-search input { flex: 1; min-width: 0; border: 0; background: none; font-family: inherit; font-size: .95rem; color: var(--ink); }
.blog-search input:focus { outline: none; }
.blog-toolbar__count { font-size: .88rem; color: var(--muted); }
.blog-state { text-align: center; color: var(--muted); padding: 48px 0; }
.blog-state--error { color: #c02626; }
.blog-more { display: flex; justify-content: center; margin-top: 40px; position: relative; }
.blog-more[hidden] { display: none; }
.blog-more .btn { gap: 9px; }
.blog-more__sentinel { position: absolute; top: -600px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.blog-more__end { text-align: center; color: var(--muted-2); font-size: .88rem; margin-top: 40px !important; }

/* ---------- Article ---------- */
.article__byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.article__meta { font-size: .86rem; color: var(--muted); }
.share { display: flex; align-items: center; gap: 12px; position: relative; }
.share__copy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; cursor: pointer; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); font-family: inherit; font-size: .84rem; font-weight: 600; white-space: nowrap; transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background-color var(--t) var(--ease); }
.share__copy:hover { border-color: var(--ink); color: var(--ink-strong); }
.share__copy.is-copied { border-color: #57b894; color: #2f8f6b; background: #f2fbf7; }
.share__links { display: flex; align-items: center; gap: 8px; }
.share__net { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), color var(--t) var(--ease); }
.share__net:hover { border-color: var(--ink); color: var(--ink-strong); transform: translateY(-2px); }
.share__toast { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
	.share { width: 100%; justify-content: space-between; }
	.share__links { gap: 6px; }
	.share__net { width: 32px; height: 32px; }
}
.article__hero { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); margin-top: 34px; }
.article__hero img { width: 100%; max-height: 480px; object-fit: cover; }
.article { max-width: 780px; margin-inline: auto; overflow-wrap: break-word; }
.article p { color: var(--ink-2); margin-bottom: 22px; }
.article h1 { font-size: 1.9rem; margin: 40px 0 16px; }
.article h2 { font-size: 1.7rem; margin: 42px 0 16px; }
.article h3 { font-size: 1.24rem; margin: 32px 0 12px; }
.article strong { color: var(--ink-strong); font-weight: 600; }
.article a { color: var(--blue); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 35%, transparent); text-underline-offset: 3px; }
.article a:hover { text-decoration-color: var(--blue); }
.article ul { list-style: none; padding-left: 0; display: grid; gap: 10px; margin: 0 0 24px; }
.article ul li { display: flex; gap: 11px; color: var(--ink-2); }
.article ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; margin-top: 10px; }
.article ol { list-style: decimal; padding-left: 22px; margin: 0 0 24px; }
.article ol li { color: var(--ink-2); margin-bottom: 8px; }
.article blockquote { margin: 32px 0; padding: 24px 28px; border-left: 3px solid var(--cyan); background: var(--paper); border-radius: 0 var(--r) var(--r) 0; font-size: 1.06rem; color: var(--ink); }
.article img { max-width: 100%; height: auto; border-radius: var(--r-lg); margin: 28px 0; border: 1px solid var(--line); }
.article table { width: 100%; border-collapse: collapse; margin: 26px 0; }
.article td, .article th { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.article iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-lg); margin: 28px 0; }

/* ---------- Contact (Support) ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: clamp(28px, 4vw, 60px); align-items: stretch; }
.cform { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 3vw, 42px); }
.cform__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__send { width: 100%; gap: 9px; }
.cform__send[disabled] { opacity: .7; cursor: progress; }
.cform__status { margin: 0; max-height: 0; overflow: hidden; opacity: 0; font-size: .9rem; line-height: 1.55; font-weight: 500; border: 0 solid transparent; border-radius: var(--r-sm); }
.cform__status.is-ok, .cform__status.is-error { max-height: none; overflow: visible; opacity: 1; margin: 18px 0 2px; padding: 14px 16px; border-width: 1px; }
.cform__status.is-ok { color: #1f6b52; background: #f1f9f5; border-color: #c9e7d8; }
.cform__status.is-error { color: #a81f1f; background: #fdf3f3; border-color: #f4d4d4; }
.k-text { color: var(--muted); }
.k-text--sm { font-size: .95rem; }
.k-text a { color: var(--blue); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--blue) 34%, transparent); text-underline-offset: 3px; }
.k-text a:hover { text-decoration-color: var(--blue); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); font-family: inherit; font-size: .95rem; color: var(--ink); width: 100%; min-width: 0; transition: border-color var(--t) var(--ease); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366717f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); }
.field__phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
/* Country code picker (support.js): a button like the other fields, opening a searchable list. */
.cc { position: relative; min-width: 0; }
.cc-btn { width: 100%; height: 100%; padding: 13px 30px 13px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366717f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 15px; font-family: inherit; font-size: .95rem; color: var(--ink); text-align: left; white-space: nowrap; cursor: pointer; transition: border-color var(--t) var(--ease); }
.cc-btn:focus-visible, .cc-btn[aria-expanded="true"] { outline: none; border-color: var(--cyan); }
.field.is-bad .cc-btn { border-color: #e0796f; }
.cc-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(300px, calc(100vw - 48px)); padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 18px 40px -16px rgba(15,34,54,.35); }
.cc-pop[hidden] { display: none; }
.field .cc-q { width: 100%; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.cc-list { max-height: 260px; margin: 6px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.cc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: .9rem; color: var(--ink); cursor: pointer; }
.cc-list li b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list li small { font-size: .78rem; color: var(--muted); }
.cc-list li span { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cc-list li.is-active { background: var(--paper-2); }
.cc-list li[aria-selected="true"] b { font-weight: 600; color: var(--cyan-text); }
.cc-list .cc-none { display: block; color: var(--muted); cursor: default; }
.field__err { font-size: .8rem; color: #c02626; display: none; }
.field.is-bad input, .field.is-bad textarea, .field.is-bad select { border-color: #e0796f; }
.field.is-bad .field__err { display: block; }
.cside { display: flex; flex-direction: column; gap: 12px; }
.cinfo { display: grid; gap: 12px; }
.cinfo__item { display: flex; gap: 15px; padding: 20px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: transform var(--t) var(--ease); }
a.cinfo__item:hover { transform: translateY(-3px); }
.cinfo__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue); background: var(--cyan-soft); flex: none; }
.cinfo__label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.cinfo__value { display: block; font-weight: 600; margin-top: 3px; color: var(--ink-strong); }
.cinfo__note { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; }
/* The photo takes whatever height the form leaves, so both columns end together. */
.cmap { position: relative; flex: 1 1 auto; min-height: 220px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.cmap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .cform__row { grid-template-columns: minmax(0, 1fr); gap: 0; } }
