/* Home page of table.tectvia.com (v2, Nov 26) and signin.html. Its own file: the app pages do not load it.
   A warm, light page built around photographs of the product in a restaurant. Navy and gold from the
   brand, brick from the table cards, green for the one action. */
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dmsans-var-latin.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
:root {
  --navy: #021330; --page: #F6F2EA; --paper: #FBF8F2; --card: #fff;
  --ink: #17130E; --sub: #5B5449; --rule: #E7DFD0; --rule2: #D9CFBD;
  --gold: #E0A84F; --gold-text: #85590C; --gold-soft: #FBF0DC;
  --brick: #7C2D12; --brick-dark: #5A1F0C; --brick-soft: #F6E4DA;
  --green: #017A52; --green-dark: #016744; --glow: rgba(2, 162, 110, .28);
  --title: 'DM Sans', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --lift: 0 1px 2px rgba(41, 32, 14, .06), 0 22px 44px -22px rgba(41, 32, 14, .38);
  --wrap: 1200px; --round: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--title); letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; color: var(--navy); }
a { color: inherit; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--glow); border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 242, 234, .9); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font: 800 17px/1 var(--title); letter-spacing: .06em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { color: var(--gold-text); font-weight: 700; letter-spacing: .14em; font-size: 13px; padding-left: 10px; border-left: 1px solid var(--rule2); }
.top nav { margin-left: auto; display: flex; gap: 2px; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--sub); padding: 9px 12px; border-radius: 8px; transition: background-color .15s ease-out, color .15s ease-out; }
.top nav a:hover { background: rgba(2, 19, 48, .06); color: var(--navy); }
.top-acts { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.signin-link { color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; padding: 9px 12px; border-radius: 8px; transition: background-color .15s ease-out; }
.signin-link:hover { background: rgba(2, 19, 48, .06); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font: 700 16px/1 var(--body); text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background-color .15s ease-out, border-color .15s ease-out; }
.btn.go { background: var(--green); color: #fff; }
.btn.go:hover { background: var(--green-dark); }
.btn.line { border-color: var(--rule2); color: var(--navy); background: rgba(255, 255, 255, .5); }
.btn.line:hover { background: #fff; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.signin-link, .btn { white-space: nowrap; }

/* Hero: words on the left, two photographs on the right */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 110px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1 var(--body); color: var(--brick); margin-bottom: 20px; }
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--brick); }
.hero h1 { font-size: clamp(44px, 6.6vw, 86px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brick); }
.hero .lead { margin-top: 22px; font-size: clamp(18px, 1.7vw, 21px); color: var(--sub); max-width: 30em; }
.hero .acts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .facts { margin: 30px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; font-weight: 500; color: var(--sub); }
.hero .facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero .facts li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.collage { position: relative; padding: 0 0 9% 14%; }
.collage .big { border-radius: var(--round); box-shadow: var(--lift); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.collage .small { position: absolute; left: 0; bottom: 0; width: 46%; border-radius: 22px; border: 6px solid var(--page); box-shadow: var(--lift); aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 60%; transform: rotate(-3deg); }

/* Sections */
section { padding: clamp(52px, 7vw, 96px) 0; }
.eyebrow { display: block; font: 700 14px/1 var(--body); color: var(--brick); margin-bottom: 14px; }
h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 800; }
.intro { max-width: 34em; }
.intro p, .words > p { margin-top: 16px; color: var(--sub); font-size: 18px; }

.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); counter-reset: step; }
.step { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.step::before { content: '0' counter(step); display: block; font: 800 15px/1 var(--title); color: var(--brick); letter-spacing: .04em; margin-bottom: 12px; }
.step h3 { font-size: 23px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--sub); font-size: 16px; }

