/* Agenda Piena — the site around the new home (owner 2026-11-18): the menu with every function, one page per
   function, prices, contacts, who we are. On top of funnel.css, sales.css and home.css, in the same dress: paper frame,
   rounded tiles, the ink bar. Mobile first; logical properties only, so Arabic and Urdu mirror by themselves. */

/* ───────── the menu ───────── */
.st-top .ap-top__in { position: relative; }
.st-burger { order: 3; display: grid; place-content: center; gap: 6px; inline-size: 44px; block-size: 44px; margin-inline-start: auto; padding: 0; border: 0; border-radius: 14px; background: rgb(255 255 255 / .08); color: inherit; cursor: pointer; }
.st-burger span { display: block; inline-size: 20px; block-size: 2px; border-radius: 2px; background: #f8f7f3; transition: transform 240ms var(--hm-spring); }
[data-st-top][data-open] .st-burger span:first-child { transform: translateY(4px) rotate(45deg); }
[data-st-top][data-open] .st-burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.st-nav { display: none; }
[data-st-top][data-open] .st-nav { position: absolute; inset-block-start: calc(100% + 8px); inset-inline: 0; display: grid; gap: 2px; max-block-size: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 10px; border-radius: 22px; background: #0e0f11; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 24px 48px -20px rgb(0 0 0 / .6); font-size: 1.05rem; }
.st-mega { order: 2; }
.st-nav > a, .st-mega > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding-inline: 14px; border-radius: 14px; color: rgb(248 247 243 / .82); font-weight: 550; text-decoration: none; cursor: pointer; list-style: none; }
.st-mega > summary::-webkit-details-marker { display: none; }
.st-mega > summary .ap-icon { width: 16px; height: 16px; rotate: 90deg; transition: rotate 240ms var(--hm-spring); }
.st-mega[open] > summary { background: rgb(255 255 255 / .08); color: #f8f7f3; }
.st-mega[open] > summary .ap-icon { rotate: -90deg; }
.st-mega__panel { padding: 8px 4px 12px; color: #f8f7f3; }
.st-mega__groups { display: grid; gap: 18px; }
.st-mega__k { margin: 0 0 6px; padding-inline: 10px; font-size: .8rem; font-weight: 650; color: rgb(248 247 243 / .55); }
.st-mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.st-mega li a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; min-height: 48px; padding: 6px 10px; border-radius: 14px; color: inherit; text-decoration: none; }
.st-mega li a:hover, .st-nav > a:hover { background: rgb(255 255 255 / .08); color: #f8f7f3; }
.st-mega li .hm-ic { background: rgb(255 255 255 / .1); color: #f8f7f3; }
.st-mega li strong { display: block; font-weight: 600; line-height: 1.25; }
.st-mega li em { display: none; font-style: normal; font-size: .86rem; line-height: 1.3; color: rgb(248 247 243 / .6); }
.st-mega__foot { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 14px 0 0; padding: 12px 10px 0; border-top: 1px solid rgb(255 255 255 / .12); }
.st-mega__foot a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: rgb(248 247 243 / .8); font-weight: 550; text-decoration: none; }
.st-mega__foot a:hover { color: #f8f7f3; }
.st-mega__all { color: #f8f7f3 !important; font-weight: 650 !important; }
.st-mega__all .ap-icon { width: 18px; height: 18px; }
[dir="rtl"] .st-mega__all .ap-icon, [dir="rtl"] .st-card__go .ap-icon, [dir="rtl"] .st-price .ap-icon, [dir="rtl"] .st-trio .ap-icon:not(.hm-ic .ap-icon), [dir="rtl"] .st-angles .ap-icon { scale: -1 1; }
.st-top .sp-top__act { order: 4; }
@media (min-width: 1000px) {
  .st-burger { display: none; }
  .st-mega { order: 0; }
  .st-nav, [data-st-top][data-open] .st-nav { position: static; display: flex; align-items: center; gap: 2px; max-block-size: none; overflow: visible; margin-inline-start: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: .98rem; }
  .st-nav > a, .st-mega > summary { min-height: 42px; justify-content: flex-start; color: rgb(248 247 243 / .72); font-weight: 500; }
  .st-mega__panel { position: absolute; inset-block-start: calc(100% + 8px); inset-inline: 0; padding: 28px 28px 18px; border-radius: 22px; background: #0e0f11; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 32px 64px -24px rgb(0 0 0 / .65); }
  .st-mega__groups { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; align-items: start; }
  .st-mega li a { align-items: start; padding: 9px 10px; }
  .st-mega li em { display: block; margin-top: 2px; }
  .st-mega__foot { margin-top: 18px; padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .st-burger span, .st-mega > summary .ap-icon { transition: none; } }

/* ───────── every page of the site, before the footer ───────── */
.st-map { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.st-map__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.st-map__k { margin: 0 0 10px; font-weight: 700; }
.st-map ul { list-style: none; margin: 0; padding: 0; display: grid; }
.st-map a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
.st-map a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 900px) { .st-map__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ───────── the first screen of a page ───────── */
.st-hero { padding-block: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 40px); }
.st-h1 { margin: 0; max-width: 18ch; font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5.2rem); }
.st-h1 em { font-style: normal; color: var(--accent-ink); }
.st-h1 span, .st-h1 em { display: block; }
.st-hero--f .st-h1 { max-width: 20ch; }
.st-lead { margin: 24px 0 0; max-width: 56ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.5; }
.st-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font-size: .92rem; color: var(--ink-2); }
.st-crumb a { display: inline-flex; align-items: center; min-height: 40px; color: inherit; }
.st-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 20px; font-weight: 650; }
.st-kick b { display: inline-flex; align-items: center; min-height: 32px; padding-inline: 12px; border-radius: 999px; background: var(--paper-2); font-size: .85rem; font-weight: 650; }
.st-k { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.st-k .ap-icon { width: 18px; height: 18px; }
.st-pain { margin-top: 32px; padding-inline-start: 20px; border-inline-start: 3px solid var(--ink); }
.st-pain .st-lead { margin-top: 0; }
.st-h2 { margin: 0; font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }

/* ───────── why it happens, how it ends ───────── */
.st-story__grid { display: grid; gap: 16px; }
.st-story__t { padding: clamp(24px, 3.2vw, 48px); }
.st-story__t p:last-child { margin: 16px 0 0; max-width: 52ch; font-size: 1.08rem; line-height: 1.55; color: var(--ink-2); }
.st-story__t--ok { background: var(--ink); color: var(--paper); }
.st-story__t--ok .st-k { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.st-story__t--ok p:last-child { color: color-mix(in srgb, var(--paper) 82%, transparent); }
@media (min-width: 900px) { .st-story__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ───────── what is inside ───────── */
.st-with__tile { display: grid; gap: 28px; padding: clamp(24px, 3.2vw, 48px); }
.st-with__tile .hm-note { margin: 0; }
.st-with__list { font-size: 1.05rem; }
@media (min-width: 720px) { .st-with__tile:not(.st-with__tile--ui) .st-with__list { grid-template-columns: 1fr 1fr; } .st-with__tile--ui .st-with__list { grid-template-columns: 1fr; } }
@media (min-width: 1000px) {
  .st-with__tile:not(.st-with__tile--ui) .st-with__list { grid-template-columns: repeat(3, 1fr); }
  .st-with__tile--ui { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .st-with__tile--ui .st-with__say { grid-column: 1 / -1; }
  .st-with__tile--ui .hm-ui { grid-column: 1 / span 5; }
  .st-with__tile--ui .st-with__list { grid-column: 7 / -1; }
  .st-with__tile--ui .hm-note { grid-column: 1 / -1; }
}

/* ───────── the price of it ───────── */
.st-price__tile { display: grid; gap: 24px; padding: clamp(24px, 3.2vw, 48px); }
.st-price__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 0; }
@media (min-width: 1000px) { .st-price__tile { grid-template-columns: 1fr auto; align-items: end; } }

/* ───────── the ten angles ───────── */
.st-angles__list { list-style: none; counter-reset: st-a; margin: 32px 0 0; padding: 0; display: grid; gap: 10px; }
.st-angles__list li { counter-increment: st-a; display: grid; grid-template-columns: 2.4em 1fr; align-items: baseline; padding: 18px 20px; border-radius: 18px; font-weight: 550; line-height: 1.35; }
.st-angles__list li::before { content: counter(st-a, decimal-leading-zero); font: 700 .95rem/1 var(--display); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.st-angles__lens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; }
.st-angles__lens span { margin-inline-end: 4px; color: var(--ink-2); }
.st-angles__lens b { display: inline-flex; align-items: center; min-height: 36px; padding-inline: 14px; border-radius: 999px; background: var(--paper-2); font-weight: 650; }
.st-angles__lens .hm-link { margin-inline-start: auto; }
@media (min-width: 800px) { .st-angles__list { grid-template-columns: 1fr 1fr; } }

/* ───────── cards of functions ───────── */
.st-cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.st-card { display: grid; gap: 10px; align-content: start; block-size: 100%; padding: 24px; color: inherit; text-decoration: none; transition: transform 320ms var(--hm-spring), box-shadow 320ms ease; }
.st-card strong { margin-top: 6px; font: 700 1.3rem/1.15 var(--display); letter-spacing: -0.02em; }
.st-card__pain { color: var(--ink-2); line-height: 1.45; }
.st-card__go { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); font-weight: 600; line-height: 1.3; }
.st-card__go .ap-icon { flex: none; width: 20px; height: 20px; color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .st-card:hover { transform: translateY(-4px); } }
@media (min-width: 700px) { .st-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .st-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .st-card { transition: none; } }

/* ───────── three tiles in a row (prices, contacts, who we are) ───────── */
.st-trio { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.st-trio li { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px; }
.st-trio strong { margin-top: 6px; font: 700 1.3rem/1.15 var(--display); letter-spacing: -0.02em; }
.st-trio p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.st-trio .sp-btn, .st-trio .hm-link, .st-mail { margin-top: 8px; }
.st-mail { display: inline-flex; align-items: center; min-height: 48px; font: 700 clamp(1.2rem, 1rem + 1vw, 1.7rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--accent-ink); overflow-wrap: anywhere; }
@media (min-width: 900px) { .st-trio { grid-template-columns: repeat(3, 1fr); gap: 24px; } .st-trio--4 { grid-template-columns: repeat(4, 1fr); } }
.st-who { margin-top: clamp(40px, 5vw, 72px); max-width: 68ch; }
.st-who p { margin: 14px 0 0; line-height: 1.6; color: var(--ink-2); }
.st-who .sp-btn { margin-top: 8px; }

/* ───────── facts ───────── */
.st-facts__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-facts__list li { display: grid; gap: 8px; padding: 24px; }
.st-facts__list b { font: 800 clamp(2.6rem, 1.8rem + 3vw, 4.4rem)/.9 var(--display); letter-spacing: -0.05em; color: var(--accent-ink); }
.st-facts__list span { color: var(--ink-2); line-height: 1.4; }
@media (min-width: 900px) { .st-facts__list { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.st-angles__list li > span { display: grid; gap: 8px; }
.st-angles__read { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; font-weight: 600; }
.st-angles__read a { display: inline-flex; align-items: center; min-height: 32px; color: var(--accent-ink); text-underline-offset: 4px; }
