/*
Theme Name: OSDBstore
Theme URI: https://example.com/osdbstore
Author: OSDBstore
Description: Marketing site theme for OSDBstore. A warm light canvas with deep slate sections. Every page is an Elementor page that loads pre-filled, with labelled placeholders for screenshots and video.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osdbstore
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, translation-ready
*/

/* ------------------------------------------------------------- tokens */
:root {
  /* The six brand colours below are what Appearance, Customize, Colors changes. Everything else is derived. */
  --bg: #EEEDE9;
  --bg-2: #F7F6F2;
  --ink: #0B2026;
  --ink-2: #44575D;
  --hot: #D63E24;
  --navy: #0E252C;
  --cold: #3F7F94;

  --card: color-mix(in srgb, var(--bg-2) 55%, white);
  --line: color-mix(in srgb, var(--bg) 80%, var(--ink));
  --hot-hover: color-mix(in srgb, var(--hot) 82%, black);
  --eyebrow: color-mix(in srgb, var(--hot) 84%, black);
  --eyebrow-dark: color-mix(in srgb, var(--hot) 68%, white);
  --on-dark: #F3F1EC;
  --on-dark-muted: #A9B9BD;
  --navy-2: color-mix(in srgb, var(--navy) 88%, white);
  --navy-line: color-mix(in srgb, var(--navy) 78%, white);
  --navy-deep: color-mix(in srgb, var(--navy) 62%, black);
  --ph-bg: color-mix(in srgb, var(--bg) 94%, var(--ink));
  --ph-ink: var(--ink-2);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

/* ------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

/* ------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.bar { display: flex; align-items: center; gap: 36px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .word { font-size: 1.25rem; font-weight: 500; letter-spacing: -.03em; }
.brand .word b { font-weight: 700; }
.brand img { max-height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; flex: 1; gap: 32px; }
.site-nav .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex: 1; }
.site-nav .menu a { display: block; padding: 10px 12px; font-size: .95rem; font-weight: 500; text-decoration: none; border-radius: 6px; }
.site-nav .menu a:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.site-nav .menu li { position: relative; }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; margin: 0; padding: 8px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(11, 32, 38, .4); }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .link { font-size: .95rem; font-weight: 500; text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 12px 10px; }
.nav-toggle i { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav .menu { flex-direction: column; }
  .site-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; background: none; padding: 0 0 0 14px; }
  .nav-cta { justify-content: space-between; padding-top: 8px; }
}

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .8em 1.5em; border: 1px solid var(--hot); border-radius: 6px; background: var(--hot); color: #fff; font: 500 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hot-hover); border-color: var(--hot-hover); color: #fff; }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-ghost, .btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover, .btn-ghost-dark:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.dark .btn-ghost:hover { color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }
.arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--hot); padding-bottom: 2px; }
.arrow::after { content: " \2192"; }

/* ------------------------------------------------------------- sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-2); }
.dark { --ink: var(--on-dark); --ink-2: var(--on-dark-muted); --line: var(--navy-line); --card: var(--navy-2); --eyebrow: var(--eyebrow-dark); background: var(--navy); color: var(--ink); }
.sec-head { max-width: 740px; margin-bottom: 52px; }
.sec-head p, .section p { color: var(--ink-2); }
.section h2 + p { font-size: 1.12rem; }
.eyebrow { margin: 0 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow) !important; }
.lede { max-width: 640px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); }

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 24px; }
.hero-frame { margin-top: clamp(40px, 5vw, 64px); }
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(8px, 2vw, 24px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 20ch; }

.built { border-block: 1px solid var(--line); padding: 28px 0; }
.built .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 44px; }
.built .eyebrow { margin: 0; }
.built-list { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 0; padding: 0; list-style: none; }
.built-list li { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink-2); }

.grid { display: grid; gap: 20px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g3 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card .ico { color: var(--hot); margin-bottom: 18px; }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: 1rem; }
.post img { width: 100%; height: auto; border-radius: 6px; margin-bottom: 16px; }
.post h3 a { text-decoration: none; }
.post .meta { font-size: .85rem; margin-bottom: 8px; }
.pager { margin-top: 40px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } .split.rev > :first-child { order: 0; } }

.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: inherit; font-size: 1rem; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 13px; height: 7px; border-left: 2.5px solid var(--hot); border-bottom: 2.5px solid var(--hot); transform: rotate(-45deg); }
.dark .ticks li::before { border-color: var(--eyebrow-dark); }

.stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 28px 0 8px; }
.stats b { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; }
.stats span { display: block; max-width: 180px; margin-top: 8px; font-size: .9rem; color: var(--ink-2); line-height: 1.35; }

.diagram { margin: 0; color: var(--ink); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-2); text-align: center; }

/* ------------------------------------------------------------- media */
.browser { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 12px; overflow: hidden; box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--navy) 55%, transparent); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--navy); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy-line); }
.browser-bar span { margin-left: 12px; font: 500 .72rem var(--mono); color: #86A0A7; }
.media { position: relative; background: var(--ph-bg); }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media .embed, .media .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--ph-ink); background:
  repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--ink) 4%, transparent) 14px 15px), var(--ph-bg); }
