/*
Theme Name: Dikas Studio
Theme URI: https://dikasstudio.com
Author: Dikas Studio
Description: Clean type-foundry theme for Dikas Studio: catalog, font tester, license picker, freebies, Fonts in Use and a PDF invoice template. Works with WooCommerce and the Dikas Font Toolkit plugin.
Version: 1.0.6
Requires at least: 6.4
Requires PHP: 7.4
WC requires at least: 8.0
License: GPL-2.0-or-later
Text Domain: dikas
*/

:root {
	--ink: #111111;
	--muted: #555555;
	--body: #333333;
	--line: #e3e3e3;
	--panel: #f5f5f5;
	--paper: #ffffff;
	--ok: #e9f6ec;
	--err: #fdecea;
	--sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
	--wrap: 1120px;
	--gut: clamp(16px, 4vw, 48px);
	--r: 6px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 8px; top: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 8px 12px; background: var(--ink); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.kicker { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.u { text-decoration: underline; text-underline-offset: 4px; }
.nolink { text-decoration: none; }

/* Buttons */
.dk-btn, .button, button.button, a.button, input.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--r);
	background: var(--ink); color: #fff !important; font-size: 15px; font-weight: 400; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.dk-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-2px); background: var(--ink); color: #fff; }
.dk-btn--ghost, .woocommerce a.button.dk-btn--ghost { background: #fff; color: var(--ink) !important; }
.dk-btn--ghost:hover { background: #fff; color: var(--ink) !important; }
.dk-btn--block { display: flex; width: 100%; }
.dk-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--ink); border-radius: var(--r); background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; text-decoration: none; }
.dk-chip[aria-pressed="true"], .dk-chip.is-on { background: var(--ink); color: #fff; }

/* Forms */
.dk-field { display: flex; flex-direction: column; gap: 6px; }
.dk-field label, .dk-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dk-input, .dk-field input, .dk-field textarea, .dk-field select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.woocommerce .quantity .qty, #coupon_code {
	width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: var(--r); background: #fff; font-size: 15px;
}
.dk-line-form { display: flex; border-bottom: 1px solid var(--ink); }
.dk-line-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 0; background: transparent; font-size: 16px; }
.dk-line-form button { background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 0 0 16px; font-size: 15px; }
.dk-notice { padding: 12px 14px; border-radius: var(--r); background: var(--ok); font-size: 14px; }
.dk-notice--err { background: var(--err); }
.dk-hp { position: absolute; left: -9999px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--ink); animation: dk-in .6s ease both; }
.site-header .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-logo { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.site-logo img { max-height: 48px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-nav a { text-decoration: none; }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.site-nav .nav-cart { font-family: var(--mono); font-size: 13px; }
.site-nav .nav-account { display: inline-flex; align-items: center; padding: 6px 14px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--ink); color: #fff; font-size: 14px; }
.site-nav .nav-account:hover { color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
	.nav-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--r); background: #fff; cursor: pointer; font-size: 14px; }
	.site-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
	.site-nav ul { flex-direction: column; }
	.site-nav.is-open { display: flex; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--ink); margin-top: 120px; }
.site-footer .top { padding-top: 56px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer .brand { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.site-footer form { flex: 1 1 360px; max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.site-footer form > label { font-size: 20px; font-weight: 500; }
.site-footer .bottom { padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.site-footer .bottom a { color: var(--muted); }
.site-footer .bottom nav, .site-footer .bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }

/* Page heads */
.page-head { padding-top: 48px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.page-head h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); }
.page-head p { margin: 0; color: var(--body); max-width: 560px; }
.section { padding-top: 72px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 6px 0 0; font-size: clamp(22px, 2.6vw, 28px); }
.section-head a { font-size: 14px; }

/* Cards */
.grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid--3 { grid-template-columns: 1fr; } }
.dk-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.dk-card .art { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel); border-radius: 2px; }
.dk-card .art img, .dk-card .art .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dk-card .art .ph { display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 40px; line-height: 1.05; }
.dk-card:hover .art img, .dk-card:hover .art .ph { transform: scale(1.08); }
.dk-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dk-card .name { font-size: 17px; font-weight: 500; transition: letter-spacing .4s ease; }
.dk-card:hover .name { letter-spacing: .06em; }
.dk-card .sub { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.dk-card .badge { position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: var(--r); background: #fff; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

/* Animations */
@keyframes dk-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dk-up { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes dk-pop { from { opacity: 0; transform: translateY(48px) scale(.96); } to { opacity: 1; transform: none; } }
.js .dk-reveal:not(.is-in), .js .dk-pop:not(.is-in) { opacity: 0; }
.js .dk-reveal.is-in { animation: dk-up .9s var(--ease) both; }
.js .dk-pop.is-in { animation: dk-pop .8s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
	.js .dk-reveal:not(.is-in), .js .dk-pop:not(.is-in) { opacity: 1; }
	.js .dk-reveal.is-in, .js .dk-pop.is-in, .site-header { animation: none; }
	.dk-card:hover .art img, .dk-card:hover .art .ph, .dk-btn:hover { transform: none; }
}

/* Home */
.home-hero { padding-top: 64px; }
.home-hero h1 { margin: 0; font-size: clamp(40px, 7vw, 88px); max-width: 14ch; }
.brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.brands li { min-height: 110px; display: flex; align-items: center; justify-content: center; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 18px; font-weight: 500; text-align: center; transition: color .3s ease, background-color .3s ease; }
.brands li:hover { color: var(--ink); background: var(--panel); }
.brands img { max-height: 48px; width: auto; filter: grayscale(1); opacity: .7; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; border-top: 1px solid var(--ink); padding-top: 28px; }
.points h3 { margin: 10px 0 8px; font-size: 20px; }
.points p { margin: 0; color: var(--body); font-size: 15px; }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 40px; background: var(--panel); }
.cta-band h2 { margin: 8px 0 12px; font-size: clamp(26px, 3vw, 36px); }
.cta-band p { margin: 0; max-width: 560px; color: var(--body); }
.join { text-align: center; max-width: 560px; margin: 0 auto; }
.join h2 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 12px; }
.join form { margin-top: 24px; display: flex; gap: 8px; }
.join form input[type=email] { flex: 1; }

/* Fonts archive */
.browse { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 0; margin-bottom: 40px; }
.browse .modes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.browse nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.browse nav a { text-decoration: none; }
.browse nav span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.group + .group { margin-top: 72px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 24px; }
.group-head h2 { margin: 0; font-size: 28px; }

/* Freebies */
.free-card .actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.free-card .actions .dk-btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
.about-free { margin-top: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 48px; border-top: 1px solid var(--ink); padding-top: 32px; }
.about-free h2 { margin: 8px 0 0; font-size: clamp(26px, 3vw, 36px); }

/* Product */
.slider { position: relative; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; }
.slider .track { display: flex; gap: 8px; will-change: transform; }
.slider .slide { flex: 0 0 60%; aspect-ratio: 3 / 2; background: var(--panel); }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider.is-single .slide { flex-basis: 100%; max-width: 900px; margin: 0 auto; }
.slider .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.slider .prev { left: clamp(12px, 3vw, 40px); }
.slider .next { right: clamp(12px, 3vw, 40px); }
.slider .count { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; background: #fff; padding: 6px 10px; border-radius: var(--r); }
@media (max-width: 700px) { .slider .slide { flex-basis: 86%; } }
.crumbs { margin: 32px 0 20px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.product-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.product-top .about { display: flex; flex-direction: column; gap: 20px; padding: 28px 28px 28px 0; }
.product-top h1 { margin: 0; font-size: clamp(40px, 5vw, 56px); }
.product-top .lead { margin: 0; font-size: 15px; line-height: 1.65; color: var(--body); max-width: 460px; }
.facts { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.facts dd { margin: 0; font-size: 14px; text-align: right; }
.free-box { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--panel); border-radius: var(--r); }
.free-box p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--body); }
.buy { display: flex; flex-direction: column; gap: 18px; padding: 28px 0 28px 28px; border-left: 1px solid var(--line); }
.buy h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.buy p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.buy fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.buy legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0; margin-bottom: 8px; }
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.who label { position: relative; }
.who input, .tier input { position: absolute; opacity: 0; pointer-events: none; }
.who span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: var(--r); font-size: 14px; cursor: pointer; text-align: center; }
.who input:checked + span { background: var(--ink); color: #fff; }
.who input:focus-visible + span, .tier input:focus-visible + .tier-box { outline: 1px solid var(--ink); outline-offset: 3px; }
.tier-box { min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.tier-box .dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink); box-shadow: inset 0 0 0 2px #fff; flex: none; }
.tier-box .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tier-box .txt b { font-weight: 500; font-size: 14px; }
.tier-box .txt small { font-size: 12px; color: var(--muted); }
.tier-box .price { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.tier input:checked + .tier-box { border-color: var(--ink); }
.tier input:checked + .tier-box .dot { background: var(--ink); }
.buy .fine { font-size: 12px; color: var(--muted); text-align: center; }
.buy .contact-tier { display: none; }
.buy.is-contact .contact-tier { display: flex; flex-direction: column; gap: 10px; }
.buy.is-contact .buy-submit { display: none; }

.tabs { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.tabs .dk-chip { min-height: 36px; padding: 0 16px; font-size: 14px; }
.panel[hidden] { display: none; }
.tester-bar { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.tester-bar > label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.tester-bar input[type=text] { flex: 999 1 280px; min-width: 0; border: 0; outline: 0; font-size: 18px; background: transparent; padding: 10px 0; }
.tester-bar .grp { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tester-bar .linkbtn { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 4px; }
.tester { --t-ink: var(--ink); --t-paper: #fff; --t-muted: var(--muted); }
.tester.is-dark { --t-ink: #fff; --t-paper: var(--ink); --t-muted: #b5b5b5; }
.t-row { border-bottom: 1px solid var(--line); padding: 24px 0 36px; background: var(--t-paper); color: var(--t-ink); }
.tester.is-dark .t-row { padding-left: 20px; padding-right: 20px; }
.t-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.t-ctrl .t-name { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; min-width: 72px; }
.t-ctrl label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--t-muted); }
.t-ctrl output { width: 44px; color: var(--t-ink); text-transform: none; }
.t-ctrl .cases { margin-left: auto; display: flex; gap: 4px; }
.t-ctrl .cases button { min-width: 32px; min-height: 32px; padding: 0 8px; border: 1px solid var(--t-ink); border-radius: var(--r); background: var(--t-paper); color: var(--t-ink); font-size: 13px; cursor: pointer; }
.t-ctrl .cases button[aria-pressed="true"] { background: var(--t-ink); color: var(--t-paper); }
.t-sample { margin-top: 20px; outline: 0; overflow-wrap: break-word; white-space: pre-wrap; font-size: 96px; line-height: 1.1; }
.tester input[type=range] { -webkit-appearance: none; appearance: none; width: 92px; height: 16px; background: transparent; cursor: pointer; margin: 0; }
.tester input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--t-ink); }
.tester input[type=range]::-moz-range-track { height: 1px; background: var(--t-ink); }
.tester input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: var(--t-ink); margin-top: -4.5px; border: 0; }
.tester input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--t-ink); border: 0; }
.info { border-top: 1px solid var(--ink); padding-top: 40px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.info .desc { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.info .desc h2 { margin: 0; font-size: 72px; line-height: .95; font-weight: 400; letter-spacing: 0; }
.info .desc .entry { font-size: 16px; line-height: 1.7; color: var(--body); max-width: 600px; }
.info .facts { flex: 1 1 300px; max-width: 380px; }
.glyphs { border-top: 1px solid var(--ink); padding-top: 28px; }
.glyphs .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.glyphs .head h3 { margin: 0; font-size: 15px; }
.glyph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.glyph-grid span { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 32px; }
.related { margin-top: 96px; }

/* Free download form (Dikas Font Toolkit) */
.dikas-free { margin: 0 !important; padding: 0 !important; border: 0 !important; max-width: none !important; display: flex; flex-direction: column; gap: 14px; }
.dikas-free h3 { font-size: 20px !important; font-weight: 500; }
.dikas-free input[type=text], .dikas-free input[type=email] { min-height: 44px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: var(--r); }
.dikas-free label { font-size: 14px !important; }
.dikas-free button { width: 100%; }

/* In Use */
.inuse { columns: 3 300px; column-gap: 24px; }
.iu-card { break-inside: avoid; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; text-decoration: none; }
.iu-card .shot { position: relative; overflow: hidden; background: var(--panel); }
.iu-card .shot img { width: 100%; transition: transform .6s var(--ease); }
.iu-card:hover .shot img { transform: scale(1.04); }
.iu-card .over { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; background: linear-gradient(transparent 50%, rgba(0,0,0,.55)); color: #fff; opacity: 0; transition: opacity .3s ease; font-size: 14px; }
.iu-card:hover .over, .iu-card:focus-visible .over { opacity: 1; }
.iu-card .t { font-weight: 500; }
.iu-card .s { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* License page */
.lic-hero { border-bottom: 1px solid var(--ink); padding-top: 64px; padding-bottom: 56px; }
.lic-hero h1 { margin: 12px 0 0; font-size: clamp(36px, 6vw, 72px); max-width: 18ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps h3 { margin: 10px 0 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--body); font-size: 15px; }
.includes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); border-top: 1px solid var(--ink); }
.includes li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.includes li::before { content: "✓"; margin-right: 10px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; max-width: 720px; color: var(--body); }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th, .price-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); border-bottom: 1px solid var(--ink); }
.table-scroll { overflow-x: auto; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 64px; align-items: start; }

/* Contact */
.contact-aside { display: flex; flex-direction: column; gap: 28px; border-top: 1px solid var(--ink); padding-top: 24px; }
.contact-aside > div { display: flex; flex-direction: column; gap: 6px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; }
.topics span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--r); cursor: pointer; font-size: 14px; }
.topics input:checked + span { background: var(--ink); color: #fff; }

/* Legal & generic pages */
.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 48px; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal .toc { position: static !important; } }
.legal .toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.legal .toc a { text-decoration: none; color: var(--muted); }
.legal .toc a:hover { color: var(--ink); }
.legal .doc-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.entry { font-size: 16px; line-height: 1.7; color: var(--body); }
.entry h1 { font-size: clamp(36px, 5vw, 56px); color: var(--ink); margin: 0 0 12px; }
.entry h2 { font-size: 24px; color: var(--ink); margin: 48px 0 12px; scroll-margin-top: 24px; }
.entry h3 { font-size: 18px; color: var(--ink); margin: 32px 0 8px; }
.entry a { color: var(--ink); text-underline-offset: 3px; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry li { margin-bottom: 6px; }
.entry > :first-child { margin-top: 0; }

/* 404 */
.nf { text-align: center; padding-top: 72px; max-width: 640px; margin: 0 auto; }
.nf .num { font-family: var(--mono); font-size: clamp(80px, 16vw, 160px); line-height: 1; letter-spacing: -0.04em; }
.nf h1 { font-size: clamp(32px, 5vw, 48px); margin: 16px 0 12px; }
.nf form { display: flex; gap: 8px; margin: 28px 0 20px; }
.nf .links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* WooCommerce general */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews { list-style: none; margin: 0 0 24px !important; padding: 14px 16px !important; border: 1px solid var(--ink) !important; border-radius: var(--r); background: var(--panel) !important; color: var(--ink) !important; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none !important; }
.woocommerce-error { background: var(--err) !important; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; min-height: 36px; }
.wc-page { padding-top: 48px; }
.wc-page > h1 { margin: 0 0 32px; font-size: clamp(36px, 5vw, 56px); }
.woocommerce table.shop_table { border: 0; border-collapse: collapse; border-top: 1px solid var(--ink); border-radius: 0; width: 100%; }
.woocommerce table.shop_table th { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 0; border-bottom: 1px solid var(--line); padding: 14px 12px 14px 0; text-align: left; }
.woocommerce table.shop_table .product-thumbnail img { width: 72px; }
.woocommerce .quantity .qty { width: 72px; }
.woocommerce a.remove { color: var(--ink) !important; }
.woocommerce a.remove:hover { background: var(--ink); color: #fff !important; }
.cart-collaterals .cart_totals { float: none !important; width: 100% !important; max-width: 420px; margin-left: auto; }
.cart_totals h2 { font-size: 20px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; }
.select2-container--default .select2-selection--single { height: 44px; border: 1px solid var(--ink); border-radius: var(--r); }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; }

/* Checkout: details left, summary right */
form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 0 56px; align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
form.checkout #order_review { position: sticky; top: 24px; border: 1px solid var(--ink); border-radius: var(--r); padding: 20px; }
form.checkout #order_review_heading { margin: 0 0 12px; font-size: 20px; }
form.checkout .col2-set .col-1, form.checkout .col2-set .col-2 { float: none; width: 100%; }
form.checkout h3 { font-size: 13px; font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 32px 0 12px; }
form.checkout .woocommerce-billing-fields > h3 { margin-top: 0; }
form.checkout .form-row label { font-size: 13px; }
#payment { background: transparent !important; border-radius: 0 !important; }
#payment ul.payment_methods { padding: 0 0 12px !important; border-bottom: 1px solid var(--line) !important; }
#payment div.payment_box { background: var(--panel) !important; }
#payment div.payment_box::before { display: none !important; }
#payment #place_order { width: 100%; float: none; margin-top: 12px; }
.dikas-holder { border-top: 1px solid var(--ink); padding-top: 4px; }
@media (max-width: 860px) {
	form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
	form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
}

/* My Account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-navigation a { display: block; padding: 12px 0; text-decoration: none; font-size: 15px; }
.woocommerce-MyAccount-navigation .is-active a { font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a::before { content: "→ "; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce-account:not(.logged-in) .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.woocommerce-account:not(.logged-in) .u-column1, .woocommerce-account:not(.logged-in) .u-column2 { float: none; width: auto; }
@media (max-width: 760px) { .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 24px; } }

/* Licenses list (Dikas Font Toolkit) */
.dk-lic { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dk-lic:first-of-type { border-top: 1px solid var(--ink); }
.dk-lic .thumb { aspect-ratio: 3 / 2; background: var(--panel); display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; }
.dk-lic .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dk-lic h3 { margin: 0; font-size: 20px; }
.dk-lic dl { margin: 10px 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.dk-lic dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.dk-lic dd { margin: 0; }
.dk-lic .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dk-lic .actions a, .dk-lic .actions summary { min-height: 36px; font-size: 14px; }
.dikas-upgrade { margin-top: 12px; }
.dikas-upgrade summary { display: inline-flex; align-items: center; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.dikas-upgrade[open] form, .dikas-upgrade[open] .dikas-upgrade-body { margin-top: 12px; padding: 16px; background: var(--panel); border-radius: var(--r); }
@media (max-width: 560px) { .dk-lic { grid-template-columns: 1fr; } }
.dikas-upgrade summary { list-style: none; }
.dikas-upgrade summary::-webkit-details-marker { display: none; }
.dikas-upgrade label { display: block; margin: 6px 0; font-size: 14px; }
.dikas-upgrade form p { margin: 0 0 8px; font-size: 14px; color: var(--body); }
.dikas-free__msg { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--ok); font-size: 14px; }
.dikas-free__msg--err { background: var(--err); }
.dikas-free form > p { margin: 0 0 12px; }
.dikas-free form label { display: block; }
.dikas-free form input[type=text], .dikas-free form input[type=email] { width: 100%; margin-top: 4px; }
.dikas-free > p { margin: 0; font-size: 14px; color: var(--body); }
.dikas-news-optin { margin: 12px 0 0; font-size: 14px; }
.woocommerce-account .woocommerce-MyAccount-content h2 { font-size: 28px; }
.woocommerce-account .entry-title, .woocommerce-account .wc-page > h1 { margin-bottom: 32px; }

@media (max-width: 700px) {
	.product-top .about { padding: 28px 0; }
	.buy { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
	.tester-bar input[type=text] { flex-basis: 100%; }
	.t-ctrl .cases { margin-left: 0; }
}

/* WooCommerce "alt" buttons (checkout, place order) were purple by default. */
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.dikas-free button, .dikas-free button:hover { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { background: #fff !important; color: var(--muted) !important; border-color: var(--line) !important; opacity: 1; }

/* Country / province dropdowns */
.woocommerce form .form-row .select2-container .select2-selection--single { height: 44px; border: 1px solid var(--ink); border-radius: var(--r); }
.woocommerce form .form-row .select2-container .select2-selection__rendered { line-height: 42px; padding-left: 12px; padding-right: 32px; color: var(--ink); }
.woocommerce form .form-row .select2-container .select2-selection__arrow { height: 42px; right: 8px; }

/* Cart: coupon and update in one row */
.woocommerce-cart table.cart td.actions { padding-top: 16px; }
.woocommerce-cart table.cart td.actions .coupon { display: flex; gap: 8px; float: left; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 220px; min-height: 44px; }
.woocommerce-cart table.cart td.actions > .button { float: right; }
@media (max-width: 700px) {
	.woocommerce-cart table.cart td.actions .coupon, .woocommerce-cart table.cart td.actions > .button { float: none; width: 100%; }
	.woocommerce-cart table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
}

/* My Account: menu left, content right, anything else full width. */
.woocommerce-account .woocommerce > * { grid-column: 1 / -1; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation { grid-column: 1; }
.woocommerce-account .woocommerce > .woocommerce-MyAccount-content { grid-column: 2; min-width: 0; }
.woocommerce-account .woocommerce > p:empty { display: none; }
@media (max-width: 760px) {
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation,
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-content { grid-column: 1; }
}
.woocommerce-MyAccount-content .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.woocommerce-MyAccount-content .woocommerce-Addresses .col-1, .woocommerce-MyAccount-content .woocommerce-Addresses .col-2 { float: none; width: auto; }
.woocommerce-MyAccount-content .woocommerce-Address-title h2 { font-size: 20px; }
.woocommerce-MyAccount-content address { font-style: normal; }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 24px 0; }
.woocommerce-EditAccountForm .form-row { margin: 0 0 16px; }
.woocommerce-EditAccountForm em { font-size: 13px; color: var(--muted); }

/* Tester sample menu */
.dk-sample select { min-height: 32px; max-width: 260px; padding: 0 28px 0 10px; border: 1px solid var(--ink); border-radius: var(--r); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font-size: 13px; cursor: pointer; text-overflow: ellipsis; }
.woocommerce-orders-table__cell-order-actions .button { margin: 0 6px 6px 0; min-height: 38px; }
.woocommerce-orders-table__cell-order-actions .button + .button { background: #fff; color: var(--ink) !important; }
