/* About, Paiir Community, Contact and the 404 page. Built on paiir.css tokens; nothing here changes shared parts. */

/* a few words next to a picture, used for the "why" rows */
.co-why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.co-why__text { display: flex; flex-direction: column; gap: 18px; max-width: 540px; }
.co-why__text h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.022em; line-height: 1.14; }
.co-why__text p { color: var(--text-2); font-size: 18px; line-height: 1.6; }

/* hairline rows: a title and one quiet line */
.co-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 1px solid var(--line); }
.co-row { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.co-row .co-row__n { margin-top: 1px; color: var(--text); } /* a die (ui.js die()), not one of the row's words below */
.co-row b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.004em; line-height: 1.35; }
.co-row span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.55; }

/* How it works: three paths, one chosen at a time, steps cross-fade in place */
.co-how { display: flex; flex-direction: column; gap: 40px; scroll-margin-top: 96px; }
.co-how .chips { justify-content: flex-start; }
.co-how__panes { display: grid; }
.co-how__pane { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s linear .5s; }
.co-how__pane.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .08s, transform .7s var(--ease) .08s; }
.co-how__go { margin-top: 40px; }
.co-how__pane .steps:not(.is-in) .step::before { transform: scaleX(0); }

/* the vision line, big and alone in the band */
.co-vision h2 { max-width: 980px; }

