/* TatamiTech marketing site: the Red Corner home page (layout, type, colours, rounded shapes) with the Black Belt logo. */

:root {
  --charcoal: #26262B;
  --charcoal-2: #38383E;
  --red: #B8242B;
  --red-deep: #8F1A21;
  --red-lit: #F0635A;
  --bone: #F1ECE5;
  --paper: #FBF9F6;
  --line: #E5DFD7;
  --row-line: #E2E2E2;
  --ink-2: #333333;
  --stone: #555555;
  --white: #FFFFFF;
  --on-dark-2: #D6D6D6;
  --display: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Red Hat Text', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--white); }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; }

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.85; }
:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 3px; border-radius: 4px; }
.payments :focus-visible, .contact-copy :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  background: var(--charcoal); color: var(--white); padding: 12px 18px; font-weight: 600; border-radius: 8px;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Shown only to browsers that were signed in to the old PMC portal at this address. */
.moved {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  background: var(--charcoal); color: var(--white);
  padding: 10px 16px; font-size: 15px; font-weight: 500; text-align: center;
}
.moved :focus-visible { outline-color: var(--white); }
.moved-go { background: var(--white); color: var(--charcoal); font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.moved-close {
  font: inherit; font-weight: 600; color: var(--white); background: none; border: 0; padding: 8px 6px;
  text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}

/* Buttons: rounded, one shape everywhere */
.btn {
  display: inline-block; padding: 16px 30px; border-radius: 8px; font-weight: 600;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 12px 22px; }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: #111114; }

/* Header on a light bar so the dark logo keeps its red centre; the hero below is a red field. */
.header-bar { background: var(--paper); color: var(--charcoal); }
.top { background: var(--red); color: var(--white); }
.top .hero :focus-visible { outline-color: var(--white); }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.mark .mat { fill: var(--charcoal); }
.mark .centre { fill: var(--red); }
.wordmark { font-family: 'Archivo', var(--display); font-weight: 900; font-size: 24px; letter-spacing: -0.05em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 16px; font-weight: 600; }
.site-nav a, .login { padding: 12px 0; }
.header-actions { display: flex; align-items: center; gap: 20px; font-size: 16px; font-weight: 600; }

/* Hero: centred */
.hero {
  padding-top: 72px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px;
}
.pill { background: var(--charcoal); color: var(--white); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 6px; }
.hero h1 {
  font-size: clamp(44px, 7.6vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 1000px;
}
.hero h1 .line { display: block; }
.accent { color: var(--red); }
.accent-lit { color: var(--red-lit); }
.lede { font-size: 21px; font-weight: 500; max-width: 620px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-light { background: var(--white); color: var(--charcoal); }

/* Member list: a white card that hangs over the edge of the hero */
.panel {
  width: 100%; max-width: 1040px; margin: 32px 0 -120px;
  background: var(--white); color: var(--charcoal);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 48px rgba(38, 38, 43, 0.16);
  text-align: left; overflow-x: auto;
}
.panel-inner { min-width: 600px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--row-line);
}
.panel-title { font-family: var(--display); font-weight: 900; font-size: 21px; letter-spacing: -0.03em; }
.panel-button { background: var(--red); color: var(--white); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 6px; }
.cols, .rows li {
  display: grid; grid-template-columns: 1.5fr 0.8fr 1.3fr 1fr 1fr; gap: 12px;
  padding-left: 24px; padding-right: 24px;
}
.cols {
  padding-top: 12px; padding-bottom: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone);
}
.rows li {
  align-items: center; padding-top: 15px; padding-bottom: 15px;
  border-top: 1px solid var(--row-line); font-size: 15px; color: var(--ink-2);
}
.rows .who, .rows .paid { font-weight: 600; color: var(--charcoal); }
.rows .tag { font-weight: 500; color: var(--stone); }
.rows .failed { font-weight: 600; color: var(--red-deep); }
.row-failed { background: #FDECEB; }

/* A belt: coloured cloth with a black rank bar and white stripes. Tap to add a stripe. */
.belt {
  --cloth: #FFFFFF; --edge: #555555; --rank: #111111;
  position: relative; display: block; width: 50px; height: 13px; padding: 0;
  background: var(--cloth); border: 1px solid var(--edge); border-radius: 2px; cursor: pointer;
  transition: transform 200ms var(--ease), background-color 260ms var(--ease), border-color 260ms var(--ease);
}
.belt::after { content: ''; position: absolute; inset: -12px -6px; }
.belt:hover { transform: translateY(-2px); }
.belt .rank {
  position: absolute; top: 0; bottom: 0; right: 0; width: 18px;
  background: var(--rank); display: flex; gap: 2px; justify-content: center;
}
.belt .rank i { width: 2px; background: #FFFFFF; transform-origin: 50% 100%; }
.belt .rank i.new { animation: stripe 420ms var(--ease) both; }
.belt.promoted { animation: promote 520ms var(--ease) both; }
.belt[data-belt="blue"]   { --cloth: #2F6FDB; --edge: #1B3E80; }
.belt[data-belt="purple"] { --cloth: #7A3FB8; --edge: #4B2378; }
.belt[data-belt="brown"]  { --cloth: #7A4A2A; --edge: #4A2A14; }
.belt[data-belt="black"]  { --cloth: #1C1A19; --edge: #000000; --rank: #B8242B; }
.belt[data-belt="grey"]   { --cloth: #9A9A9A; --edge: #5F5F5F; }
.belt[data-belt="yellow"] { --cloth: #F2C230; --edge: #9A7A10; }
.belt[data-belt="orange"] { --cloth: #EE7A1F; --edge: #9A4706; }
.belt[data-belt="green"]  { --cloth: #2E8B4A; --edge: #17502A; }
@keyframes stripe { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes promote { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Features */
.features { padding-top: 224px; padding-bottom: 104px; display: flex; flex-direction: column; gap: 48px; }
h2 { font-size: clamp(34px, 4.8vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.features h2 { max-width: 800px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--bone); border-radius: 14px; padding: 30px;
  display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px;
}
.card .num {
  width: 44px; height: 44px; border-radius: 8px; background: var(--red); color: var(--white);
  font-family: var(--display); font-weight: 900; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.card h3 { margin-top: 6px; font-size: 23px; letter-spacing: -0.03em; line-height: 1.15; }
.card p { color: var(--ink-2); }

/* Payments */
.payments { background: var(--charcoal); color: var(--white); padding: 104px 0; }
.payments-row { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.payments-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.payments-copy p { font-size: 19px; color: var(--on-dark-2); max-width: 520px; }
.methods-side { flex: 1 1 420px; min-width: 0; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; font-weight: 600; }
.methods li { background: var(--charcoal-2); border-radius: 10px; padding: 20px; }
.methods-note { margin-top: 16px; font-size: 14px; color: var(--on-dark-2); }

/* Contact: a red field with the enquiry form on a white card */
.contact { background: var(--red); color: var(--white); padding: 112px 0; scroll-margin-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 64px; align-items: start; }
.contact h2 { font-size: clamp(40px, 6vw, 84px); line-height: 0.96; letter-spacing: -0.045em; }
.contact-copy p { margin-top: 22px; font-size: 20px; font-weight: 500; max-width: 460px; }
.contact-copy .contact-alt { font-size: 17px; }
.contact-copy a { text-decoration: underline; text-underline-offset: 0.2em; }

.enquiry-card {
  background: var(--white); color: var(--charcoal);
  border-radius: 16px; padding: 32px;
  box-shadow: 0 24px 48px rgba(38, 38, 43, 0.22);
}
.enquiry { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field .optional { font-weight: 400; color: var(--stone); }
.field input, .field textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--charcoal);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field input { height: 48px; }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(38, 38, 43, 0.18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.enquiry .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; align-self: flex-start; }
.enquiry .btn[disabled] { opacity: 0.7; cursor: default; transform: none; }
.enquiry-error { background: #FDECEB; color: var(--red-deep); font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 8px; }
.enquiry-done h3 { font-size: 28px; letter-spacing: -0.035em; line-height: 1.1; }
.enquiry-done p { margin-top: 10px; color: var(--ink-2); }
.enquiry-done:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

/* Footer */
.site-footer { background: var(--charcoal); color: #C4C4C4; }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 28px; padding-bottom: 28px; font-size: 15px;
}
.footer-nav { display: flex; gap: 24px; }

/* Plain pages (privacy, not found) */
.page { padding-top: 72px; padding-bottom: 104px; }
.page h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.04em; }
.prose { max-width: 680px; margin-top: 32px; }
.prose h2 { font-size: 24px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 40px; }
.prose p { margin-top: 14px; color: var(--ink-2); }
.prose p a:not(.btn) { text-decoration: underline; text-underline-offset: 0.2em; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); }

/* Tablets and phones */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .panel { margin-bottom: -80px; }
  .features { padding-top: 160px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header { flex-wrap: nowrap; gap: 12px; }
  .header-actions { gap: 14px; }
  .btn-small { padding: 11px 16px; white-space: nowrap; }
  .login { white-space: nowrap; }
  .hero { padding-top: 48px; gap: 22px; }
  .lede { font-size: 18px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 200px; }
  .panel { margin-top: 16px; margin-bottom: -64px; border-radius: 14px; }
  .panel-inner { min-width: 0; }
  .panel-head { padding: 14px 16px; }
  .cols, .rows li { grid-template-columns: 1.3fr 62px 1.2fr; padding-left: 16px; padding-right: 16px; }
  .cols > :nth-child(3), .cols > :nth-child(4), .rows li > :nth-child(3), .rows li > :nth-child(4) { display: none; }
  .features { padding-top: 128px; padding-bottom: 72px; gap: 32px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card { padding: 24px; }
  .payments { padding: 72px 0; }
  .payments-row { gap: 36px; }
  .contact { padding: 72px 0; }
  .enquiry-card { padding: 22px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .enquiry .btn { align-self: stretch; }
}
@media (max-width: 440px) {
  .login { display: none; }
  .hero h1 { text-wrap: balance; }
  .hero h1 .line { display: inline; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 20px; }
  .btn-small { padding: 11px 12px; font-size: 15px; }
}

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