/* technosoftware.com: one stylesheet for every page, the same as nodatrail.com's so both sites
   read as one family. The dark band and accents are NODAtrail's tokens; --ua is the UA Solutions colour.
   Change a colour here, nowhere else. */

:root {
  color-scheme: light;

  /* page */
  --bg: #ffffff;
  --bg-alt: #f5f5f8;
  --text: #1c1c23;
  --text-soft: #4a4a57;
  --text-muted: #6b6b7a;
  --line: #e4e4ea;

  /* the app's dark ground, used for the hero and the screenshot frames */
  --ground: #16161b;
  --surface: #1f1f26;
  --raised: #26262e;
  --on-ground: #ecebf2;
  --on-ground-soft: #c9c8d6;
  --on-ground-muted: #a9a8b8;
  --line-dark: #3a3a45;

  /* module accents, as in the app */
  --home: #53d1ea;
  --plan: #00b8d5;
  --para: #5baaf5;
  --finance: #ac92ef;
  --trips: #d4d2e4;
  --food: #f2a93b;
  --people: #9b98f6;
  --tickets: #7fd1ae;
  --notfall: #f28b82;
  --processes: #b9d96e;
  --warm: #f0b46b;

  --ua: #5baaf5;
  --accent: var(--ua);

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;

  --wrap: 1160px;
  --gutter: 24px;
  --radius: 14px;
}

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("fonts/Fraunces-SemiBold.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* header, shaped like technosoftware.com's: logo left, menu right */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
.brand img { width: 40px; height: 40px; }
.brand small { display: block; font-weight: 400; font-size: .72rem; color: var(--text-muted); letter-spacing: .04em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--text-soft); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }
.nav .lang { margin-left: 8px; border: 1px solid var(--line); font-size: .85rem; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .nav { display: flex; }
@media (max-width: 980px) {
  .site-header > .wrap > .nav { display: none; }
  .menu { display: block; }
  .menu .nav { display: none; position: absolute; right: var(--gutter); left: var(--gutter); top: 64px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
  .menu .nav .lang { margin: 4px 0 0; }
}

/* hero: the app's dark ground with the logo's trail of light */
.hero { background: var(--ground); color: var(--on-ground); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero.solo .wrap { grid-template-columns: 1fr; max-width: 860px; }
.hero p.lead { color: var(--on-ground-soft); font-size: 1.15rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.hero .eyebrow { color: var(--accent); }
.trail { height: 3px; width: 120px; border-radius: 3px; background: linear-gradient(90deg, var(--home), var(--finance)); margin: 0 0 24px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; } }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; }
.btn.primary { background: var(--text); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--text); }
.hero .btn.primary, .band .btn.primary { background: var(--accent); color: #141419; }
.hero .btn.ghost, .band .btn.ghost { border-color: var(--line-dark); color: var(--on-ground); }

/* screenshots: a dark frame that shows the placeholder until the picture exists */
.shot { margin: 0; }
.shot .frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-dark); overflow: hidden; box-shadow: 0 24px 60px rgba(10,10,20,.28); }
.shot.phone .frame { aspect-ratio: 9 / 19.5; max-width: 260px; margin: 0 auto; border-radius: 36px; border-width: 6px; border-color: #2b2b33; }
.shot.tablet .frame { aspect-ratio: 4 / 3; border-radius: 24px; border-width: 6px; border-color: #2b2b33; }
.shot.paper .frame { aspect-ratio: 1 / 1.414; max-width: 380px; margin: 0 auto; background: #fff; border-color: var(--line); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; z-index: 1; }
.shot .ph { position: absolute; inset: 14px; border: 1.5px dashed var(--line-dark); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; color: var(--on-ground-muted); font-size: .88rem; }
.shot.paper .ph { border-color: var(--line); color: var(--text-muted); }
.shot .ph b { font-family: ui-monospace, Menlo, monospace; font-weight: 600; color: var(--accent); letter-spacing: .05em; }
.shot.phone figcaption, .shot.paper figcaption { text-align: center; }
.shot figcaption { font-size: .88rem; color: var(--text-muted); margin-top: 12px; }
.hero .shot figcaption { color: var(--on-ground-muted); }

/* sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--text-soft); font-size: 1.1rem; }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.feature + .feature, .feature + .cards, .cards + .feature { margin-top: 96px; }
.feature.flip > :first-child { order: 2; }
.feature.text-only { grid-template-columns: 1fr; max-width: 820px; }
.feature p { color: var(--text-soft); }
.feature h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
@media (max-width: 880px) { .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; } .feature.flip > :first-child { order: 0; } section { padding: 64px 0; } }

ul.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.ticks li { position: relative; padding-left: 28px; margin: 0 0 .55em; color: var(--text-soft); }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }

/* module grid on the home page */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.module { display: block; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; transition: transform .15s, box-shadow .15s; }
.module:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20,20,30,.08); }
.module::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--m); }
.module h3 { margin: 6px 0 6px; }
.module p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.module .tag { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* small cards: principles, facts */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alt .card { background: #fff; }
.card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.card .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-bottom: 14px; }

/* editions / use cases */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .uses { grid-template-columns: 1fr; } }
.use { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.use h3 { margin-bottom: 4px; }
.use .who { color: var(--text-muted); font-size: .9rem; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--m) 22%, #fff); color: var(--text); border: 1px solid color-mix(in srgb, var(--m) 50%, #fff); }

/* table on the licence page */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--text-muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.mark { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--m); margin-right: 8px; vertical-align: middle; }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { counter-increment: s; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.step::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ground); color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.step p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* the dark band before the footer */
.band { background: var(--ground); color: var(--on-ground); }
.band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band h2 { margin: 0 0 6px; }
.band p { color: var(--on-ground-soft); margin: 0; max-width: 640px; }
.band .buttons { margin-top: 0; }

