/* TopITC Software — 2026 relaunch in the original TopITC identity:
   light-grey surround, white sheet with a warm dark edge, yellow rounded section bars,
   green speech-bubble navigation, warm dark-grey type and orange serif accents.
   apito colours are scoped to the apito product context (.apito-*). */
:root {
  color-scheme: light;
  --surround: #dddddd;
  --paper: #ffffff;
  --ink: #564b48;
  --ink-strong: #2f2725;
  --edge: #564b48;
  --yellow: #ffcc33;
  --yellow-hover: #ffd966;
  --green: #48be00;
  --green-nav: #3da300;
  --green-link: #228201;
  --orange: #ff8040;
  --orange-text: #d9531e;
  --apito-name: #ff5300;
  --box: #e6e6e6;
  --box-ink: #555555;
  --line: #e2dcd9;
  --apito-teal: #7ac6c5;
  --apito-teal-ink: #2f7f7c;
  --apito-panel-ink: #1d2b2a;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surround); color: var(--ink); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--green-link); text-underline-offset: 3px; }
a:hover { color: #165a00; }
:focus-visible { outline: 3px solid var(--green-link); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--yellow); color: #000; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.2; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 0 0 10px 10px; background: var(--ink-strong); color: #fff; font-weight: 700; }
.skip-link:focus { top: 0; color: #fff; }

/* ---------- frame: white sheet + green bubble on the grey surround ---------- */
.frame { display: grid; grid-template-columns: minmax(0, 1fr) 280px; column-gap: 34px; align-items: start; width: min(1240px, 100%); margin-inline: auto; padding: 0 24px 56px 12px; }
.sheet { grid-column: 1; grid-row: 1; min-width: 0; min-height: 100vh; padding: 34px clamp(22px, 3.6vw, 44px) 30px; background: var(--paper); border-right: 3px solid var(--edge); border-bottom: 3px solid var(--edge); }

.bubble { grid-column: 2; grid-row: 1; position: sticky; top: 48px; margin: 48px 0 80px; padding: 30px 30px 30px; border-radius: 22px; background: var(--green-nav); color: #fff; }
.bubble::after { content: ""; position: absolute; top: calc(100% - 1px); right: 27%; width: 58px; height: 58px; background: inherit; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.bubble ul { margin: 0; padding: 0; list-style: none; }
.bubble li { border-bottom: 1px solid rgba(255, 255, 255, .3); }
.bubble a { position: relative; display: block; padding: .62em 0 .5em 1.55em; color: #fff; font-size: 1.32rem; font-weight: 700; line-height: 1.15; letter-spacing: .01em; text-decoration: none; text-transform: uppercase; }
.bubble a::before { content: ""; position: absolute; left: 0; top: .66em; width: 1.08em; height: .92em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 22'%3E%3Cpath fill='%23fff' d='M4 0h18a4 4 0 0 1 4 4v9a4 4 0 0 1-4 4H11l-7 5v-5a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z'/%3E%3C/svg%3E") no-repeat center / contain; opacity: 0; transition: opacity .15s ease; }
.bubble a:hover::before, .bubble a[aria-current="page"]::before { opacity: 1; }
.bubble li:has(a[aria-current="page"]) { border-bottom: 3px solid #fff; }
.bubble a:hover { color: #fff; }
.bubble a:focus-visible { outline-color: #fff; }
.bubble-copy { margin: 26px 0 0; color: #000; font-size: .9rem; line-height: 1.35; }

main { container: main / inline-size; }

/* ---------- masthead ---------- */
.masthead { margin: 0 0 30px; text-align: center; }
.brand { display: inline-grid; justify-items: start; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink-strong); }
.brand-name, .brand-owner { font-size: clamp(1.65rem, 3.1vw, 2.3rem); font-weight: 400; line-height: 1.2; letter-spacing: -.005em; }
.brand-tagline { justify-self: center; margin-top: .5em; color: var(--orange); font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.5rem); font-style: italic; }

/* ---------- section bars and bodies ---------- */
.bar { margin: 46px 0 22px; padding: .2em .95em .24em; border-radius: 999px; background: var(--yellow); color: #000; font-size: clamp(1.45rem, 2.7vw, 2.15rem); font-weight: 400; line-height: 1.25; }
main > .bar:first-child { margin-top: 10px; }
.section-body { padding-inline: clamp(0px, 2.2vw, 28px); }
.section-body > :last-child { margin-bottom: 0; }
.section-body h2 { margin: 34px 0 10px; font-size: 1.4rem; }
.section-body h3 { margin: 30px 0 8px; font-size: 1.25rem; }
.section-body h2:first-child, .section-body h3:first-child { margin-top: 0; }
.lead { font-size: 1.16rem; }
.fine { font-size: .9rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .55em 1.25em; border-radius: 999px; background: var(--yellow); color: #000; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.button:hover { background: var(--yellow-hover); color: #000; transform: translateY(-1px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.text-link { font-weight: 700; }

.note { margin: 26px 0; padding: 16px 20px; border-radius: 10px; background: var(--box); color: var(--box-ink); font-size: .95rem; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink-strong); }

/* ---------- homepage ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(16px, 3vw, 36px); padding-inline: clamp(0px, 2.2vw, 28px); }
.intro h1 { margin: 0 0 16px; font-size: clamp(1.9rem, 3.1vw, 2.45rem); font-weight: 400; letter-spacing: -.015em; }
.intro h1 em { color: var(--orange-text); font-family: var(--serif); font-weight: 400; }
.intro-art { position: relative; margin: 0; }
.intro-art img { display: block; width: 100%; height: auto; }
.intro-art figcaption { position: absolute; right: 9%; bottom: 0; color: #776c69; font-size: .72rem; }

.product { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; margin: 28px 0 10px; }
.product-art { display: block; width: 100%; height: auto; box-shadow: 5px 6px 7px rgba(0, 0, 0, .42); }
.section-body .product-name { margin: 2px 0 0; color: var(--apito-name); font-family: var(--serif); font-size: 2.5rem; font-weight: 400; line-height: 1; }
.product-claim { margin: 10px 0 12px; font-size: 1.15rem; }
.product-status { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border: 1px solid var(--apito-teal); border-radius: 999px; color: var(--apito-teal-ink); font-size: .86rem; font-weight: 700; }
.more { color: var(--ink); font-weight: 700; }
.more:hover { color: var(--ink-strong); }

.projects { margin: 34px 0 0; }
.link-list { margin: 10px 0 0; padding: 0; list-style: none; }
.link-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.link-list li:first-child { border-top: 1px solid var(--line); }
.link-list a { font-weight: 700; }
.link-list span { display: block; font-size: .92rem; }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 30px; margin: 0; }
.services dt { margin: 0 0 6px; color: var(--ink-strong); font-size: 1.2rem; font-weight: 700; }
.services dt::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 9px; border-radius: 50%; background: var(--yellow); vertical-align: 1px; }
.services dd { margin: 0; }
.services dd a { display: inline-block; margin-top: 6px; font-weight: 700; }

.contact-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; align-items: start; }
.contact-block address, .contact-lines { margin: 0 0 1em; }
.mail-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 1em; }
.mail-cta svg { flex: none; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 22px 0 0; font-size: .95rem; }

/* ---------- content pages ---------- */
.prose { max-width: 46rem; }
.prose ul { padding-left: 1.3em; }
.legal-data { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 22px; margin: 22px 0; padding: 18px 22px; border-radius: 10px; background: var(--box); color: var(--box-ink); }
.legal-data dt { font-weight: 700; }
.legal-data dd { margin: 0; }
.contact-list { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px 22px; margin: 22px 0; }
.contact-list dt { font-weight: 700; }
.contact-list dd { margin: 0; }

/* ---------- apito product context ---------- */
.apito-hero { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(22px, 4vw, 44px); align-items: center; }
.apito-card { display: block; width: 100%; height: auto; box-shadow: 5px 6px 7px rgba(0, 0, 0, .42); }
.apito-logo { display: block; width: 116px; height: auto; margin: 0 0 14px; }
.apito-claim { margin: 0 0 12px; color: var(--apito-teal-ink); font-size: 1.45rem; font-weight: 700; line-height: 1.25; }
.apito-panel { position: relative; margin: 168px 0 0; padding: 26px 230px 26px 28px; border-radius: 18px; background: var(--apito-teal); color: var(--apito-panel-ink); }
.apito-panel h3 { margin: 0 0 8px; color: var(--apito-panel-ink); }
.apito-panel p { max-width: 34rem; }
.apito-panel a:not(.button) { color: var(--apito-panel-ink); font-weight: 700; }
.apito-panel .button { margin-top: 4px; }
.apito-perch { position: absolute; right: 30px; top: -146px; width: 170px; height: auto; }

/* ---------- footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-copy { display: none; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink); }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--green-link); }

/* ---------- responsive: component layouts follow the content width (container queries) ---------- */
@container main (max-width: 820px) {
  .apito-hero { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
}

@container main (max-width: 700px) {
  .services { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@container main (max-width: 620px) {
  .intro, .product, .apito-hero, .contact-block { grid-template-columns: minmax(0, 1fr); }
  .intro-art { max-width: 460px; }
  .product-art { max-width: 240px; }
  .apito-card { max-width: 340px; }
  .apito-panel { margin-top: 128px; padding: 46px 22px 26px; }
  .apito-perch { right: 18px; top: -112px; width: 130px; }
  .legal-data, .contact-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-data dd, .contact-list dd { margin-bottom: 10px; }
}

/* ---------- responsive: page frame follows the viewport ---------- */
@media (max-width: 1000px) {
  .frame { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 40px; }
  .bubble { background: #2e8600; grid-column: 1; grid-row: 1; position: relative; top: auto; margin: 0 0 44px; padding: 14px 20px; border-radius: 18px; }
  .bubble::after { left: 13%; right: auto; width: 38px; height: 32px; clip-path: polygon(0 0, 100% 0, 0 100%); }
  .bubble ul { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; column-gap: 26px; }
  .bubble li { border-bottom: 0; }
  .bubble li:has(a[aria-current="page"]) { border-bottom: 0; }
  .bubble a { padding: .45em 0 .4em 1.45em; font-size: 1.12rem; }
  .bubble a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .bubble-copy { display: none; }
  .footer-copy { display: block; }
  .sheet { grid-row: 2; min-height: 0; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .sheet { padding: 26px 18px 24px; }
  .bubble { padding: 10px 16px; }
  .bubble ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .bubble a { font-size: 1.02rem; }
  .masthead { margin-bottom: 22px; }
  .brand-name, .brand-owner { font-size: 1.5rem; }
  .bar { margin-top: 38px; }
  .actions .button { width: 100%; }
  /* fallback for browsers without container queries */
  .intro, .product, .apito-hero, .contact-block, .services { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  body { background: #fff; }
  .frame { display: block; padding: 0; }
  .bubble, .skip-link { display: none; }
  .sheet { border: 0; padding: 0; min-height: 0; }
  .product-art, .apito-card { box-shadow: none; }
}
