/* Twin Geckos Technology Services - site styles
   Type: Archivo (wide, headings), IBM Plex Sans (body). Both self-hosted, OFL. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plexsans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --ink: #1E282D;
  --ink-2: #2B373D;
  --paper: #EEF2F0;
  --white: #FFFFFF;
  --teal: #0B6E66;
  --teal-dark: #08534D;
  --signal: #A4D233;
  --muted: #56646B;
  --rule: #C9D3CF;

  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.5rem + 3.6vw, 3.875rem);

  --gap: clamp(1.25rem, 0.8rem + 1.8vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --wrap: 72rem;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--head);
  font-stretch: 118%;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; font-stretch: 108%; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
.nowrap { white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-stretch: 108%;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  border: 2px solid var(--teal);
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); text-decoration: none; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--teal-dark); border-color: var(--white); }
.btn-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-small { padding: 0.6rem 1rem; font-size: 0.9375rem; }

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 242, 240, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand-name { font-family: var(--head); font-weight: 800; font-stretch: 122%; font-size: 1.2rem; letter-spacing: -0.01em; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.nav-list a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav-list a:not(.btn):hover { color: var(--teal); text-decoration: underline; }
.nav-toggle {
  display: none;
  font: 600 1rem var(--body);
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: 0.45rem 0.9rem; cursor: pointer;
}

/* Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* The call route: the one bold element on the page */
.route {
  margin: 0;
  background: var(--ink);
  color: #DCE5E1;
  border-radius: 16px;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.1rem);
  box-shadow: 0 30px 60px -30px rgba(30, 40, 45, 0.55);
}
.route-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; }
.route-title { font-family: var(--head); font-stretch: 115%; font-weight: 700; color: var(--white); font-size: 1.05rem; }
.route-time { color: #9FB0AA; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.route-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.route-steps::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px;
  background: #3E4D54;
}
.route-steps::after {
  content: ""; position: absolute; left: 7px; top: 10px; width: 2px; height: 0;
  background: var(--signal);
  animation: route-trace 2.6s cubic-bezier(.45,.05,.3,1) 0.5s forwards;
}
.route-steps li { position: relative; padding: 0 0 1.15rem 2.1rem; display: grid; gap: 0.1rem; }
.route-steps li:last-child { padding-bottom: 0; }
.route-steps li::before {
  content: ""; position: absolute; left: 0; top: 0.35rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); border: 2px solid #5D6E75; z-index: 1;
  animation: node-on 0.3s ease forwards;
}
.route-steps li:nth-child(1)::before { animation-delay: 0.5s; }
.route-steps li:nth-child(2)::before { animation-delay: 1.1s; }
.route-steps li:nth-child(3)::before { animation-delay: 1.7s; }
.route-steps li:nth-child(4)::before { animation-delay: 2.3s; }
.route-steps li:nth-child(5)::before { animation-delay: 2.9s; }
.route-steps li:nth-child(6)::before { animation-delay: 3.5s; }
.route-steps:has(> li:nth-child(6))::after { animation-duration: 3.2s; }
.step-name { color: var(--white); font-weight: 600; }
.step-detail { color: #A8B7B2; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.route-foot { margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid #3E4D54; color: #A8B7B2; font-size: 0.95rem; }

@keyframes route-trace { to { height: calc(100% - 20px); } }
@keyframes node-on { to { border-color: var(--signal); background: var(--signal); } }

@media (prefers-reduced-motion: reduce) {
  .route-steps::after { animation: none; height: calc(100% - 20px); }
  .route-steps li::before { animation: none; border-color: var(--signal); background: var(--signal); }
}

/* Facts line --------------------------------------------------------- */
.facts { border-block: 1px solid var(--rule); background: var(--white); }
.facts p { margin: 0; padding-block: 1.25rem; max-width: none; color: var(--ink-2); font-size: var(--step-0); }

/* Feature: phone systems -------------------------------------------- */
.feature { padding-block: var(--section); }
.feature-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--gap) clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.checklist li { position: relative; padding-left: 2rem; max-width: 58ch; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 0.95rem; height: 0.5rem;
  border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

/* Services list ------------------------------------------------------ */
.services { padding-block: var(--section); background: var(--white); border-top: 1px solid var(--rule); }
.section-intro { color: var(--muted); font-size: var(--step-1); line-height: 1.45; margin-bottom: 2.5rem; }
.service-list { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 1rem + 4vw, 5rem); }
.service { padding-block: 1.4rem; border-top: 1px solid var(--rule); }
.service dt { font-family: var(--head); font-stretch: 110%; font-weight: 700; font-size: var(--step-1); margin-bottom: 0.35rem; }
.service dd { margin: 0; color: var(--ink-2); max-width: 52ch; }
.price-note { display: block; margin-top: 0.4rem; color: var(--teal-dark); font-weight: 600; }

/* Process ------------------------------------------------------------ */
.process { padding-block: var(--section); }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 3px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 0.6rem;
  font-family: var(--head); font-weight: 800; font-stretch: 125%; font-size: var(--step-2); line-height: 1;
  color: var(--teal);
}
.steps p { color: var(--ink-2); margin: 0; }

/* Pricing ------------------------------------------------------------ */
.pricing { padding-block: var(--section); background: var(--white); border-top: 1px solid var(--rule); }
.pricing-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--gap) clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 1.05rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table tr:first-child th, .price-table tr:first-child td { border-top: 1px solid var(--rule); }
.price-table th { text-align: left; font-weight: 600; padding-right: 1.5rem; }
.price-table th span, .price-table td span { display: block; font-weight: 400; color: var(--muted); font-size: 0.95rem; }
.price-table td { text-align: right; font-family: var(--head); font-stretch: 112%; font-weight: 750; font-size: var(--step-1); white-space: nowrap; }
.price-table td span { font-family: var(--body); font-stretch: 100%; display: inline; }

/* Testimonials ------------------------------------------------------- */
.quotes { padding-block: var(--section); }
.quote-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--gap); margin-top: 2rem; }
.quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--teal); }
.quote blockquote { margin: 0 0 0.75rem; font-size: var(--step-1); line-height: 1.45; }
.quote figcaption { color: var(--muted); font-weight: 600; }

/* Person ------------------------------------------------------------- */
.person { padding-block: var(--section); }
.person-grid { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.person img { border-radius: 14px; aspect-ratio: 320 / 372; object-fit: cover; background: var(--rule); }

/* Closing ------------------------------------------------------------ */
.closing { background: var(--teal-dark); color: var(--white); padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.closing h2 { margin: 0; max-width: 22ch; color: var(--white); }

/* Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #C3CFCA; padding-top: 3.5rem; font-size: 0.975rem; }
.site-footer a { color: #E6EEEA; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { width: 48px; flex: none; }
.footer-brand strong { color: var(--white); }
.footer-head { font-family: var(--head); font-stretch: 110%; font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-base { margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid #3E4D54; }
.footer-base p { margin: 0; color: #93A39D; font-size: 0.9rem; }


/* ---- Inner pages ---------------------------------------------------- */
.nav-list a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-decoration-thickness: 2px; }

.page-head { padding-block: clamp(2.75rem, 2rem + 3vw, 4.75rem) clamp(2rem, 1.5rem + 2vw, 3.25rem); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: var(--step-4); max-width: 20ch; }
.page-head .lede { max-width: 60ch; }

.story { padding-block: var(--section); }
.story-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.pull { margin: 2rem 0 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--teal); }
.pull p { font-size: var(--step-1); line-height: 1.45; margin-bottom: 0.5rem; }
.pull cite { font-style: normal; color: var(--muted); font-weight: 600; }
.note { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; }
.note img { width: 56px; margin-bottom: 0.75rem; }
.note p { color: var(--ink-2); font-size: 0.975rem; margin: 0; }

