/* Systems By Tan
   Olive hero, strip and footer; white and cream sections; sand for framed
   panels; mustard as the single accent. */

:root {
  --olive: #3f3b1d;
  --cream: #faf5e7;
  --white: #ffffff;
  --sand: #ece4cc;
  --mustard: #d9a62e;
  --mustard-ink: #9c7210; /* mustard dark enough for text on cream */
  --muted: #6b6644;
  --paper: #fffdf6;

  --display: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
  --text: "Crimson Pro", Georgia, serif;
  --mono: "Courier Prime", "Courier New", monospace;

  --s-1: 1.05rem;
  --s0: 1.25rem;
  --s1: 1.5rem;
  --s2: 1.875rem;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--olive);
  font: 400 var(--s0)/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.center { text-align: center; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--mustard);
  color: var(--olive);
}
.skip:focus { top: 1rem; }

/* Logo: PNG used as a mask so it can take any brand colour */
.logo {
  display: block;
  width: 14rem;
  aspect-ratio: 1542 / 468;
  background: var(--cream);
  -webkit-mask: url("assets/logo.png") center / contain no-repeat;
  mask: url("assets/logo.png") center / contain no-repeat;
}
.logo--sm { width: 8rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  background: var(--mustard);
  color: var(--olive);
  font: 400 1.2rem/1 var(--display);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn:hover { background: #e7b84a; }
/* Dark focus ring on light sections, cream ring on the olive hero */
.btn:focus-visible { outline-color: var(--olive); }
.hero .btn:focus-visible { outline-color: var(--cream); }

/* Ticker strips */
.ticker {
  overflow: hidden;
  padding: 0.75rem 0;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  color: var(--muted);
  font: 400 1.1rem/1 var(--display);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ticker--olive { background: var(--olive); color: var(--cream); border: 0; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
/* Two identical groups, each at least a screen wide, so the loop never shows a gap */
.ticker__group {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  gap: 3rem;
  min-width: 100vw;
  padding-right: 3rem;
}
/* The discovery-call strip uses a single-row loop */
.ticker__track--simple {
  display: inline-flex;
  width: auto;
  gap: 3rem;
  padding-right: 3rem;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Hero */
.hero {
  background: var(--olive);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4.5rem, 9vw, 7rem);
  text-align: center;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1;
}
/* .line keeps a phrase on its own unbroken line where it fits.
   Long paragraph lines only do this on wider screens. */
@media (min-width: 640px) {
  .line { display: block; white-space: nowrap; }
}
@media (max-width: 1023px) {
  .lede .line,
  #odoo .section__head p .line,
  .cta p .line { display: inline; white-space: normal; }
}
.lede {
  max-width: 60rem;
  margin: 1.75rem 0 2.25rem;
  font-size: var(--s1);
  line-height: 1.45;
}

/* Sections */
.section,
.statement,
.cta { background: var(--white); }
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
}
.section__head { margin-bottom: clamp(3rem, 6vw, 4.5rem); text-align: center; }
.section__head p { max-width: 46rem; margin: 1.25rem auto 0; font-size: var(--s1); line-height: 1.45; }

#build .wrap { max-width: 84rem; }
#build .section__title { font-size: clamp(2.2rem, 4.8vw, 3.75rem); }
#odoo { padding-top: 0; }
#odoo .section__head p { max-width: 60rem; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: center;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.5rem;
  font: 400 clamp(4rem, 8vw, 6rem)/0.9 var(--display);
  color: var(--mustard-ink);
}
.steps h3 { font-size: var(--s2); }
.steps p { max-width: 17rem; margin: 0.75rem auto 0; }

/* Statement */
.statement {
  padding: 0 0 clamp(4.5rem, 10vw, 7.5rem);
  text-align: center;
}
.statement h2 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); }

