*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47059;
  color: #1d1d1f;
  background: #fbfbfd;
  font-weight: 400;
  letter-spacing: -0.022em;
  min-height: 100vh;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #1d1d1f 0%, #515154 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #86868b;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.022em;
}

/* CARD */
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* FORM */
#form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.field-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.016em;
}

/* INPUT BASE — date + text */
input[type="date"],
input[type="text"][name="birthDateText"] {
  font-family: inherit;
  font-size: 1.0625rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #ffffff;
  color: #1d1d1f;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  font-weight: 400;
  letter-spacing: -0.016em;
  width: 100%;
}

input[type="date"]:hover,
input[type="text"][name="birthDateText"]:hover {
  border-color: #86868b;
}

input[type="date"]:focus,
input[type="text"][name="birthDateText"]:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
  font-size: 1.1rem;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* SEGMENTED CONTROL */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  position: relative;
}

.segmented input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented .segment {
  text-align: center;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #424245;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
  user-select: none;
  letter-spacing: -0.016em;
}

.segmented .segment:hover {
  color: #1d1d1f;
}

.segmented input[type="radio"]:checked + .segment {
  background: #ffffff;
  color: #1d1d1f;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.segmented input[type="radio"]:focus-visible + .segment {
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.4);
}

.segmented .segment:active {
  transform: scale(0.98);
}

/* SELECT — Apple style */
.select {
  font-family: inherit;
  font-size: 1.0625rem;
  padding: 0.875rem 2.75rem 0.875rem 1.125rem;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #ffffff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2.5 4.5l3.5 3.5 3.5-3.5' stroke='%23424245' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat right 1rem center;
  background-size: 12px;
  color: #1d1d1f;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  letter-spacing: -0.016em;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.select:hover {
  border-color: #86868b;
}

.select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}

/* LINK BUTTON */
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: 0.875rem;
  color: #0071e3;
  cursor: pointer;
  align-self: flex-start;
  letter-spacing: -0.016em;
  transition: color 0.15s ease;
}

.link-button:hover {
  text-decoration: underline;
}

.link-button.danger {
  color: #d70015;
}

.link-button.danger:hover {
  color: #b3000f;
}

/* SUBMIT */
button[type="submit"] {
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #ffffff;
  background: #0071e3;
  border: 0;
  border-radius: 980px;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.05s ease,
    box-shadow 0.2s ease;
  letter-spacing: -0.016em;
  margin-top: 0.5rem;
}

button[type="submit"]:hover:not(:disabled) {
  background: #0077ed;
}

button[type="submit"]:active:not(:disabled) {
  transform: scale(0.98);
}

button[type="submit"]:disabled {
  background: #b8d6f7;
  cursor: not-allowed;
}

/* STATUS */
.status {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.975rem;
  text-align: center;
  font-weight: 500;
  letter-spacing: -0.016em;
}

.status.loading {
  background: #f0f6ff;
  color: #0058b9;
}

.status.loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  border: 2px solid rgba(0, 88, 185, 0.25);
  border-top-color: #0058b9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -2px;
}

.status.error {
  background: #fef2f2;
  color: #c41818;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* RESULT */
.result {
  margin-top: 1.5rem;
  padding: 2.5rem;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.result-meta {
  font-size: 0.825rem;
  color: #86868b;
  letter-spacing: -0.016em;
}

/* COPY BUTTON */
.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 980px;
  color: #1d1d1f;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  letter-spacing: -0.016em;
}

.copy-button:hover {
  background: #e8e8ed;
}

.copy-button.copied {
  background: #e6f6ec;
  color: #0a7c2e;
}

.copy-button svg {
  flex-shrink: 0;
}

/* MARKDOWN STYLING */
.markdown h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #e5e5e7;
  letter-spacing: -0.022em;
}

.markdown h2:first-child {
  margin-top: 0;
}

.markdown h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 1.5rem 0 0.75rem;
  letter-spacing: -0.018em;
}

.markdown h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.markdown p {
  margin: 0 0 1rem;
  color: #1d1d1f;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.markdown p:last-child {
  margin-bottom: 0;
}

.markdown ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.markdown li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
  color: #1d1d1f;
}

.markdown li::marker {
  color: #86868b;
}

.markdown strong {
  font-weight: 600;
  color: #1d1d1f;
}

.markdown em {
  font-style: italic;
  color: #424245;
}

.markdown hr {
  border: 0;
  border-top: 1px solid #e5e5e7;
  margin: 2rem 0;
}

.markdown .section-image {
  margin: 1.5rem 0 0.75rem;
  text-align: center;
}

