/* SamiX Softwares - site styles
   Palette borrowed from the NoFeedback plugin UI so site and product read as one brand. */
:root {
  --paper:   #eef1f6;   /* reading pages */
  --surface: #ffffff;
  --ink:     #1f2633;
  --ink-soft:#586277;
  --line:    #d4dae5;
  --console: #1b2230;   /* hero / display areas, the plugin's background */
  --console-2:#252e3f;
  --accent:  #5566c9;   /* plugin slider periwinkle, darkened for contrast on paper */
  --accent-deep: #3f4fae;
  --accent-soft: #8c9ceb;
  --peak:    #d9942b;   /* ONLY for feedback peaks */
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
       line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--surface); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }

/* ---------- type scale (1.25) ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- header ---------- */
.site-head { background: var(--console); color: #e6eaf2; }
.site-head .wrap { display: flex; align-items: center; gap: 2rem; min-height: 64px; }
.brand { display: flex; align-items: baseline; gap: .45rem; color: #fff; text-decoration: none;
         font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.brand span { color: var(--accent-soft); font-weight: 500; }
.brand:hover { color: #fff; }
.nav { margin-left: auto; display: flex; gap: .25rem; }
.nav a { color: #c9d0dd; text-decoration: none; padding: .45rem .8rem; border-radius: 6px; font-weight: 500; }
.nav a:hover { color: #fff; background: var(--console-2); }
.nav a[aria-current="page"] { color: #fff; background: #333d52; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid #4a5570; color: #e6eaf2;
              border-radius: 6px; padding: .4rem .75rem; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--console);
         flex-direction: column; padding: .5rem 1rem 1rem; z-index: 20; }
  .nav.open { display: flex; }
  .site-head .wrap { position: relative; }
}

/* ---------- hero: the spectrum display (the one bold element) ---------- */
.hero { background: var(--console); color: #e6eaf2; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem;
              align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 4.6rem); margin-bottom: .3em; }
.hero .lead { color: #b9c1d1; font-size: 1.25rem; }
.spectrum { width: 100%; height: auto; display: block; }
.spectrum .grid line { stroke: #2f394d; stroke-width: 1; }
.spectrum .grid text { fill: #7d88a0; font: 17px var(--font); }
.spectrum .before { fill: none; stroke: var(--peak); stroke-width: 2; stroke-linejoin: round; opacity: .9; }
.spectrum .after  { fill: none; stroke: var(--accent-soft); stroke-width: 2.5; stroke-linejoin: round; }
.spectrum .notch  { fill: var(--accent-soft); }
.spectrum .notch-line { stroke: var(--accent-soft); stroke-width: 1; stroke-dasharray: 3 4; opacity: .6; }
.spectrum .legend text { font: 18px var(--font); }
@media (prefers-reduced-motion: no-preference) {
  .spectrum .after { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s .4s ease-out forwards; }
  .spectrum .notch { opacity: 0; animation: pop .3s ease-out forwards; }
  .spectrum .n1 { animation-delay: 1.0s; } .spectrum .n2 { animation-delay: 1.25s; } .spectrum .n3 { animation-delay: 1.5s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop  { to { opacity: 1; } }
}
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-block; font: 600 1rem var(--font); padding: .75rem 1.3rem; border-radius: 6px;
       text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { border-color: #4f5b78; color: #e6eaf2; }
.btn-ghost:hover { border-color: var(--accent-soft); color: #fff; }
.btn-line { border-color: var(--accent); color: var(--accent-deep); background: var(--surface); }
.btn-line:hover { background: #eef0fb; }

/* ---------- sections ---------- */
main section { padding: 3.5rem 0; }
main section + section { border-top: 1px solid var(--line); }
.page-head { padding-top: 3rem; padding-bottom: 1rem; }   /* keep .wrap's side padding */
.crumbs { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-deep); }

/* spec-sheet rows: feature name | explanation */
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 1.5rem;
               padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.specs dd { margin: 0; color: var(--ink-soft); max-width: var(--measure); }
@media (max-width: 620px) { .specs > div { grid-template-columns: 1fr; gap: .25rem; } }

/* products listing */
.category h2 { margin-bottom: 1.25rem; }
.product-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.5rem; align-items: center;
               background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem 1.5rem; }
.product-row .icon { width: 96px; height: 96px; border-radius: 12px; background: var(--console);
                     display: grid; place-items: center; overflow: hidden; }
.product-row h3 { margin-bottom: .2rem; }
.product-row p { margin: 0; color: var(--ink-soft); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.tag { font-size: .85rem; padding: .1rem .55rem; border-radius: 999px; background: #e4e8f3; color: var(--ink-soft); }
@media (max-width: 620px) { .product-row { grid-template-columns: 1fr; } }

/* product page */
.shot { margin: 2rem 0 0; }
.shot img { display: block; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(27,34,48,.18); }
.shot figcaption { color: var(--ink-soft); font-size: .95rem; margin-top: .6rem; }

table.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
                border-radius: 10px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-head); font-size: 1.1rem; background: #f6f7fb; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: none; }
.compare tbody th { font-weight: 600; width: 34%; }
.table-scroll { overflow-x: auto; }

.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem;
      display: flex; flex-direction: column; }
.dl .btn { margin-top: auto; align-self: flex-start; }
.dl.full { border-color: var(--accent); border-width: 2px; }
.dl h3 { margin-bottom: .3rem; }
.dl .file { font-size: .95rem; color: var(--ink-soft); margin: .2rem 0 1rem; word-break: break-all; }
.dl p { color: var(--ink-soft); }
@media (max-width: 720px) { .downloads { grid-template-columns: 1fr; } }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 46rem; }
ol.steps li { counter-increment: step; position: relative; padding: 0 0 1.4rem 3.25rem; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem;
                      border-radius: 50%; background: var(--console); color: #fff; display: grid; place-items: center;
                      font: 600 1.05rem var(--font-head); }
ol.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.3rem; bottom: .2rem;
                                      width: 1px; background: var(--line); }
ol.steps strong { display: block; font-size: 1.05rem; }

.note { background: #e6eaf6; border-left: 4px solid var(--accent); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0;
        max-width: 46rem; }
.note p:last-child { margin: 0; }

details.faq { border-bottom: 1px solid var(--line); max-width: 52rem; }
details.faq:first-of-type { border-top: 1px solid var(--line); }
details.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 600; font-size: 1.05rem;
                      list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.4rem;
                             color: var(--accent); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 0 1rem; color: var(--ink-soft); }

/* two columns for text + aside */
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }

/* contact form */
form.request label { display: block; font-weight: 600; margin: 1rem 0 .3rem; }
form.request .hint { font-weight: 400; color: var(--ink-soft); }
form.request input, form.request select, form.request textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 6px;
  background: var(--surface); color: var(--ink); }
form.request textarea { min-height: 7rem; resize: vertical; }
form.request .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { form.request .row { grid-template-columns: 1fr; } }
form.request .btn { margin-top: 1.5rem; }
.form-status { margin-top: 1rem; color: var(--ink-soft); }

/* dark band (try it) */
.band { background: var(--console); color: #e6eaf2; }
main section.band { border-top: none; }
.band h2 { color: #fff; }
.band p { color: #b9c1d1; }

/* footer */
.site-foot { background: var(--console); color: #9aa3b5; padding: 2.5rem 0; font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-foot a { color: #c9d0dd; }
.site-foot a:hover { color: #fff; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .3rem 0; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid #2f394d; padding-top: 1.25rem; font-size: .85rem; }
@media (max-width: 720px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }
