/* The homepage's header and footer, for pages built on their own design system (Inventory Sync).
   Everything is scoped to .tp so the page's own styles and the homepage's never meet. */

@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("../assets/fonts/inter-tight-latin.woff2") format("woff2");
}

.tp {
  --card: #FFFFFF; --panel: #F6F5FA; --ink: #111016; --ink-2: #3A3943; --muted: #6C6B77; --line: #E6E4EE;
  --violet: #6E21C0; --violet-600: #7C35D3; --violet-400: #A57AEA; --violet-200: #DCCBFA; --violet-100: #EEE6FD; --violet-50: #F8F4FF;
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-sm: 0 1px 2px rgba(17, 16, 22, 0.06), 0 6px 16px -6px rgba(17, 16, 22, 0.1);
  --shadow-md: 0 2px 4px rgba(17, 16, 22, 0.04), 0 28px 56px -20px rgba(17, 16, 22, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --r-xl: 36px; --max: 1240px; --gutter: clamp(16px, 4vw, 48px);
  --night: #0D0B13; --night-line: rgba(255, 255, 255, 0.1); --night-text: rgba(255, 255, 255, 0.74); --night-muted: rgba(255, 255, 255, 0.56);
  font: 400 17px/1.55 var(--font); color: var(--ink); letter-spacing: normal;
}
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp :where(h2, p, ul) { margin: 0; }
.tp :where(h2) { font-family: var(--font); color: inherit; line-height: 1.25; }
.tp :where(ul) { padding: 0; list-style: none; }
.tp :where(img) { display: block; max-width: 100%; height: auto; }
.tp :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.tp :where(.tp-nav__links) a { text-decoration: none; }
.tp :focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
.tp .ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tp .ico--fill { fill: currentColor; stroke: none; }
.tp .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ============ Header: sits in its slot, then floats as a pill once you scroll ============ */
.tp-top { position: relative; z-index: 30; padding: 18px var(--gutter) 0; }
.tp-navslot { width: min(100%, var(--max)); height: 48px; margin-inline: auto; }
.tp-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; height: 48px; }
.tp-nav.is-stuck {
  position: fixed; z-index: 50; top: calc(10px + env(safe-area-inset-top, 0px)); left: 50%; width: min(100% - 24px, var(--max) + 40px); height: 60px; translate: -50% 0;
  padding: 0 10px 0 20px; border-radius: 999px; background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line); animation: tp-stick-in 0.45s var(--ease);
}
.tp-nav__logo img { height: 26px; width: auto; }
.tp-nav__links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 1px var(--line); }
.tp-nav.is-stuck .tp-nav__links { background: transparent; box-shadow: none; }
.tp-nav__links > a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color 0.2s; }
.tp-nav__links > a:hover { background: var(--card); color: var(--ink); }
.tp-nav__end { display: flex; align-items: center; gap: 8px; justify-self: end; }
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform 0.25s var(--spring), background-color 0.2s; }
.tp-btn:hover { transform: translateY(-2px); background: #2A2833; }
.tp-nav__toggle { display: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.tp-nav__toggle .ico--shut, .tp-nav__toggle[aria-expanded="true"] .ico--open { display: none; }
.tp-nav__toggle[aria-expanded="true"] .ico--shut { display: block; }
/* The open apps panel sits on top of the page */
.tp .apps-panel { z-index: 60; }

@media (max-width: 48rem) {
  .tp-nav { position: relative; z-index: 10; grid-template-columns: 1fr auto; }
  .tp-nav__toggle { display: grid; }
  .tp-nav__links { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: none; flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); text-align: left; }
  .tp-nav.is-open .tp-nav__links { display: flex; animation: drop 0.3s var(--ease); }
  .tp-nav.is-stuck .tp-nav__links { background: var(--card); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); }
  .tp-nav__links > a { padding: 12px 14px; font-size: 16px; }
}

/* ============ Footer: a night card, the email set big, the wordmark glowing at the bottom ============ */
.foot.tp { padding: 12px; background: transparent; }
.tp .foot__card {
  position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 96px) clamp(96px, 12vw, 180px); border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(60% 52% at 50% 100%, rgba(150, 80, 240, 0.85), rgba(110, 33, 192, 0.32) 46%, transparent 76%), var(--night);
  box-shadow: inset 0 0 0 1px var(--night-line);
}
.tp .foot__card > * { max-width: var(--max); margin-inline: auto; }
.foot.tp a { color: inherit; text-decoration: none; }
.foot.tp :focus-visible { outline-color: var(--violet-400); }
.tp .foot__hi { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--night-line), rgba(165, 122, 234, 0.45), var(--night-line)) 1; }
.tp .foot__say { color: var(--night-text); font-size: clamp(20px, 2vw, 28px); font-weight: 400; letter-spacing: -0.01em; }
.tp .foot__email { display: inline-block; padding-bottom: 0.08em; font-size: clamp(48px, 7.4vw, 104px); font-weight: 500; line-height: 1.05; letter-spacing: -0.045em; background: linear-gradient(180deg, #FFFFFF 40%, var(--violet-200) 70%, var(--violet-400)); -webkit-background-clip: text; background-clip: text; color: transparent !important; transition: opacity 0.2s; }
.tp .foot__email:hover { opacity: 0.85; }
.tp .foot__pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 20px; border-radius: 999px; background: linear-gradient(135deg, var(--violet-600), var(--violet)); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06), 0 12px 30px -12px rgba(140, 70, 230, 0.9); color: #fff; font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform 0.25s var(--spring), box-shadow 0.2s; }
.tp .foot__pill:hover { transform: translateY(-2px); }
.tp .foot__pill-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--violet); }
.tp .foot__pill-ico .ico { width: 16px; height: 16px; stroke-width: 2.2; }
.tp .foot__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 40px clamp(20px, 3vw, 40px); padding-block: clamp(32px, 4vw, 52px); }
.tp .foot__brand { display: grid; align-content: start; gap: 18px; max-width: 340px; }
.tp .foot__brand img { width: auto; height: 30px; }
.tp .foot__brand p { color: var(--night-text); font-size: 15px; }
.tp .foot__store { display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 54px; padding: 0 20px 0 14px; border-radius: 10px; background: #000; box-shadow: inset 0 0 0 1px #A6A6A6; color: #fff; transition: box-shadow 0.2s, transform 0.25s var(--spring); }
.tp .foot__store:hover { box-shadow: inset 0 0 0 1px #fff; transform: translateY(-2px); }
.tp .foot__store-logo { display: grid; place-items: center; flex: none; color: #fff; }
.tp .foot__store-logo svg { width: 28px; height: 28px; }
.tp .foot__store small { display: block; color: rgba(255, 255, 255, 0.85); font-size: 11px; font-weight: 500; line-height: 1.2; }
.tp .foot__store b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.tp .foot__col { display: grid; align-content: start; gap: 14px; }
.tp .foot__col h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tp .foot__col ul { display: grid; gap: 9px; }
.tp .foot__col a { color: var(--night-text); font-size: 15px; transition: color 0.2s; }
.tp .foot__col a:hover, .tp .foot__col a[aria-current="page"] { color: #fff; }
.tp .foot__contact > a { color: #fff; font-size: 17px; font-weight: 500; }
.tp .foot__contact p { color: var(--night-muted); font-size: 13px; }
.tp .foot__social { display: flex; gap: 8px; margin-top: 6px; }
.tp .foot__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--night-line); color: #fff; transition: background-color 0.2s; }
.tp .foot__social a:hover { background: var(--violet); }
.tp .foot__social .logo { width: 16px; height: 16px; fill: currentColor; }
.tp .foot__base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--night-text); font-size: 14px; }
.tp .foot__base p { display: inline-flex; align-items: center; gap: 10px; }
.tp .foot__base .ico { width: 13px; height: 13px; color: var(--violet-200); }
.tp .foot__legal a:hover { color: #fff; }
.tp .foot__credits { position: relative; z-index: 1; margin-top: 8px; color: var(--night-muted); font-size: 12px; }
.tp .foot__credits a { text-decoration: underline; text-underline-offset: 2px; }

@keyframes tp-stick-in { from { opacity: 0; transform: translateY(-14px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }

@media (max-width: 64rem) {
  .tp .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tp .foot__brand { grid-column: 1 / -1; max-width: 520px; }
}
@media (max-width: 48rem) {
  .tp .foot__hi { align-items: flex-start; }
  .tp .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp .foot__base { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-nav.is-stuck, .tp-nav.is-open .tp-nav__links { animation: none; }
}

/* ============ App header (Inventory Sync): back to Tipo, app name, the page's own sections ============ */
.tp-nav__start { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tp-back { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 0.2s, box-shadow 0.2s, translate 0.25s var(--ease); }
.tp-back .ico { width: 18px; height: 18px; transition: translate 0.25s var(--ease); }
.tp-back:hover { color: var(--violet); box-shadow: 0 0 0 1px var(--violet-200); }
.tp-back:hover .ico { translate: -2px 0; }
.tp-nav__app { position: relative; display: inline-flex; align-items: center; gap: 9px; min-width: 0; padding-left: 13px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.tp-nav__app img { width: 30px; height: 30px; flex: none; border-radius: 9px; object-fit: cover; box-shadow: var(--shadow-sm); }
.tp-nav__app span { overflow: hidden; text-overflow: ellipsis; }
.tp-nav__app::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 18px; margin-top: -9px; background: var(--line); }
.tp-nav__links > a[aria-current="true"] { background: var(--card); color: var(--violet); box-shadow: var(--shadow-sm); }
.tp-nav.is-stuck .tp-nav__links > a[aria-current="true"] { background: var(--violet-50); box-shadow: none; }
/* Six section links plus the back button need room: fold into the menu button earlier */
@media (max-width: 70rem) {
  .tp-nav { position: relative; z-index: 10; grid-template-columns: 1fr auto; }
  .tp-nav__toggle { display: grid; }
  .tp-nav__links { position: absolute; top: calc(100% + 10px); left: auto; right: 0; width: min(320px, calc(100vw - 32px)); display: none; flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); text-align: left; }
  .tp-nav.is-open .tp-nav__links { display: flex; animation: drop 0.3s var(--ease); }
  .tp-nav.is-stuck .tp-nav__links { background: var(--card); box-shadow: var(--shadow-md), 0 0 0 1px var(--line); }
  .tp-nav__links > a { padding: 12px 14px; font-size: 16px; }
  .tp-nav.is-stuck .tp-nav__links > a[aria-current="true"], .tp-nav__links > a[aria-current="true"] { background: var(--violet-50); box-shadow: none; }
}
@media (max-width: 34rem) {
  .tp-back span, .tp-nav__app span { display: none; }
  .tp-nav__app { padding-left: 11px; }
  .tp-back { width: 36px; padding: 0; justify-content: center; }
  .tp-nav__start { gap: 10px; }
  .tp-nav.is-stuck { padding-left: 12px; }
}

/* Back button: the homepage's Tipo logo in place of the word Home */
.tp-back--logo { gap: 4px; padding: 0 6px 0 0; background: none; box-shadow: none; }
.tp-back--logo:hover { box-shadow: none; }
.tp-nav.is-stuck .tp-back--logo { background: none; }
.tp-back__logo { display: block; width: auto; height: 26px; }
@media (max-width: 34rem) {
  .tp-back--logo { width: auto; padding: 0 4px 0 0; }
  .tp-back__logo { height: 22px; }
}