.markdown .section-image img {
  max-width: 100%;
  max-height: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Landing blocks (titullapas struktūra) */
.landing-blocks {
  margin: 0;
}

.landing-block-md,
.landing-block-text,
.landing-block-html,
.landing-block-img {
  margin: 0 0 1rem;
}

.landing-block-img {
  text-align: center;
}

.landing-block-img img {
  max-width: 100%;
  max-height: 420px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.landing-block-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #424245;
  text-align: center;
}

.landing-block-caption p {
  margin: 0.3rem 0;
}

.landing-block-text {
  white-space: pre-wrap;
  line-height: 1.55;
  color: #1d1d1f;
}

/* Pirmais markdown bloks ar # heading nesāk ar augšējo atstarpi */
.landing-block-md > :first-child,
.landing-block-text > :first-child,
.landing-block-html > :first-child,
.landing-blocks > :first-child {
  margin-top: 0;
}

/* Iztīrām zem pēdējā bloka */
.landing-blocks > :last-child {
  margin-bottom: 0;
}

/* HISTORY */
.history {
  margin-top: 3rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.history-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.022em;
  color: #1d1d1f;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.history-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.history-item[open] {
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.03);
}

.history-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  user-select: none;
  transition: background 0.15s ease;
}

.history-item summary::-webkit-details-marker {
  display: none;
}

.history-item summary:hover {
  background: #fafafa;
}

.hist-ts {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.016em;
  white-space: nowrap;
}

.hist-meta {
  font-size: 0.875rem;
  color: #86868b;
  letter-spacing: -0.016em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-meta code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  padding: 0.12rem 0.4rem;
  background: #f5f5f7;
  border-radius: 5px;
  color: #424245;
  margin-left: 0.15rem;
}

.history-item .chevron {
  color: #86868b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.history-item[open] .chevron {
  transform: rotate(180deg);
}

.hist-body {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid #f0f0f2;
}

.hist-body .markdown h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.6rem;
  padding-bottom: 0.4rem;
}

.hist-body .markdown h2:first-child {
  margin-top: 0;
}

.hist-body .markdown p {
  font-size: 0.975rem;
  margin-bottom: 0.7rem;
  line-height: 1.55;
}

.hist-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f2;
}

/* MOBILE */
@media (max-width: 540px) {
  .container {
    padding: 2.5rem 1.25rem 3rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero .subtitle {
    font-size: 1.0625rem;
  }
  .card {
    padding: 1.5rem;
    border-radius: 18px;
  }
  .result {
    padding: 1.75rem 1.5rem;
  }
  .result-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .copy-button {
    justify-content: center;
  }
  .markdown h2 {
    font-size: 1.25rem;
  }

  .history-item summary {
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
  }
  .hist-ts {
    grid-column: 1 / 2;
    grid-row: 1;
  }
  .history-item .chevron {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .hist-meta {
    grid-column: 1 / 2;
    grid-row: 2;
    white-space: normal;
    line-height: 1.4;
  }
  .hist-body {
    padding: 1rem 1.25rem 1.25rem;
  }
  .hist-actions {
    flex-direction: column;
    gap: 0.6rem;
  }
}

/* === Maksājuma "paywall" bloks === */
.paywall {
  text-align: center;
  padding: 36px 28px;
}
.paywall-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
}
.paywall-desc {
  margin: 0 0 20px;
  color: #555;
  font-size: 0.95rem;
}
.paywall-btn {
  min-width: 260px;
}
.paywall-msg {
  margin: 14px 0 0;
  color: #b85a00;
  font-size: 0.9rem;
}
.paywall-msg.success {
  color: #1d6f2c;
}

/* === Result bloki (zem AI atbildes) === */
.result-blocks {
  margin-top: 24px;
}
.result-blocks .landing-block-md,
.result-blocks .landing-block-text,
.result-blocks .landing-block-html,
.result-blocks .landing-block-img {
  margin-bottom: 16px;
}

/* === Audio (TTS) poga pie sadaļas virsraksta === */
.markdown h2[data-section] {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-audio-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #d2d2d7;
  background: #ffffff;
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  margin-left: auto;
}
.section-audio-btn:hover {
  background: #f5f5f7;
  border-color: #1d1d1f;
}
.section-audio-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}
.section-audio-btn .ico-play { display: block; }
.section-audio-btn .ico-pause { display: none; }
.section-audio-btn .ico-spinner { display: none; }
.section-audio-btn.is-playing {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
}
.section-audio-btn.is-playing .ico-play { display: none; }
.section-audio-btn.is-playing .ico-pause { display: block; }
.section-audio-btn.is-loading .ico-play { display: none; }
.section-audio-btn.is-loading .ico-spinner { display: block; }
.section-audio-btn.is-error {
  border-color: #d70015;
  color: #d70015;
}
/* Audio sagatavots un gatavs atskaņošanai (automātiski ielādēts fonā). */
.section-audio-btn.is-ready:not(.is-playing):not(.is-loading) {
  border-color: #34c759;
  color: #1d8a3f;
}