.ph::before { content: ""; position: absolute; inset: 14px; border: 1.5px dashed color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 8px; pointer-events: none; }
.ph svg { opacity: .7; }
.ph strong { font-size: 1rem; color: var(--ink); max-width: 32ch; line-height: 1.25; letter-spacing: -.01em; }
.ph span { font: 500 .78rem var(--mono); }
.ph a { position: relative; margin-top: 4px; font-size: .85rem; font-weight: 700; color: var(--eyebrow); }

/* ------------------------------------------------------------- tabs */
.tablist { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tablist button { flex: none; padding: 14px 20px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font: 500 1rem var(--font); cursor: pointer; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--hot); font-weight: 700; }
.panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: 44px; }
.panel[hidden] { display: none; }
@media (max-width: 900px) { .panel { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------- code */
.code { background: var(--navy-deep); border: 1px solid var(--navy-line); border-radius: var(--radius); overflow: hidden; color: #D7E3E6; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--navy); font: 500 .75rem var(--mono); color: #86A0A7; }
.code-bar button { border: 1px solid var(--navy-line); background: none; color: #C9D8DB; border-radius: 5px; padding: 4px 10px; font: inherit; cursor: pointer; }
.code-bar button:hover { background: var(--navy-2); }
.code pre { margin: 0; padding: 22px; overflow-x: auto; font-size: .84rem; line-height: 1.7; }
.code .c { color: #7F9AA1; }

/* ------------------------------------------------------------- pricing / faq */
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.plan.featured { border: 2px solid var(--hot); }
.plan .price { margin: 10px 0 0; font-size: 2.2rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.plan .sub { margin: 0 0 18px; font-size: .9rem; }
.plan .ticks { margin-bottom: 28px; flex: 1; align-content: start; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--hot); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 12px 0 0; }

/* ------------------------------------------------------------- prose */
.prose { font-size: 1.1rem; }
.prose h2, .prose h3 { margin-top: 1.8em; }
.prose img { height: auto; border-radius: 8px; }
.prose a { color: var(--eyebrow); }
.prose pre { background: var(--navy-deep); color: #D7E3E6; padding: 18px; border-radius: 8px; overflow-x: auto; }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--hot); color: var(--ink-2); }

/* ------------------------------------------------------------- CTA band */
.cta h2, .cta p { max-width: 640px; }
.center.cta h2, .cta .center p { margin-inline: auto; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--navy-deep); color: #EAE8E2; padding: 72px 0 32px; border-top: 1px solid var(--navy-line); }
.site-footer a { color: #C9D6D9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(var(--cols, 3), 1fr); gap: 40px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-brand p { max-width: 36ch; margin-top: 16px; color: #A9B9BD; font-size: .95rem; }
.site-footer h4 { color: #8FA6AC; margin-bottom: 14px; }
.site-footer ul, .site-footer .foot-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line); font-size: .85rem; color: #8FA6AC; }
.foot-base .fine { max-width: 70ch; }

/* ------------------------------------------------------------- Elementor page */
.osdb-canvas { display: block; }
body[class*="elementor-kit-"] {
  --e-global-color-primary: var(--ink);
  --e-global-color-secondary: var(--ink-2);
  --e-global-color-text: var(--ink);
  --e-global-color-accent: var(--hot);
  --e-global-typography-primary-font-family: "DM Sans";
  --e-global-typography-secondary-font-family: "DM Sans";
  --e-global-typography-text-font-family: "DM Sans";
  --e-global-typography-accent-font-family: "DM Sans";
}
.osdb-canvas .elementor-widget-heading .elementor-heading-title { letter-spacing: -.025em; }
.osdb-canvas .elementor-button { border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