/* Paiir Community (was Ambassadors): Community Builder cards stay small and simple (owner liked them small) */
.amb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.amb { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r-card); background: var(--surface); min-width: 0; }
.amb > img { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.amb__t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.amb__t b { font-size: 17px; font-weight: 500; letter-spacing: 0; }
.amb__role { color: var(--text-3); font-size: 14px; }
.amb__job { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; color: var(--text-2); font-size: 14px; }
.amb__co { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: var(--r-tag); background: #FFFFFF; color: #111; font-size: 12.5px; font-weight: 500; }
.amb__co img { display: block; width: auto; max-width: 90px; }
.amb__co--b { padding: 0; background: none; overflow: hidden; }
.amb__co--b img { height: 24px; border-radius: var(--r-tag); }
.amb__co--i { background: var(--surface-3); color: var(--text); }
.amb__co--i img { width: 16px; height: 16px; border-radius: 4px; }
.amb--next { border: 1px dashed #4A4A4A; background: transparent; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.amb--next:hover { border-color: #8A8A8A; background: var(--surface); }
.amb__plus { width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 28px; font-weight: 400; color: var(--text-2); }

.amb-do { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.amb-do__c { display: flex; flex-direction: column; gap: 40px; justify-content: space-between; min-height: 200px; padding: 26px 24px 28px; border-radius: var(--r-card); background: var(--surface); }
.amb-do__c .die { color: var(--text-2); }
.amb-do__c p { font-size: 18px; font-weight: 500; letter-spacing: -0.004em; line-height: 1.4; }
.amb-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 20px 24px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 15px; line-height: 1.6; }
.amb-note b { color: var(--text); font-weight: 500; }
.amb-tags { margin-top: 18px; color: var(--text-3); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; }

.amb-get { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.amb-get .co-rows { grid-template-columns: minmax(0, 1fr); }
.amb-get .co-row { padding: 18px 0; }
.amb-get .co-row b { font-size: 17px; }
.amb-cert { margin: 0; }
.amb-cert__pic { border-radius: var(--r-image); overflow: hidden; background: #FBFBF9; }
.amb-cert__pic img { width: 100%; height: auto; }
.amb-cert figcaption { padding-top: 14px; color: var(--text-3); font-size: 14px; }

.amb-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.amb-apply__t { display: flex; flex-direction: column; gap: 18px; }
.amb-apply__t h2 { font-size: 40px; font-weight: 500; letter-spacing: -0.022em; line-height: 1.14; }
.amb-apply__t p { color: var(--text-2); font-size: 18px; line-height: 1.6; }
.amb-apply__t a:not(.pill) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #5A5A5A; }
.amb-mail { border-radius: var(--r-card); background: #F6F6F6; color: #111; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 0; font-size: 15px; }
.amb-mail__h { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; color: #6B6B6B; font-size: 13px; font-weight: 500; }
.amb-mail__h i { width: 10px; height: 10px; border-radius: 50%; background: #DCDCDC; }
.amb-mail__r { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid #E6E6E6; }
.amb-mail__r small { width: 64px; color: #666666; font-size: 14px; }
.amb-mail__r b { font-weight: 500; }
.amb-mail__b { border-top: 1px solid #E6E6E6; padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.amb-mail__l { display: flex; align-items: center; gap: 10px; color: #333; }
.amb-mail__l .die { width: 22px; height: 22px; color: #111; }
.amb-mail__l span:not(.die) { width: 22px; height: 22px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 500; flex: none; }
.amb-mail__l i { flex: 1; height: 8px; border-radius: 4px; background: #E6E6E6; }
.amb-mail__send { align-self: flex-start; margin-top: 18px; background: var(--accent); color: #fff; border-radius: var(--r-tile); padding: 7px 14px; font-weight: 500; font-size: 14px; }

.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.share-row .pill svg { width: 16px; height: 16px; }
.share-row .pill--outline { height: 40px; }
.co-why__text .link { color: var(--text); }

/* contact */
.ct { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 80px; align-items: start; padding: 120px 0 0; }
.ct__t { display: flex; flex-direction: column; gap: 22px; }
.ct__t h1 { font-size: var(--hero); font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; }
.ct__t > p { font-size: var(--lead); line-height: 1.45; color: var(--text-2); max-width: 520px; }
.ct__ways { margin-top: 20px; border-top: 1px solid var(--line); max-width: 520px; }
.ct__way { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ct__way b { display: block; font-size: 17px; font-weight: 500; }
.ct__way span { display: block; margin-top: 4px; color: var(--text-3); font-size: 15px; line-height: 1.5; }
a.ct__way:hover b { color: var(--text-2); }
.ct__form { padding: 36px 32px 32px; border-radius: var(--r-panel); background: var(--surface); }
.ct__form h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.ct__form .form { margin-top: 24px; }
.ct__form .input { background: var(--bg); }
.ct__form .chips { justify-content: flex-start; margin-top: 4px; }
.ct__fine { color: var(--text-3); font-size: 13px; line-height: 1.5; }
.ct__fine a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.ct__done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 28px 0 12px; }
.ct__done img { width: 88px; height: auto; }
.ct__done h2 { font-size: 26px; }
.ct__done p { color: var(--text-2); }
.ct__in { animation: ct-in .7s var(--ease) both; }
@keyframes ct-in { from { opacity: 0; transform: translateY(10px); } }

/* the mail chooser (Gmail, Outlook, mail app, copy) */
.mailpick { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.mailpick a, .mailpick button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: var(--r-pop); background: var(--surface-2); color: var(--text); text-align: left; font-size: 15px; transition: background-color var(--t-fast) ease; }
.mailpick a:hover, .mailpick button:hover { background: var(--surface-3); }
.mailpick i { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--button-2); display: grid; place-items: center; font-style: normal; font-weight: 500; font-size: 14px; }
.mailpick b { display: block; font-weight: 500; }
.mailpick small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }

/* 404 */
.nf { min-height: calc(100vh - var(--header) - 120px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 96px 0; }
.nf h1 { font-size: var(--cta-title); font-weight: 500; letter-spacing: -0.022em; line-height: 1.14; }
.nf p { color: var(--text-2); font-size: 18px; }
.nf .chips { margin-top: 6px; }

@media (max-width: 1100px) {
  .amb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amb-do { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .co-why, .amb-get, .amb-apply, .ct { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .co-why__text h2, .amb-apply__t h2 { font-size: 32px; }
  .co-rows { grid-template-columns: minmax(0, 1fr); }
  .amb-grid, .amb-do { grid-template-columns: minmax(0, 1fr); }
  .amb-do__c { min-height: 0; gap: 22px; }
  .ct { padding-top: 64px; }
  .ct__form { padding: 28px 20px 24px; }
  .co-how .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .co-how .chips::-webkit-scrollbar { display: none; }
}
.ct-partner-only[hidden] { display: none; }
.nf .pill--outline { height: 40px; }
@media (max-width: 900px) {
  /* phones: the form comes right after the words, the other ways after it */
  .ct { gap: 22px; }
  .ct__t { display: contents; }
  .ct__t h1 { order: 1; }
  #ct-lead { order: 2; }
  .ct__form { order: 3; margin-top: 18px; }
  .ct__ways { order: 4; margin-top: 40px; }
}

/* (the step cards live in paiir.css now, every How it works uses them) */
.co-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.co-trust__card { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 28px; background: var(--surface); border-radius: var(--r-card); transition: background-color var(--t) ease, transform var(--t) var(--ease); }
.co-trust__card:hover { background: var(--surface-2); transform: translateY(-3px); }
.co-trust__ic { width: 44px; height: 44px; border-radius: var(--r-tile); background: var(--surface-3); color: var(--text); display: grid; place-items: center; margin-bottom: 10px; }
.co-trust__card b { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.co-trust__card > span:last-child { color: var(--text-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 1000px) { .steps--cards, .co-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps--cards, .co-trust { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .steps--cards .step, .co-trust__card { transition: none; } }

/* ================= About, redesign 2026-11-15 (owner: "beautiful and creative") ================= */
.ab-sec { margin-top: clamp(72px, 9vw, 128px); }
.ab-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.ab-head h2, .ab-founder h2, .ab-team h2 { margin-top: 10px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
.ab-mark { background: linear-gradient(transparent 62%, #D3E3FD 62%, #D3E3FD 92%, transparent 92%); padding: 0 .08em; }

/* opening: words left, a loose stack of colour tiles right */
/* white like the rest of the page, so the page keeps its round top corners under the grey bar (owner, 2026-11-17) */
.ab-hero { background: #FFFFFF; padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.ab-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.ab-hero h1 { margin-top: 14px; font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.ab-lead { margin-top: 20px; max-width: 560px; color: var(--text-2); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; }
.ab-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.ab-tiles { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; aspect-ratio: 3 / 2.1; }
.ab-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border-radius: 28px; box-shadow: 0 18px 40px -22px rgba(60, 64, 67, .45); transform: rotate(calc((var(--t, 0) - 1.5) * 2.2deg)); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.ab-tile:hover { transform: rotate(0) translateY(-4px); }
.ab-tile b { font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.02em; }
.ab-tile__ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.ab-tile--blue { background: #1A73E8; color: #FFFFFF; grid-column: 1 / 3; }
.ab-tile--green { background: #1E8A55; color: #FFFFFF; }
.ab-tile--yellow { background: #FFD9B8; color: #1F1F1F; }
.ab-tile--yellow .ab-tile__ic { background: rgba(255, 255, 255, .55); color: #B4530A; }
.ab-tile--red { background: #E2D4FF; color: #1F1F1F; }
.ab-tile--red .ab-tile__ic { background: rgba(255, 255, 255, .55); color: #6B3FD4; }
.ab-tile--die { background: #121417; align-items: center; justify-content: center; }

/* what Paiir does: four colour cards */
.ab-does { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-do { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; border-radius: 28px; min-height: 300px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ab-do:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(60, 64, 67, .4); }
.ab-do__k { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.ab-do__ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #FFFFFF; }
.ab-do b { margin-top: 8px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.ab-do__s { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.ab-do__go { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 500; }
.ab-do--blue { background: #E8F0FE; }
.ab-do--blue :is(.ab-do__k, .ab-do__ic, .ab-do__go) { color: #0B57D0; }
.ab-do--green { background: #E3F6EA; }
.ab-do--green :is(.ab-do__k, .ab-do__ic, .ab-do__go) { color: #16794A; }
.ab-do--yellow { background: #FFEFE2; }
.ab-do--yellow :is(.ab-do__k, .ab-do__ic, .ab-do__go) { color: #B4530A; }
.ab-do--red { background: #F1EAFF; }
.ab-do--red :is(.ab-do__k, .ab-do__ic, .ab-do__go) { color: #6B3FD4; }

/* the story: one big line, two short paragraphs */
.ab-quote { margin-top: 14px; max-width: 980px; font-size: clamp(34px, 5vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; }
.ab-story__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 44px); max-width: 980px; }
.ab-story__cols p { color: var(--text-2); font-size: 18px; line-height: 1.6; }

/* the founder: a card with a monogram (no photo), and the journey with logos */
.ab-founder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ab-founder__card { position: relative; padding: clamp(28px, 3.5vw, 44px); border-radius: 32px; background: #F3F4F8; overflow: hidden; }
.ab-mono { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin-bottom: 24px; border-radius: 28px; background: #1A73E8; color: #FFFFFF; font-size: 34px; font-weight: 600; letter-spacing: -0.02em; box-shadow: 0 16px 30px -16px rgba(26, 115, 232, .7); transform: rotate(-6deg); }
.ab-mono span { transform: rotate(6deg); }
.ab-mono i { position: absolute; width: 12px; height: 12px; border-radius: 50%; }
.ab-mono i:first-of-type { left: 14px; top: 14px; border: 2.5px solid rgba(255, 255, 255, .85); }
.ab-mono i:last-of-type { right: 14px; bottom: 14px; background: #FFFFFF; }
.ab-founder__role { margin-top: 6px; color: #0B57D0; font-size: 16px; font-weight: 500; }
.ab-founder__s { margin-top: 18px; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.ab-journey { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.ab-journey::before { content: ""; position: absolute; left: 49px; top: 44px; bottom: 44px; width: 2px; background: repeating-linear-gradient(#C4C7C5 0 6px, transparent 6px 12px); }
.ab-step { position: relative; display: flex; align-items: center; gap: 20px; padding: 18px 22px 18px 18px; border-radius: 24px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(60, 64, 67, .1), 0 2px 8px rgba(60, 64, 67, .08); }
.ab-step__logo { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: #FFFFFF; box-shadow: inset 0 0 0 1px #E3E3E3; padding: 8px; }
.ab-step__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ab-step__logo--round { padding: 4px; border-radius: 50%; }
.ab-step__w { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ab-step__k { font-size: 12.5px; font-weight: 500; color: #0B57D0; text-transform: uppercase; letter-spacing: .06em; }
.ab-step__w b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ab-step__w > span:last-child { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

/* vision band keeps its look; the team line */
.ab-vision { margin-top: clamp(72px, 9vw, 128px); }
.ab-team { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: #E3F6EA; }
.ab-team h2 { margin-top: 8px; font-size: clamp(24px, 2.6vw, 32px); }
.ab-team p:not(.cx-kick) { margin-top: 10px; max-width: 620px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.ab-team .cx-kick { color: #16794A; }
.ab-team .cx-kick::before { background: #1E8A55; }

@media (max-width: 1100px) {
  .ab-does { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ab-hero__in, .ab-founder { grid-template-columns: minmax(0, 1fr); }
  .ab-tiles { max-width: 520px; }
  .ab-team { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .ab-hero { padding: 40px 0 44px; }
  .ab-go .pill { flex: 1 1 140px; justify-content: center; }
  .ab-tiles { gap: 10px; }
  .ab-tile { padding: 12px; border-radius: 20px; }
  .ab-tile__ic { width: 36px; height: 36px; border-radius: 12px; }
  .ab-tile__ic svg { width: 20px; height: 20px; }
  .ab-tile b { font-size: 16px; }
  .ab-tile--die svg { width: 40px; height: 40px; }
  .ab-does { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ab-do { min-height: 0; padding: 22px 20px; border-radius: 24px; }
  .ab-story__cols { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ab-story__cols p { font-size: 16px; }
  .ab-mono { width: 76px; height: 76px; font-size: 28px; border-radius: 22px; }
  .ab-step { gap: 14px; padding: 14px 16px 14px 14px; }
  .ab-step__logo { width: 52px; height: 52px; border-radius: 14px; padding: 6px; }
  .ab-journey::before { left: 39px; }
  .ab-team .pill { width: 100%; justify-content: center; }
}
.ab-step__logo--wide { padding: 4px; }
.ab-founder__job { margin-top: 2px; color: var(--text-2); font-size: 15px; }
.ab-step__t { color: var(--text); font-size: 14.5px; font-weight: 500; }
.ab-in { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; height: 48px; padding: 0 22px 0 18px; border-radius: 999px; background: #0A66C2; color: #FFFFFF; font-size: 15px; font-weight: 500; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.ab-in:hover { background: #004182; transform: translateY(-1px); }