/* ============================================================
   PREMIUM MAKETA LANDING
   ============================================================ */

/* Premium krāsu mainīgie — pieejami visur, kur lietoti .mk-* bloki */
:root {
  --mk-violet: #6b5bd2;
  --mk-violet-soft: #efeaff;
  --mk-gold: #c9a24a;
  --mk-ink: #2a2733;
  --mk-muted: #6f6a7d;
}

/* Kad lapā ir premium bloki — paplašina container uz pilnu platumu un liek mierīgu fonu */
body.has-premium-blocks .container {
  max-width: 100%;
  padding: 0;
  background:
    radial-gradient(1200px 500px at 50% -200px, #f1ecff 0%, rgba(241,236,255,0) 70%),
    linear-gradient(180deg, #fbfaf7 0%, #fdfcfb 100%);
}
/* Rezultāts/status/vēsture/forma — atgriež lasāmu, centrētu platumu */
body.has-premium-blocks #status,
body.has-premium-blocks #result,
body.has-premium-blocks #history,
body.has-premium-blocks #paywall,
body.has-premium-blocks #form {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
body.has-premium-blocks #status,
body.has-premium-blocks #history {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
/* Forma ir .card (savs padding) — premium režīmā tikai centrē + atstarpe no malām */
body.has-premium-blocks #form {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
/* Kad ir premium HERO (ar savu datuma ievadi) — paslēpj veco h1 un veco formu */
body.has-premium-hero #landing,
body.has-premium-hero #form {
  display: none;
}
/* Premium HTML bloku wrapper — atstarpes pārvalda pašas .mk-* sadaļas */
body.has-premium-blocks .landing-block-html:has(.mk-hero),
body.has-premium-blocks .landing-block-html:has(.mk-section),
body.has-premium-blocks .landing-block-html:has(.mk-final) {
  margin: 0;
}

.mk-hero,
.mk-section,
.mk-final {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  color: var(--mk-ink);
}
.mk-hero {
  text-align: center;
  padding-top: 3.5rem;
}
.mk-hero-art {
  width: 150px;
  height: 100px;
  margin: 0 auto 1.5rem;
  color: var(--mk-violet);
}
.mk-hero-art svg { width: 100%; height: 100%; }
.mk-hero-title {
  font-size: 2.1rem;
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.mk-hero-sub {
  font-size: 1.0625rem;
  color: var(--mk-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Hero forma */
.mk-form {
  background: #fff;
  border: 1px solid #efeaf7;
  border-radius: 22px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 18px 50px -22px rgba(80,60,160,0.28);
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}
.mk-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--mk-ink);
}
.mk-date {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid #e2dcef;
  border-radius: 13px;
  background: #fcfbfe;
  color: var(--mk-ink);
  margin-bottom: 0.9rem;
}
.mk-date:focus {
  outline: none;
  border-color: var(--mk-violet);
  box-shadow: 0 0 0 3px var(--mk-violet-soft);
}
.mk-gender {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.mk-gender input { position: absolute; opacity: 0; pointer-events: none; }
.mk-gender label {
  text-align: center;
  padding: 0.7rem;
  border: 1.5px solid #e2dcef;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  background: #fcfbfe;
  transition: all 0.15s ease;
}
.mk-gender input:checked + label {
  border-color: var(--mk-violet);
  background: var(--mk-violet-soft);
  color: var(--mk-violet);
  font-weight: 600;
}

.mk-cta {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.mk-cta-primary {
  background: linear-gradient(135deg, #6b5bd2, #8d6fd8);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(107,91,210,0.65);
}
.mk-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(107,91,210,0.7); }
.mk-cta-primary:active { transform: translateY(0); }
.mk-cta-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
.mk-cta-ghost {
  background: #fff;
  color: var(--mk-violet);
  border: 1.5px solid #e2dcef;
}
.mk-cta-ghost:hover { background: var(--mk-violet-soft); }

.mk-trust {
  font-size: 0.82rem;
  color: var(--mk-muted);
  text-align: center;
  margin: 0.9rem 0 0;
  line-height: 1.45;
}
.mk-form-msg {
  font-size: 0.9rem;
  text-align: center;
  margin: 0.75rem 0 0;
  color: #c0392b;
}

/* Sadaļu virsraksti */
.mk-h2 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
}
.mk-lead {
  font-size: 1.05rem;
  color: var(--mk-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

/* Kartīšu režģi */
.mk-grid { display: grid; gap: 1rem; }
.mk-grid-3 { grid-template-columns: 1fr; }
.mk-grid-2 { grid-template-columns: 1fr; }

.mk-mini-card {
  background: #fff;
  border: 1px solid #efeaf7;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--mk-ink);
  box-shadow: 0 8px 24px -18px rgba(80,60,160,0.4);
}

.mk-card {
  background: #fff;
  border: 1px solid #efeaf7;
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 10px 30px -20px rgba(80,60,160,0.4);
  position: relative;
}
.mk-card-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mk-gold);
  letter-spacing: 0.08em;
}
.mk-card h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 0.5rem 0 0.5rem;
}
.mk-card p {
  font-size: 0.98rem;
  color: var(--mk-muted);
  margin: 0;
  line-height: 1.5;
}

/* Soļi */
.mk-steps { display: grid; gap: 1rem; }
.mk-step {
  background: #fff;
  border: 1px solid #efeaf7;
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 10px 30px -22px rgba(80,60,160,0.4);
}
.mk-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mk-violet-soft);
  color: var(--mk-violet);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.mk-step h3 { font-size: 1.1rem; margin: 0 0 0.4rem; font-weight: 650; }
.mk-step p { font-size: 0.97rem; color: var(--mk-muted); margin: 0; line-height: 1.5; }

/* Sample result */
.mk-sample {
  background: linear-gradient(160deg, #fff, #faf7ff);
  border: 1px solid #ece5fa;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 16px 44px -24px rgba(80,60,160,0.4);
}
.mk-sample-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mk-violet);
  background: var(--mk-violet-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.mk-sample p {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #3a3646;
  font-style: italic;
  margin: 0 0 1.5rem;
}

/* Compare */
.mk-compare { display: grid; gap: 1rem; }
.mk-compare-col {
  border-radius: 18px;
  padding: 1.4rem 1.4rem;
}
.mk-compare-col h3 { font-size: 1.1rem; margin: 0 0 0.85rem; font-weight: 650; }
.mk-compare-col ul { margin: 0; padding-left: 1.1rem; }
.mk-compare-col li { font-size: 0.97rem; margin-bottom: 0.5rem; line-height: 1.45; }
.mk-compare-plain {
  background: #f6f5f8;
  border: 1px solid #ebe9ef;
  color: var(--mk-muted);
}
.mk-compare-premium {
  background: linear-gradient(160deg, #fff, #f4efff);
  border: 1.5px solid #ddd0fa;
  box-shadow: 0 14px 38px -22px rgba(107,91,210,0.5);
}
.mk-compare-premium li { color: var(--mk-ink); }

/* Pricing */
.mk-price {
  background: #fff;
  border: 1.5px solid #e6def8;
  border-radius: 22px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 20px 50px -24px rgba(80,60,160,0.45);
  max-width: 420px;
  margin: 0 auto;
}
.mk-price-name { font-size: 1.15rem; font-weight: 650; margin: 0 0 0.25rem; }
.mk-price-amount {
  font-size: 2.6rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #6b5bd2, #c9a24a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
}
.mk-price-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  text-align: left;
  display: inline-block;
}
.mk-price-list li {
  font-size: 0.98rem;
  padding: 0.4rem 0 0.4rem 1.7rem;
  position: relative;
  color: #3a3646;
}
.mk-price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mk-violet);
  font-weight: 700;
}