.timeline-section { padding-block: var(--section); background: var(--white); border-top: 1px solid var(--rule); }
.timeline { list-style: none; margin: 2rem 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline .when { font-family: var(--head); font-stretch: 118%; font-weight: 750; font-size: var(--step-1); color: var(--teal); font-variant-numeric: tabular-nums; line-height: 1.2; }
.timeline h3 { margin-bottom: 0.25rem; }
.timeline p { margin: 0; color: var(--ink-2); }

.tags { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { border: 1px solid var(--rule); background: var(--white); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.925rem; }

.values { padding-block: var(--section); background: var(--white); border-top: 1px solid var(--rule); }

.usecases { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.usecases > div { padding-top: 1.1rem; border-top: 3px solid var(--ink); }
.usecases dt { font-family: var(--head); font-stretch: 110%; font-weight: 700; font-size: var(--step-1); margin-bottom: 0.4rem; }
.usecases dd { margin: 0; color: var(--ink-2); }
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.caveat { margin: 2.5rem 0 0; padding: 1.1rem 1.25rem; background: var(--paper); border-radius: var(--radius); max-width: none; }

.apps { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.apps + .apps { border-top: 1px solid var(--rule); }
.app-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 1rem + 4vw, 5rem); }
.app-list li { padding-block: 1.25rem; border-top: 1px solid var(--rule); }
.app-list h3 { margin-bottom: 0.3rem; }
.app-list h3 a { color: var(--ink); text-decoration: none; }
.app-list h3 a:hover { color: var(--teal); text-decoration: underline; }
.app-list p { margin: 0 0 0.35rem; color: var(--ink-2); }
.app-domain { color: var(--muted); font-size: 0.925rem; font-variant-numeric: tabular-nums; }

/* Contact */
.contact { padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.form-panel { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); }
.contact-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.req { font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-left: 0.25rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--rule); border-radius: 8px; padding: 0.7rem 0.8rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field-check { display: flex; gap: 0.65rem; align-items: flex-start; }
.field-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--teal); flex: none; }
.field-check label { font-weight: 400; color: var(--ink-2); margin: 0; }
.captcha-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.captcha-row input[type="number"] { width: 6rem; }
.captcha-question { font-family: var(--head); font-stretch: 112%; font-weight: 700; font-size: var(--step-1); display: flex; align-items: center; gap: 0.75rem; }
.captcha-refresh { font: 500 0.875rem var(--body); color: var(--teal); background: none; border: 1px solid var(--rule); border-radius: 6px; padding: 0.25rem 0.55rem; cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; cursor: pointer; }
.contact-form .btn:disabled { opacity: 0.65; cursor: progress; }
.form-error { display: none; padding: 0.9rem 1rem; border-radius: 8px; background: #FBEAE7; color: #7A2216; border: 1px solid #E8B9B0; }
.form-success { display: none; padding: 0.9rem 1rem; border-radius: 8px; background: #E3F0EE; color: var(--teal-dark); border: 1px solid #B9D9D4; font-weight: 600; }
.contact-info dl { margin: 0 0 2rem; }
.contact-info dt { font-weight: 600; margin-top: 1rem; }
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { margin: 0.15rem 0 0; color: var(--ink-2); }

.faq { padding-block: var(--section); background: var(--white); border-top: 1px solid var(--rule); }
.faq-list { margin-top: 1.5rem; max-width: 52rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-weight: 600; font-size: var(--step-0); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-family: var(--head); font-weight: 700; font-size: 1.35rem; color: var(--teal); }
.faq details[open] summary::after { content: "-"; }
.faq details p { margin: 0 0 1.1rem; color: var(--ink-2); }

/* Legal pages */
.legal { padding-block: var(--section); }
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; max-width: 64ch; }

@media (max-width: 960px) {
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.35rem; }
}
@media (max-width: 520px) {
  .usecases { grid-template-columns: 1fr; }
}

/* Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-grid, .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav-list.open { display: flex; }
  .nav-list li a:not(.btn) { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .nav-cta { margin-top: 1rem; }
  .nav-cta .btn { display: block; text-align: center; }
  .service-list { grid-template-columns: 1fr; }
  .person-grid { grid-template-columns: 1fr; }
  .person img { max-width: 16rem; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; text-align: center; }
  .route-cap { flex-direction: column; gap: 0.2rem; }
}

/* ---- Interaction layer ------------------------------------------------ */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Header settles into a raised bar once scrolled */
.site-header { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px -18px rgba(30, 40, 45, 0.6); background: rgba(238, 242, 240, 0.98); }

/* Gecko mark: a small wiggle when you point at the brand */
.brand img { transition: transform 0.35s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 60%; }
.brand:hover img, .brand:focus-visible img { transform: rotate(-12deg) scale(1.06); }

/* Buttons: a short press */
.btn { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(8, 83, 77, 0.7); }
.btn-quiet:hover { box-shadow: 0 6px 16px -12px rgba(30, 40, 45, 0.5); }
.btn:active { transform: translateY(0); box-shadow: none; }

/* Call route mode switch */
.route-modes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: -0.4rem 0 1.4rem; }
.route-modes[hidden] { display: none; }
.route-modes button {
  font: 600 0.9rem var(--body); color: #DCE5E1; background: transparent;
  border: 1.5px solid #4A5A61; border-radius: 999px; padding: 0.5rem 0.95rem; min-height: 2.5rem;
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.route-modes button:hover { border-color: #9FB0AA; color: var(--white); }
.route-modes button[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.route-steps[hidden] { display: none; }

/* Focus rings that stay visible on the dark panels */
.route :focus-visible, .closing :focus-visible, .site-footer :focus-visible { outline-color: var(--signal); }

/* Service rows: a teal rule draws across on hover */
.service { position: relative; }
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.service:hover::before { transform: scaleX(1); }

/* Price rows highlight on hover */
.price-table tr { transition: background-color 0.2s ease; }
.price-table tr:hover { background: var(--paper); }
.price-table th, .price-table td { padding-inline: 0.5rem; }

/* Sequence rules fill in, in order, when scrolled into view */
.steps li, .usecases > div {
  border-top-color: transparent;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--rule), var(--rule));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 3px, 100% 3px;
  background-origin: border-box;
}
.reveal-ready li, .reveal-ready > div { background-size: 0% 3px, 100% 3px; }
.reveal-ready.in li, .reveal-ready.in > div { background-size: 100% 3px, 100% 3px; transition: background-size 0.7s cubic-bezier(.45,.05,.3,1); }
.reveal-ready li::before { opacity: 0.35; transition: opacity 0.4s ease; }
.reveal-ready.in li::before { opacity: 1; }
.reveal-ready.in > :nth-child(2), .reveal-ready.in > :nth-child(2)::before { transition-delay: 0.18s; }
.reveal-ready.in > :nth-child(3), .reveal-ready.in > :nth-child(3)::before { transition-delay: 0.36s; }
.reveal-ready.in > :nth-child(4), .reveal-ready.in > :nth-child(4)::before { transition-delay: 0.54s; }

/* Portfolio and inline links: underline thickens instead of jumping */
a { transition: color 0.15s ease, text-decoration-thickness 0.15s ease; }

/* Mobile menu slides down */
@media (max-width: 760px) {
  .nav-list.open { animation: menu-in 0.22s ease-out; box-shadow: 0 18px 30px -24px rgba(30, 40, 45, 0.6); }
  .nav-toggle { min-height: 2.75rem; min-width: 4.5rem; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Forms: bigger consent box, errors only after the visitor has touched a field */
.field-check input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; }
.field input, .field select, .field textarea { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FB0AA; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #B0412E; box-shadow: 0 0 0 3px rgba(176, 65, 46, 0.12); }
.captcha-refresh { min-height: 2.25rem; padding-inline: 0.75rem; }

/* FAQ: answers ease open */
.faq summary { transition: color 0.15s ease; }
.faq summary:hover { color: var(--teal); }
.faq details[open] p { animation: faq-in 0.25s ease-out; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .btn:hover { transform: none; }
  .brand:hover img, .brand:focus-visible img { transform: none; }
}


/* ---- Brand: stacked name, a spark circling the gecko mark ------------- */
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-sub {
  font-family: var(--body); font-stretch: 100%; font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.01em; color: var(--muted); margin-top: 0.15rem;
}
.brand-mark { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none; }
.brand-mark img { width: 36px; position: relative; z-index: 1; }
.brand-mark::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(11, 110, 102, 0.28);
}
.brand-mark .orbit { position: absolute; inset: 0; border-radius: 50%; animation: tg-orbit 9s linear infinite; }
.brand-mark .orbit::before {
  content: ""; position: absolute; top: -3.5px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 6px 2px rgba(164, 210, 51, 0.75), 0 0 14px 4px rgba(164, 210, 51, 0.35);
}
.brand:hover .orbit { animation-duration: 2.4s; }
@keyframes tg-orbit { to { transform: rotate(360deg); } }
/* Animations off: the spark stays, parked at the upper right, instead of disappearing */
@media (prefers-reduced-motion: reduce) {
  .brand-mark .orbit { animation: none !important; transform: rotate(45deg); }
}
@media (max-width: 380px) {
  .brand-sub { font-size: 0.7rem; }
  .brand-name { font-size: 1.05rem; }
}

/* ---- Animated call flow (home page) ----------------------------------- */
.callflow { background: var(--ink); color: #DCE5E1; padding-block: var(--section); }
.callflow h2 { color: var(--white); }
.callflow .section-intro { color: #A8B7B2; margin-bottom: 1.75rem; }
.callflow :focus-visible { outline-color: var(--signal); }

.flow-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 2rem; }
.flow-controls[hidden] { display: none; }
.flow-modes { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.flow-modes button, .flow-pause {
  font: 600 0.925rem var(--body); color: #DCE5E1; background: transparent;
  border: 1.5px solid #4A5A61; border-radius: 999px; padding: 0.55rem 1rem; min-height: 2.6rem; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.flow-modes button:hover, .flow-pause:hover { border-color: #9FB0AA; color: var(--white); }
.flow-modes button[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.flow-pause { border-style: dashed; }

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-areas:
    ".    .     .     .    support ticket"
    "call hours menu  desk book    .     "
    ".    .     after .    ext     vm    ";
  column-gap: clamp(1.5rem, 0.5rem + 1.8vw, 2.4rem);
  row-gap: 1.75rem;
  align-items: center;
  padding-bottom: 3.25rem;
}
.flow-lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 0; }
.flow-lines .edge { fill: none; stroke: #3E4D54; stroke-width: 2; }
.flow-lines .edge-lit { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-linecap: round; }
.flow-lines .token { fill: var(--signal); filter: drop-shadow(0 0 5px rgba(164, 210, 51, 0.95)) drop-shadow(0 0 12px rgba(164, 210, 51, 0.5)); transition: opacity 0.3s ease; }

.fn {
  position: relative; z-index: 1;
  display: grid; gap: 0.15rem;
  padding: 0.65rem 0.75rem; border-radius: 10px;
  background: var(--ink-2); border: 1.5px solid #3E4D54;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
}
.fn-name { color: var(--white); font-weight: 600; font-size: 0.925rem; line-height: 1.25; }
.fn-sub { color: #A8B7B2; font-size: 0.8rem; line-height: 1.35; }
.fn-ai { background: #183A3A; border-color: #2C5653; }
.fn-person { background: #2E3A2A; border-color: #4A5A3C; }
.fn.on { border-color: rgba(164, 210, 51, 0.65); }
.fn.here { border-color: var(--signal); box-shadow: 0 0 0 4px rgba(164, 210, 51, 0.16), 0 0 26px -6px rgba(164, 210, 51, 0.7); }
.fn[data-node="call"] { grid-area: call; }
.fn[data-node="hours"] { grid-area: hours; }
.fn[data-node="menu"] { grid-area: menu; }
.fn[data-node="after"] { grid-area: after; }
.fn[data-node="desk"] { grid-area: desk; }
.fn[data-node="book"] { grid-area: book; }
.fn[data-node="support"] { grid-area: support; }
.fn[data-node="ticket"] { grid-area: ticket; }
.fn[data-node="ext"] { grid-area: ext; }
.fn[data-node="vm"] { grid-area: vm; }

.flow-caption { margin: 0.5rem 0 0; min-height: 3.2em; font-size: var(--step-1); line-height: 1.45; color: var(--white); max-width: 52ch; }
.flow:not(.js-flow) + .flow-caption { display: none; }

@media (max-width: 960px) {
  .flow {
    grid-template-columns: minmax(0, 24rem);
    grid-template-areas: "call" "hours" "after" "menu" "desk" "book" "support" "ticket" "ext" "vm";
    row-gap: 0.85rem; padding-bottom: 0; padding-left: 3.25rem;
  }
  .fn { padding: 0.6rem 0.85rem; }
  .flow-caption { font-size: var(--step-0); }
}

/* ---- App idea intake ---------------------------------------------------- */
.intake { padding-block: var(--section); }
.intake-grid { display: grid; grid-template-columns: 1.45fr 0.75fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.intake-step { font-size: var(--step-2); margin-bottom: 1rem; }
.intake-step:focus { outline: none; }
.chat-log {
  display: flex; flex-direction: column; gap: 0.85rem;
  max-height: min(60vh, 36rem); overflow-y: auto; padding: 0.25rem 0.25rem 0.75rem;
  scroll-behavior: smooth;
}
.msg { max-width: 88%; padding: 0.75rem 1rem; border-radius: 14px; line-height: 1.5; }
.msg p { margin: 0 0 0.6em; max-width: none; }
.msg p:last-child { margin-bottom: 0; }
.msg-assistant { align-self: flex-start; background: var(--paper); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--teal); color: var(--white); border-bottom-right-radius: 4px; }
.msg-user p { color: var(--white); }
.chat-typing { color: var(--muted); font-size: 0.925rem; margin: 0.25rem 0 0; }
.chat-form { margin-top: 1rem; display: grid; gap: 0.75rem; }
.chat-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); resize: vertical; min-height: 5.5rem;
  border: 1.5px solid var(--rule); border-radius: 10px; padding: 0.75rem 0.85rem;
}
.chat-form textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.chat-form.done textarea { background: var(--paper); }
.chat-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.chat-actions .btn { cursor: pointer; }
.chat-actions .btn:disabled, .mic:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.mic {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font: 600 0.9375rem var(--body); color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: 999px; padding: 0.5rem 1rem; min-height: 2.75rem; cursor: pointer;
}
.mic-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--teal); }
.mic.on { background: var(--ink); color: var(--white); }
.mic.on .mic-dot { background: var(--signal); box-shadow: 0 0 0 0 rgba(164, 210, 51, 0.7); animation: mic-pulse 1.4s ease-out infinite; }
@keyframes mic-pulse { to { box-shadow: 0 0 0 10px rgba(164, 210, 51, 0); } }
.mic-note { font-size: 0.85rem; color: var(--muted); margin: 0; max-width: 60ch; }
.intake-aside h2 { font-size: var(--step-2); }
@media (max-width: 960px) { .intake-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .msg { max-width: 94%; } .chat-actions .btn, .mic { flex: 1 1 auto; justify-content: center; text-align: center; } }
.intake-panel [hidden] { display: none !important; }

/* Software page: app idea call-out right under the page title */
.idea-band { background: var(--teal-dark); color: var(--white); padding-block: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
.idea-row { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; flex-wrap: wrap; }
.idea-band h2 { color: var(--white); font-size: var(--step-2); margin-bottom: 0.4rem; max-width: 28ch; }
.idea-band p { color: #D6E8E5; margin: 0; max-width: 56ch; }
.idea-band :focus-visible { outline-color: var(--signal); }