/* Receipt + copy split */
.split { background: var(--sand); padding: clamp(4rem, 8vw, 6rem) 0; }
.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split__copy { text-align: center; }
.split__copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); white-space: nowrap; }
.split__copy p { max-width: 30rem; margin: 1.5rem auto 2.25rem; font-size: var(--s1); line-height: 1.45; }

.receipt { margin: 0; display: flex; justify-content: center; }
.receipt__paper {
  width: 100%;
  max-width: 25rem;
  padding: 2rem 1.75rem 2.75rem;
  background: var(--paper);
  color: var(--olive);
  font: 400 0.95rem/1.5 var(--mono);
  transform: rotate(-1.5deg);
  /* Torn bottom edge */
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 20px 10px repeat-x;
}
.receipt__title {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-transform: uppercase;
}
.receipt__meta {
  margin-top: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--olive);
  text-align: center;
  color: var(--muted);
}
.receipt table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.receipt th,
.receipt td { padding: 0.3rem 0; font-weight: 400; text-align: right; }
.receipt th[scope="row"],
.receipt thead th:first-child { text-align: left; }
.receipt thead th { padding-bottom: 0.5rem; color: var(--muted); }
.receipt td:last-child { font-weight: 700; padding-left: 1rem; }
.receipt__total th,
.receipt__total td { padding-top: 0.6rem; border-top: 2px dashed var(--olive); }
.receipt .receipt__margin th,
.receipt .receipt__margin td {
  padding-top: 0.75rem;
  border-top: 4px double var(--olive);
  font-size: 1.1rem;
  font-weight: 700;
}
.receipt mark { background: var(--mustard); color: var(--olive); padding: 0 0.25em; }
.receipt figcaption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px dashed var(--olive);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Suites: paper cards in a sand frame */
.suites {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--sand);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.suite {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2.25rem;
  background: var(--paper);
  text-align: center;
}
.suite--feature { box-shadow: inset 0 0 0 3px var(--mustard); }
.suite__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  padding: 0.2rem 0.8rem;
  background: var(--mustard);
  font-size: 0.95rem;
  font-weight: 600;
}
.suite__code {
  font: 400 3.25rem/1 var(--display);
  color: var(--mustard-ink);
}
.suite h3 { margin-top: 0.5rem; font-size: var(--s1); }
.suite > p:not([class]) { margin-top: 0.85rem; font-size: var(--s-1); }
.suite .suite__inc {
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: var(--s-1);
}
.suite ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--s-1);
  line-height: 1.7;
}

/* Why Odoo */
.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 0;
  text-align: center;
}
.points dt { font: 400 var(--s2)/1.1 var(--display); }
.points dt::after {
  content: "";
  display: block;
  width: 2.5rem;
  margin: 1rem auto 0;
  border-top: 2px solid var(--mustard);
}
.points dd { max-width: 16rem; margin: 1rem auto 0; color: var(--muted); }

/* CTA */
.cta { padding: clamp(5rem, 11vw, 8rem) 0; text-align: center; }
.cta__inner { display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1; }
.cta p { max-width: 48rem; margin: 1.5rem 0 2.25rem; font-size: var(--s1); line-height: 1.45; }
.cta .cta__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin: 2rem 0 0;
  font-size: var(--s-1);
}

/* Footer */
.footer {
  padding: 3rem 0;
  background: var(--olive);
  color: var(--cream);
  font-size: var(--s-1);
  text-align: center;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.footer .logo { margin-bottom: 0.5rem; }
.footer__legal { color: var(--sand); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1000px) {
  .suites { grid-template-columns: 1fr 1fr; }
  .steps,
  .points { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
}

@media (max-width: 760px) {
  .split__inner { grid-template-columns: 1fr; }
  .logo { width: 11rem; }
  .logo--sm { width: 8rem; }
}

@media (max-width: 520px) {
  :root { --s0: 1.1875rem; --s1: 1.375rem; }
  .suites,
  .steps,
  .points { grid-template-columns: 1fr; }
  .receipt__paper { padding: 1.75rem 1.25rem 2.5rem; transform: none; }
}
