/* DTAA frontsite: the page CSS the kit allows (system.md): inside visuals, one --p-h per card group,
   the app-frame recipe (sections-library.md) and the nav's locale control. Nothing else. */

/* nav: the client's logo in the kit's logo slot; the locale select at the button height */
.nav__logo img { display: block; height: 32px; width: auto; }
.nav__locale { display: flex; align-items: center; margin: 0; }
.nav__locale select { height: var(--btn-h-sm); padding: 0 var(--s-6) 0 var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--ink); font: 500 var(--t-small)/1 var(--font-text); appearance: none; -webkit-appearance: none; }
.nav__locale select:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.nav__actions > .nav__link + .nav__link { margin-left: var(--s-2); }
/* the account menu: a details in the nav, its links and the sign-out form under the word */
.nav__account { position: relative; }
.nav__account > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--s-1); }
.nav__account > summary::-webkit-details-marker { display: none; }
.nav__account[open] > summary .chev { transform: rotate(180deg); }
.nav__account__menu { position: absolute; right: 0; top: calc(100% + var(--s-2)); z-index: 30; min-width: 220px; display: grid; gap: 2px; padding: var(--s-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 16px 40px -16px rgb(0 0 0 / .3); }
.nav__account__menu a, .nav__account__menu button { display: block; width: 100%; padding: var(--s-2) var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: 500 var(--t-small)/1.4 var(--font-text); text-align: left; text-decoration: none; cursor: pointer; }
.nav__account__menu a:hover, .nav__account__menu button:hover { background: var(--surface); }
@media (max-width: 1023px) { .nav__account__menu { position: static; box-shadow: none; border: 0; padding: 0; } }
/* six menu words (Giới thiệu joined after Dự án, 2026-11-13), the language list, Sign in and the button. On a small laptop
   (1024-1279) the Vietnamese words need ~170px more than the bar has, so they go to the sheet behind the menu button,
   as on a tablet; the language list, Sign in and the button stay in the bar. The sheet rules mirror system.css (1023 and below). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__bar { gap: var(--s-3); }
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn);
    border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; flex: none; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0;
    padding: var(--s-4) var(--gut) var(--s-8); background: var(--bg); overflow-y: auto; gap: 0; }
  .nav.is-open .nav__item { display: grid; grid-template-columns: 1fr auto; height: auto; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links .nav__link { height: 56px; padding: 0; font-size: 20px; background: none; }
  .nav.is-open .nav__links .nav__link[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 10px; }
  .nav.is-open .nav__links .nav__link::before, .nav.is-open .nav__links .nav__link .chev { display: none; }
  .nav.is-open .nav__expand { display: inline-grid; place-items: center; width: 44px; height: 56px; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .nav__expand svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
  .nav__item.is-expanded .nav__expand svg { transform: rotate(180deg); }
  .nav.is-open .nav__menu { position: static; grid-column: 1 / -1; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 var(--s-4); }
  .nav.is-open .nav__item.is-expanded .nav__menu { display: block; }
  .nav.is-open .nav__menu :is(.container, .wrap) { width: 100%; }
  .nav.is-open .nav__menu .grid { row-gap: var(--s-4); }
  .nav.is-open .menu-card { grid-column: 1 / -1; display: grid; gap: var(--s-1); padding: var(--s-2) 0; }
  .nav.is-open .menu-card .panel { display: none; }
  body.nav-locked { overflow: hidden; }
}
/* 1280-1439: the six words at the small laptop's closer spacing, so the last one keeps clear of the language list */
@media (min-width: 1280px) and (max-width: 1439px) {
  .nav__links { gap: 0; }
  .nav__link { padding: 0 var(--s-2); }
  .nav__link::before, .nav__link[aria-current="page"]::after { left: var(--s-2); right: var(--s-2); }
}

/* the product hero: the h1 keeps the hero's own size under the liquid-type filter (its clamp is for a
   statement alone on a screen); the app window stands on the lit frame across the stage, cut by its foot */
.hero--product .hero__head .mo-lt__type { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.2; max-width: none; letter-spacing: var(--display-tracking-xl, var(--display-tracking)); }
.hero__stage > .hero__frame { aspect-ratio: auto; }
/* the head row as the kit sets it for a render on the stage (layout.css, 3b): the h1 on cols 1-7, the
   lead and the buttons stacked on cols 9-12, so the stage keeps most of the screen */
@media (min-width: 1024px) {
  .hero--product:has(.hero__stage > .hero__frame) .hero__head { grid-template-rows: auto auto; row-gap: var(--s-5); }
  .hero--product:has(.hero__stage > .hero__frame) .hero__head > :first-child { display: contents; }
  .hero--product:has(.hero__stage > .hero__frame) .hero__head h1 { grid-column: 1 / span 7; grid-row: 1 / span 2; align-self: end; margin: 0; }
  .hero--product:has(.hero__stage > .hero__frame) .hero__head .hero__lead { grid-column: 9 / -1; grid-row: 1; align-self: end; margin: 0; max-width: none; }
  .hero--product:has(.hero__stage > .hero__frame) .hero__head > .btn-row { grid-column: 9 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero--product:has(.hero__stage > .hero__frame) .hero__head h1 { grid-column: 1 / span 6; }
  .hero--product:has(.hero__stage > .hero__frame) .hero__head .hero__lead,
  .hero--product:has(.hero__stage > .hero__frame) .hero__head > .btn-row { grid-column: 7 / -1; }
}
.hero--product .hero__stage { position: relative; }
.hero__stage > .hero__frame { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; }
.hero__stage > .ly-spot { z-index: 3; }
@media (max-width: 639px) {
  /* the stage takes what the head leaves, the window cut by the fold (the kit's 4/5 box is for a photograph) */
  .hero--product .hero__stage:has(> .hero__frame) { flex: 1 1 auto; aspect-ratio: auto; min-height: 220px; }
  .hero__frame > .stage > .hero__app { width: calc(100% - 2 * var(--s-4)); }
}
/* the hero's website: a screenshot of a DTAA design (its own browser bar drawn in), lifted off the lit stage */
.hero__shot { display: block; width: 100%; height: auto; border-radius: var(--u-r, var(--r-md)); box-shadow: var(--u-shadow); }
/* a taller frame (a tablet or a phone): the website grows past the frame's right and bottom edges, cut by them like
   a window, so the frame never shows an empty lower half */
@media (max-width: 1023px) { .hero__frame > .stage > .hero__app:has(> .hero__shot) { right: auto; width: 150%; } }
@media (max-width: 639px) { .hero__frame > .stage > .hero__app:has(> .hero__shot) { width: 175%; } }

/* app-frame (sections-library.md, the whole recipe) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the steps list beside the diagram: the step's line under its name */
.rows .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-body); line-height: 1.5; }
.rows .step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: var(--s-3); border-radius: 50%; background: var(--ink); color: var(--bg); font: 500 var(--t-label)/1 var(--font-text); vertical-align: 2px; }
#process .frame--diagram { padding: 0; min-height: 420px; }
@media (max-width: 639px) { #process .frame--diagram { min-height: 300px; } }
#process .frame--diagram > .dg { position: absolute; inset: 0; }

/* the statement: its facts as a numbers row under the head, then the stack a demo really runs on (lang
   site.statement.row) as a still icon row on the section's foot, over a hairline (design-gap-plan section 4:
   no self-running marquee) */
/* the split (a kit .wrap.grid): words on span-7, the demo card on span-5, the icon row on span-12 at the foot.
   .statement__side holds the card and the row: no box on a desktop or tablet (its children sit in the grid), the second
   screen of the .g2m on a phone */
#statement > .wrap.grid { grid-template-rows: minmax(0, 1fr) auto; row-gap: var(--s-6); }
#statement .statement__side { display: contents; }
#statement .statement__text { display: flex; flex-direction: column; min-height: 0; }
#statement .section-head { margin-bottom: 0; }
#statement .section-head h2 { font-size: clamp(44px, 5.2vw, 80px); line-height: 1.15; letter-spacing: var(--display-tracking-xl, var(--display-tracking)); text-wrap: balance; }
/* the facts sit on the card's bottom line: the column's slack goes between the head and them */
#statement .facts { margin: auto 0 0; }
#statement .facts dd b { font-size: var(--t-h1); color: var(--logo-light); }
/* min-width 0: the row holds the marquee's 3,000px track, and as a grid item reached through display: contents it would
   take that as its least width and push the page sideways */
#statement .statement__row { min-width: 0; padding-top: var(--s-5); border-top: 1px solid var(--line); }
/* the customer's demo card: the kit checklist panel, still (no data-ui), its bar at day 3 of 7, no strike through a step */
#statement .statement__visual { height: 100%; }
#statement .statement__card { width: min(100%, 380px); }
#statement .statement__card .ui-checks__bar i { --k: calc(3 / 7); }
#statement .statement__card .ui-check__label::after { content: none; }
#statement .statement__site { display: flex; align-items: center; gap: 12px; margin: 0 16px 8px; padding: 12px 0; border-block: 1px solid var(--u-line); }
#statement .statement__who { display: grid; flex: 1; min-width: 0; }
#statement .statement__who b { font-size: 13px; font-weight: 500; line-height: 20px; }
#statement .statement__who span { font-size: 12px; line-height: 16px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#statement .statement__actions { display: flex; gap: 8px; padding: 8px 16px 8px; }
/* under 1024 every block takes the row (the kit's .grid > * rule does not reach through display: contents) */
@media (max-width: 1023px) {
  #statement > .wrap.grid { grid-template-rows: none; }
  #statement .statement__side > * { grid-column: 1 / -1; min-width: 0; }
  #statement .statement__visual { height: auto; min-height: 360px; }
}
#statement .statement__row > p { margin: 0 0 var(--s-3); }
/* the icon marquee (moment marquee-row; an exception the client asked for on 2026-11-06, design-gap-plan section 4): each item
   the tool's real icon alone at 48px in its own colours (rule 7), its name the img's alt and title. The kit draws a marquee
   image dimmed at 28px (a logo row's look): here full colour and size. Still (a phone, reduced motion) the row wraps. */
#statement .statement__tools li { display: inline-flex; align-items: center; }
#statement .mo-mq .statement__tools img.ic { height: var(--ic-s); opacity: 1; }
#statement .mo-mq .statement__tools img.ic.ic-wide { height: calc(var(--ic-s) * 0.7); }
#statement .mo-mq:not(.is-live) .statement__tools { gap: var(--s-5) var(--s-6); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--gutter); margin: auto 0 0; padding-top: var(--s-7); }
.facts dd { margin: 0; display: grid; gap: var(--s-1); }
.facts dd b { font: var(--display-weight) var(--t-h2, 40px)/1 var(--font-display); letter-spacing: var(--display-tracking); }
/* the label only: counter-rolls builds spans inside the figure, which keep the figure's size */
.facts dd > span { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 1023px) { .facts { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); } }
/* a phone: two screens (.g2m), the words and the facts on the first, the card and the icon row on the second */
@media (max-width: 639px) {
  /* the kit's .g2m rows again (the split's own rows above would replace them) */
  #statement > .wrap.grid { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); row-gap: calc(var(--padt) + var(--padb) + var(--bar)); }
  #statement .statement__side { display: flex; flex-direction: column; gap: var(--s-6); min-height: 0; }
  #statement .statement__visual { flex: 1 1 0; min-height: 0; }
  #statement .statement__row { margin-top: auto; }
  #statement .section-head h2 { font-size: var(--t-h1); }
  /* the first screen: the head, then the three figures large under it (number over its words), the slack at the foot */
  #statement .facts { margin-top: var(--s-7); padding-top: 0; gap: var(--s-5); }
  #statement .facts dd b { font-size: var(--t-h1); }
  #statement .statement__row { padding-top: var(--s-4); }
  #statement .mo-mq:not(.is-live) .statement__tools { gap: var(--s-4) var(--s-5); }
  #statement .mo-mq .statement__tools img.ic { --ic-s: 32px; }
}