.points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.points li::before { content: ''; width: 9px; height: 9px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
.points b { display: block; font: 700 17px/1.3 var(--title); color: var(--navy); }
.points span { display: block; color: var(--sub); font-size: 16px; margin-top: 2px; }
.phones { display: flex; justify-content: center; gap: clamp(12px, 2.4vw, 26px); }
.phone { width: min(44%, 232px); background: #0B0D12; border-radius: 34px; padding: 8px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); align-self: flex-start; }
.phone img { border-radius: 27px; }
.phones .phone:nth-child(2) { margin-top: 46px; }
/* Dark app screens sit on a light page: a soft warm box behind the phones, a framed window for the floor */
.stagebox { background: #ECE4D4; border-radius: clamp(22px, 3vw, 36px); padding: clamp(26px, 4vw, 56px) clamp(16px, 3vw, 40px); }
.browser { background: #0B1326; border-radius: 16px; overflow: hidden; box-shadow: var(--lift), 0 0 0 1px rgba(2, 19, 48, .12); }
.browser.big { margin-top: 40px; }
.browser.big + .three { margin-top: 36px; }
.browser .bar { height: 28px; background: #1B2740; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #46536E; }

/* Owners: one wide photograph with the words on a card over its corner */
.wide { position: relative; }
.wide img { border-radius: clamp(22px, 3vw, 36px); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 50%; box-shadow: var(--lift); }
.wide .note { position: absolute; left: clamp(16px, 3vw, 40px); bottom: clamp(16px, 3vw, 40px); width: min(440px, 46%); background: rgba(251, 248, 242, .96); backdrop-filter: blur(6px); border-radius: 22px; padding: clamp(20px, 2.6vw, 32px); box-shadow: var(--lift); }
.wide .note h2 { font-size: clamp(26px, 3vw, 38px); }
.wide .note p { margin-top: 12px; color: var(--sub); font-size: 16.5px; }
.three { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.three b { display: block; font: 700 18px/1.3 var(--title); color: var(--navy); }
.three span { display: block; margin-top: 6px; color: var(--sub); font-size: 16px; }

/* Games */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.chips { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--card); color: var(--navy); border: 1px solid var(--rule2); }
.chips.warm li { background: var(--gold-soft); color: var(--gold-text); border-color: #F0DDB6; }

.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule2); border-left: 1px solid var(--rule2); }
.feat { padding: 24px; border-right: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); }
.feat h3 { font-size: 18px; font-weight: 700; }
.feat p { margin-top: 6px; color: var(--sub); font-size: 15px; line-height: 1.5; }
.band { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.cta { background: var(--navy); text-align: center; }
.cta h2 { color: #fff; max-width: 16em; margin: 0 auto; }
.cta p { margin: 16px auto 0; color: #C9D2E0; max-width: 32em; font-size: 18px; }
.cta .acts { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta .btn.line { border-color: rgba(255, 255, 255, .35); color: #fff; background: none; }
.cta .btn.line:hover { background: rgba(255, 255, 255, .08); }
.cta small { display: block; margin-top: 18px; color: #94A2B8; font-size: 14px; }
footer { background: #010C20; color: #94A2B8; font-size: 14px; padding: 28px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
footer a { color: #C9D2E0; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 980px) {
  .hero .wrap, .duo { grid-template-columns: minmax(0, 1fr); }
  .collage { max-width: 560px; }
  .top nav { display: none; }
  .top-acts { margin-left: auto; }
  .steps, .three { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide img { aspect-ratio: 4 / 3; }
  .wide .note { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 14px 0; }
  .duo .phones { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .top .wrap { justify-content: space-between; gap: 10px; }
  .top-acts { margin-left: auto; }
  /* On a phone the header keeps the logo and Sign in; "Book a demo" is the first button of the page just below. */
  .top-acts .btn { display: none; }
  .signin-link { border: 1px solid var(--rule2); padding: 8px 14px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero .acts .btn, .cta .acts .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Sign in (signin.html) */
.signin-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.signin { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(24px, 6vw, 64px) 18px; }
.signin-card { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--lift); padding: clamp(22px, 4vw, 34px); }
.signin-card h1 { font-size: 28px; font-weight: 800; }
.signin-lead { margin-top: 8px; color: var(--sub); font-size: 16px; }
.signin-card > label, .signin-card legend { display: block; margin-top: 22px; font: 600 15px/1.3 var(--body); color: var(--ink); padding: 0; }
.signin-card input[type=text] { width: 100%; margin-top: 8px; height: 52px; padding: 0 14px; font: 500 18px var(--body); color: var(--ink); background: #fff; border: 1px solid var(--rule2); border-radius: 12px; }
.signin-card input[type=text]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--glow); }
.signin-card input[aria-invalid=true] { border-color: #B91C1C; }
.signin-help { margin-top: 8px; font-size: 14px; color: var(--sub); }
.signin-msg { margin-top: 8px; font-size: 14px; font-weight: 600; color: #B91C1C; }
.signin-card fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.signin-card legend { margin-bottom: 10px; }
.role { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--rule2); border-radius: 12px; cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out; }
.role:hover { background: var(--paper); }
.role:has(input:checked) { border-color: var(--green); background: #F0FAF5; }
.role:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--glow); }
.role input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin: 0; }
.role b { display: block; font: 700 16px/1.3 var(--title); color: var(--navy); }
.role small { display: block; font-size: 14px; color: var(--sub); }
.signin-card .btn { width: 100%; margin-top: 22px; border: 0; cursor: pointer; border-radius: 12px; }
.signin-foot { margin-top: 16px; text-align: center; font-size: 14.5px; color: var(--sub); }
.signin-foot a { color: var(--green); font-weight: 600; }
