/* Apakšlapu papildstili. Tiek ielādēti pēc styles.css tikai apakšlapās,
   tāpēc sākumlapa no tiem nemainās. */

/* Lapas augša */
.page-hero { padding: 56px 0 72px; border-bottom: 1px solid var(--line); background: radial-gradient(1200px 400px at 85% 0%, rgba(0, 148, 224, 0.10), transparent 60%); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); text-decoration: none; margin-bottom: 32px; min-height: 44px; }
.back:hover { color: var(--ink); }
.page-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.page-hero-text { flex: 1 1 440px; min-width: 0; }
.page-hero-text h1 { font-family: var(--display); font-size: 52px; line-height: 1.05; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 20px; }
.page-hero-text .lead { max-width: 560px; margin-bottom: 32px; }
.page-hero-text .cta-row { justify-content: flex-start; }
.page-hero-visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.page-hero.is-simple { padding-bottom: 56px; }
.page-hero.is-simple .page-hero-text h1 { font-size: 46px; }

/* Piemēra kartīte (vizuālais paraugs augšā) */
.mock { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; position: relative; }
.mock-tag { position: absolute; top: -11px; right: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; background: var(--accent); color: var(--on-accent); padding: 4px 10px; border-radius: 99px; }
.mock-bar { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 10px 16px; font-size: 14px; color: var(--soft); margin-bottom: 18px; }
.mock-bar::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--dim); border-radius: 50%; flex: none; }
.mock-title { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--dim); margin-bottom: 14px; }
.mock-result { border-radius: 14px; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.mock-result + .mock-result { margin-top: 10px; }
.mock-result.is-hl { border-color: var(--accent); background: var(--active-card); }
.mock-small { font-size: 12px; color: var(--dim); }
.mock-small b { color: var(--soft); font-weight: 600; }
.mock-head { font-size: 17px; font-weight: 600; color: #6cc4ff; margin: 4px 0; }
.mock-result:not(.is-hl) .mock-head { color: var(--soft); }
.mock-text { font-size: 14px; color: var(--muted); }
.mock-actions { display: flex; gap: 8px; margin-top: 12px; }
.mock-actions span { font-size: 13px; border: 1px solid var(--ctrl); border-radius: 99px; padding: 5px 12px; color: var(--soft); }
.mock-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.mock-lines i { display: block; height: 8px; border-radius: 99px; background: var(--line); }
.mock-lines i:nth-child(2) { width: 75%; }
.mock-lines i:nth-child(3) { width: 55%; }
.mock-media { aspect-ratio: 4 / 3; border-radius: 12px; background: repeating-linear-gradient(135deg, var(--stripe-a) 0 18px, var(--stripe-b) 18px 36px); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 14px; margin: 12px 0; text-align: center; padding: 12px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-row + .mock-row { margin-top: 10px; }
.mock-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--active-card); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.mock-who { display: flex; align-items: center; gap: 10px; }
.mock-who strong { display: block; font-size: 15px; }
.mock-notice { margin-top: 14px; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(76, 195, 138, 0.10); border: 1px solid rgba(76, 195, 138, 0.35); }
.mock-notice::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #4cc38a; flex: none; }
.mock-notice strong { display: block; font-size: 14px; }
.mock-notice span { font-size: 13px; color: var(--muted); }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; margin-top: 8px; }
.bubble.me { margin-left: auto; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--bg); border: 1px solid var(--line); color: var(--soft); border-bottom-left-radius: 4px; }
.mock-input { margin-top: 12px; border: 1px solid var(--ctrl); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--dim); }
.mock-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mock-product { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; }
.mock-product .mock-media { aspect-ratio: 1; margin: 0 0 8px; font-size: 0; }
.mock-product b { display: block; color: var(--ink); font-weight: 600; }
.mock-product span { color: var(--accent); font-weight: 600; }
.mock-label { background: #f4f2ee; color: #16181b; border-radius: 12px; padding: 18px; font-size: 13px; line-height: 1.45; }
.mock-label .lab-k { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #6b6a66; }
.mock-label .lab-big { font-weight: 700; font-size: 15px; }
.mock-label .lab-row { display: flex; justify-content: space-between; border-top: 2px dashed #c9c6bf; margin-top: 12px; padding-top: 12px; font-weight: 600; }
.mock-barcode { height: 40px; margin-top: 12px; background: repeating-linear-gradient(90deg, #16181b 0 2px, transparent 2px 4px, #16181b 4px 7px, transparent 7px 9px); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; font-size: 11px; text-align: center; }
.cal b { color: var(--dim); font-weight: 600; padding-bottom: 4px; }
.cal span { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 2px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; }
.cal span.r { border-color: var(--accent); color: var(--accent); }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.flow li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.flow li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex: none; }
.flow strong { display: block; font-size: 15px; }
.flow span { font-size: 13px; color: var(--muted); }
.stars { color: #f5b400; letter-spacing: 2px; font-size: 18px; }

/* Satura sekcijas */
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.feat h3 { font-family: var(--display); font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 16px; }
.feat ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--soft); }
.feat ul li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.feat-n { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--accent); margin-bottom: 14px; display: block; }

.pipeline { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; align-items: center; }
.pipeline span { background: var(--active-card); color: var(--accent); border: 1px solid rgba(0, 148, 224, 0.35); border-radius: 99px; padding: 8px 16px; font-size: 15px; font-weight: 600; }
.pipeline i { color: var(--dim); font-style: normal; }
.pipeline-label { width: 100%; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 600; }

.note { margin-top: 28px; padding: 18px 22px; border-radius: 14px; border: 1px dashed var(--ctrl); color: var(--muted); font-size: 16px; }

.prose-layout { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.prose-intro { flex: 1 1 420px; min-width: 0; }
.prose-intro h2 { margin-bottom: 20px; }
.prose-intro p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.prose-intro p + p { margin-top: 14px; }
.prose-intro .read-more { margin-top: 24px; display: inline-flex; color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; align-items: center; }
.prose-intro .read-more:hover { text-decoration: underline; }
.prose-blocks { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.prose-block { border-left: 2px solid var(--accent); padding: 4px 0 4px 20px; }
.prose-block h3 { font-family: var(--display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.prose-block p { color: var(--muted); font-size: 16px; }

/* Portfolio */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.work .shot { margin-bottom: 4px; }
.work-top { display: flex; align-items: baseline; gap: 12px; }
.work-n { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 14px; }
.work h3 { font-family: var(--display); font-size: 22px; font-weight: 600; }
.work p { color: var(--muted); font-size: 15px; flex: 1; }
.work a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.work a:hover { text-decoration: underline; }

/* Cenu kartītes */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.is-pick { border-color: var(--accent); background: var(--active-card); }
.plan-flag { position: absolute; top: -12px; left: 24px; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--on-accent); padding: 4px 12px; border-radius: 99px; }
.plan-k { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.plan h3 { font-family: var(--display); font-size: 24px; font-weight: 600; }
.plan > p:not(.plan-k) { color: var(--muted); font-size: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--soft); flex: 1; }
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.plan .btn { align-self: flex-start; }

/* NFC kartiņu katalogs */
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin: 56px 0 28px; }
.cat-head:first-child { margin-top: 0; }
.cat-head h3 { font-family: var(--display); font-size: 30px; font-weight: 600; }
.cat-head p { color: var(--muted); max-width: 520px; font-size: 16px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.product .shot { aspect-ratio: 4 / 3; }
.product-k { display: flex; gap: 8px; flex-wrap: wrap; }
.product-k span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 99px; background: var(--pill); color: var(--soft); }
.product-k span:first-child { background: var(--active-card); color: var(--accent); }
.product h4 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; }
.product > p:not(.product-price) { color: var(--muted); font-size: 15px; }
.product ol { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product ol li { counter-increment: p; font-size: 13px; color: var(--muted); line-height: 1.4; }
.product ol li::before { content: counter(p); display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--active-card); color: var(--accent); font-size: 11px; font-weight: 700; align-items: center; justify-content: center; margin-right: 6px; }
.product ol li b { color: var(--ink); font-weight: 600; display: block; margin-top: 4px; }
.product-price { font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); padding-top: 12px; }

/* Kartiņu pasūtījuma forma */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--ctrl); border-radius: 12px; overflow: hidden; align-self: flex-start; }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper button:hover { background: var(--active-card); }
.stepper input { width: 72px; text-align: center; border: 0; border-left: 1px solid var(--ctrl); border-right: 1px solid var(--ctrl); background: var(--bg); color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; min-height: 48px; }
.pay-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.pay-opt { position: relative; display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-box { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--ctrl); border-radius: 14px; padding: 16px; height: 100%; text-transform: none; letter-spacing: 0; font-weight: 400; }
.pay-opt input:checked + .pay-box { border-color: var(--accent); background: var(--active-card); }
.pay-opt input:focus-visible + .pay-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.pay-box strong { font-size: 16px; color: var(--ink); }
.pay-box em { font-style: normal; font-size: 15px; color: var(--accent); font-weight: 600; }
.pay-box small { font-size: 13px; color: var(--muted); }
.pay-box small.no { color: var(--dim); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.total-row b { font-family: var(--display); font-size: 36px; color: var(--accent); }

/* Pieteikuma paneļa saraksts */
.perks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: 16px; color: var(--soft); }
.perks li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.field select { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--ctrl); border-radius: 10px; padding: 13px 14px; width: 100%; min-height: 48px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.field input[readonly] { color: var(--soft); background: var(--card); }
.legal a, .form-note a { color: var(--accent); }

