/* ============================================
   GOULIARD SOFTWARE — company site
   Direction A: kin to gouliard.com
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:     #F5F0E8;
  --ink:    #111108;
  --muted:  #333333;
  --faint:  #8a8478;
  --rule:   #E0DAD0;
  --coral:  #E8503A;
  --font:   'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container-w: 672px;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Nav --- */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--rule);
}

.nav-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

/* mobile menu trigger: hidden on desktop, shown by the 560px query below */
.nav-toggle {
  display: none;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-toggle:hover {
  color: var(--ink);
}

/* --- Layout --- */

.col {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--faint);
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  margin-bottom: 32px;
}

/* --- Hero --- */

.hero {
  padding: 96px 0 72px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 350;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 18px;
}

.hero p {
  color: var(--muted);
  max-width: 48ch;
}

/* --- Products --- */

.products {
  padding-bottom: 64px;
}

.product {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--rule);
}

.product:first-of-type {
  border-top: none;
  padding-top: 0;
}

.product h2 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.product p {
  color: var(--muted);
  max-width: 44ch;
}

.go {
  flex-shrink: 0;
  align-self: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coral);
  white-space: nowrap;
  transition: opacity 0.2s;
}

.go:hover {
  opacity: 0.7;
}

.product-links {
  flex-shrink: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* .go sets align-self:center, which centres it VERTICALLY as a direct child
   of the horizontal .product but HORIZONTALLY in this vertical stack —
   leaving the shorter link short of the right edge. Re-assert flex-end. */
.product-links .go {
  align-self: flex-end;
}


/* --- Product marks --- */

.flame {
  width: 20px;
  height: 20px;
}

/* two-frame pixel flicker: the patch cells blink on/off with a hard step */
.flame-patch {
  animation: flame-flick 0.9s steps(1, end) infinite;
}

@keyframes flame-flick {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .flame-patch { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
}

.abc-icon {
  width: 20px;
  height: 20px;
  border-radius: 4.5px;
  display: block;
}

/* --- About --- */

.about {
  padding-bottom: 72px;
}

.about p {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 14px;
}

.about p.section-label {
  color: var(--faint);
  margin-bottom: 32px;
}

.about p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about p a:hover {
  color: var(--coral);
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--faint);
}

.site-footer a:hover {
  color: var(--ink);
}

/* --- Mobile --- */

@media (max-width: 560px) {
  .site-nav {
    padding: 16px 20px;
  }

  /* collapsed nav: links hide behind the Menu button; without JS the
     inline links stay (the toggle only renders under html.js) */
  .js .site-nav {
    flex-wrap: wrap;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .nav-links {
    display: none;
  }

  .js .site-nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    margin-top: 15px;
    padding-top: 6px;
    border-top: 1px solid var(--rule);
  }

  .js .site-nav.nav-open .nav-links a {
    padding: 11px 0;
  }

  .col {
    padding: 0 20px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .product {
    flex-direction: column;
    gap: 10px;
  }

  .go {
    align-self: flex-end;
  }

  .product-links {
    align-self: flex-end;
    align-items: flex-end;
  }

  .site-footer {
    padding: 20px;
  }
}

/* --- Support --- */

.support {
  padding-bottom: 96px;
}

.support .hero {
  padding: 72px 0 48px;
}

.field {
  margin-bottom: 26px;
}

.field-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 9px;
}

select,
input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: #FBF8F2;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 11px 13px;
  width: 100%;
  max-width: 420px;
  display: block;
}

textarea {
  max-width: 100%;
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23111108' stroke-width='1.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.submit-btn {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: none;
  border-radius: 0;
  padding: 13px 30px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.8;
}

.form-error {
  border: 1px solid var(--coral);
  color: var(--coral);
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 28px;
}

/* progressive disclosure: steps hide only when JS is running */
.js .step {
  display: none;
}

.js .step.active {
  display: block;
}

/* honeypot: off-screen for humans, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- KB suggestions on the support form --- */

.kb-suggest {
  border: 1px solid var(--rule);
  background: #FBF8F2;
  padding: 20px 22px;
  margin-bottom: 32px;
}

.kb-suggest .kb-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}

