/* Northcode CMS — shared widget styles (public pages + editor preview) */
.nc-heading { line-height: 1.15; margin: 0 0 0.4em; }
.nc-heading--sm { font-size: 1.25rem; }
.nc-heading--md { font-size: 1.75rem; }
.nc-heading--lg { font-size: 2.5rem; }
.nc-heading--xl { font-size: 3.25rem; }
@media (max-width: 640px) {
  .nc-heading--lg { font-size: 1.9rem; }
  .nc-heading--xl { font-size: 2.3rem; }
}

.nc-text { font-size: 1rem; line-height: 1.7; }
.nc-text p { margin: 0 0 1em; }
.nc-text ul, .nc-text ol { margin: 0 0 1em; padding-left: 1.4em; }
.nc-text a { text-decoration: underline; }

.nc-image { margin: 0; }
.nc-image img { display: inline-block; max-width: 100%; height: auto; }

.nc-button-wrap { margin: 0.25em 0; }
.nc-button {
  --nc-accent: var(--nc-brand, #39FFC4);
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.7em 1.4em; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--nc-accent); color: var(--nc-accent); text-decoration: none;
  transition: background .2s, color .2s;
}
.nc-button--solid { background: var(--nc-accent); color: #04110B; }
.nc-button--solid:hover { filter: brightness(1.08); }
.nc-button--outline:hover { background: var(--nc-accent); color: #04110B; }
.nc-button--ghost { border-color: transparent; background: transparent; }

.nc-spacer { width: 100%; }

.nc-divider-wrap { display: flex; justify-content: center; padding: 0.5em 0; }
.nc-divider { display: block; border-left: 0; border-right: 0; border-bottom: 0; }

.nc-columns { display: grid; grid-template-columns: repeat(2, 1fr); }
.nc-columns[data-type="columns"]:has(> .nc-col:nth-child(2):empty) { grid-template-columns: 1fr; }
@media (max-width: 700px) {
  .nc-columns { grid-template-columns: 1fr !important; }
}

.nc-list { list-style: none; padding: 0; margin: 0; }
.nc-list-item { display: flex; gap: 0.6em; align-items: flex-start; padding: 0.35em 0; }
.nc-list-icon { color: var(--nc-brand, #39FFC4); flex-shrink: 0; }

.nc-html > *:first-child { margin-top: 0; }
.nc-html > *:last-child { margin-bottom: 0; }
.nc-html img { max-width: 100%; }

.nc-video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.nc-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }

.nc-icon-box { --nc-accent: var(--nc-brand, #39FFC4); }
.nc-icon-box-icon { font-size: 2.4rem; line-height: 1; color: var(--nc-accent); margin-bottom: 0.6em; }
.nc-icon-box-title { font-size: 1.25rem; margin: 0 0 0.4em; }
.nc-icon-box-text { margin: 0; line-height: 1.6; }

.nc-feature-card { border: 1px solid var(--nc-line, rgba(128,128,128,.25)); border-radius: 16px; padding: 1.5em; display: flex; flex-direction: column; gap: 0.6em; background: var(--nc-panel, transparent); }
.nc-feature-card-img { width: 100%; height: auto; border-radius: 10px; }
.nc-feature-card-title { margin: 0; font-size: 1.2rem; }
.nc-feature-card-text { margin: 0; line-height: 1.6; }
.nc-feature-card-link { color: var(--nc-brand, #39FFC4); text-decoration: none; font-weight: 600; }
.nc-feature-card-link:hover { text-decoration: underline; }

.nc-slider { position: relative; overflow: hidden; border-radius: 16px; }
.nc-slider-track { display: flex; scroll-snap-type: x mandatory; overflow-x: auto; scrollbar-width: none; }
.nc-slider-track::-webkit-scrollbar { display: none; }
.nc-slide { flex: 0 0 100%; scroll-snap-align: start; padding: 1.5em; box-sizing: border-box; }
.nc-slide-img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 10px; }
.nc-slide-title { margin: 0 0 0.4em; }
.nc-slide-text { margin: 0 0 1em; line-height: 1.6; }
.nc-slider-prev, .nc-slider-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1.3rem; line-height: 1;
}
.nc-slider-prev { left: 12px; }
.nc-slider-next { right: 12px; }

.nc-pricing { border: 1px solid var(--nc-line, rgba(128,128,128,.25)); border-radius: 16px; padding: 1.6em; display: flex; flex-direction: column; gap: 0.8em; }
.nc-pricing--featured { border-color: var(--nc-brand, #39FFC4); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }
.nc-pricing-name { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; opacity: .75; }
.nc-pricing-price { display: flex; align-items: baseline; gap: .3em; }
.nc-pricing-amount { font-size: 2.4rem; font-weight: 700; }
.nc-pricing-period { opacity: .65; font-size: .95rem; }
.nc-pricing-features { list-style: none; padding: 0; margin: 0; }
.nc-pricing-features li { padding: .35em 0; border-top: 1px solid var(--nc-line, rgba(128,128,128,.15)); }

.nc-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.nc-tabs-nav { display: flex; gap: .5em; flex-wrap: wrap; margin-bottom: 1.2em; }
.nc-tab-label { padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--nc-line, rgba(128,128,128,.3)); cursor: pointer; font-weight: 600; font-size: .92rem; }
.nc-tab-panel { display: none; line-height: 1.7; }
.nc-tabs input:checked + .nc-tabs-nav .nc-tab-label { background: var(--nc-brand, #39FFC4); color: #04110B; border-color: var(--nc-brand, #39FFC4); }
.nc-tabs input:nth-of-type(1):checked ~ #nc-panel-1,
.nc-tabs input:nth-of-type(2):checked ~ #nc-panel-2,
.nc-tabs input:nth-of-type(3):checked ~ #nc-panel-3,
.nc-tabs input:nth-of-type(4):checked ~ #nc-panel-4,
.nc-tabs input:nth-of-type(5):checked ~ #nc-panel-5,
.nc-tabs input:nth-of-type(6):checked ~ #nc-panel-6,
.nc-tabs input:nth-of-type(7):checked ~ #nc-panel-7,
.nc-tabs input:nth-of-type(8):checked ~ #nc-panel-8 { display: block; }
.nc-tabs input:checked ~ .nc-tabs-nav { /* ensure label highlight via nth-of-type sibling */ }
.nc-tabs input:nth-of-type(1):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(1),
.nc-tabs input:nth-of-type(2):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(2),
.nc-tabs input:nth-of-type(3):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(3),
.nc-tabs input:nth-of-type(4):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(4),
.nc-tabs input:nth-of-type(5):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(5),
.nc-tabs input:nth-of-type(6):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(6),
.nc-tabs input:nth-of-type(7):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(7),
.nc-tabs input:nth-of-type(8):checked ~ .nc-tabs-nav .nc-tab-label:nth-of-type(8) { background: var(--nc-brand, #39FFC4); color: #04110B; border-color: var(--nc-brand, #39FFC4); }

.nc-accordion-item { border: 1px solid var(--nc-line, rgba(128,128,128,.25)); border-radius: 12px; margin-bottom: .6em; overflow: hidden; }
.nc-accordion-title { padding: .9em 1.1em; cursor: pointer; font-weight: 600; list-style: none; }
.nc-accordion-title::-webkit-details-marker { display: none; }
.nc-accordion-content { padding: 0 1.1em 1.1em; line-height: 1.7; }

.nc-cf-form { display: flex; flex-direction: column; gap: 1em; }
.nc-cf-row { display: flex; flex-direction: column; gap: .4em; }
.nc-cf-row label { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }
.nc-cf-row input, .nc-cf-row textarea {
  background: var(--nc-panel, rgba(128,128,128,.08)); border: 1px solid var(--nc-line, rgba(128,128,128,.3));
  border-radius: 10px; padding: .8em 1em; color: inherit; font-family: inherit; font-size: .95rem; width: 100%;
}
.nc-cf-row input:focus, .nc-cf-row textarea:focus { outline: 2px solid var(--nc-brand, #39FFC4); outline-offset: 1px; }
.nc-cf-description { margin: 0 0 1em; opacity: .8; }