/* Komanda (par mums) */
.founders { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.founder { flex: 0 1 calc((100% - 40px) / 3); min-width: min(260px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.founder h3 { font-family: var(--display); font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.founder .role { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.founder p:not(.role) { color: var(--muted); font-size: 16px; }
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }

/* Raksti */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color 0.25s, transform 0.25s; }
.post:hover { border-color: var(--ctrl); transform: translateY(-2px); }
.post-k { font-size: 13px; color: var(--dim); }
.post h3 { font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.25; }
.post p { color: var(--muted); font-size: 15px; flex: 1; }
.post .more { color: var(--accent); font-weight: 600; font-size: 15px; }

/* Raksta lapa */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 30px; margin: 44px 0 14px; }
.article h3 { font-family: var(--display); font-size: 22px; font-weight: 600; margin: 28px 0 10px; }
.article p, .article li { color: var(--soft); font-size: 18px; line-height: 1.7; }
.article p + p { margin-top: 16px; }
.article ul, .article ol { padding-left: 22px; margin: 14px 0; }
.article li + li { margin-top: 6px; }
.article a { color: var(--accent); }
.article-meta { font-size: 14px; color: var(--dim); }
.article-cta { margin-top: 48px; }

/* Tests */
.quiz { max-width: 760px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.quiz-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
.quiz-count { font-size: 14px; color: var(--dim); margin-bottom: 20px; }
.quiz h2 { font-size: 30px; margin-bottom: 24px; }
.quiz h2:focus { outline: none; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opts button { text-align: left; font-size: 17px; padding: 16px 20px; min-height: 56px; border-radius: 14px; border: 1px solid var(--ctrl); background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.quiz-opts button:hover { border-color: var(--accent); }
.quiz-opts button.is-on { border-color: var(--accent); background: var(--active-card); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.btn-plain { background: transparent; color: var(--soft); border: 1px solid var(--ctrl); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.quiz-result .score { font-family: var(--display); font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.quiz-result p { color: var(--muted); }
.quiz-result ul { color: var(--soft); margin: 16px 0 24px; padding-left: 20px; }
.quiz-result li + li { margin-top: 6px; }

/* Rekvizīti */
.req { max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.req dl { margin: 0; display: flex; flex-direction: column; }
.req dl div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.req dl div:last-child { border-bottom: 0; }
.req dt { flex: 0 0 200px; color: var(--dim); font-size: 15px; }
.req dd { margin: 0; flex: 1 1 240px; min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.req a { color: var(--accent); }

/* CTA josla lapas beigās */
.cta-band { background: var(--active-card); border: 1px solid rgba(0, 148, 224, 0.35); border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: 32px; }
.cta-band p { color: var(--muted); margin-top: 8px; }

/* Kājene ar saitēm */
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.foot-grid h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.foot-grid a { color: var(--faint); text-decoration: none; font-size: 15px; display: inline-block; padding: 4px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-grid .foot-brand img { height: 44px; width: auto; display: block; margin-bottom: 12px; }
.foot-grid .foot-brand p { font-size: 15px; color: var(--dim); max-width: 280px; }

.doc .doc-meta { color: var(--dim); font-size: 14px; margin-bottom: 28px; }

@media (max-width: 760px) {
  .page-hero { padding: 32px 0 56px; }
  .page-hero-text h1, .page-hero.is-simple .page-hero-text h1 { font-size: 38px; }
  .quiz { padding: 24px; }
  .quiz h2 { font-size: 24px; }
  .cta-band { padding: 28px; }
  .req { padding: 20px; }
  .mock-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-products .mock-product:nth-child(3) { display: none; }
}