/* FAQ */
.mk-faq { display: grid; gap: 0.75rem; max-width: 640px; margin: 0 auto; }
.mk-faq-item {
  background: #fff;
  border: 1px solid #efeaf7;
  border-radius: 14px;
  padding: 0.25rem 1.2rem;
  box-shadow: 0 8px 24px -20px rgba(80,60,160,0.4);
}
.mk-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mk-faq-item summary::-webkit-details-marker { display: none; }
.mk-faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--mk-violet);
  font-weight: 400;
  line-height: 1;
}
.mk-faq-item[open] summary::after { content: "−"; }
.mk-faq-item p {
  margin: 0 0 1rem;
  color: var(--mk-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* Final CTA */
.mk-final {
  text-align: center;
  padding: 3.5rem 1.5rem 4.5rem;
}
.mk-final .mk-cta { max-width: 360px; margin: 1.5rem auto 0; }

/* DESKTOP */
@media (min-width: 720px) {
  .mk-hero-title { font-size: 2.9rem; }
  .mk-h2 { font-size: 2rem; }
  .mk-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .mk-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .mk-steps { grid-template-columns: repeat(3, 1fr); }
  .mk-compare { grid-template-columns: 1fr 1fr; align-items: start; }
  .mk-hero-art { width: 190px; height: 125px; }
}