/* one --p-h per card group */
.menu-card .panel { --p-h: 200px; }
#library .panel { --p-h: 260px; }
#care .panel { --p-h: 336px; }
#showcase .panel { --p-h: 300px; }
@media (max-width: 639px) { #care .panel { --p-h: 176px; } #showcase .panel { --p-h: 148px; } }
/* a homepage product without a link yet (Bubble Bubbles): its first feature sits where the action would, in grey */
.product-card__status { color: var(--muted); }
/* a product still being made: the kit badge on its name's line, as the pricing cards carry "recommended" */
#showcase h3 .badge { margin-left: var(--s-2); }
/* the odd last product takes the whole row: its 16:9 screen shows its middle band, not its top bar (a game's world,
   not its menu buttons) */
#showcase .card.span-12 > .panel > img.frame__img { object-position: 50% 55%; }
/* the ID photo check: every rule passed, so a ticked line is not struck through (the kit strikes finished tasks) */
#showcase .ui-check__label::after { content: none; }
@media (min-width: 640px) and (max-width: 1023px) {
  #care .panel, #showcase .panel { --p-h: 280px; }
  #pricing .card--plan { min-height: 540px; }
  #library .panel { --p-h: 170px; }
  #faq .faq > .faq__item { padding-block: var(--s-4); }
}
@media (max-width: 639px) {
  #process .frame--diagram { min-height: 240px; }
  #process .rows > li { padding-block: var(--s-3); }
}
/* 1024-1279: the upper-case Saira h2 takes three lines here, so the panels give back the 52px it adds */
@media (min-width: 1024px) and (max-width: 1279px) { #care .panel, #showcase .panel { --p-h: 216px; } }
/* a small laptop (1024-1279): the three tiles stay on one row, the plans need their second screen on a portrait tablet */
@media (min-width: 1024px) and (max-width: 1279px) { #library .card, #catalog .grid > .card { grid-column: span 4; } }
@media (min-width: 640px) and (max-width: 1023px) { #catalog .grid > .card { grid-column: span 6; } #tracks .frame--diagram { min-height: 520px; } }
@media (min-width: 640px) and (max-width: 1023px) { #pricing { --h: 2; } }
#care .card > p, #care .card > h3 { color: inherit; }
.tile-grid .panel { --p-h: 240px; }

/* a window shown in a split hero's frame (collage, centred); the centred hero's piece fills its slot */
.hero--centred .hero__window > .ly-piece > .ui-panel { width: 100%; }
.hero__art > .ly-piece--main.hero__win, .hero__window > .hero__win { position: absolute; left: var(--s-8); top: var(--s-8); width: calc(100% - var(--s-8) + 28px); }
.hero__art .ly-note { position: absolute; left: var(--s-5); bottom: var(--s-5); width: min(300px, 70%); padding: var(--s-4); border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 18px 40px -20px rgb(0 0 0 / .35); display: grid; gap: var(--s-2); font-size: var(--t-small); }
.hero__art .ly-note__row { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.hero__art .ly-note__line { display: flex; gap: var(--s-2); align-items: center; color: var(--ink); }
.hero__art .ly-note__line i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--action); color: var(--action-ink); font-style: normal; font-size: 10px; }
@media (max-width: 639px) { .hero__art .ly-note { display: none; } }

/* a form as the real thing in a split hero (contact, sign in) */
.hero__media > .form-card { position: relative; z-index: 1; height: 100%; display: grid; align-content: center; gap: var(--s-4); padding: var(--s-6); overflow: auto; }
.form-card .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.form-card .fields > .span-2 { grid-column: span 2; }
.form-card .field { display: grid; gap: var(--s-1); }
.form-card .field > span { font-size: var(--t-small); font-weight: 500; }
.form-card input:not([type="checkbox"]), .form-card select, .form-card textarea, .filter select, .request select {
  width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--bg); color: var(--ink); font: inherit; font-size: var(--t-body); }
/* the message box: a card corner, not the pill the fields take from --r-btn (a tall pill reads as an oval) */
.form-card textarea { min-height: 112px; resize: vertical; border-radius: var(--r-md); }
.form-card :is(input, select, textarea):focus-visible, .filter select:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.form-card .check { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-small); }
.form-card .check input { width: 18px; height: 18px; accent-color: var(--action); }
.form-card .providers { display: grid; gap: var(--s-3); }
.form-card .providers .btn { gap: var(--s-2); }
.form-card .error { color: #a3231a; font-size: var(--t-small); }
.form-card .muted-line { font-size: var(--t-small); color: var(--muted); }
.hero__direct { margin-top: var(--s-6); }
@media (max-width: 639px) {
  .form-card .fields { grid-template-columns: minmax(0, 1fr); } .form-card .fields > .span-2 { grid-column: auto; }
  /* a phone shows the whole form: the hero grows past the screen rather than clip it */
  .hero--form { height: auto; min-height: 100svh; }
  .hero--form .hero__media { flex: none; min-height: 0; }
}

/* the catalog's filter on the head line, the request form in a tile */
.filter { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.filter select { width: auto; min-height: var(--btn-h-sm); padding-block: 0; font-size: var(--t-small); }
.request { display: flex; gap: var(--s-2); flex: 1 1 auto; min-width: 0; }
.request select { flex: 1 1 auto; min-width: 0; }
.card > .btn-row { margin-top: auto; }

/* tiles with a picture: the picture fills its panel from the top */
.card > .panel > img.frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* template cards with a full-page screenshot: hovering the card (or focusing its picture) scrolls the whole page
   from top to bottom at an even pace, and leaving it returns to the top */
.card > .panel--scroll > img.frame__img { transition: object-position 0.6s ease-out; }
.card:hover > .panel--scroll > img.frame__img,
.card > .panel--scroll:focus-visible > img.frame__img { object-position: 50% 100%; transition: object-position var(--scroll-time, 9s) linear 0.15s; }
@media (prefers-reduced-motion: reduce) { .card > .panel--scroll > img.frame__img, .card:hover > .panel--scroll > img.frame__img { transition: none; object-position: 50% 0; } }
/* template detail: the hero picture opens the whole template page in a dialog */
.shot-zoom { display: block; cursor: zoom-in; }
.shot-zoom > img { display: block; width: 100%; height: auto; }
.shot-zoom__hint { position: absolute; left: var(--s-3); top: var(--s-3); display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-1) var(--s-3); border-radius: 999px; background: rgb(0 0 0 / .72); color: #fff; font-size: var(--t-small); line-height: 1.4; }
.shot-zoom:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.shot-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); color: var(--ink); overflow: hidden; }
.shot-dialog::backdrop { background: rgb(0 0 0 / .64); }
.shot-dialog__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.shot-dialog__bar h2 { margin: 0; font-size: var(--t-body); line-height: 1.4; }
.shot-dialog[open] { display: flex; flex-direction: column; }
.shot-dialog__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.shot-dialog__body img { display: block; width: 100%; max-width: 720px; height: auto; margin-inline: auto; }
#catalog .panel, #cases .panel { --p-h: 200px; }
@media (min-width: 640px) and (max-width: 1279px) { #catalog .panel { --p-h: 140px; } #design .compare th, #design .compare td { padding-block: var(--s-2); } }
@media (min-width: 1024px) and (max-width: 1279px) { #design { --h: 2; } #catalog .panel { --p-h: 120px; } #catalog .card > .btn-row .btn { flex: 1 1 auto; padding-inline: var(--s-3); } }
/* a phone reads the comparison as stacked rows: the row name, then each package's value under its name */
@media (max-width: 639px) {
  .compare, .compare.tbl { min-width: 0 !important; width: 100%; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
  .compare tr.compare__group { border-bottom: 0; }
  .compare th, .compare td { border: 0; padding: 2px 0; }
  .compare td::before { content: attr(data-col); display: block; font-size: 11px; color: var(--muted); margin-top: var(--s-2); }
}
#list .rows > li, #tracks .rows > li { padding-block: var(--s-3); }

/* the package comparison: one table, the row names in ink, a group line between groups */
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 640px; }
.compare th, .compare td { padding: var(--s-3) var(--s-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-weight: 500; color: var(--ink); }
.compare thead th.plan { width: 19%; }
.compare tbody th[scope="row"] { font-weight: 500; color: var(--ink); }
.compare td { color: var(--ink); }
.compare .compare__group th { padding-top: var(--s-5); font-family: var(--font-display); font-size: var(--t-card); font-weight: var(--display-weight); border-bottom: 0; }

/* phase B pages: code windows in frames, one-line code, article rows, the centred hero's screenshot */
.frame--code { padding: 0; }
.frame--code > .ui-code { width: 100%; }
.frame--code .ui-code__pre, .sdk .ui-code__pre { white-space: pre-wrap; word-break: break-word; }
.code-line { margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: color-mix(in oklab, var(--ink) 6%, var(--bg)); font: 500 var(--t-small)/1.5 var(--font-mono); overflow-wrap: anywhere; }
.sdk { display: grid; gap: var(--s-3); }
.sdk .ui-code { width: 100%; }
.rows.articles .article__body { grid-column: 1; font-size: var(--t-small); color: var(--ink); line-height: 1.6; }
.rows .rows__name code, .rows p code { font: 500 0.95em/1.4 var(--font-mono); }
.rows .hash code { overflow-wrap: anywhere; font-size: var(--t-small); }
.hero--centred .hero__window > .hero__shot { background: var(--bg); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 24px 48px -24px rgb(0 0 0 / .4); }
.hero--centred .hero__window > .hero__shot > img { display: block; width: 100%; height: auto; }
.signals .facts { margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metrics { margin: 0; padding: 0; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.metrics dt { font-size: var(--t-small); color: var(--muted); }
.metrics dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2); }
.metrics dd b { font: var(--display-weight) var(--t-h3, 28px)/1.15 var(--font-display); }
.metrics dd s { color: var(--muted); font-weight: 400; }
.variant { cursor: pointer; }
.variant:has(input:checked) { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.variant:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.variants + .btn-row { margin-top: var(--s-6); }
.request-form > .btn-row { margin-top: var(--s-6); }
#guides .panel { --p-h: 300px; }
#request .panel { --p-h: 160px; }
.sdk .ui-code { min-height: 400px; }
#modules .rows > li, #flow .rows > li, .rows.evidence > li { padding-block: var(--s-3); }
@media (min-width: 1024px) and (max-width: 1279px) { #catalog .card .checks { font-size: var(--t-small); gap: var(--s-2); } }
@media (max-width: 639px) { .sdk .ui-code { min-height: 0; } }
@media (min-width: 640px) and (max-width: 1279px) { #modules .frame--diagram, #flow .frame--diagram { min-height: 320px; } .sdk .ui-code { min-height: 260px; } #guides .panel { --p-h: 200px; } #catalog .card .checks { font-size: var(--t-small); gap: var(--s-2); } }
@media (max-width: 639px) { #guides .panel { --p-h: 220px; } }

/* utility hooks in place of inline styles (AGENTS.md: no inline CSS) */
.grid.grid--top { align-items: start; }
[data-gap="5"] { margin-top: var(--s-5); }
[data-gap="6"] { margin-top: var(--s-6); }

/* the legacy pages (phase B): their old markup under main, outside the section rhythm */
.legacy-wrap { padding-top: var(--nav); }
.legacy-wrap h1, .legacy-wrap h2, .legacy-wrap h3 { font-size: revert; line-height: revert; letter-spacing: revert; font-weight: revert; }
.legacy-wrap p { margin: revert; }

/* the brand of dtaa-tech.com: headings in capitals (its h1 and section titles are set upper-case); the
   heading scale, weights and grid stay the kit's. Body copy, labels and buttons keep their case. */
/* capitals run about 12% wider than the mixed case the kit's measures (ch, maxChars) are set for: Saira's width axis
   (loaded 75-100) at 90% gives that back, so a heading keeps the kit's line counts */
:is(h1, h2) { text-transform: uppercase; font-stretch: 90%; }
/* capitals with stacked Vietnamese marks (Ể, Ầ, Ẫ) touch the line above at the kit's 1.04 and 1.1; the extra
   leading keeps every mark clear of the line above */
:is(h1, .t-h1), .hero h1, .hero--editorial h1, .hero--word h1, .hero--triptych h1 { line-height: 1.2; }
:is(h2, .t-h2) { line-height: 1.18; }
/* the dark footer: the on-dark logo (white D, the tagline in white) at a size where its lockup reads */
.footer.ground-inverse .nav__logo img { height: 56px; }

/* headings in the logo's blues, in turn: section 1 navy, 2 blue, 3 cyan, then again (h1, h2 and h3 of the section;
   never inside a product UI fragment, where a title stays the UI's ink); a .muted part keeps its grey. On a dark
   ground the logo's own bright tones. */
.ground-inverse { --logo-1: #5aa9f0; --logo-2: #0693e3; --logo-3: #00bfeb; }
main > section:nth-of-type(3n + 1) :is(h1, h2, h3):not(.ui *) { color: var(--logo-1); }
main > section:nth-of-type(3n + 2) :is(h1, h2, h3):not(.ui *) { color: var(--logo-2); }
main > section:nth-of-type(3n) :is(h1, h2, h3):not(.ui *) { color: var(--logo-3); }
/* small headings (card titles, questions) on a light ground take the two lighter blues one step deeper: the large-type
   shades hold 3:1, text at 18-22px needs 4.5:1 on white and on a card */
main > section:nth-of-type(3n + 2):not(.ground-inverse) h3:not(.ui *) { color: var(--logo-2-text); }
main > section:nth-of-type(3n):not(.ground-inverse) h3:not(.ui *) { color: var(--logo-3-text); }
.footer.closing h2 { color: var(--logo-2); }
/* the centred hero's 16ch measure in the condensed capitals: 18ch is the 767px line it had at full width */
.hero--centred h1 { max-width: 18ch; }
/* the footer as tall as its content (the client asked for no gap between the close and the links): the kit holds
   footer.closing to one screen and stretches the close to fill it; here the links follow the close at the kit's
   row gap, on every width, so a phone needs no second screen either */
footer.closing { height: auto; min-height: 0; }
footer.closing > .wrap { height: auto; grid-template-rows: auto auto; }
/* the platforms fact (home statement, contact and login heroes): the real marks of WordPress, Laravel and HTML5 under its words */
.platform-icons { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-2); }
.platform-icons .ic { --ic-s: 24px; }
.facts dd .platform-icons { margin-top: var(--s-1); }

/* the h2's second sentence (.muted): the kit sets it in the heading's own face; in the brand's capitals it doubled the
   heading and pushed sections past their screen, so it reads as the section's lead line, in sentence case, under the name */
:is(h1, h2) > .muted { display: block; margin-top: var(--s-4); max-width: 60ch; font: 400 var(--t-lead)/1.5 var(--font-text); letter-spacing: 0; text-transform: none; font-stretch: 100%; color: var(--muted); }

/* a split's visual column (.split-visual): the diagram over a banner, the pair as tall as the list beside it; the grid
   takes what the screen leaves under the head (.fill) and the list keeps its top */
.grid.grid--fill { align-items: stretch; }
.grid.grid--fill > .rows { align-self: start; }
.split-visual { display: flex; flex-direction: column; gap: var(--card-gap); min-height: 0; }
.split-visual > .frame--diagram { flex: 0 0 auto; min-height: 260px; padding: 0; }
.split-visual > .frame--diagram:only-child { flex: 1 1 auto; }
.split-visual > .frame--diagram > .dg { position: absolute; inset: 0; }
.split-visual > .frame--banner { flex: 1 1 0; }
/* the banner: one of the client's renders filling its frame; a cut-out object sits contained on the frame's surface */
.frame--banner { padding: 0; min-height: 200px; }
.frame--banner.is-object { background: var(--surface); }
.frame--banner.is-object > .frame__img { object-fit: contain; padding: var(--s-5); box-sizing: border-box; }
/* the home FAQ: the left column runs down beside the answers, the render at its foot */
#faq .grid { align-items: stretch; }
#faq .faq__side { display: flex; flex-direction: column; }
#faq .faq__banner { margin-top: var(--s-6); flex: 1 1 auto; min-height: 220px; }
/* a case study with no metrics: the render fills its side column */
#story .grid { align-items: stretch; }
#story .story__side { display: flex; flex-direction: column; gap: var(--s-5); }
#story .story__side > .frame--banner { flex: 1 1 auto; min-height: 280px; }
@media (max-width: 1023px) {
  .split-visual > .frame--diagram { min-height: 280px; }
  .split-visual > .frame--banner { flex: 0 0 auto; min-height: 240px; }
}
@media (max-width: 639px) {
  .split-visual > .frame--diagram { min-height: 220px; }
  .split-visual > .frame--banner { min-height: 180px; }
  #faq .faq__banner, #story .story__side > .frame--banner { flex: 0 0 auto; min-height: 180px; }
}
/* developers webhooks: eight event and header rows beside the sample request; a step less padding keeps them on one screen */
@media (min-width: 1024px) { #webhooks .rows > li { padding-block: var(--s-3); } }
/* omnichannel modules on a small laptop: a step less row padding keeps each half on its screen */
@media (min-width: 1024px) and (max-width: 1279px) { #modules .rows > li { padding-block: var(--s-3); } #modules .section-head { margin-bottom: var(--s-6); } }
/* a case study's render on a phone: it takes the second screen the story spills into */
@media (max-width: 639px) { #story .story__side > .frame--banner { min-height: 420px; } }

/* show-more lists (assets/dtaa-more.js): the cards past a section's phone or tablet limit hide behind one full-width
   button; under 1024 the two groups stack as one column so a half-empty second group leaves no gap */
[data-more-phone] [hidden], [data-more-tablet] [hidden] { display: none !important; }
.more-btn { width: 100%; margin-top: var(--card-gap); }
@media (max-width: 1023px) {
  :is([data-more-phone], [data-more-tablet]):is(.is-more, .is-more-open) > .wrap { display: flex; flex-direction: column; row-gap: var(--card-gap); }
}
/* opened: the section takes its content's height */
:is([data-more-phone], [data-more-tablet]).is-more-open { height: auto !important; min-height: 0 !important; }
:is([data-more-phone], [data-more-tablet]).is-more-open > .wrap { height: auto; }

/* 1024-1279: the six-card catalogs back on two screens; demo templates on an 80px preview with closer chips, the
   integrations with closer checks and a step less card padding */
@media (min-width: 1024px) and (max-width: 1279px) {
  #catalog .card--row > a.panel { --p-h: 80px; }
  #catalog .card .ic-chip-row { gap: var(--s-1) 6px; }
  #catalog .card .ic-chip-row .ui-chip { font-size: 12px; }
  #catalog .card .checks { gap: 2px; }
  #catalog .card:has(.checks) { padding-block: var(--s-4); }
}
/* pricing plans on a tablet: the section grows past one screen, so it keeps two whole screens and no neighbour shows */
@media (min-width: 640px) and (max-width: 1023px) { #plans { --h: 2; } }
/* the developers REST table under 1024: a long path breaks at any character instead of pushing the table past the wrap */
@media (max-width: 1023px) { #rest .tbl :is(td, th):nth-child(2) { overflow-wrap: anywhere; } }
/* a tablet's show-more catalog: the two groups merge into one two-column grid (the kit splits six cards 3 + 3, which
   left a half row in each group), so four cards stand in two full rows over the button */
@media (min-width: 640px) and (max-width: 1023px) {
  [data-more-tablet]:is(.is-more, .is-more-open) > .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap) var(--gutter); align-content: start; }
  [data-more-tablet]:is(.is-more, .is-more-open) > .wrap > .group,
  [data-more-tablet]:is(.is-more, .is-more-open) > .wrap > .group > .grid { display: contents; }
  [data-more-tablet]:is(.is-more, .is-more-open) > .wrap > .group > :not(.grid),
  [data-more-tablet]:is(.is-more, .is-more-open) > .wrap > .more-btn { grid-column: 1 / -1; }
  [data-more-tablet]:is(.is-more, .is-more-open) .card { grid-column: auto / span 1 !important; }
  [data-more-tablet]:is(.is-more, .is-more-open) > .wrap > .more-btn { margin-top: 0; }
}
/* the demo templates on a tablet: a 100px preview and closer chips keep four cards and the button on two screens */
@media (min-width: 640px) and (max-width: 1023px) {
  #catalog .card--row > a.panel { --p-h: 100px; }
  #catalog .card .ic-chip-row { gap: var(--s-1) 6px; }
  #catalog .card .ic-chip-row .ui-chip { font-size: 12px; }
}

/* home library: as tall as its content with 20px above and below (the client asked for at most 20px; the kit holds a
   section to one screen with 120/72px padding); an anchor still lands under the fixed nav */

/* every frontsite section after the hero: as tall as its content, 20px above and below (the client asked for at most
   20px on 2026-11-07; the kit holds each section to one or two screens with 120/72px padding). An anchor lands under
   the fixed nav. Two-screen sections stack their groups at an ordinary gap, and a block that filled the rest of a
   screen (.fill) takes its own height. The hero keeps its first screen; the footer keeps its own spacing. */
main > :is(section, .section):not(.hero, .section--hero) { height: auto !important; min-height: 0 !important; padding-block: 20px !important; scroll-margin-top: var(--nav); }
main > :is(section, .section):not(.hero, .section--hero) > :is(.wrap, .container) { height: auto !important; }
main > :is(section, .section):not(.hero, .section--hero).g2:not(.is-more, .is-more-open) > :is(.wrap, .container) { display: flex !important; flex-direction: column; row-gap: var(--s-7) !important; }
main > :is(section, .section):not(.hero, .section--hero) :is(.fill, .group > .fill, .wrap > .fill) { flex: 0 0 auto !important; }
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero, .section--hero).g2m > :is(.wrap, .container) { grid-template-rows: auto auto !important; row-gap: var(--s-7) !important; }
}
/* the last section of a page on a band ground: the kit's grounds keep a large !important foot there (backgrounds.css);
   it too ends 20px under its content */
html main > section.section.section:is(.bg-band, .bg-field, .bg-grain, .bg-deep, .bg-photo, .bg-horizon, .bg-mist, .bg-halo, .bg-ruled, .bg-dots, .bg-arcs, .bg-liquid):not(.hero, .section--hero):last-of-type { padding-bottom: 20px !important; }
/* the statement's demo card on a phone, now that the section takes its content's height: the frame holds the card */
@media (max-width: 639px) { #statement .statement__visual { flex: 0 0 auto; min-height: 0; } #statement .statement__row { margin-top: 0; } }
/* a split head row (the h2 beside a filter or a link): the kit's one heading-to-content gap under it, like .section-head
   (48px, 32 on a phone); it sat flush on the cards */
main .section-head--split { margin-bottom: var(--head-gap); }
/* a platforms fact that is only the marks (contact, login): the row stands where the value's first line would */
.hero-facts dd > .platform-icons:first-child { margin-top: 0; }

/* Cloudflare Turnstile on the public forms (<x-turnstile />): the widget at the form's width, its error under it */
.turnstile { min-height: 65px; }
.turnstile .cf-turnstile { width: 100%; }
.turnstile__error { margin-top: var(--s-2); color: #b42318; font-size: var(--t-small); }

/* a template's stack as the real marks, in a row under the feature checks (partials/stack-icons) */
.stack-icons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }

/* pricing (2026-11-07 price list): the per-month unit beside a care price, the design table's note and its
   button on one line under the table, the care note under the plans, the one-off list beside a design shot */
.price__per { color: var(--muted); font-size: var(--t-body); }
.pricing__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); }
.pricing__foot > p { margin: 0; max-width: 72ch; color: var(--ink); }
.pricing__note { margin: var(--s-6) 0 0; max-width: 72ch; color: var(--ink); }
#extras .extras__shot { min-height: 420px; height: 100%; }
@media (max-width: 1023px) { #extras .extras__shot { grid-column: 1 / -1; min-height: 280px; } }
@media (max-width: 639px) { #extras .extras__shot { min-height: 200px; } }
/* the design table on a phone: each package's value on one line beside its name, so six rows fit two screens */
@media (max-width: 639px) {
  #design .compare td { display: flex; justify-content: space-between; gap: var(--s-4); padding: 4px 0; }
  #design .compare td::before { margin: 0; font-size: var(--t-small); flex: none; }
  #design .compare td { text-align: right; }
  #design .compare tbody th { font-weight: 500; color: var(--ink); padding-bottom: var(--s-1); }
}

/* policy pages (/privacy, /payment-methods, /terms): the title across the page, then a table of contents beside one
   reading column (68ch); headings at card size, not the display h2 the sections of the other pages use */
/* the policy page has no hero, so its first section clears the fixed nav itself (the 20px rhythm rule above is !important) */
main > .section.legal { padding-top: calc(var(--nav-h) + var(--s-8)) !important; padding-bottom: var(--s-9) !important; }
.legal__head { margin-bottom: var(--s-7); }
.legal__lead { max-width: 62ch; margin-top: var(--s-4); }
.legal__date { margin-top: var(--s-3); }
.legal__toc ol { display: grid; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--t-small); }
.legal__toc a:hover { color: var(--action); }
@media (min-width: 1024px) { .legal__toc { position: sticky; top: calc(var(--nav-h) + var(--s-5)); align-self: start; } }
@media (max-width: 1023px) { .legal__toc { margin-bottom: var(--s-6); } }
.legal__body { max-width: 68ch; }
.legal__body section { scroll-margin-top: calc(var(--nav-h) + var(--s-5)); }
.legal__body section + section { margin-top: var(--s-7); }
.legal__body h2 { font-size: var(--t-h3); line-height: 1.2; text-transform: none; margin-bottom: var(--s-3); }
/* subsections (the Google and YouTube data part): a step under the section heading */
.legal__body h3 { font-family: var(--font-text); font-size: var(--t-card); font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; margin-top: var(--s-5); scroll-margin-top: calc(var(--nav-h) + var(--s-5)); }
.legal__links { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.legal__body p, .legal__body li { font-size: var(--t-body); line-height: 1.6; }
.legal__body section > * + * { margin-top: var(--s-3); }
.legal__body ul { display: grid; gap: var(--s-2); padding-left: 1.25em; list-style: disc; }
.legal__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s-2) var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface); font-size: var(--t-small); }
.legal__facts dt { color: var(--muted); }
.legal__facts dd { margin: 0; overflow-wrap: anywhere; }
.legal__facts:empty { display: none; }
.legal__number { font-family: var(--font-mono); font-weight: 500; }
.legal__related { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-small); }
.footer__policies { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer__policies a:hover { color: var(--action); }

/* ---------------------------------------------------------------- contact button (frontsite/partials/contact-dock)
   A phone button at the bottom right (client request 2026-11-15, an approved exception to "nothing fixed but the nav").
   Open, it fans phone, Zalo, WhatsApp and email out along a quarter circle: each disc orbits out from behind the button
   (angle and radius animate together), one after the other. Zalo and WhatsApp keep their own marks and colours; the
   button and the phone disc take the main button's logo blue (--p-action), the email disc the logo's navy D (--logo-1).
   At rest the button rings: a soft wave
   and a short shake every few seconds. Reduced motion: the discs only fade, nothing rings. */
@property --dock-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --dock-r { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --dock-s { syntax: '<number>'; inherits: false; initial-value: 1; }
.contact-dock { --dock-size: 56px; --dock-item: 48px; --dock-radius: 116px; --dock-gap: 24px;
  position: fixed; right: calc(var(--dock-gap) + env(safe-area-inset-right)); bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom));
  z-index: 45; width: var(--dock-size); height: var(--dock-size); }
.contact-dock[hidden] { display: none; }
.contact-dock__menu { list-style: none; margin: 0; padding: 0; }
.contact-dock__item {
  --to: calc(90deg * (1 - var(--i) / (var(--n) - 1)));
  --dock-a: calc(var(--to) - 75deg); --dock-r: 0px; --dock-s: .35;
  position: absolute; left: calc((var(--dock-size) - var(--dock-item)) / 2); top: calc((var(--dock-size) - var(--dock-item)) / 2);
  width: var(--dock-item); height: var(--dock-item); opacity: 0; pointer-events: none;
  transform: rotate(var(--dock-a)) translateX(calc(-1 * var(--dock-r))) rotate(calc(-1 * var(--dock-a))) scale(var(--dock-s));
  /* the angle swings first, the radius grows late and overshoots a little: the disc stays inside the screen corner */
  transition: --dock-a 420ms cubic-bezier(.2, .8, .2, 1), --dock-r 460ms cubic-bezier(.45, 0, .3, 1.35),
              --dock-s 320ms var(--ease), opacity 200ms var(--ease);
  transition-delay: calc((var(--n) - 1 - var(--i)) * 30ms); }
.contact-dock.is-open .contact-dock__item { --dock-a: var(--to); --dock-r: var(--dock-radius); --dock-s: 1; opacity: 1; pointer-events: auto;
  transition-delay: calc(var(--i) * 55ms); }
.contact-dock__link { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: #fff; color: #fff; box-shadow: 0 8px 22px rgb(10 30 60 / .2), 0 1px 3px rgb(10 30 60 / .14);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.contact-dock__link:hover { transform: translateY(-2px) scale(1.07); box-shadow: 0 12px 26px rgb(10 30 60 / .24), 0 2px 4px rgb(10 30 60 / .14); }
.contact-dock__link:focus-visible, .contact-dock__toggle:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }
.contact-dock__item--phone .contact-dock__link { background: var(--p-action); color: var(--p-action-ink); }
.contact-dock__item--email .contact-dock__link { background: var(--logo-1); color: #fff; }
.contact-dock__item--zalo .contact-dock__link { background: #0068ff; }
.contact-dock__logo { display: block; max-width: none; }
.contact-dock__item--zalo .contact-dock__logo { width: 100%; height: 100%; }
.contact-dock__item--whatsapp .contact-dock__logo { width: 30px; height: 30px; }
.contact-dock__glyph { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the disc under the pointer or keyboard focus rises above its neighbours and the button, so its label (the number,
   the channel) is never covered by the next disc; each disc is its own layer (it is transformed) */
.contact-dock__item:hover, .contact-dock__item:focus-within { z-index: 3; }
/* the channel's name beside its disc, on hover or keyboard focus (a phone shows the marks alone) */
.contact-dock__label { position: absolute; right: calc(100% + 10px); top: 50%; translate: 6px -50%; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font: 500 var(--t-label)/1.25 var(--font-text); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease); }
@media (hover: hover) {
  .contact-dock__link:hover .contact-dock__label { opacity: 1; translate: 0 -50%; }
}
.contact-dock__link:focus-visible .contact-dock__label { opacity: 1; translate: 0 -50%; }
.contact-dock__toggle { position: relative; display: grid; place-items: center; width: var(--dock-size); height: var(--dock-size);
  padding: 0; border: 0; border-radius: 50%; background: var(--p-action); color: var(--p-action-ink); cursor: pointer;
  box-shadow: 0 10px 26px color-mix(in oklab, var(--p-action) 42%, transparent), 0 2px 6px rgb(10 30 60 / .18);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.contact-dock__toggle:hover { background: color-mix(in oklab, var(--p-action) 86%, #000); transform: scale(1.05); }
.contact-dock__toggle > .contact-dock__glyph { grid-area: 1 / 1; width: 24px; height: 24px;
  transition: transform 340ms cubic-bezier(.34, 1.4, .5, 1), opacity 200ms var(--ease); }
.contact-dock__x { opacity: 0; transform: rotate(-135deg) scale(.4); }
.contact-dock.is-open .contact-dock__phone { opacity: 0; transform: rotate(135deg) scale(.4); }
.contact-dock.is-open .contact-dock__x { opacity: 1; transform: none; }
.contact-dock__toggle::before, .contact-dock__toggle::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--p-action); opacity: 0; animation: dock-wave 3.2s var(--ease) infinite; }
.contact-dock__toggle::after { animation-delay: .45s; }
.contact-dock:not(.is-open) .contact-dock__phone { animation: dock-ring 3.2s ease-in-out infinite; }
.contact-dock.is-open .contact-dock__toggle::before, .contact-dock.is-open .contact-dock__toggle::after { animation: none; }
@keyframes dock-wave { 0% { opacity: .42; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.75); } }
@keyframes dock-ring { 0%, 60%, 100% { transform: rotate(0); } 64% { transform: rotate(-16deg); } 68% { transform: rotate(14deg); }
  72% { transform: rotate(-10deg); } 76% { transform: rotate(8deg); } 80% { transform: rotate(0); } }
@media (max-width: 639px) { .contact-dock { --dock-size: 52px; --dock-item: 46px; --dock-radius: 104px; --dock-gap: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .contact-dock__item, .contact-dock.is-open .contact-dock__item { --dock-a: var(--to); --dock-r: var(--dock-radius); --dock-s: 1;
    transition: opacity 150ms linear; transition-delay: 0s; }
  .contact-dock__toggle::before, .contact-dock__toggle::after, .contact-dock__phone { animation: none !important; }
}
@media print { .contact-dock { display: none; } }
