/* Nitrosoft Office add-ins site — green theme. Original site design. Not derived from nitrosoft.net. */
:root {
  --ink: #14110e;
  --ink-soft: #2c2823;
  --paper: #f3eee6;
  --sheet: #fffcf7;
  --accent: #1fa05a;
  --accent-hover: #137a40;
  --cream: #f7f1e6;
  --muted: #6b655b;
  --line: #e2dbd0;
  --ok: #1c7a4c;
  --danger: #b42318;
  --radius: 14px;
  --wrap: 1120px;
  --nav-h: 72px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 17px;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--accent-hover); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }
.wrap, .container { width: min(var(--wrap), calc(100% - 3rem)); margin: 0 auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  background: var(--ink);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--cream);
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}
.brand:hover { color: #fff; }
.brand img { display: block; width: 120px; height: 38px; flex-shrink: 0; }
.brand-tag {
  display: inline-block;
  max-width: 8.4rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--accent);
  border-left: 1px solid rgba(255,255,255,0.45);
  padding-left: 0.85rem;
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--cream);
  width: 44px; height: 44px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--cream); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--ink);
    padding: 0.5rem 1.5rem 1.1rem;
    gap: 0;
  }
  .nav a { display: block; width: 100%; padding: 0.75rem 0; border-bottom: 1px solid rgba(247,241,230,0.12); }
  #nav-toggle:checked ~ .nav { display: flex; }
  .brand img { width: 100px; height: 32px; }
  .brand { gap: 0.65rem; }
  .brand-tag {
    font-size: 0.92rem;
    max-width: 7.4rem;
    padding-left: 0.7rem;
    letter-spacing: 0.04em;
  }
  .wrap, .container { width: min(var(--wrap), calc(100% - 2rem)); }
}

/* Home hero */
.home-hero {
  display: grid;
  align-items: center;
  min-height: 36rem;
  padding: 5.5rem 0 5rem;
  background-image:
    linear-gradient(90deg, var(--ink) 30%, rgba(20,17,14,0.94) 42%, rgba(20,17,14,0.22) 72%, transparent 100%),
    linear-gradient(180deg, var(--ink), transparent 26%, transparent 83%, rgba(20,17,14,0.52)),
    url("../images/hero/creative-layers.webp");
  background-position: center, center, right center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, clamp(58rem, 76vw, 100rem) auto;
}
.home-hero-kicker {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.home-hero h1 {
  margin: 0 0 1.25rem;
  max-width: 38rem;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.3vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.01;
  text-wrap: balance;
}
.home-hero .lead { max-width: 30rem; margin: 0; color: rgba(247,241,230,0.84); font-size: clamp(1.0625rem, 1.7vw, 1.2rem); }
.home-hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.8rem; }
@media (max-width: 720px) {
  .home-hero {
    align-items: start;
    min-height: auto;
    padding: 3rem 0 clamp(12rem, 45vw, 19rem);
    background-image:
      linear-gradient(180deg, var(--ink) 35%, rgba(20,17,14,0.94) 48%, rgba(20,17,14,0.05) 84%, rgba(20,17,14,0.36)),
      linear-gradient(90deg, rgba(20,17,14,0.60), transparent 68%),
      url("../images/hero/creative-layers.webp");
    background-position: center, center, right bottom;
    background-size: 100% 100%, 100% 100%, max(100%, 31rem) auto;
  }
  .home-hero h1 { max-width: 33rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  font-size: 0.98rem;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.home-hero .btn {
  padding: 0.8rem clamp(1rem, 2vw, 1.25rem);
  min-height: 48px;
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}
.home-hero .btn:is(:hover, :focus-visible) {
  background: var(--accent);
  border-color: var(--accent);
}
.home-hero .btn-ghost { background: transparent; color: var(--cream); }
.home-hero .btn-ghost:is(:hover, :focus-visible) {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.home-hero .btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 4px; }
.btn.is-disabled, .btn[aria-disabled="true"] {
  background: #b9b3aa;
  border-color: #b9b3aa;
  color: #fff;
  pointer-events: none;
  cursor: not-allowed;
}
button[disabled] { opacity: .65; cursor: progress; }

main { flex: 1; }
.section { padding: 4rem 0 4.5rem; }
.section-hd { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.section-hd h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0;
}
.section-hd p { margin: 0; color: var(--muted); }

/* Plugin catalog — icon tile, name, description, app tags, divider, icon+label links */
#plugins, #how-to-use { scroll-margin-top: calc(var(--nav-h) + 0.75rem); }
.plugin-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.35rem;
}
.plugin-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.35rem 1.15rem;
  box-shadow: 0 6px 22px rgba(20,17,14,0.04);
  transition: transform .2s ease, border-color .2s ease;
}
.plugin-card:hover { transform: translateY(-2px); border-color: rgba(31,160,90,0.35); }
.plugin-card--upcoming:hover { transform: none; border-color: var(--line); }
.plugin-card--upcoming .plugin-desc { flex: none; }
.plugin-card--upcoming .plugin-apps { margin-bottom: 0; }
.plugin-status {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.plugin-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1.05rem;
}
.plugin-icon-tile {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  overflow: hidden;
  margin: 0;
  background: var(--ink);
  flex-shrink: 0;
}
.plugin-icon-tile img { display: block; width: 100%; height: 100%; }
.plugin-card .price {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  padding-top: 0.2rem;
  flex-shrink: 0;
}
.plugin-card h2, .plugin-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.plugin-card h2 a, .plugin-card h3 a { color: inherit; text-decoration: none; }
.plugin-card h2 a:hover, .plugin-card h3 a:hover { color: var(--accent-hover); }
.plugin-desc { margin: 0 0 0.85rem; color: var(--muted); flex: 1; font-size: 0.95rem; line-height: 1.65; }
.plugin-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}
.plugin-apps li {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  line-height: 1.35;
}
.plugin-links {
  margin-top: auto;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.05rem;
  width: 100%;
}
.plugin-links a,
.plugin-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  min-height: 36px;
  background: none;
  border: 0;
  padding: 0;
}
.plugin-links a:hover { color: var(--accent-hover); }
.plugin-links .is-disabled,
.plugin-links [aria-disabled="true"] {
  color: #9a948c;
  pointer-events: none;
  cursor: default;
}
.plugin-links svg { width: 16px; height: 16px; flex-shrink: 0; }
.price { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }

/* Product */
.page-hero { padding: 3rem 0 0.5rem; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0.35rem 0 0.7rem;
}
.product-head {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: stretch;
}
.product-head-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.product-head .plugin-icon-tile {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0;
}
.product-head-titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-head h1 { margin: 0; }
.product-head .plugin-apps { margin: 0.4rem 0 0; }
.product-head .lead { margin: 0; color: var(--muted); font-size: 1.15rem; }
.product-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  padding: 2.75rem 0 2.25rem;
  align-items: start;
}
.product-more { padding: 0 0 4.5rem; }
.product-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 2.75rem;
}
.howto-get { margin: 0 0 2rem; color: var(--ink-soft); font-size: 1.05rem; }
.howto-setup { margin: 0 0 2rem; color: var(--ink-soft); }
.howto-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem;
  counter-reset: howto;
}
.howto-steps > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.75rem 2rem;
  align-items: start;
  counter-increment: howto;
}
.howto-copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.howto-copy h3::before {
  content: counter(howto) ". ";
  color: var(--accent);
}
.howto-copy p { margin: 0; color: var(--ink-soft); }
.howto-copy code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
}
.howto-shot { margin: 0; }
.howto-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--sheet);
}
@media (max-width: 1000px) {
  .howto-steps > li { grid-template-columns: 1fr; }
}
.screenshot-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.screenshot-lightbox-trigger:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.screenshot-lightbox-open, .screenshot-lightbox-open body { overflow: hidden; }
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  background: transparent;
}
.screenshot-lightbox[open] {
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
  gap: 0.75rem;
}
.screenshot-lightbox::backdrop { background: rgb(20 17 14 / 88%); }
.screenshot-lightbox-close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.25rem 0.875rem;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--sheet);
  font: inherit;
  cursor: pointer;
}
.screenshot-lightbox-close span { font-size: 1.5rem; line-height: 1; }
.screenshot-lightbox-close:focus-visible {
  outline: 3px solid var(--sheet);
  outline-offset: 4px;
}
.screenshot-lightbox > img {
  place-self: center;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.features { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.features li { padding-left: 1.2rem; position: relative; }
.features li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: var(--accent);
}
.buy-panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}
.buy-panel .price { font-size: 1.8rem; }
.buy-panel .price span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.buy-panel .btn, .buy-panel .btn.is-disabled { width: 100%; text-align: center; margin-top: 1rem; }
.buy-panel .btn + .btn, .buy-panel .btn + a { margin-top: 0.65rem; display: block; text-align: center; }

.prose { padding: 0.25rem 0 4rem; }
.prose h2 { font-size: 1.2rem; margin: 1.8rem 0 0.5rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose .updated { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.95rem; }

/* Support form: PWS Dash structure (support-page, support-grid, support-intro,
   field-row, honeypot, statuses), restyled to this site. Stacks on smaller screens. */
.support-page { padding: 3rem 0 4.5rem; }
.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: start;
}
.support-intro h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  line-height: 1.05;
}
.support-intro p { color: var(--muted); font-size: 19px; margin: 0 0 1rem; }
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.field .hint { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid rgba(31,160,90,0.35); outline-offset: 1px; border-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 20px; padding: 14px 16px; border-radius: 10px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { background: rgba(28,122,76,.1); border: 1px solid var(--ok); color: var(--ok); }
.form-status.is-error { background: rgba(180,35,24,.08); border: 1px solid var(--danger); color: var(--danger); }
.form-status.is-pending { background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 1000px) {
  .support-grid { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
  .product-head { gap: 0.85rem; }
  .product-head-row { gap: 0.85rem; }
  .product-head .plugin-icon-tile { width: 64px; height: 64px; border-radius: 15px; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(247,241,230,0.72);
  padding: 1.8rem 0;
  margin-top: auto;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: center;
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }
.legal { color: rgba(247,241,230,0.45); margin: 0.35rem 0 0; font-size: 0.8rem; }