.kb-suggest ul {
  list-style: none;
}

.kb-suggest li {
  padding: 5px 0;
}

.kb-suggest a {
  font-size: 14px;
  color: var(--ink);
  transition: color 0.2s;
}

.kb-suggest a::after {
  content: "\00a0\2192";
  color: var(--faint);
}

.kb-suggest a:hover {
  color: var(--coral);
}

/* --- KB articles --- */

.kb-article {
  padding: 72px 0 96px;
}

.kb-article .crumb,
.abc-content .crumb {
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
  display: block;
}

.kb-article .crumb:hover,
.abc-content .crumb:hover {
  color: var(--ink);
}

.kb-article h1 {
  font-size: 27px;
  font-weight: 350;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 20px;
}

.kb-article p,
.kb-article li {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 14px;
}

.kb-article ol,
.kb-article ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.kb-article li {
  margin-bottom: 6px;
}

.kb-article .kb-foot {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--faint);
}

.kb-article .kb-foot a {
  color: var(--coral);
}

/* --- A Book of Colors microsite --- */

.col-wide {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Hero */

/* Centered hero, same composition as hottakes.app: headline, lede, CTA,
   then the phone below on the centerline. */
.abc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 0 72px;
}

.abc-hero h1 {
  font-size: 34px;
  font-weight: 350;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.abc-hero .abc-hero-desc {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 36px;
}

.abc-badge {
  display: inline-block;
  transition: opacity 0.2s;
}

/* width:auto — the badge SVG's own ratio is 2.99:1; a wider box would
   letterbox it, floating the black shape off-centre inside its own box. */
.abc-badge img {
  height: 44px;
  width: auto;
  display: block;
}

.abc-badge:hover {
  opacity: 0.8;
}

.abc-hero-img {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* The hero phone sits alone on the centerline, so it runs larger than the
   in-section ones; radii scale with it to keep the corners proportional. */
.abc-hero-img .abc-phone {
  width: 280px;
  max-width: 100%;
  border-radius: 44px;
}

/* 38px inner radius is the iPhone's own display curve at this width (~14%);
   the hero clip has a matching matte baked in, so the two coincide. */
.abc-hero-img .abc-phone img,
.abc-hero-img .abc-phone video {
  border-radius: 38px;
}

/* Device frames */

.abc-phone {
  border-radius: 32px;
  border: 6px solid #1a1a1a;
  overflow: hidden;
  background: #1a1a1a;
  width: 220px;
  flex-shrink: 0;
  box-shadow: 0 24px 60px rgba(17, 17, 8, 0.16), 0 6px 16px rgba(17, 17, 8, 0.08);
}

/* The child carries its own radius (same as hottakes.app's
   .hero-phone__video) rather than leaning on the parent's overflow:hidden.
   Note the raw iOS captures bake in the DISPLAY's squircle corners: where
   a system view is dark (the keyboard), the app's cream shows outside that
   curve and reads as light slivers inside our bezel. A CSS radius is a
   circular arc and can't match a squircle, and the UI's own text sits only
   30px from the frame edge so cropping it away clips real content. Instead
   the hero clip has a #1a1a1a corner matte composited in at the SAME radius
   the CSS clips at (scripted in the project context file) — the leftover is
   bezel-on-bezel. Any future clip needs the same treatment.
   object-fit:cover kills sub-pixel letterboxing from the ratio below. */
.abc-phone img,
.abc-phone video {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: 26px;
  display: block;
}

.abc-mac {
  border-radius: 10px;
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(17, 17, 8, 0.16), 0 6px 16px rgba(17, 17, 8, 0.08);
}

.abc-mac img {
  width: 100%;
  display: block;
}

/* Feature sections */

.abc-sec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}

.abc-sec--flip .abc-sec-img {
  order: -1;
}

.abc-sec-img {
  display: flex;
  justify-content: center;
}

.abc-sec-img .abc-phone,
.abc-sec-img .abc-panel {
  width: 205px;
}

.abc-sec h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.abc-sec p {
  color: var(--muted);
  max-width: 40ch;
}

/* Screenshot device frame: same recipe as .abc-phone and the Hot Takes
   site's hero-phone (dark padded frame, large radius). The inner curve
   clips the screenshots' baked rounded corners, so no crop artifacts. */
.abc-panel {
  width: 100%;
  max-width: 220px;
  padding: 6px;
  background: #1a1a1a;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(17, 17, 8, 0.16), 0 6px 16px rgba(17, 17, 8, 0.08);
  display: block;
  height: auto;
}

.abc-panel--wide {
  max-width: 576px;
  padding: 8px;
  border-radius: 18px;
}

.abc-sec--full {
  display: block;
  text-align: center;
}

.abc-sec--full h2 {
  max-width: 480px;
  margin: 0 auto 12px;
}

.abc-sec--full p {
  max-width: 52ch;
  margin: 0 auto;
}

.abc-sec--stack {
  display: block;
  text-align: center;
}

.abc-sec--stack h2 {
  max-width: 520px;
  margin: 0 auto 12px;
}

.abc-sec--stack p {
  max-width: 52ch;
  margin: 0 auto 40px;
}

.abc-sec--stack .abc-panel--wide {
  margin: 0 auto;
}

/* Mac window + menu-bar popover composition: the raw window capture
   carries its own macOS chrome (no device frame), and the popover
   overhangs the window's top-right corner */
.abc-mac-hero {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.abc-mac-hero .mac-shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(17, 17, 8, 0.16), 0 6px 16px rgba(17, 17, 8, 0.08);
}

.abc-mac-hero .mac-pop {
  position: absolute;
  top: -24px;
  right: -30px;
  width: 29%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(17, 17, 8, 0.22), 0 4px 12px rgba(17, 17, 8, 0.12);
}

@media (max-width: 720px) {
  .abc-mac-hero .mac-pop {
    top: -14px;
    right: -8px;
  }
}

/* How it works */

.abc-how {
  border-top: 1px solid var(--rule);
  padding: 72px 0 96px;
}

.abc-how h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
  text-align: center;
}