/* page to page */
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 32px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.pager a { text-decoration: none; color: var(--text-soft); }
.pager a:hover { color: var(--text); }
.pager span { display: block; font-size: .75rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }

.note { border-left: 4px solid var(--accent); background: var(--bg-alt); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--text-soft); font-size: .95rem; }

/* footer, with technosoftware.com's columns */
.site-footer { background: #0f0f13; color: var(--on-ground-muted); padding: 64px 0 40px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 880px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--on-ground); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer a { color: var(--on-ground-soft); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid #26262e; margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer .brand { color: var(--on-ground); margin-bottom: 14px; }
.site-footer .brand small { color: var(--on-ground-muted); }

/* legal pages */
.legal-text { max-width: 760px; }
.legal-text h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text p { color: var(--text-soft); }
mark.todo { background: #fff1d6; color: #7a4a00; padding: 0 4px; border-radius: 4px; }

/* technosoftware.com only */
.brand .logo-text { display: none; }
.brand img.logo { width: auto; height: 40px; }
.brand img.logo[data-missing] { display: none; }
.brand img.logo[data-missing] + .logo-text { display: block; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .products { grid-template-columns: 1fr; } }
.product { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--radius); background: var(--ground); color: var(--on-ground); text-decoration: none; overflow: hidden; }
.product::after { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; background: radial-gradient(closest-side, color-mix(in srgb, var(--m) 35%, transparent), transparent 70%); }
.product h3 { font-size: 1.6rem; margin: 0; }
.product p { color: var(--on-ground-soft); margin: 0; }
.product .kicker { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--m); }
.product img { width: 56px; height: 56px; }
.product .more { margin-top: auto; padding-top: 12px; color: var(--m); font-weight: 600; }
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.downloads a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: #fff; }
.downloads a:hover { border-color: var(--accent); }
.downloads span { color: var(--text-muted); font-size: .85rem; }
.address { font-style: normal; color: var(--text-soft); line-height: 1.8; }
.card.plan { display: flex; flex-direction: column; position: relative; }
.card.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card.plan .price { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; margin: 18px 0 4px; }
.card.plan .buttons { margin-top: auto; padding-top: 16px; }
.popular { position: absolute; top: 16px; right: 16px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, #fff); }