.abc-gesture-list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.abc-gesture {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.abc-gesture-icon {
  flex: 0 0 24px;
  display: flex;
  justify-content: center;
}

.abc-gesture-icon img {
  height: 15px;
  width: auto;
  display: block;
  margin-top: 4px;
}

.abc-how-byline {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--faint);
  margin-top: 44px;
}

/* Content pages (privacy) */

.abc-content {
  padding: 56px 0 96px;
}

.abc-content-meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 36px;
}

.abc-content h1 {
  font-size: 27px;
  font-weight: 350;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.abc-content h2 {
  font-size: 17px;
  font-weight: 500;
  margin: 40px 0 10px;
}

.abc-content h2:first-of-type {
  margin-top: 0;
}

.abc-content p {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 14px;
}

.abc-content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.abc-content a:hover {
  color: var(--coral);
}

/* Microsite mobile */

@media (max-width: 720px) {
  .col-wide {
    padding: 0 20px;
  }

  .abc-hero {
    padding: 48px 0 56px;
  }

  .abc-hero h1 {
    font-size: 30px;
  }

  .abc-hero-img {
    margin-top: 40px;
  }

  .abc-sec {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }

  .abc-sec--flip .abc-sec-img {
    order: 0;
  }

  .abc-phone,
  .abc-sec-img .abc-phone {
    width: 215px;
  }

  .abc-panel,
  .abc-sec-img .abc-panel {
    max-width: 215px;
  }
}

/* --- KB article sidebar --- */

.kb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 40px;
  align-items: start;
}

.kb-side {
  position: sticky;
  top: 32px;
  margin-top: 76px;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}

.kb-side-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.kb-side-app {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}

.kb-side ul {
  list-style: none;
}

.kb-side li {
  padding: 4px 0;
}

.kb-side a {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  transition: color 0.2s;
}

.kb-side a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .kb-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kb-side {
    position: static;
    margin: 0 0 72px;
    border-left: none;
    border-top: 1px solid var(--rule);
    padding: 24px 0 0;
  }

  .kb-layout .kb-article {
    padding-bottom: 40px;
  }
}
